Skip to content
Commit 46b30493 authored by David S. Miller's avatar David S. Miller
Browse files

[SPARC64]: Avoid JBUS errors on some Niagara systems.



Doing PCI config space accesses to non-present PCI slots
can result in fatal JBUS errors if the PCI config access
hypervisor call is performed on cpus other than the boot
cpu.

PCI config space accesses to present PCI slots works just
fine.

Recursively traverse the OBP device tree under the PCI
controller node and record all present device IDs into
a small hash table.

Avoid the hypervisor call for any PCI config space access
attempt for a device not recorded in the hash table.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c29ca9d1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment