]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu: bypass IMU ucode loading for MP0 15.0.8
authorLe Ma <le.ma@amd.com>
Fri, 12 Dec 2025 10:43:47 +0000 (18:43 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 11 Mar 2026 17:58:08 +0000 (13:58 -0400)
For MP0 15.0.8, IMU ucode is part of IFWI and ASP would load it by default.

Signed-off-by: Le Ma <le.ma@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c

index 27b67da9fdac249ec2ca5a94a74c215a4710f9b8..d39b695cd925967b98a8527e59b7cd6f55c8d54f 100644 (file)
@@ -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);