From: Monk Liu Date: Tue, 21 Mar 2017 08:41:01 +0000 (+0800) Subject: drm/amdgpu:virt_init_setting invoke is missed! X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b4d6126d1eeee1d5e58c6b17117b778bc7548389;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/amdgpu:virt_init_setting invoke is missed! this must be invoked during early init Signed-off-by: Monk Liu Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c index 3c77b59adbc7..f41c1f24af9d 100644 --- a/drivers/gpu/drm/amd/amdgpu/soc15.c +++ b/drivers/gpu/drm/amd/amdgpu/soc15.c @@ -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