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>
This commit is contained in:
parent
afb7a81478
commit
90341c18a3
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue