forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/drivers/gpu/drm/nouveau/nvkm/engine/disp/dmacnv50.c
....@@ -94,6 +94,8 @@
9494 nvkm_error(subdev, "ch %d fini timeout, %08x\n", user,
9595 nvkm_rd32(device, 0x610200 + (ctrl * 0x10)));
9696 }
97
+
98
+ chan->suspend_put = nvkm_rd32(device, 0x640000 + (ctrl * 0x1000));
9799 }
98100
99101 static int
....@@ -109,7 +111,7 @@
109111 nvkm_wr32(device, 0x610208 + (ctrl * 0x0010), 0x00010000);
110112 nvkm_wr32(device, 0x61020c + (ctrl * 0x0010), ctrl);
111113 nvkm_mask(device, 0x610200 + (ctrl * 0x0010), 0x00000010, 0x00000010);
112
- nvkm_wr32(device, 0x640000 + (ctrl * 0x1000), 0x00000000);
114
+ nvkm_wr32(device, 0x640000 + (ctrl * 0x1000), chan->suspend_put);
113115 nvkm_wr32(device, 0x610200 + (ctrl * 0x0010), 0x00000013);
114116
115117 /* wait for it to go inactive */