Commit 68af620c authored by Le Ma's avatar Le Ma Committed by Alex Deucher
Browse files

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: default avatarLe Ma <le.ma@amd.com>
Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 3ebe5853
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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);