|
|
|
|
|
by fc417fc802
469 days ago
|
|
> But if the os firmware mapped the gpu somewhere where there's no room to expand the bar, the OS shouldn't expand it. Is there some reason the kernel can't remap devices after the fact? Why is the firmware involved in this once the kernel takes over? |
|
There are lots of ways for the firmware to convey information about the address map to the OS, but it may not always be complete. Mapping two devices to the same address is a recipe for trouble.
That's not to say an OS can't change these things. PCI/PCIe hotplug rely on the OS to set the BAR address for newly connected devices. And that may require rearranging existing device mappings so that things fit. And so, OSes that are capable of hotplug can often do address reallocation for all the devices, but firmware would need to have allocated the devices used to boot the OS already, and you may as well use those if they're there, right?