[PATCH v1 00/12] PCI: Rework shadow ROM handling

Alex Deucher alexdeucher at gmail.com
Sat Mar 12 04:04:57 UTC 2016


On Fri, Mar 11, 2016 at 8:09 PM, Linus Torvalds
<torvalds at linux-foundation.org> wrote:
> On Fri, Mar 11, 2016 at 4:49 PM, Andy Lutomirski <luto at amacapital.net> 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
> chips.

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.

Alex


More information about the dri-devel mailing list