summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/vga
diff options
context:
space:
mode:
authorAaron Ma2018-08-31 20:20:00 +0200
committerDaniel Vetter2018-10-23 07:23:00 +0200
commit3d42f1ddc47a69c0ce155f9f30d764c4d689a5fa (patch)
tree5e61d1327e8ca27bce41004845ce8c5789f2caba /drivers/gpu/vga
parentvgaarb: Add support for 64-bit frame buffer address (diff)
downloadkernel-qcow2-linux-3d42f1ddc47a69c0ce155f9f30d764c4d689a5fa.tar.gz
kernel-qcow2-linux-3d42f1ddc47a69c0ce155f9f30d764c4d689a5fa.tar.xz
kernel-qcow2-linux-3d42f1ddc47a69c0ce155f9f30d764c4d689a5fa.zip
vgaarb: Keep adding VGA device in queue
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@canonical.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/1535739600-8842-2-git-send-email-aaron.ma@canonical.com
Diffstat (limited to 'drivers/gpu/vga')
-rw-r--r--drivers/gpu/vga/vgaarb.c2
1 files changed, 1 insertions, 1 deletions
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),