Skip to contentSkip to conversation

drm/amdgpu/sdma6: enable per queue resets on more ASICs

PATCH In review Alex Deucher 3 participants 3 messages Feb 2 – Feb 3

Subsystems (2)
lore
Share & tools
lore

Alex Deucher

author maintainer
#0 lore raw

PATCH 1/1 drm/amdgpu/sdma6: enable per queue resets on more ASICs

Enable on the other SDMA 6.x ASICs.

---
 drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c +3 -0
index 35e00ebba0300..6f4704c1b3a10 100644
@@ -1380,6 +1380,9 @@ static int sdma_v6_0_sw_init(struct amdgpu_ip_block *ip_block)
 			adev->sdma.supported_reset |= AMDGPU_RESET_TYPE_PER_QUEUE;
 		break;
 	default:
+		if (!amdgpu_sriov_vf(adev) &&
+		    !adev->debug_disable_gpu_ring_reset)
+			adev->sdma.supported_reset |= AMDGPU_RESET_TYPE_PER_QUEUE;
 		break;
 	}
 
Signature · 1 line
2.52.0
#1 lore raw

+ Jesse

Quoted 25 lines · Alex Deucher

Enable on the other SDMA 6.x ASICs.

---
 drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c +3 -1
index 35e00ebba0300..6f4704c1b3a10 100644
@@ -1380,6 +1380,9 @@ static int sdma_v6_0_sw_init(struct amdgpu_ip_block *ip_block)
                        adev->sdma.supported_reset |= AMDGPU_RESET_TYPE_PER_QUEUE;
                break;
        default:
+               if (!amdgpu_sriov_vf(adev) &&
+                   !adev->debug_disable_gpu_ring_reset)
+                       adev->sdma.supported_reset |= AMDGPU_RESET_TYPE_PER_QUEUE;
                break;
        }
 
--

2.52.0

#2 lore raw
In reply to Alex Deucher
Quoted 12 lines · Alex Deucher

Enable on the other SDMA 6.x ASICs.

---
  drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c | 3 +++
  1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c +0 -0
index 35e00ebba0300..6f4704c1b3a10 100644

drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c static int sdma_v6_0_sw_init(struct amdgpu_ip_block *ip_block) · line 1384

Quoted 5 lines
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c +2 -0
@@ -1380,6 +1380,9 @@ static int sdma_v6_0_sw_init(struct amdgpu_ip_block *ip_block)
  			adev->sdma.supported_reset |= AMDGPU_RESET_TYPE_PER_QUEUE;
  		break;
  	default:
+		if (!amdgpu_sriov_vf(adev) &&
+		    !adev->debug_disable_gpu_ring_reset)

No FW version check required? Also, better to fork this out to a small function instead of repeating this in every case.

Thanks,
Lijo

Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c +1 -0
+			adev->sdma.supported_reset |= AMDGPU_RESET_TYPE_PER_QUEUE;
  		break;
  	}