Skip to contentSkip to conversation

drm/amdgpu/sdma6: Update gfx11.0.3 SDMA FW version to include UMQ protected-fence fix

PATCH Superseded Srinivasan Shanmugam 3 participants 5 messages Nov 25, 2025 – Dec 1, 2025

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

PATCH 1/1 drm/amdgpu/sdma6: Update gfx11.0.3 SDMA FW version to include UMQ protected-fence fix

On GFX11.0.3, earlier SDMA firmware versions issue the PROTECTED_FENCE write from the user VMID (e.g. VMID 8) instead of VMID 0. This causes a GPU VM protection fault when SDMA tries to write the secure fence location, as seen in the UMQ SDMA test (cs-sdma-with-IP-DMA-UMQ)

Fixes the below GPU page fault:

[ 1826.488596] amdgpu 0000:0b:00.0: amdgpu: [mmhub] page fault (src_id:0 ring:153 vmid:0 pasid:0)
[ 1826.488609] amdgpu 0000:0b:00.0: amdgpu:   in page starting at address 0x0000000000000000 from client 18
[ 1826.488617] amdgpu 0000:0b:00.0: amdgpu: MMVM_L2_PROTECTION_FAULT_STATUS:0x00002732
[ 1826.488623] amdgpu 0000:0b:00.0: amdgpu:      Faulty UTCL2 client ID: VCNU0 (0x13)
[ 1826.488629] amdgpu 0000:0b:00.0: amdgpu:      MORE_FAULTS: 0x0
[ 1826.488633] amdgpu 0000:0b:00.0: amdgpu:      WALKER_ERROR: 0x1
[ 1826.488638] amdgpu 0000:0b:00.0: amdgpu:      PERMISSION_FAULTS: 0x3
[ 1826.488642] amdgpu 0000:0b:00.0: amdgpu:      MAPPING_ERROR: 0x1
[ 1826.488647] amdgpu 0000:0b:00.0: amdgpu:      RW: 0x0
Cc Alex Deucher <[email protected]>
Cc Christian König <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c +1 -1
index e3f725bc2f29..4996d60751ef 100644
@@ -1390,7 +1390,7 @@ static int sdma_v6_0_sw_init(struct amdgpu_ip_block *ip_block)
 			adev->userq_funcs[AMDGPU_HW_IP_DMA] = &userq_mes_funcs;
 		break;
 	case IP_VERSION(6, 0, 3):
-		if ((adev->sdma.instance[0].fw_version >= 27) && !adev->sdma.disable_uq)
+		if (adev->sdma.instance[0].fw_version >= 29 && !adev->sdma.disable_uq)
 			adev->userq_funcs[AMDGPU_HW_IP_DMA] = &userq_mes_funcs;
 		break;
 	case IP_VERSION(6, 1, 0):
Signature · 1 line
2.34.1
#1 lore raw

PATCH v2 1/1 drm/amdgpu/sdma6: Update gfx11.0.3 SDMA FW version to include UMQ protected-fence fix

On GFX11.0.3, earlier SDMA firmware versions issue the PROTECTED_FENCE write from the user VMID (e.g. VMID 8) instead of VMID 0. This causes a GPU VM protection fault when SDMA tries to write the secure fence location, as seen in the UMQ SDMA test (cs-sdma-with-IP-DMA-UMQ)

Fixes the below GPU page fault:

[  514.037189] amdgpu 0000:0b:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:40 vmid:8 pasid:32770)
[  514.037199] amdgpu 0000:0b:00.0: amdgpu:  Process  pid 0 thread  pid 0
[  514.037205] amdgpu 0000:0b:00.0: amdgpu:   in page starting at address 0x00007fff00409000 from client 10
[  514.037212] amdgpu 0000:0b:00.0: amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x00841A51
[  514.037217] amdgpu 0000:0b:00.0: amdgpu:      Faulty UTCL2 client ID: SDMA0 (0xd)
[  514.037223] amdgpu 0000:0b:00.0: amdgpu:      MORE_FAULTS: 0x1
[  514.037227] amdgpu 0000:0b:00.0: amdgpu:      WALKER_ERROR: 0x0
[  514.037232] amdgpu 0000:0b:00.0: amdgpu:      PERMISSION_FAULTS: 0x5
[  514.037236] amdgpu 0000:0b:00.0: amdgpu:      MAPPING_ERROR: 0x0
[  514.037241] amdgpu 0000:0b:00.0: amdgpu:      RW: 0x1

v2: Updated commit message

Cc Alex Deucher <[email protected]>
Cc Christian König <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c +1 -1
index e3f725bc2f29..4996d60751ef 100644
@@ -1390,7 +1390,7 @@ static int sdma_v6_0_sw_init(struct amdgpu_ip_block *ip_block)
 			adev->userq_funcs[AMDGPU_HW_IP_DMA] = &userq_mes_funcs;
 		break;
 	case IP_VERSION(6, 0, 3):
