drm/amdgpu/virt: bypass cg and pg setting for SRIOV
authorXiangliang Yu <Xiangliang.Yu@amd.com>
Fri, 21 Apr 2017 06:01:29 +0000 (14:01 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 May 2017 21:40:03 +0000 (17:40 -0400)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c

index 6bf5cea294f2e01212151688ffa10758a1756b8e..bd422f04f2ce49166316205c8bab0a8ed435e088 100644 (file)
@@ -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);