Commit 02207491 authored by Christian König's avatar Christian König
Browse files

drm/radeon: fix logic inversion in radeon_sync_resv



Shared is the opposite of write/exclusive.

Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Fixes: 0597ca7b ("drm/radeon: use new iterator in radeon_sync_resv")
Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1970


Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220412093626.608767-1-christian.koenig@amd.com
parent 1ecc0c09
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -96,7 +96,7 @@ int radeon_sync_resv(struct radeon_device *rdev,
	struct dma_fence *f;
	int r = 0;

	dma_resv_for_each_fence(&cursor, resv, shared, f) {
	dma_resv_for_each_fence(&cursor, resv, !shared, f) {
		fence = to_radeon_fence(f);
		if (fence && fence->rdev == rdev)
			radeon_sync_fence(sync, fence);