-		if ((adev->sdma.instance[0].fw_version >= 27) && !adev->sdma.disable_uq)
+		if (adev->sdma.instance[0].fw_version >= 29 && !adev->sdma.disable_uq)
 			adev->userq_funcs[AMDGPU_HW_IP_DMA] = &userq_mes_funcs;
 		break;
 	case IP_VERSION(6, 1, 0):
Signature · 1 line
2.34.1
#2 lore raw
Quoted 33 lines · Srinivasan Shanmugam

On GFX11.0.3, earlier SDMA firmware versions issue the PROTECTED_FENCE write from the user VMID (e.g. VMID 8) instead of VMID 0. This causes a GPU VM protection fault when SDMA tries to write the secure fence location, as seen in the UMQ SDMA test (cs-sdma-with-IP-DMA-UMQ)

Fixes the below GPU page fault:

[  514.037189] amdgpu 0000:0b:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:40 vmid:8 pasid:32770)
[  514.037199] amdgpu 0000:0b:00.0: amdgpu:  Process  pid 0 thread  pid 0
[  514.037205] amdgpu 0000:0b:00.0: amdgpu:   in page starting at address 0x00007fff00409000 from client 10
[  514.037212] amdgpu 0000:0b:00.0: amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x00841A51
[  514.037217] amdgpu 0000:0b:00.0: amdgpu:      Faulty UTCL2 client ID: SDMA0 (0xd)
[  514.037223] amdgpu 0000:0b:00.0: amdgpu:      MORE_FAULTS: 0x1
[  514.037227] amdgpu 0000:0b:00.0: amdgpu:      WALKER_ERROR: 0x0
[  514.037232] amdgpu 0000:0b:00.0: amdgpu:      PERMISSION_FAULTS: 0x5
[  514.037236] amdgpu 0000:0b:00.0: amdgpu:      MAPPING_ERROR: 0x0
[  514.037241] amdgpu 0000:0b:00.0: amdgpu:      RW: 0x1

v2: Updated commit message

Cc Alex Deucher <[email protected]>
Cc Christian König <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c +0 -0
index e3f725bc2f29..4996d60751ef 100644

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

Quoted 3 lines
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c +0 -0
@@ -1390,7 +1390,7 @@ static int sdma_v6_0_sw_init(struct amdgpu_ip_block *ip_block)
                        adev->userq_funcs[AMDGPU_HW_IP_DMA] = &userq_mes_funcs;
                break;
        case IP_VERSION(6, 0, 3):

Can you check if other IP versions need similar updates?

Alex

Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c +1 -2
-               if ((adev->sdma.instance[0].fw_version >= 27) && !adev->sdma.disable_uq)
+               if (adev->sdma.instance[0].fw_version >= 29 && !adev->sdma.disable_uq)
                        adev->userq_funcs[AMDGPU_HW_IP_DMA] = &userq_mes_funcs;
                break;
        case IP_VERSION(6, 1, 0):
--

2.34.1

#3 lore raw

[Public]

We may hold the patch until the relevant firmware released.

Regards,
Prike

Quoted 71 lines

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Alex Deucher
Sent: Wednesday, November 26, 2025 1:02 AM
To: SHANMUGAM, SRINIVASAN <[email protected]>
Cc: Koenig, Christian <[email protected]>; Deucher, Alexander <[email protected]>; [email protected]
Subject: Re: [PATCH v2] drm/amdgpu/sdma6: Update gfx11.0.3 SDMA FW version to include UMQ protected-fence fix

Quoted 10 lines · Srinivasan Shanmugam

On GFX11.0.3, earlier SDMA firmware versions issue the PROTECTED_FENCE write from the user VMID (e.g. VMID 8) instead of VMID 0. This causes a GPU VM protection fault when SDMA tries to write the secure fence location, as seen in the UMQ SDMA test (cs-sdma-with-IP-DMA-UMQ)

Fixes the below GPU page fault:

[  514.037189] amdgpu 0000:0b:00.0: amdgpu: [gfxhub] page fault

(src_id:0 ring:40 vmid:8 pasid:32770) [ 514.037199] amdgpu 0000:0b:00.0:

amdgpu: Process pid 0 thread pid 0

Quoted 1 line
[  514.037205] amdgpu 0000:0b:00.0: amdgpu:   in page starting at address

0x00007fff00409000 from client 10

Quoted 1 line
[  514.037212] amdgpu 0000:0b:00.0: amdgpu:

GCVM_L2_PROTECTION_FAULT_STATUS:0x00841A51

