Skip to content

Commit 0220749

Browse files
drm/radeon: fix logic inversion in radeon_sync_resv
Shared is the opposite of write/exclusive. Signed-off-by: Christian König <christian.koenig@amd.com> Fixes: 0597ca7 ("drm/radeon: use new iterator in radeon_sync_resv") Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1970 Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220412093626.608767-1-christian.koenig@amd.com
1 parent 1ecc0c0 commit 0220749

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/radeon/radeon_sync.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ int radeon_sync_resv(struct radeon_device *rdev,
9696
struct dma_fence *f;
9797
int r = 0;
9898

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

0 commit comments

Comments
 (0)