Commit b52b6738 authored by Alex Deucher's avatar Alex Deucher

drm/amdgpu/gmc8: always load MC firmware in the driver

Some power features rely on the driver loaded version so always
load the MC firmware from the driver even if the vbios loaded
a version already.
Acked-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarJunwei Zhang <Jerry.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
parent a81a7c9c
...@@ -366,7 +366,7 @@ static int gmc_v8_0_polaris_mc_load_microcode(struct amdgpu_device *adev) ...@@ -366,7 +366,7 @@ static int gmc_v8_0_polaris_mc_load_microcode(struct amdgpu_device *adev)
const struct mc_firmware_header_v1_0 *hdr; const struct mc_firmware_header_v1_0 *hdr;
const __le32 *fw_data = NULL; const __le32 *fw_data = NULL;
const __le32 *io_mc_regs = NULL; const __le32 *io_mc_regs = NULL;
u32 data, vbios_version; u32 data;
int i, ucode_size, regs_size; int i, ucode_size, regs_size;
/* Skip MC ucode loading on SR-IOV capable boards. /* Skip MC ucode loading on SR-IOV capable boards.
...@@ -377,13 +377,6 @@ static int gmc_v8_0_polaris_mc_load_microcode(struct amdgpu_device *adev) ...@@ -377,13 +377,6 @@ static int gmc_v8_0_polaris_mc_load_microcode(struct amdgpu_device *adev)
if (amdgpu_sriov_bios(adev)) if (amdgpu_sriov_bios(adev))
return 0; return 0;
WREG32(mmMC_SEQ_IO_DEBUG_INDEX, 0x9F);
data = RREG32(mmMC_SEQ_IO_DEBUG_DATA);
vbios_version = data & 0xf;
if (vbios_version == 0)
return 0;
if (!adev->gmc.fw) if (!adev->gmc.fw)
return -EINVAL; return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment