Browse Source

drm/amdgpu/gfx9: clear the compute ring on reset

To be consistent with gfx8.

Reviewed-by: monk liu <monk.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Alex Deucher 8 years ago
parent
commit
b98724db7f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c

+ 1 - 0
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);