aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChengming Gui <[email protected]>2020-10-13 17:43:07 +0800
committerAlex Deucher <[email protected]>2021-05-19 22:40:30 -0400
commit5663da86c90dc09c654be636ecebc66dbdda42a8 (patch)
tree50746caa1b5ccd1cdcc26a4eb1dd59583a3e1da4
parent67b35b08e7a1fb8dc6f6754c7f6e4b3a4bfe4003 (diff)
drm/amd/amdgpu: add virtual display support for beige_goby
Add virtual ip block for beige_goby Signed-off-by: Chengming Gui <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Reviewed-by: Tao Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/nv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/gpu/drm/amd/amdgpu/nv.c
index c5b3eec413a0..ac691ca092ac 100644
--- a/drivers/gpu/drm/amd/amdgpu/nv.c
+++ b/drivers/gpu/drm/amd/amdgpu/nv.c
@@ -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;