drm/amdgpu:virt_init_setting invoke is missed!
authorMonk Liu <Monk.Liu@amd.com>
Tue, 21 Mar 2017 08:41:01 +0000 (16:41 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:55:37 +0000 (23:55 -0400)
this must be invoked during early init

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc15.c

index 3c77b59adbc7feeb8b8f3fe0e3f0df715d6c54c6..f41c1f24af9dd1ff49f36e0e84427233d56e6cf0 100644 (file)
@@ -546,6 +546,10 @@ static int soc15_common_early_init(void *handle)
                (amdgpu_ip_block_mask & (1 << AMD_IP_BLOCK_TYPE_PSP)))
                psp_enabled = true;
 
+       if (amdgpu_sriov_vf(adev)) {
+               amdgpu_virt_init_setting(adev);
+       }
+
        /*
         * nbio need be used for both sdma and gfx9, but only
         * initializes once