drm/amdgpu/gfx9: clear the compute ring on reset
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 17 Apr 2017 20:32:12 +0000 (16:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 May 2017 21:40:13 +0000 (17:40 -0400)
To be consistent with gfx8.

Reviewed-by: monk liu <monk.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c

index 526e038..70e9a23 100644 (file)
@@ -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);