From: Alex Deucher Date: Mon, 17 Apr 2017 20:32:12 +0000 (-0400) Subject: drm/amdgpu/gfx9: clear the compute ring on reset X-Git-Tag: v4.13-rc1~45^2~24^2~306 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b98724db7f9bb7b0b0e253f903249894f09c01ee;p=platform%2Fkernel%2Flinux-exynos.git drm/amdgpu/gfx9: clear the compute ring on reset To be consistent with gfx8. Reviewed-by: monk liu Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c index 526e038..70e9a23 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c @@ -2149,6 +2149,7 @@ static int gfx_v9_0_kiq_init_queue(struct amdgpu_ring *ring) /* reset ring buffer */ ring->wptr = 0; + amdgpu_ring_clear_ring(ring); if (is_kiq) { mutex_lock(&adev->srbm_mutex);