]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amd/amdgpu: add virtual display support for beige_goby
authorChengming Gui <Jack.Gui@amd.com>
Tue, 13 Oct 2020 09:43:07 +0000 (17:43 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 May 2021 02:40:30 +0000 (22:40 -0400)
Add virtual ip block for beige_goby

Signed-off-by: Chengming Gui <Jack.Gui@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/nv.c

index c5b3eec413a03b42238f4c05c050d74346c52195..ac691ca092ac7a9c57c622998f93019cb9926a3c 100644 (file)
@@ -957,6 +957,8 @@ int nv_set_ip_blocks(struct amdgpu_device *adev)
                amdgpu_device_ip_block_add(adev, &navi10_ih_ip_block);
                amdgpu_device_ip_block_add(adev, &gfx_v10_0_ip_block);
                amdgpu_device_ip_block_add(adev, &sdma_v5_2_ip_block);
+               if (adev->enable_virtual_display || amdgpu_sriov_vf(adev))
+                       amdgpu_device_ip_block_add(adev, &dce_virtual_ip_block);
                break;
        default:
                return -EINVAL;