diff options
author | Benjamin Doron <benjamin.doron00@gmail.com> | 2020-08-04 06:24:03 +0000 |
---|---|---|
committer | Patrick Rudolph <siro@das-labor.org> | 2020-08-15 05:59:49 +0000 |
commit | 90341c18a375dddbb6fdff014340dbf4fdcf88a5 (patch) | |
tree | 51b2e19427aadbb1f19161a27a82351f71145a69 /src/device | |
parent | afb7a814783cda12f5b72167163b9109ee1d15a7 (diff) | |
download | coreboot-90341c18a375dddbb6fdff014340dbf4fdcf88a5.tar.xz |
device/pci_rom.c: Treat BASE_DISPLAY class as GPU
The DISPLAY_3D class is for graphics devices that are not connected to
displays. This includes GPUs implementing muxless Nvidia Optimus.
According to CB:31502, some AMD GPUs are identified as DISPLAY_OTHER.
Therefore, consider the entire DISPLAY class as GPUs.
Change-Id: I0f203a013c010337ae7a9fddbd13330f380050a4
Signed-off-by: Benjamin Doron <benjamin.doron00@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/43070
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/device')
-rw-r--r-- | src/device/pci_rom.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device/pci_rom.c b/src/device/pci_rom.c index bb616d91f1..4224c651f3 100644 --- a/src/device/pci_rom.c +++ b/src/device/pci_rom.c @@ -264,8 +264,8 @@ void pci_rom_ssdt(const struct device *device) { static size_t ngfx; - /* Only handle VGA devices */ - if ((device->class >> 8) != PCI_CLASS_DISPLAY_VGA) + /* Only handle display devices */ + if ((device->class >> 16) != PCI_BASE_CLASS_DISPLAY) return; /* Only handle enabled devices */ |