aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2016-08-08 14:45:29 -0400
committerAlex Deucher <alexander.deucher@amd.com>2016-08-08 14:45:29 -0400
commit4f4b78341b658cfa0ca7b1587f5540c21f9db997 (patch)
tree79ae7ce58e254a6db9fd49f4e7ad324fc8097b7b /drivers
parent2579de4394309da473d89cd5df08dc0bfe5e87f5 (diff)
drm/amdgpu: add virtual dce support for iceland
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/vi.c58
1 files changed, 56 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/vi.c b/drivers/gpu/drm/amd/amdgpu/vi.c
index 2d3e3ed84dcb..69c2f8175e68 100644
--- a/drivers/gpu/drm/amd/amdgpu/vi.c
+++ b/drivers/gpu/drm/amd/amdgpu/vi.c
@@ -823,6 +823,60 @@ static const struct amdgpu_ip_block_version topaz_ip_blocks[] =
823 }, 823 },
824}; 824};
825 825
826static const struct amdgpu_ip_block_version topaz_ip_blocks_vd[] =
827{
828 /* ORDER MATTERS! */
829 {
830 .type = AMD_IP_BLOCK_TYPE_COMMON,
831 .major = 2,
832 .minor = 0,
833 .rev = 0,
834 .funcs = &vi_common_ip_funcs,
835 },
836 {
837 .type = AMD_IP_BLOCK_TYPE_GMC,
838 .major = 7,
839 .minor = 4,
840 .rev = 0,
841 .funcs = &gmc_v7_0_ip_funcs,
842 },
843 {
844 .type = AMD_IP_BLOCK_TYPE_IH,
845 .major = 2,
846 .minor = 4,
847 .rev = 0,
848 .funcs = &iceland_ih_ip_funcs,
849 },
850 {
851 .type = AMD_IP_BLOCK_TYPE_SMC,
852 .major = 7,
853 .minor = 1,
854 .rev = 0,
855 .funcs = &amdgpu_pp_ip_funcs,
856 },
857 {
858 .type = AMD_IP_BLOCK_TYPE_DCE,
859 .major = 1,
860 .minor = 0,
861 .rev = 0,
862 .funcs = &dce_virtual_ip_funcs,
863 },
864 {
865 .type = AMD_IP_BLOCK_TYPE_GFX,
866 .major = 8,
867 .minor = 0,
868 .rev = 0,
869 .funcs = &gfx_v8_0_ip_funcs,
870 },
871 {
872 .type = AMD_IP_BLOCK_TYPE_SDMA,
873 .major = 2,
874 .minor = 4,
875 .rev = 0,
876 .funcs = &sdma_v2_4_ip_funcs,
877 },
878};
879
826static const struct amdgpu_ip_block_version tonga_ip_blocks[] = 880static const struct amdgpu_ip_block_version tonga_ip_blocks[] =
827{ 881{
828 /* ORDER MATTERS! */ 882 /* ORDER MATTERS! */
@@ -1390,8 +1444,8 @@ int vi_set_ip_blocks(struct amdgpu_device *adev)
1390 if (amdgpu_virtual_display) { 1444 if (amdgpu_virtual_display) {
1391 switch (adev->asic_type) { 1445 switch (adev->asic_type) {
1392 case CHIP_TOPAZ: 1446 case CHIP_TOPAZ:
1393 adev->ip_blocks = topaz_ip_blocks; 1447 adev->ip_blocks = topaz_ip_blocks_vd;
1394 adev->num_ip_blocks = ARRAY_SIZE(topaz_ip_blocks); 1448 adev->num_ip_blocks = ARRAY_SIZE(topaz_ip_blocks_vd);
1395 break; 1449 break;
1396 case CHIP_FIJI: 1450 case CHIP_FIJI:
1397 adev->ip_blocks = fiji_ip_blocks_vd; 1451 adev->ip_blocks = fiji_ip_blocks_vd;