Re: PowerNV PCI & SR-IOV cleanups

2020-07-10 Thread Oliver O'Halloran
On Fri, Jul 10, 2020 at 4:45 PM Christoph Hellwig wrote: > > On Fri, Jul 10, 2020 at 03:23:25PM +1000, Oliver O'Halloran wrote: > > This is largely prep work for supporting VFs in the 32bit MMIO window. > > This is an unfortunate necessity due to how the Linux BAR allocator > > handles BARs marked

Re: PowerNV PCI & SR-IOV cleanups

2020-07-09 Thread Christoph Hellwig
On Fri, Jul 10, 2020 at 03:23:25PM +1000, Oliver O'Halloran wrote: > This is largely prep work for supporting VFs in the 32bit MMIO window. > This is an unfortunate necessity due to how the Linux BAR allocator > handles BARs marked as non-prefetchable. The distinction > between prefetch and non-pre

PowerNV PCI & SR-IOV cleanups

2020-07-09 Thread Oliver O'Halloran
Finally bit the bullet and learned how all the MMIO->PE mapping setup actually works. As a side effect I found a bunch of oddities in how PowerNV SR-IOV support is implemented. This series mostly sorts that out with a few more generic cleanups along the way. This is largely prep work for supportin