forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/drivers/gpu/drm/nouveau/nvkm/engine/disp/dmacgf119.c
....@@ -53,6 +53,8 @@
5353 nvkm_error(subdev, "ch %d fini: %08x\n", user,
5454 nvkm_rd32(device, 0x610490 + (ctrl * 0x10)));
5555 }
56
+
57
+ chan->suspend_put = nvkm_rd32(device, 0x640000 + (ctrl * 0x1000));
5658 }
5759
5860 static int
....@@ -68,7 +70,7 @@
6870 nvkm_wr32(device, 0x610498 + (ctrl * 0x0010), 0x00010000);
6971 nvkm_wr32(device, 0x61049c + (ctrl * 0x0010), 0x00000001);
7072 nvkm_mask(device, 0x610490 + (ctrl * 0x0010), 0x00000010, 0x00000010);
71
- nvkm_wr32(device, 0x640000 + (ctrl * 0x1000), 0x00000000);
73
+ nvkm_wr32(device, 0x640000 + (ctrl * 0x1000), chan->suspend_put);
7274 nvkm_wr32(device, 0x610490 + (ctrl * 0x0010), 0x00000013);
7375
7476 /* wait for it to go inactive */