]> git.baikalelectronics.ru Git - kernel.git/commit
[SPARC64]: Avoid JBUS errors on some Niagara systems.
authorDavid S. Miller <davem@sunset.davemloft.net>
Sat, 10 Jun 2006 08:06:25 +0000 (01:06 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sat, 10 Jun 2006 08:06:25 +0000 (01:06 -0700)
commit48b0f301ccdcdfc9696e90e56bf8a4a4e64ced1c
tree770b99e2723170f237d9159541484bba7dec21e8
parentab0b74d47afb532e1069762abed0598a3f2107c5
[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: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/pci_sun4v.c