diff options
author | Emily Deng <Emily.Deng@amd.com> | 2020-03-25 12:01:58 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-04-01 20:44:42 +0200 |
commit | 02f6efb47856cd239a9e4104e26a41ec61887bb0 (patch) | |
tree | 84b5355f5b73ae15e3f4bf4653720594a5b70578 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | |
parent | drm/amdgpu: disable ras query and iject during gpu reset (diff) | |
download | linux-02f6efb47856cd239a9e4104e26a41ec61887bb0.tar.xz linux-02f6efb47856cd239a9e4104e26a41ec61887bb0.zip |
drm/amdgpu: Virtual display need to support multiple ctrcs
The crtc num is determined by virtual_display parameter.
Signed-off-by: Emily Deng <Emily.Deng@amd.com>
Reviewed-by: Monk Liu <monk.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c index 43a1ee332727..d791bfe5ae68 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c @@ -38,7 +38,8 @@ bool amdgpu_virt_mmio_blocked(struct amdgpu_device *adev) void amdgpu_virt_init_setting(struct amdgpu_device *adev) { /* enable virtual display */ - adev->mode_info.num_crtc = 1; + if (adev->mode_info.num_crtc == 0) + adev->mode_info.num_crtc = 1; adev->enable_virtual_display = true; adev->ddev->driver->driver_features &= ~DRIVER_ATOMIC; adev->cg_flags = 0; |