drm/amdgpu/gfx9: reset compute ring wptr when gpu reset
Subsystems (2)
PATCH 1/1 drm/amdgpu/gfx9: reset compute ring wptr when gpu reset
We need reset compute ring wptr to zero when gpu reset in order to prevent CP hang.
Signed-off-by Yintian Tao <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +1 -0
@@ -3175,6 +3175,7 @@ static int gfx_v9_0_kcq_init_queue(struct amdgpu_ring *ring)/* reset ring buffer */ ring->wptr =0 ; +amdgpu_ring_set_wptr (ring);amdgpu_ring_clear_ring (ring); }else {amdgpu_ring_clear_ring (ring);
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): 1559663079-2448-1-git-send-email-yttao-5C7GfCeVMHo@public.gmane.org
Alex Deucher
Acked-byQuoted 5 lines · Yintian Tao
We need reset compute ring wptr to zero when gpu reset in order to prevent CP hang.
Signed-off-by Yintian Tao <[email protected]>
Acked-by Alex Deucher <[email protected]>
Quoted 19 lines
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +1
-1@@ -3175,6 +3175,7 @@ static int gfx_v9_0_kcq_init_queue(struct amdgpu_ring *ring)/* reset ring buffer */ ring->wptr =0 ; +amdgpu_ring_set_wptr (ring);amdgpu_ring_clear_ring (ring); }else {amdgpu_ring_clear_ring (ring); --2.7.4
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