drm/amdgpu: Switch to interruptable wait to recover from ring hang.
Subsystems (2)
PATCH v2 1/1 drm/amdgpu: Switch to interruptable wait to recover from ring hang.
v2:
Use dma_fence_wait instead of dma_fence_wait_timeout(...,MAX_SCHEDULE_TIMEOUT) Avoid printing error message for ERESTARTSYS
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c +4 -2
@@ -421,9 +421,11 @@ int amdgpu_ctx_wait_prev_fence(struct amdgpu_ctx *ctx, unsigned ring_id)if (other) {signed long r; - r =dma_fence_wait_timeout (other, false,MAX_SCHEDULE_TIMEOUT ); + r =dma_fence_wait (other, true);if (r <0 ) { -DRM_ERROR ("Error (%ld) waiting for fence!\n" , r); +if (r != -ERESTARTSYS ) +DRM_ERROR ("Error (%ld) waiting for fence!\n" , r); +return r; } }
Signature · 6 lines
2.7.4 _______________________________________________ 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): 1525097755-5679-1-git-send-email-andrey.grodzovsky-5C7GfCeVMHo@public.gmane.org
Christian König
Reviewed-byAm 30.04.2018 um 16:15 schrieb Andrey Grodzovsky:
Quoted 6 lines
v2:
Usedma_fence_waitinstead ofdma_fence_wait_timeout(...,MAX_SCHEDULE_TIMEOUT)Avoid printing error message for ERESTARTSYSOriginally-by David Panariti <[email protected]>Signed-off-by Andrey Grodzovsky <[email protected]>
Quoted 12 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c +0
-0@@ -421,9 +421,11 @@ int amdgpu_ctx_wait_prev_fence(struct amdgpu_ctx *ctx, unsigned ring_id)if (other) {signed long r;
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c int amdgpu_ctx_wait_prev_fence(struct amdgpu_ctx *ctx, unsigned ring_id) · line 431
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c +4
-2- r =dma_fence_wait_timeout (other, false,MAX_SCHEDULE_TIMEOUT ); + r =dma_fence_wait (other, true);if (r <0 ) { -DRM_ERROR ("Error (%ld) waiting for fence!\n" , r); +if (r != -ERESTARTSYS ) +DRM_ERROR ("Error (%ld) waiting for fence!\n" , r); +return r; } }
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx