Skip to content

Commit 3dd1179

Browse files
pyma1danvet
authored andcommitted
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
1 parent 485ad49 commit 3dd1179

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/vga/vgaarb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ static bool vga_arbiter_add_pci_device(struct pci_dev *pdev)
676676
vga_arbiter_check_bridge_sharing(vgadev);
677677

678678
/* Add to the list */
679-
list_add(&vgadev->list, &vga_list);
679+
list_add_tail(&vgadev->list, &vga_list);
680680
vga_count++;
681681
vgaarb_info(&pdev->dev, "VGA device added: decodes=%s,owns=%s,locks=%s\n",
682682
vga_iostate_to_str(vgadev->decodes),

0 commit comments

Comments
 (0)