1 Subject: powerpc/pci: Fix unmapping of IO space on 64-bit
2 From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
5 A typo/thinko made us pass the wrong argument to __flush_hash_table_range
6 when unplugging bridges, thus not flushing all the translations for
7 the IO space on unplug.
9 This causes the hypervisor to refuse unplugging slots.
11 Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
12 Signed-off-by: Olaf Hering <olh@suse.de>
15 arch/powerpc/kernel/pci_64.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
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
23 __flush_hash_table_range(&init_mm, res->start + _IO_BASE,
24 - res->end - res->start + 1);
25 + res->end + _IO_BASE + 1);