[PATCH v9 2/3] PCI: Add a macro to set default alignment for all PCI devices

Benjamin Herrenschmidt benh at kernel.crashing.org
Mon Mar 27 21:25:50 AEDT 2017


On Mon, 2017-03-27 at 21:17 +1100, Michael Ellerman wrote:
> > If so, is it acceptable to force that kernel to user 64K alignment
> > even
> > when it's running on non-PowerNV systems?
> 
> Probably, but I'm not sure TBH. Benh will know, I'll try and get his
> attention.

Can we make the alignment PAGE_SIZE ? I think that should be ok as long
as it doesn't try to re-allocate BARs for devices that have already
been properly allocated by firmware (ie, PowerMac, if you mess around
with the MacIO chip on these, bad things will happen).

Cheers,
Ben.



More information about the Linuxppc-dev mailing list