forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
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 */