Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e147eae8 authored by Ben Skeggs's avatar Ben Skeggs
Browse files

drm/nouveau: wait on fence after bo move if validating for another channel



Not an ideal solution, but it'll do for the moment for correctness.  We
need to come up with a nicer way to manage inter-channel sync, the hw
is unfortunately a little lacking in this area.

Should fix some resume corruption, as well as corruption that may be seen
while under memory pressure.

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 9855e584
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -469,6 +469,8 @@ nouveau_bo_move_accel_cleanup(struct nouveau_channel *chan,

	ret = ttm_bo_move_accel_cleanup(&nvbo->bo, fence, NULL,
					evict, no_wait, new_mem);
	if (nvbo->channel && nvbo->channel != chan)
		ret = nouveau_fence_wait(fence, NULL, false, false);
	nouveau_fence_unref((void *)&fence);
	return ret;
}