[OpenBIOS] [PATCH] Probe PCI buses recursively

Igor Kovalenko igor.v.kovalenko at gmail.com
Sun Feb 7 09:05:13 CET 2010

On Sat, Feb 6, 2010 at 7:49 PM, Blue Swirl <blauwirbel at gmail.com> wrote:
> I tried to get PCI probing work in cases where the devices are behind
> multiple bridges. This patch works in many cases (especially current
> QEMU PPC/Sparc64 setup), but not if I make some arbitrary changes to
> the bridging setup.
> The mysterious "?active-package get-package-path" piece resolves the
> simple /pci/pci path (which would be identical to any other bridge
> found) to /pci at 1fe0,0/pci at 1,1. Is there a better way?

Lookup using "pci" as node name would stop at first node with matching
"name" property value. When we assign "reg" property this can break
lookup if there are multiple nodes with the same "name" property value.
To resolve path to correct node the node path must be reloaded after
"reg" property is assigned. "get-package-path" should work.

Kind regards,
Igor V. Kovalenko

More information about the OpenBIOS mailing list