Re: [PATCH v1 00/12] PCI: Rework shadow ROM handling
From: Alex Deucher
Date: Fri Mar 11 2016 - 23:05:11 EST
On Fri, Mar 11, 2016 at 8:09 PM, Linus Torvalds
> On Fri, Mar 11, 2016 at 4:49 PM, Andy Lutomirski <luto@xxxxxxxxxxxxxx> wrote:
>> FWIW, if I disable all the checks in pci_get_rom_size, I learn that my
>> video ROM consists entirely of 0xff bytes. Maybe there just isn't a
>> ROM shadow on my laptop.
> I think most laptops end up having the graphics ROM be part of the
> regular system flash, and there is no actual rom associated with the
> PCI device that is the GPU itself.
> The actual GPU ROM tends to be associated with plug-in cards, not
> soldered-down chips in a laptop where they don't want extra flash
Right; on (at least AMD) mobile dGPUs and systems with APUs, the vbios
"rom" is part of the sbios image and is set up by the sbios when it
runs. The driver either gets it from the legacy vga location or some
platform specific method such as ACPI.