Skip to content

Commit

Permalink
powerpc/pci: Fix unmapping of IO space on 64-bit
Browse files Browse the repository at this point in the history
A typo/thinko made us pass the wrong argument to __flush_hash_table_range
when unplugging bridges, thus not flushing all the translations for
the IO space on unplug.  The third parameter to __flush_hash_table_range
is `end', not `size'.

This causes the hypervisor to refuse unplugging slots.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Benjamin Herrenschmidt authored and Paul Mackerras committed Oct 31, 2008
1 parent e90a131 commit b30115e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/kernel/pci_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ int pcibios_unmap_io_space(struct pci_bus *bus)
pci_name(bus->self));

__flush_hash_table_range(&init_mm, res->start + _IO_BASE,
res->end - res->start + 1);
res->end + _IO_BASE + 1);
return 0;
}

Expand Down

0 comments on commit b30115e

Please sign in to comment.