diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/tonga_smc.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/tonga_smc.c | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/drivers/gpu/drm/amd/amdgpu/tonga_smc.c b/drivers/gpu/drm/amd/amdgpu/tonga_smc.c index 361c49a82323..083893dd68c0 100644 --- a/drivers/gpu/drm/amd/amdgpu/tonga_smc.c +++ b/drivers/gpu/drm/amd/amdgpu/tonga_smc.c @@ -272,6 +272,12 @@ static int tonga_smu_upload_firmware_image(struct amdgpu_device *adev)  	if (!adev->pm.fw)  		return -EINVAL; +	/* Skip SMC 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 smc_firmware_header_v1_0 *)adev->pm.fw->data;  	amdgpu_ucode_print_smc_hdr(&hdr->header); | 
