From: Le Ma Date: Fri, 12 Dec 2025 10:43:47 +0000 (+0800) Subject: drm/amdgpu: bypass IMU ucode loading for MP0 15.0.8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=68af620c9a370863e973fa27f94b635a90b8a045;p=thirdparty%2Fkernel%2Flinux.git drm/amdgpu: bypass IMU ucode loading for MP0 15.0.8 For MP0 15.0.8, IMU ucode is part of IFWI and ASP would load it by default. Signed-off-by: Le Ma Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c index 27b67da9fdac2..d39b695cd9259 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c @@ -3096,6 +3096,13 @@ static int psp_load_non_psp_fw(struct psp_context *psp) */ continue; + /* IMU ucode is part of IFWI and MP0 15.0.8 would load it */ + if (amdgpu_ip_version(adev, MP0_HWIP, 0) == + IP_VERSION(15, 0, 8) && + (ucode->ucode_id == AMDGPU_UCODE_ID_IMU_I || + ucode->ucode_id == AMDGPU_UCODE_ID_IMU_D)) + continue; + psp_print_fw_hdr(psp, ucode); ret = psp_execute_ip_fw_load(psp, ucode);