> From: Edwin Peer <edwin.peer@xxxxxxxxxxxx> > Sent: Tuesday, January 26, 2021 1:36 AM > > On Mon, Jan 25, 2021 at 11:49 AM Jason Gunthorpe <jgg@xxxxxxxxxx> > wrote: > > > I've never seen someone implement a NumVF > 256 by co-opting the bus > > number. > > Usually the VF offset already places the VF routing IDs into a > different bus number range from the PF. That much at least works > today. > > > Can Linux even assign more bus numbers to a port without firmware > > help? Bus numbers are something that requires the root complex to be > > aware of to setup routability. > > I'm not sure, presumably something already infers this for the first > additional bus number based on the SR-IOV config capability? > It is not inferred. Linux pci core programs the additional registers for subordinate and secondary bus numbers. Though, it comes with its own extra hw cost. Keep in mind how 1000 Vfs are enabled and disabled in one go at pci spec level and so at OS level, as opposed to unit of one here. PCI comes with heavy bus level reset requirement apart from AER and more.