drm/amdgpu/gfx_v12_1: Remove redundant CP resume programming
Subsystems (2)
PATCH 1/1 drm/amdgpu/gfx_v12_1: Remove redundant CP resume programming
This programming is unnecessary and can be removed.
Signed-off-by Hawking Zhang <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c | 3 --- 1 file changed, 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c +0 -3
@@ -2377,9 +2377,6 @@ static int gfx_v12_1_xcc_kcq_resume(struct amdgpu_device *adev,struct amdgpu_ring *ring =NULL ;int r =0 , i; -if (!amdgpu_async_gfx_ring) -gfx_v12_1_xcc_cp_compute_enable (adev, true, xcc_id); -for (i =0 ; i < adev->gfx.num_compute_rings; i++) { ring = &adev->gfx.compute_ring[i + xcc_id * adev->gfx.num_compute_rings];
Signature · 1 line
2.17.1
Quoted 4 lines · Hawking Zhang
This programming is unnecessary and can be removed.
Signed-off-by Hawking Zhang <[email protected]>
Reviewed-by Alex Deucher <[email protected]>
Quoted 21 lines
--- drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c | 3 --- 1 file changed, 3 deletions(-)drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c +0
-4@@ -2377,9 +2377,6 @@ static int gfx_v12_1_xcc_kcq_resume(struct amdgpu_device *adev,struct amdgpu_ring *ring =NULL ;int r =0 , i; -if (!amdgpu_async_gfx_ring) -gfx_v12_1_xcc_cp_compute_enable (adev, true, xcc_id); -for (i =0 ; i < adev->gfx.num_compute_rings; i++) { ring = &adev->gfx.compute_ring[i + xcc_id * adev->gfx.num_compute_rings]; --2.17.1