mirror of https://gitee.com/openkylin/linux.git
drm/amdgpu/virt: enable virtual display
Virtual display is default setting for virtualization, enable it. Signed-off-by: Xiangliang Yu <Xiangliang.Yu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Reviewed-by: Monk Liu <Monk.Liu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
99581cc573
commit
06465d8ec9
|
@ -94,6 +94,10 @@ int amdgpu_map_static_csa(struct amdgpu_device *adev, struct amdgpu_vm *vm)
|
||||||
|
|
||||||
void amdgpu_virt_init_setting(struct amdgpu_device *adev)
|
void amdgpu_virt_init_setting(struct amdgpu_device *adev)
|
||||||
{
|
{
|
||||||
|
/* enable virtual display */
|
||||||
|
adev->mode_info.num_crtc = 1;
|
||||||
|
adev->enable_virtual_display = true;
|
||||||
|
|
||||||
mutex_init(&adev->virt.lock);
|
mutex_init(&adev->virt.lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue