[PATCH] drm/amdgpu: Skip init fbdev if virtual_display is enabled

Alex Deucher alexdeucher at gmail.com
Fri May 20 13:29:31 UTC 2022


On Fri, May 20, 2022 at 3:59 AM Danijel Slivka <danijel.slivka at amd.com> wrote:
>
> In case virtaul_display is enabled there is no hw DCE so
> need to skip setting up fbdev.

Wouldn't you theoretically still want fbdev even if it is virtual?

Alex

>
> Signed-off-by: Danijel Slivka <danijel.slivka at amd.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
> index 3b9dc1803be9..8d03eec49eef 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
> @@ -2095,6 +2095,7 @@ static int amdgpu_pci_probe(struct pci_dev *pdev,
>          * 2. don't init fbdev if there are no connectors
>          */
>         if (adev->mode_info.mode_config_initialized &&
> +           !adev->enable_virtual_display &&
>             !list_empty(&adev_to_drm(adev)->mode_config.connector_list)) {
>                 /* select 8 bpp console on low vram cards */
>                 if (adev->gmc.real_vram_size <= (32*1024*1024))
> --
> 2.25.1
>


More information about the amd-gfx mailing list