[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CADnq5_P=_Kxg8y48NRQZjKzPi-yaAwKRQhpQ6qEav2rZijHucw@mail.gmail.com>
Date: Wed, 12 Sep 2018 16:21:53 -0400
From: Alex Deucher <alexdeucher@...il.com>
To: aaron.ma@...onical.com
Cc: Dave Airlie <airlied@...ux.ie>,
Maling list - DRI developers
<dri-devel@...ts.freedesktop.org>,
LKML <linux-kernel@...r.kernel.org>,
Gustavo Padovan <gustavo@...ovan.org>
Subject: Re: [PATCH 2/2] vgaarb: Keep adding VGA device in queue
On Fri, Aug 31, 2018 at 5:39 PM Aaron Ma <aaron.ma@...onical.com> wrote:
>
> If failed to find the deivice owning the boot framebuffer,
> try to use the first VGA device instead of the last one.
>
> Usually the 1st device is integrated GPU who owns the boot framebuffer.
>
> Signed-off-by: Aaron Ma <aaron.ma@...onical.com>
Series is:
Acked-by: Alex Deucher <alexander.deucher@....com>
> ---
> drivers/gpu/vga/vgaarb.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/vga/vgaarb.c b/drivers/gpu/vga/vgaarb.c
> index 8d90e66994b0..dc8e039bfab5 100644
> --- a/drivers/gpu/vga/vgaarb.c
> +++ b/drivers/gpu/vga/vgaarb.c
> @@ -676,7 +676,7 @@ static bool vga_arbiter_add_pci_device(struct pci_dev *pdev)
> vga_arbiter_check_bridge_sharing(vgadev);
>
> /* Add to the list */
> - list_add(&vgadev->list, &vga_list);
> + list_add_tail(&vgadev->list, &vga_list);
> vga_count++;
> vgaarb_info(&pdev->dev, "VGA device added: decodes=%s,owns=%s,locks=%s\n",
> vga_iostate_to_str(vgadev->decodes),
> --
> 2.17.1
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@...ts.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
Powered by blists - more mailing lists