Explorar o código

drm/amdgpu/gfx8: fold loops in kiq_resume()

No need to loop through the compute queues twice.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Alex Deucher %!s(int64=8) %!d(string=hai) anos
pai
achega
0104cf2536
Modificáronse 1 ficheiros con 0 adicións e 4 borrados
  1. 0 4
      drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c

+ 0 - 4
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c

@@ -5004,10 +5004,6 @@ static int gfx_v8_0_kiq_resume(struct amdgpu_device *adev)
 		amdgpu_bo_unreserve(ring->mqd_obj);
 		if (r)
 			goto done;
-	}
-
-	for (i = 0; i < adev->gfx.num_compute_rings; i++) {
-		ring = &adev->gfx.compute_ring[i];
 
 		ring->ready = true;
 		r = amdgpu_ring_test_ring(ring);