Hi,
As part of adding SeaBIOS support for CBFS, I moved SeaBIOS from searching flash for roms by bus/dev/fn (bdf) to searching by device/vendor.
So, instead of setting:
#define OPTIONROM_BDF_1 pci_to_bdf(0x01, 0x00, 0)
one would now set:
#define OPTIONROM_VENDEV_1 0x11063344
(for a device that lspci reports as 1106:3344).
When using gpxe on my epia-cn, I set it up to use the vendor/device of the realtek nics on the motherboard. However, this motherboard has two rtl nics - and thus the option roms are getting run twice. This doesn't seem ideal as it consumes option rom space and slows the bootup (because gpxe prompts the user twice).
What's the main advantage to using vendor/device?
-Kevin
On Sat, Apr 11, 2009 at 9:34 PM, Kevin O'Connor kevin@koconnor.net wrote:
What's the main advantage to using vendor/device?
actually, I would think you would want to run it once for each device of that type. That's what vendor bioses do. It covers the case that one nic is connected, but you don't know which one, and you want to be able to boot from either one.
thanks
ron
On Sun, Apr 12, 2009 at 09:40:44AM +0200, Stefan Reinauer wrote:
On 12.04.2009 6:34 Uhr, Kevin O'Connor wrote:
When using gpxe on my epia-cn, I set it up to use the vendor/device of the realtek nics on the motherboard. However, this motherboard has two rtl nics - and thus the option roms are getting run twice. This doesn't seem ideal as it consumes option rom space
It should only be copied once.
Why is that? During the scan, SeaBIOS finds two devices with id 10ec:8167, and thus copies the rom from CBFS twice.
I suppose gpxe could be smart enough to resize itself to zero, but it is not doing that today. (Though, gpxe tries to use PMM - it might be smarter when that is available.)
On Sun, Apr 12, 2009 at 09:38:30AM +0200, Stefan Reinauer wrote:
On 12.04.2009 6:34 Uhr, Kevin O'Connor wrote:
What's the main advantage to using vendor/device?
You don't always know where a device (even onboard) ends up to live.
That's a good reason. Thanks.
On Sat, Apr 11, 2009 at 10:18:12PM -0700, ron minnich wrote:
On Sat, Apr 11, 2009 at 9:34 PM, Kevin O'Connor kevin@koconnor.net wrote:
What's the main advantage to using vendor/device?
actually, I would think you would want to run it once for each device of that type. That's what vendor bioses do. It covers the case that one nic is connected, but you don't know which one, and you want to be able to boot from either one.
True - but gpxe seems smart enough to boot any device it supports after being called just once.
I guess I'll ask the gpxe maintainers if they can optimize this on their end.
Thanks, -Kevin
On 12.04.2009 6:34 Uhr, Kevin O'Connor wrote:
What's the main advantage to using vendor/device?
You don't always know where a device (even onboard) ends up to live.
On 12.04.2009 6:34 Uhr, Kevin O'Connor wrote:
When using gpxe on my epia-cn, I set it up to use the vendor/device of the realtek nics on the motherboard. However, this motherboard has two rtl nics - and thus the option roms are getting run twice. This doesn't seem ideal as it consumes option rom space
It should only be copied once.