Skip to contentSkip to conversation

drm/amdgpu: Enable queue reset for sdma 7.1 VFs

PATCH In review Victor Skvortsov 3 participants 3 messages Oct 13 – Oct 14

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

PATCH 1/1 drm/amdgpu: Enable queue reset for sdma 7.1 VFs

VFs support same SDMA 7.1 queue reset capabilities as baremetal.

---
 drivers/gpu/drm/amd/amdgpu/sdma_v7_1.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/sdma_v7_1.c +1 -2
index 21882f2cd2ae..6bea65622086 100644
@@ -1333,8 +1333,7 @@ static int sdma_v7_1_sw_init(struct amdgpu_ip_block *ip_block)
 
 	adev->sdma.supported_reset =
 		amdgpu_get_soft_full_reset_mask(&adev->sdma.instance[0].ring);
-	if (!amdgpu_sriov_vf(adev) &&
-	    !adev->debug_disable_gpu_ring_reset)
+	if (!adev->debug_disable_gpu_ring_reset)
 		adev->sdma.supported_reset |= AMDGPU_RESET_TYPE_PER_QUEUE;
 
 	r = amdgpu_sdma_sysfs_reset_mask_init(adev);
Signature · 1 line
2.34.1
maintainer Reviewed-by on v1 1/1
#1 lore raw

Public

Quoted 11 lines

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Victor Skvortsov
Sent: Tuesday, October 13, 2026 6:30 PM
To: [email protected]; Lazar, Lijo <[email protected]>; Luo, Zhigang <[email protected]>; Wan, Gavin <[email protected]>
Cc: Skvortsov, Victor <[email protected]>
Subject: [PATCH] drm/amdgpu: Enable queue reset for sdma 7.1 VFs

VFs support same SDMA 7.1 queue reset capabilities as baremetal.

This goes through the MMIO path for kernel SDMA queues. Assuming that is ok for VFs,

Quoted 25 lines
---
 drivers/gpu/drm/amd/amdgpu/sdma_v7_1.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/sdma_v7_1.c +1 -2
index 21882f2cd2ae..6bea65622086 100644
@@ -1333,8 +1333,7 @@ static int sdma_v7_1_sw_init(struct
 amdgpu_ip_block *ip_block)
 
      adev->sdma.supported_reset =
              amdgpu_get_soft_full_reset_mask(&adev-
 >sdma.instance[0].ring);
-     if (!amdgpu_sriov_vf(adev) &&
-         !adev->debug_disable_gpu_ring_reset)
+     if (!adev->debug_disable_gpu_ring_reset)
              adev->sdma.supported_reset |=

AMDGPU_RESET_TYPE_PER_QUEUE;

      r = amdgpu_sdma_sysfs_reset_mask_init(adev);

--
2.34.1

#2 lore raw
Quoted 12 lines · Alexander

Public

Quoted 9 lines

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Victor Skvortsov
Sent: Tuesday, October 13, 2026 6:30 PM
To: [email protected]; Lazar, Lijo <[email protected]>; Luo, Zhigang <[email protected]>; Wan, Gavin <[email protected]>
Cc: Skvortsov, Victor <[email protected]>
Subject: [PATCH] drm/amdgpu: Enable queue reset for sdma 7.1 VFs

Quoted 4 lines
Quoted 2 lines

VFs support same SDMA 7.1 queue reset capabilities as baremetal.

This goes through the MMIO path for kernel SDMA queues. Assuming that is ok for VFs,

I had a chat with Victor and even though the MMIO parameter passed to the reset helper is set to true for sdma 7.1, the actual queue reset code for mes 12.1 never uses MMIO so it should be safe. @Victor Skvortsov Please fix the caller to pass false. With that fixed, feel free to add my RB.

Alex

Quoted 29 lines
Quoted 25 lines
---
 drivers/gpu/drm/amd/amdgpu/sdma_v7_1.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/sdma_v7_1.c +1 -2
index 21882f2cd2ae..6bea65622086 100644
@@ -1333,8 +1333,7 @@ static int sdma_v7_1_sw_init(struct
 amdgpu_ip_block *ip_block)
 
      adev->sdma.supported_reset =
              amdgpu_get_soft_full_reset_mask(&adev-
 >sdma.instance[0].ring);
-     if (!amdgpu_sriov_vf(adev) &&
-         !adev->debug_disable_gpu_ring_reset)
+     if (!adev->debug_disable_gpu_ring_reset)
              adev->sdma.supported_reset |=

AMDGPU_RESET_TYPE_PER_QUEUE;

      r = amdgpu_sdma_sysfs_reset_mask_init(adev);

--
2.34.1