Skip to contentSkip to conversation

drm/amdgpu/gfx_v12_1: Remove redundant CP resume programming

PATCH In review Hawking Zhang 2 participants 2 messages Sep 15

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu/gfx_v12_1: Remove redundant CP resume programming

This programming is unnecessary and can be removed.

---
 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
index d7effa43c0fa..a2f73a71f11f 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Hawking Zhang

This programming is unnecessary and can be removed.

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
index d7effa43c0fa..a2f73a71f11f 100644
@@ -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