diff options
author | Xiangliang Yu <Xiangliang.Yu@amd.com> | 2017-04-21 08:01:29 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-05-24 23:40:03 +0200 |
commit | 213cacefcd5c7815802281445ba503d26e794b77 (patch) | |
tree | b286e509c95e402e6d186819af145139acfb378e /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | |
parent | drm/amdgpu: drop support for per ASIC read registers (diff) | |
download | linux-213cacefcd5c7815802281445ba503d26e794b77.tar.xz linux-213cacefcd5c7815802281445ba503d26e794b77.zip |
drm/amdgpu/virt: bypass cg and pg setting for SRIOV
GPU hypervisor cover all settings of CG and PG, so guest doesn't
need to do anything. Bypass it.
Signed-off-by: Frank Min <Frank.Min@amd.com>
Signed-off-by: Xiangliang Yu <Xiangliang.Yu@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/amdgpu/amdgpu_virt.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c index 6bf5cea294f2..bd422f04f2ce 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c @@ -105,6 +105,8 @@ void amdgpu_virt_init_setting(struct amdgpu_device *adev) /* enable virtual display */ adev->mode_info.num_crtc = 1; adev->enable_virtual_display = true; + adev->cg_flags = 0; + adev->pg_flags = 0; mutex_init(&adev->virt.lock_kiq); mutex_init(&adev->virt.lock_reset); |