forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/drivers/gpu/drm/nouveau/nvkm/engine/disp/corenv50.c
....@@ -179,6 +179,8 @@
179179 nvkm_error(subdev, "core fini: %08x\n",
180180 nvkm_rd32(device, 0x610200));
181181 }
182
+
183
+ chan->suspend_put = nvkm_rd32(device, 0x640000);
182184 }
183185
184186 static int
....@@ -198,7 +200,7 @@
198200 nvkm_wr32(device, 0x610208, 0x00010000);
199201 nvkm_wr32(device, 0x61020c, 0x00000000);
200202 nvkm_mask(device, 0x610200, 0x00000010, 0x00000010);
201
- nvkm_wr32(device, 0x640000, 0x00000000);
203
+ nvkm_wr32(device, 0x640000, chan->suspend_put);
202204 nvkm_wr32(device, 0x610200, 0x01000013);
203205
204206 /* wait for it to go inactive */