drm/amdgpu: Fix for MEC SJT FW Load Fail on VF
Subsystems (2)
PATCH 1/1 drm/amdgpu: Fix for MEC SJT FW Load Fail on VF
From: yfeng1 <[email protected]>
Users might switch to ROCM build does not include MEC SJT FW and driver needs to consider this case.
Signed-of-yfeng1 <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c +6 -1
@@ -579,10 +579,15 @@ static int gfx_v9_4_3_init_cp_compute_microcode(struct amdgpu_device *adev, {int err; -if (amdgpu_sriov_vf (adev)) +if (amdgpu_sriov_vf (adev)) { err =amdgpu_ucode_request (adev, &adev->gfx.mec_fw,AMDGPU_UCODE_REQUIRED ,"amdgpu/%s_sjt_mec.bin" , chip_name); +if (err) + err =amdgpu_ucode_request (adev, &adev->gfx.mec_fw, +AMDGPU_UCODE_REQUIRED , +"amdgpu/%s_mec.bin" , chip_name); + }else err = amdgpu_ucode_request(adev, &adev->gfx.mec_fw, AMDGPU_UCODE_REQUIRED,
Signature · 1 line
2.34.1
[AMD Official Use Only - AMD Internal Distribution Only]
Reviewed-by Hawking Zhang <[email protected]>
Regards,
Hawking
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Yuan Feng
Sent: Monday, December 9, 2024 21:45
To: [email protected]
Cc: Feng, Yuan <[email protected]>
Subject: [PATCH] drm/amdgpu: Fix for MEC SJT FW Load Fail on VF
From: yfeng1 <[email protected]>
Users might switch to ROCM build does not include MEC SJT FW and driver needs to consider this case.
Signed-of-yfeng1 <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c +6 -2
@@ -579,10 +579,15 @@ static int gfx_v9_4_3_init_cp_compute_microcode(struct amdgpu_device *adev, {int err; -if (amdgpu_sriov_vf (adev)) +if (amdgpu_sriov_vf (adev)) { err =amdgpu_ucode_request (adev, &adev->gfx.mec_fw,AMDGPU_UCODE_REQUIRED ,"amdgpu/%s_sjt_mec.bin" , chip_name); +if (err) + err =amdgpu_ucode_request (adev, &adev->gfx.mec_fw, +AMDGPU_UCODE_REQUIRED , +"amdgpu/%s_mec.bin" , chip_name); + }else err = amdgpu_ucode_request(adev, &adev->gfx.mec_fw, AMDGPU_UCODE_REQUIRED, --
2.34.1