diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2016-02-01 11:29:54 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-02-10 14:17:12 -0500 |
commit | c12d287119e3a36bbb7054e5dfcd7825c50870d6 (patch) | |
tree | 86e4b929578686100c70cf035ac5bea1fd5d8014 /drivers/gpu/drm/amd/amdgpu | |
parent | 8cce244cf67cb4c7a4ac9ee71af07d746442da3b (diff) |
drm/amdgpu/gmc8: skip MC ucode loading on SR-IOV capable boards
VBIOS does this for us in asic_init.
Reviewed-by: Monk Liu <monk.liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c index 7011f8b2971a..ca0a0c666b71 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | |||
@@ -252,6 +252,12 @@ static int gmc_v8_0_mc_load_microcode(struct amdgpu_device *adev) | |||
252 | if (!adev->mc.fw) | 252 | if (!adev->mc.fw) |
253 | return -EINVAL; | 253 | return -EINVAL; |
254 | 254 | ||
255 | /* Skip MC ucode loading on SR-IOV capable boards. | ||
256 | * vbios does this for us in asic_init in that case. | ||
257 | */ | ||
258 | if (adev->virtualization.supports_sr_iov) | ||
259 | return 0; | ||
260 | |||
255 | hdr = (const struct mc_firmware_header_v1_0 *)adev->mc.fw->data; | 261 | hdr = (const struct mc_firmware_header_v1_0 *)adev->mc.fw->data; |
256 | amdgpu_ucode_print_mc_hdr(&hdr->header); | 262 | amdgpu_ucode_print_mc_hdr(&hdr->header); |
257 | 263 | ||