drm/amdgpu/gmc8: skip MC ucode loading on SR-IOV capable boards
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 1 Feb 2016 16:29:54 +0000 (11:29 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Feb 2016 19:17:12 +0000 (14:17 -0500)
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>
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c

index 7011f8b2971aceeb1022465b830d4896e558b320..ca0a0c666b71840554f64f0bb4397c175eba13b3 100644 (file)
@@ -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);
 
This page took 0.026504 seconds and 5 git commands to generate.