]>
Commit | Line | Data |
---|---|---|
00e5a55c BS |
1 | Subject: powerpc/pci: Fix unmapping of IO space on 64-bit |
2 | From: Benjamin Herrenschmidt <benh@kernel.crashing.org> | |
3 | References: 439491 | |
4 | ||
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. | |
8 | ||
9 | This causes the hypervisor to refuse unplugging slots. | |
10 | ||
11 | Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> | |
12 | Signed-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 |