correct way for handling PCIe in endpoint mode

Ira Snyder iws at ovro.caltech.edu
Wed Feb 11 03:22:49 EST 2009


On Tue, Feb 10, 2009 at 07:39:47AM -0500, Scott Coulter wrote:
> 
> Hi all,
> 
> Maybe a silly questions, but what is the suggested way for handling a
> processor which has a PCIe interface, but the interface is not
> configured to be the root complex (endpoint only)?
> 
> Should the PCIe interface appear in the dts?  If so, with what
> parameters?
> 
> Should the kernel config contain CONFIG_PCI, etc. ?
> 

I'm in a similar situation, except I'm using PCI instead of PCIe. I've
tried both removing the PCI interface from the dts, and disabling
CONFIG_PCI. Both work fine.

You probably don't want to leave the PCI interface in the dts and also
leave CONFIG_PCI enabled. I ran into some really strange issues this
way... (Linux ran through the quirks and tried to re-initialize a
network card, even though the driver was disabled, etc.)

I think the suggested way is to remove the PCI interface from the dts,
that way you can potentially share a kernel between similar boards with
and without PCI root interfaces, just by changing the dts.

Ira



More information about the Linuxppc-dev mailing list