hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/gpu/drm/nouveau/nouveau_bo.c
....@@ -823,6 +823,15 @@
823823 if (ret == 0) {
824824 ret = nouveau_fence_new(chan, false, &fence);
825825 if (ret == 0) {
826
+ /* TODO: figure out a better solution here
827
+ *
828
+ * wait on the fence here explicitly as going through
829
+ * ttm_bo_move_accel_cleanup somehow doesn't seem to do it.
830
+ *
831
+ * Without this the operation can timeout and we'll fallback to a
832
+ * software copy, which might take several minutes to finish.
833
+ */
834
+ nouveau_fence_wait(fence, false, false);
826835 ret = ttm_bo_move_accel_cleanup(bo,
827836 &fence->base,
828837 evict, false,