drm/amdgpu: fix amdgpu_sync_resv v2
Subsystems (2)
PATCH 1/1 drm/amdgpu: fix amdgpu_sync_resv v2
Fixes a bug introduced by AMDGPU_GEM_CREATE_EXPLICIT_SYNC. We still need to wait for pipelined moves in the shared fences list.
v2: fix typo
--- drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c +2 -5
@@ -191,9 +191,6 @@ int amdgpu_sync_resv(struct amdgpu_device *adev, f =reservation_object_get_excl (resv); r =amdgpu_sync_fence (adev, sync, f); -if (explicit_sync) -return r; - flist =reservation_object_get_list (resv);if (!flist || r)return r;
@@ -212,11 +209,11 @@ int amdgpu_sync_resv(struct amdgpu_device *adev, (fence_owner == AMDGPU_FENCE_OWNER_VM)))continue ; -/* Ignore fence from the same owner as +/* Ignore fence from the same owner and explicit one as * long as it isn't undefined. */ if (owner !=AMDGPU_FENCE_OWNER_UNDEFINED && - fence_owner == owner) + (fence_owner == owner || explicit_sync))continue ; }
Signature · 6 lines
2.11.0 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 20171124124935.24638-1-christian.koenig-5C7GfCeVMHo@public.gmane.org
Hi Andres,
just a gentle ping to see if you have noticed this.
Thanks,
Christian.
Am 24.11.2017 um 13:49 schrieb Christian König:
Quoted 28 lines
Fixes a bug introduced by
AMDGPU_GEM_CREATE_EXPLICIT_SYNC. We still need to wait for pipelined moves in the shared fences list.v2: fix typo
Signed-off-by Christian König <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c +0
-3@@ -191,9 +191,6 @@ int amdgpu_sync_resv(struct amdgpu_device *adev, f =reservation_object_get_excl (resv); r =amdgpu_sync_fence (adev, sync, f); -if (explicit_sync) -return r; - flist =reservation_object_get_list (resv);if (!flist || r)return r;@@ -212,11 +209,11 @@ int amdgpu_sync_resv(struct amdgpu_device *adev, (fence_owner == AMDGPU_FENCE_OWNER_VM)))continue ;
drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c int amdgpu_sync_resv(struct amdgpu_device *adev, · line 219
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c +2
-2-/* Ignore fence from the same owner as +/* Ignore fence from the same owner and explicit one as * long as it isn't undefined. */ if (owner !=AMDGPU_FENCE_OWNER_UNDEFINED && - fence_owner == owner) + (fence_owner == owner || explicit_sync))continue ; }
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): b4f12864-9073-47bb-6ba1-cd1fae3b29c9-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Andres Rodriguez
Reviewed-byQuoted 14 lines · Christian König
Hi Andres,
just a gentle ping to see if you have noticed this.
Thanks,
Christian.Am 24.11.2017 um 13:49 schrieb Christian König:
Quoted 6 lines
Fixes a bug introduced by
AMDGPU_GEM_CREATE_EXPLICIT_SYNC. We still need to wait for pipelined moves in the shared fences list.v2: fix typo
Signed-off-by Christian König <[email protected]>
Hi Christian,
Sorry, last few weeks have been a little hectic.
This patch looks good to me. You can add:
The steamvr explicit sync use cases are untouched by this patch, so we should be good on that front as well.
Kind Regards,
Andres
Quoted 21 lines
Quoted 21 lines
---
drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c| 7 ++-----1 file changed, 2 insertions(+), 5 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c +0
-4@@ -191,9 +191,6 @@ int amdgpu_sync_resv(struct amdgpu_device *adev, f = reservation_object_get_excl(resv); r = amdgpu_sync_fence(adev, sync, f); - if (explicit_sync) - return r; - flist = reservation_object_get_list(resv); if (!flist || r) return r;@@ -212,11 +209,11 @@ int amdgpu_sync_resv(struct amdgpu_device *adev, (fence_owner == AMDGPU_FENCE_OWNER_VM))) continue; - /* Ignore fence from the same owner as
Quoted 9 lines
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c +1
-0+ /* Ignore fence from the same owner and explicit one as* long as it isn't undefined. */ if (owner !=
AMDGPU_FENCE_OWNER_UNDEFINED&& -fence_owner== owner)
+ (fence_owner== owner ||explicit_sync)) continue;
}
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx