OpenCloudOS-Kernel/drivers/gpu/vga
Kai-Heng Feng 808a4ae5fa vgaarb: Use ACPI HID name to find integrated GPU
Commit 3d42f1ddc4 ("vgaarb: Keep adding VGA device in queue") assumes
the first device is an integrated GPU. However, on AMD platforms an
integrated GPU can have higher PCI device number than a discrete GPU.

Integrated GPU on ACPI platform generally has _DOD and _DOS method, so
use that as predicate to find integrated GPU. If the new strategy
doesn't work, fallback to use the first device as boot VGA.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210519135723.525997-1-kai.heng.feng@canonical.com
2021-05-20 14:55:56 -04:00
..
Kconfig vga: Fix Kconfig indentation 2019-11-20 17:40:32 +01:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
vga_switcheroo.c pci-v5.11-changes 2020-12-15 16:49:59 -08:00
vgaarb.c vgaarb: Use ACPI HID name to find integrated GPU 2021-05-20 14:55:56 -04:00