]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commitf055a0619aae795832ef6a783021184925758b67
tree56fb79b8aea479310be34664576119e5b5cbd4c6
parent3320ad994afb2c44ad34b3b34c3c5cf0da297331
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