hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/drivers/gpu/drm/nouveau/nvkm/engine/disp/coregf119.c
....@@ -182,6 +182,8 @@
182182 nvkm_error(subdev, "core fini: %08x\n",
183183 nvkm_rd32(device, 0x610490));
184184 }
185
+
186
+ chan->suspend_put = nvkm_rd32(device, 0x640000);
185187 }
186188
187189 static int
....@@ -195,7 +197,7 @@
195197 nvkm_wr32(device, 0x610498, 0x00010000);
196198 nvkm_wr32(device, 0x61049c, 0x00000001);
197199 nvkm_mask(device, 0x610490, 0x00000010, 0x00000010);
198
- nvkm_wr32(device, 0x640000, 0x00000000);
200
+ nvkm_wr32(device, 0x640000, chan->suspend_put);
199201 nvkm_wr32(device, 0x610490, 0x01000013);
200202
201203 /* wait for it to go inactive */