summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd
diff options
context:
space:
mode:
authorMonk Liu <Monk.Liu@amd.com>2017-03-21 16:41:01 +0800
committerAlex Deucher <alexander.deucher@amd.com>2017-03-29 23:55:37 -0400
commitb4d6126d1eeee1d5e58c6b17117b778bc7548389 (patch)
tree19166000c0beadd42052ff43b4548bf5905b38bc /drivers/gpu/drm/amd
parent71aec257ec52caadf8ea3c297e6cff39fec49a2d (diff)
downloadop-kernel-dev-b4d6126d1eeee1d5e58c6b17117b778bc7548389.zip
op-kernel-dev-b4d6126d1eeee1d5e58c6b17117b778bc7548389.tar.gz
drm/amdgpu:virt_init_setting invoke is missed!
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>
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/soc15.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c
index 3c77b59..f41c1f2 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
OpenPOWER on IntegriCloud