]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/patches/suse-2.6.27.39/patches.arch/ppc-powerpc-fix-pci-unmap-io.patch
Fix oinkmaster patch.
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.arch / ppc-powerpc-fix-pci-unmap-io.patch
CommitLineData
2cb7cef9
BS
1Subject: powerpc/pci: Fix unmapping of IO space on 64-bit
2From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
3References: 439491
4
5A typo/thinko made us pass the wrong argument to __flush_hash_table_range
6when unplugging bridges, thus not flushing all the translations for
7the IO space on unplug.
8
9This causes the hypervisor to refuse unplugging slots.
10
11Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
12Signed-off-by: Olaf Hering <olh@suse.de>
13
14---
15 arch/powerpc/kernel/pci_64.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18--- a/arch/powerpc/kernel/pci_64.c
19+++ b/arch/powerpc/kernel/pci_64.c
20@@ -455,7 +455,7 @@ int pcibios_unmap_io_space(struct pci_bu
21 pci_name(bus->self));
22
23 __flush_hash_table_range(&init_mm, res->start + _IO_BASE,
24- res->end - res->start + 1);
25+ res->end + _IO_BASE + 1);
26 return 0;
27 }
28