drm/amdgpu: add virtual display support for raven
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 2 Jun 2017 18:52:18 +0000 (14:52 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Jun 2017 15:50:28 +0000 (11:50 -0400)
Same as other asics.  If enabled, exposes a user selectable
number of virtual displays.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc15.c

index 22b222b514dcc6ecc5d6cc797030f9ef5dc88568..e3438443e9bc100efbe9db668ccc7fe1f8e425e3 100644 (file)
@@ -503,6 +503,8 @@ int soc15_set_ip_blocks(struct amdgpu_device *adev)
                amdgpu_ip_block_add(adev, &vega10_ih_ip_block);
                amdgpu_ip_block_add(adev, &psp_v10_0_ip_block);
                amdgpu_ip_block_add(adev, &amdgpu_pp_ip_block);
+               if (adev->enable_virtual_display || amdgpu_sriov_vf(adev))
+                       amdgpu_ip_block_add(adev, &dce_virtual_ip_block);
                amdgpu_ip_block_add(adev, &gfx_v9_0_ip_block);
                amdgpu_ip_block_add(adev, &sdma_v4_0_ip_block);
                amdgpu_ip_block_add(adev, &vcn_v1_0_ip_block);