diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2010-02-08 20:09:03 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-02-10 13:58:06 +1100 |
commit | 77058e1adcc439151db41f2b84e4867a88113cd8 (patch) | |
tree | 8467dab77d8b66423f65612d878aef3efb1056ca /tools/perf/perf.h | |
parent | ac73fddfc523bf3c3525d16356b44527c44fae6d (diff) | |
download | kernel-common-77058e1adcc439151db41f2b84e4867a88113cd8.tar.gz kernel-common-77058e1adcc439151db41f2b84e4867a88113cd8.tar.bz2 kernel-common-77058e1adcc439151db41f2b84e4867a88113cd8.zip |
powerpc: Fix address masking bug in hpte_need_flush()
Commit f71dc176aa06359681c30ba6877ffccab6fba3a6 'Make
hpte_need_flush() correctly mask for multiple page sizes' introduced
bug, which is triggered when a kernel with a 64k base page size is run
on a system whose hardware does not 64k hash PTEs. In this case, we
emulate 64k pages with multiple 4k hash PTEs, however in
hpte_need_flush() we incorrectly only mask the hardware page size from
the address, instead of the logical page size. This causes things to
go wrong when we later attempt to iterate through the hardware
subpages of the logical page.
This patch corrects the error. It has been tested on pSeries bare
metal by Michael Neuling.
Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'tools/perf/perf.h')
0 files changed, 0 insertions, 0 deletions