Re: Archs using generic PCI controller drivers vs. resource policy

Christoph Hellwig
2019-06-24T11:02:08Z

On Sun, Jun 23, 2019 at 10:30:42AM +1000, Benjamin Herrenschmidt wrote:
> This is wrong. I want to move it to the architecture (initially,
> eventually it should be platform driven, but the default will start
> with architecture specific to avoid changing the existing behaviours
> while consolidating the code).

Doing this per arch sounds fundamentally wrong. At best per firmware
type, but hopefully firmware messing with PCIe setup is slowly going
away, at least outside of x86.

> To do that right, I want to understand which archs can potentially use
> the code in drivers/pci/controller today so I can change those archs to
> explicitely set the default to "reassign everything" (and take the
> policy out of the drivers themselves).
>
> So far I've counted arm, arm64 (DT, not ACPI) and nios2. Any other ?

riscv at least and probably anything that can be synthesized to common
FPGAs with PCIe support.