From: Alex Deucher Date: Thu, 23 Mar 2017 05:40:19 +0000 (-0400) Subject: drm/amdgpu/gfx8: fold loops in kiq_resume() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0104cf25365b0a28f2fc86d034cb0af95cb11753;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/amdgpu/gfx8: fold loops in kiq_resume() No need to loop through the compute queues twice. Reviewed-by: Christian König Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c index 111fa5d91bdf..353494431a92 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c +++ b/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);