Quoted 1 line
[  514.037217] amdgpu 0000:0b:00.0: amdgpu:      Faulty UTCL2 client ID: SDMA0

(0xd)

drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c static int sdma_v6_0_sw_init(struct amdgpu_ip_block

Quoted 21 lines
[  514.037223] amdgpu 0000:0b:00.0: amdgpu:      MORE_FAULTS: 0x1
[  514.037227] amdgpu 0000:0b:00.0: amdgpu:      WALKER_ERROR: 0x0
[  514.037232] amdgpu 0000:0b:00.0: amdgpu:      PERMISSION_FAULTS: 0x5
[  514.037236] amdgpu 0000:0b:00.0: amdgpu:      MAPPING_ERROR: 0x0
[  514.037241] amdgpu 0000:0b:00.0: amdgpu:      RW: 0x1

v2: Updated commit message

Cc Alex Deucher <[email protected]>
Cc Christian König <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c +0 -0
index e3f725bc2f29..4996d60751ef 100644
@@ -1390,7 +1390,7 @@ static int sdma_v6_0_sw_init(struct amdgpu_ip_block

*ip_block)

drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c static int sdma_v6_0_sw_init(struct amdgpu_ip_block · line 1390

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c +0 -0
                        adev->userq_funcs[AMDGPU_HW_IP_DMA] =

&userq_mes_funcs;

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

Quoted 2 lines
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c +0 -0
                break;
        case IP_VERSION(6, 0, 3):

Can you check if other IP versions need similar updates?

Alex

drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c static int sdma_v6_0_sw_init(struct amdgpu_ip_block · line 1396

Quoted 5 lines
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c +2 -1
-               if ((adev->sdma.instance[0].fw_version >= 27) && !adev-
 sdma.disable_uq)
+               if (adev->sdma.instance[0].fw_version >= 29 &&
+ !adev->sdma.disable_uq)
                        adev->userq_funcs[AMDGPU_HW_IP_DMA] =

&userq_mes_funcs;

Quoted 5 lines
                break;
        case IP_VERSION(6, 1, 0):

--
2.34.1

Reviewed-by on v2 1/1
#4 lore raw
In reply to Srinivasan Shanmugam
Quoted 2 lines · Srinivasan Shanmugam

On GFX11.0.3, earlier SDMA firmware versions issue the

here and in the patch title, s/gfx11.0.3/sdma 6.0.3/

With that fixed:

Quoted 42 lines

PROTECTED_FENCE write from the user VMID (e.g. VMID 8) instead of VMID 0. This causes a GPU VM protection fault when SDMA tries to write the secure fence location, as seen in the UMQ SDMA test (cs-sdma-with-IP-DMA-UMQ)

Fixes the below GPU page fault:

[  514.037189] amdgpu 0000:0b:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:40 vmid:8 pasid:32770)
[  514.037199] amdgpu 0000:0b:00.0: amdgpu:  Process  pid 0 thread  pid 0
[  514.037205] amdgpu 0000:0b:00.0: amdgpu:   in page starting at address 0x00007fff00409000 from client 10
[  514.037212] amdgpu 0000:0b:00.0: amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x00841A51
[  514.037217] amdgpu 0000:0b:00.0: amdgpu:      Faulty UTCL2 client ID: SDMA0 (0xd)
[  514.037223] amdgpu 0000:0b:00.0: amdgpu:      MORE_FAULTS: 0x1
[  514.037227] amdgpu 0000:0b:00.0: amdgpu:      WALKER_ERROR: 0x0
[  514.037232] amdgpu 0000:0b:00.0: amdgpu:      PERMISSION_FAULTS: 0x5
[  514.037236] amdgpu 0000:0b:00.0: amdgpu:      MAPPING_ERROR: 0x0
[  514.037241] amdgpu 0000:0b:00.0: amdgpu:      RW: 0x1

v2: Updated commit message

Cc Alex Deucher <[email protected]>
Cc Christian König <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c +1 -2
index e3f725bc2f29..4996d60751ef 100644
@@ -1390,7 +1390,7 @@ static int sdma_v6_0_sw_init(struct amdgpu_ip_block *ip_block)
                        adev->userq_funcs[AMDGPU_HW_IP_DMA] = &userq_mes_funcs;
                break;
        case IP_VERSION(6, 0, 3):
-               if ((adev->sdma.instance[0].fw_version >= 27) && !adev->sdma.disable_uq)
+               if (adev->sdma.instance[0].fw_version >= 29 && !adev->sdma.disable_uq)
                        adev->userq_funcs[AMDGPU_HW_IP_DMA] = &userq_mes_funcs;
                break;
        case IP_VERSION(6, 1, 0):
--

2.34.1