Skip to contentSkip to conversation

drm/amdgpu: Disable cleaner shader in sr-iov multi-vf environment

PATCH New Lin.Cao 1 participant 1 message Jun 13, 2025

Subsystems (2)
lore
Share & tools
lore

Lin.Cao

author
#0 lore raw

PATCH 1/1 drm/amdgpu: Disable cleaner shader in sr-iov multi-vf environment

Cleaner shader will cause function level reset when run compute benchmark and gfx benchmark at same time in multi vf environment. Disable cleaner shader in multi vf environment.

---
 drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c +2 -1
index ec9b84f92d46..c5d747f55c86 100644
@@ -1645,7 +1645,8 @@ static int gfx_v11_0_sw_init(struct amdgpu_ip_block *ip_block)
 		if (adev->gfx.me_fw_version  >= 2280 &&
 		    adev->gfx.pfp_fw_version >= 2370 &&
 		    adev->gfx.mec_fw_version >= 2450  &&
-		    adev->mes.fw_version[0] >= 99) {
+		    adev->mes.fw_version[0] >= 99 &&
+			!amdgpu_sriov_multi_vf_mode(adev)) {
 			adev->gfx.enable_cleaner_shader = true;
 			r = amdgpu_gfx_cleaner_shader_sw_init(adev, adev->gfx.cleaner_shader_size);
 			if (r) {
Signature · 1 line
2.46.1