Skip to contentSkip to conversation

drm/amdgpu: Skip emit de meta data on gfx11 with rs64 enabled

PATCH Superseded Yifan Zha 2 participants 2 messages Nov 14, 2025

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Yifan Zha

author
#0 lore raw

PATCH 1/1 drm/amdgpu: Skip emit de meta data on gfx11 with rs64 enabled

[Why]
Accoreding to CP updated to RS64 on gfx11,
WRITE_DATA with PREEMPTION_META_MEMORY(dst_sel=8) is illegal for CP FW. That packet is used for MCBP on F32 based system.
So it would lead to incorrect GRBM write and FW is not handling that extra case correctly.

[How]
With gfx11 rs64 enabled, skip emit da meta data.

---
 drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c +1 -1
index 02d7cfae22bd..e4d525bf9d0c 100644
@@ -5874,7 +5874,7 @@ static void gfx_v11_0_ring_emit_ib_gfx(struct amdgpu_ring *ring,
 		if (flags & AMDGPU_IB_PREEMPTED)
 			control |= INDIRECT_BUFFER_PRE_RESUME(1);
 
-		if (vmid)
+		if (vmid && !ring->adev->gfx.rs64_enable)
 			gfx_v11_0_ring_emit_de_meta(ring,
 				    (!amdgpu_sriov_vf(ring->adev) && flags & AMDGPU_IB_PREEMPTED) ? true : false);
 	}
Signature · 1 line
2.43.0
maintainer
#1 lore raw
Quoted 20 lines · Yifan Zha

[Why]
Accoreding to CP updated to RS64 on gfx11,
WRITE_DATA with PREEMPTION_META_MEMORY(dst_sel=8) is illegal for CP FW. That packet is used for MCBP on F32 based system.
So it would lead to incorrect GRBM write and FW is not handling that extra case correctly.

[How]
With gfx11 rs64 enabled, skip emit da meta data.

---
 drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c +0 -0
index 02d7cfae22bd..e4d525bf9d0c 100644

drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c static void gfx_v11_0_ring_emit_ib_gfx(struct amdgpu_ring *ring, · line 5879

Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c +1 -1
@@ -5874,7 +5874,7 @@ static void gfx_v11_0_ring_emit_ib_gfx(struct amdgpu_ring *ring,
 		if (flags & AMDGPU_IB_PREEMPTED)
 			control |= INDIRECT_BUFFER_PRE_RESUME(1);
 
-		if (vmid)
+		if (vmid && !ring->adev->gfx.rs64_enable)
 			gfx_v11_0_ring_emit_de_meta(ring,
 				    (!amdgpu_sriov_vf(ring->adev) && flags & AMDGPU_IB_PREEMPTED) ? true : false);

While at it please also remove this "? true : false". That is usually extremely frowned upon.

Regards,
Christian.

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c +0 -0
 	}