From: "Slivka, Danijel" <Danijel.Slivka@amd.com>
To: Alex Deucher <alexdeucher@gmail.com>
Cc: amd-gfx list <amd-gfx@lists.freedesktop.org>
Subject: RE: [PATCH] drm/amdgpu: Skip init fbdev if virtual_display is enabled
Date: Fri, 20 May 2022 14:12:45 +0000 [thread overview]
Message-ID: <BYAPR12MB3094F87BED21F64FE5BD4C4798D39@BYAPR12MB3094.namprd12.prod.outlook.com> (raw)
In-Reply-To: <CADnq5_P8p5zKiW20xek0M0DVs+YRDX6qcy+b01NWXP_NUs9O5Q@mail.gmail.com>
[AMD Official Use Only - General]
Hi,
Based on the code we shouldn't init the fbdev on hw without DCE:
/*
* 1. don't init fbdev on hw without DCE
* 2. don't init fbdev if there are no connectors
*/
if (adev->mode_info.mode_config_initialized &&
!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))
drm_fbdev_generic_setup(adev_to_drm(adev), 8);
else
drm_fbdev_generic_setup(adev_to_drm(adev), 32);
}
For virtualization we always use virtual_display and doesn’t have the hw DCE for that reason setting up fbdev should be skipped.
BR,
Danijel Slivka
-----Original Message-----
From: Alex Deucher <alexdeucher@gmail.com>
Sent: Friday, May 20, 2022 3:30 PM
To: Slivka, Danijel <Danijel.Slivka@amd.com>
Cc: amd-gfx list <amd-gfx@lists.freedesktop.org>
Subject: Re: [PATCH] drm/amdgpu: Skip init fbdev if virtual_display is enabled
On Fri, May 20, 2022 at 3:59 AM Danijel Slivka <danijel.slivka@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@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
>
next prev parent reply other threads:[~2022-05-20 14:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-20 7:59 [PATCH] drm/amdgpu: Skip init fbdev if virtual_display is enabled Danijel Slivka
2022-05-20 13:29 ` Alex Deucher
2022-05-20 14:12 ` Slivka, Danijel [this message]
2022-05-20 14:32 ` Alex Deucher
2022-05-20 14:49 ` Slivka, Danijel
2022-05-20 14:52 ` Alex Deucher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BYAPR12MB3094F87BED21F64FE5BD4C4798D39@BYAPR12MB3094.namprd12.prod.outlook.com \
--to=danijel.slivka@amd.com \
--cc=alexdeucher@gmail.com \
--cc=amd-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.