On Mon, Jan 25, 2021 at 11:23:56AM -0800, Edwin Peer wrote: > On Mon, Jan 25, 2021 at 5:22 AM Jason Gunthorpe <jgg@xxxxxxxxxx> wrote: > > > SRIOV and SF's require a simple linear lookup to learn the "function" > > because the BAR space is required to be linear. > > Isn't this still true even for NumVF's > 256? Wouldn't there still be > a contiguous VF BAR space? Don't the routing IDs simply carry on > incrementing by stride, with each being assigned the next slice of the > shared BAR space? I've never seen someone implement a NumVF > 256 by co-opting the bus number. 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. Jason