[Cbe-oss-dev] [PATCH] powerpc: allow PHBs anywhere in the device tree

Benjamin Herrenschmidt benh at kernel.crashing.org
Wed Sep 13 11:46:27 EST 2006


> For the cell blade, we have two bridge chips that are directly
> connected to one of the CPUs each and are in separate address spaces.
> Besides the PCI host bridges on them (between 1 and 3 per chip,
> depending on the model), there are other devices on each bridge chip
> that I would like to represent there as well. To make things
> worse, they are behind logical bridges on the chip itself, something
> like
> 
> /bridge at 1/interrupt-controller
>          /plb5/pcie
>               /plb4/pci
>                    /ethernet
>                    /serial
> /bridge at 2/plb5/pcie
>               /plb4/pci
> 
> each of axon, plb5, plb4 and the pci buses has their own ranges
> property to map addresses.
> While we could probably put all the phbs at the root, i'd much
> prefer having the real topology reflected in the device tree.

There's one more thing I think your patch isn't fixing and that will
need fixing, is pci_process_OF_bridge_ranges() which currently parses
the PHB's "ranges" property assuming that the addresses it gets for the
"parent" bus are system bus physical addresses. It needs instead to get
those translated all the way up the tree (which isn't hard btw).

As soon as I'm over this TG3 data corruption problem, I'll finally
finish setting up SIMICS here and will look into making that stuff work.

Ben.





More information about the Linuxppc-dev mailing list