]> git.baikalelectronics.ru Git - kernel.git/commit
x86_64: Calgary - Fix mis-handled PCI topology
authorMurillo Fernandes Bernardes <bernarde@br.ibm.com>
Fri, 10 Aug 2007 20:31:00 +0000 (22:31 +0200)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sat, 11 Aug 2007 22:58:12 +0000 (15:58 -0700)
commitc87bd9d2f095248ebc2259a518a3f680ecf740f8
tree56fb79b8aea479310be34664576119e5b5cbd4c6
parentfc8ed0189457057bc64227ed2737ad5ce0324ddf
x86_64: Calgary - Fix mis-handled PCI topology

Current code assumed that devices were directly connected to a Calgary
bridge, as it tried to get the iommu table directly from the parent bus
controller.

When we have another bridge between the Calgary/CalIOC2 bridge and the
device we should look upwards until we get to the top (Calgary/CalIOC2
bridge), where the iommu table resides.

Signed-off-by: Murillo Fernandes Bernardes <mfb@br.ibm.com>
Signed-off-by: Muli Ben-Yehuda <muli@il.ibm.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86_64/kernel/pci-calgary.c