drm/amdgpu: save list length when fence is signaled
Subsystems (2)
PATCH 1/1 drm/amdgpu: save list length when fence is signaled
Change-Id I4cc1283f926a523ab57f5cb09f8b58906358b552
Signed-off-by Chunming Zhou <[email protected]>
Reviewed-by Christian König <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c +6 -7
@@ -273,6 +273,12 @@ struct dma_fence *amdgpu_sync_peek_fence(struct amdgpu_sync *sync,struct dma_fence *f = e->fence;struct amd_sched_fence *s_fence =to_amd_sched_fence (f); +if (dma_fence_is_signaled (f)) { +hash_del (&e->node); +dma_fence_put (f); +kmem_cache_free (amdgpu_sync_slab, e); +continue ; + }if (ring && s_fence) {/* For fences from the same ring it is sufficient * when they are scheduled.
@@ -285,13 +291,6 @@ struct dma_fence *amdgpu_sync_peek_fence(struct amdgpu_sync *sync, } } -if (dma_fence_is_signaled (f)) { -hash_del (&e->node); -dma_fence_put (f); -kmem_cache_free (amdgpu_sync_slab, e); -continue ; - } -return f; }
Signature · 6 lines
1.9.1 _______________________________________________ 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): 1502675820-15781-1-git-send-email-David1.Zhou-5C7GfCeVMHo@public.gmane.org
Deucher, Alexander
Reviewed-by Alex DeucherQuoted 11 lines
-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Chunming Zhou
Sent: Sunday, August 13, 2017 9:57 PM
To: [email protected]
Cc: Zhou, David(ChunMing)
Subject: [PATCH] drm/amdgpu: save list length when fence is signaledChange-Id I4cc1283f926a523ab57f5cb09f8b58906358b552Signed-off-by Chunming Zhou <[email protected]>Reviewed-by Christian König <[email protected]>
Reviewed-by Alex Deucher <[email protected]>
Quoted 42 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c +6
-0@@ -273,6 +273,12 @@ struct dma_fence *amdgpu_sync_peek_fence(struct amdgpu_sync *sync, struct dma_fence *f = e->fence;struct amd_sched_fence *s_fence =to_amd_sched_fence (f); +if (dma_fence_is_signaled (f)) { +hash_del (&e->node); +dma_fence_put (f); +kmem_cache_free (amdgpu_sync_slab, e); +continue ; + }if (ring && s_fence) {drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c +0
-8/* For fences from the same ring it is sufficient * when they are scheduled. @@ -285,13 +291,6 @@ struct dma_fence *amdgpu_sync_peek_fence(struct amdgpu_sync *sync, } } - if (dma_fence_is_signaled(f)) { - hash_del(&e->node); - dma_fence_put(f); - kmem_cache_free(amdgpu_sync_slab, e); - continue; - } - return f; } --1.9.1
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx