Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c12d2871 authored by Alex Deucher's avatar Alex Deucher
Browse files

drm/amdgpu/gmc8: skip MC ucode loading on SR-IOV capable boards



VBIOS does this for us in asic_init.

Reviewed-by: default avatarMonk Liu <monk.liu@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 8cce244c
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -252,6 +252,12 @@ static int gmc_v8_0_mc_load_microcode(struct amdgpu_device *adev)
	if (!adev->mc.fw)
		return -EINVAL;

	/* Skip MC ucode loading on SR-IOV capable boards.
	 * vbios does this for us in asic_init in that case.
	 */
	if (adev->virtualization.supports_sr_iov)
		return 0;

	hdr = (const struct mc_firmware_header_v1_0 *)adev->mc.fw->data;
	amdgpu_ucode_print_mc_hdr(&hdr->header);