Commit 6294017f authored by Monk Liu's avatar Monk Liu Committed by Alex Deucher
Browse files

drm/amdgpu: skip rlc ucode loading for SRIOV gfx10

parent 747d4f71
Loading
Loading
Loading
Loading
+41 −39
Original line number Diff line number Diff line
@@ -690,6 +690,7 @@ static int gfx_v10_0_init_microcode(struct amdgpu_device *adev)
	adev->gfx.ce_fw_version = le32_to_cpu(cp_hdr->header.ucode_version);
	adev->gfx.ce_feature_version = le32_to_cpu(cp_hdr->ucode_feature_version);

	if (!amdgpu_sriov_vf(adev)) {
		snprintf(fw_name, sizeof(fw_name), "amdgpu/%s_rlc.bin", chip_name);
		err = request_firmware(&adev->gfx.rlc_fw, fw_name, adev->dev);
		if (err)
@@ -743,6 +744,7 @@ static int gfx_v10_0_init_microcode(struct amdgpu_device *adev)

		if (adev->gfx.rlc.is_rlc_v2_1)
			gfx_v10_0_init_rlc_ext_microcode(adev);
	}

	snprintf(fw_name, sizeof(fw_name), "amdgpu/%s_mec%s.bin", chip_name, wks);
	err = request_firmware(&adev->gfx.mec_fw, fw_name, adev->dev);