]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[POWERPC] powerpc: Fix demotion of segments to 4K pages
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 29 Oct 2007 01:05:18 +0000 (12:05 +1100)
committerPaul Mackerras <paulus@samba.org>
Mon, 29 Oct 2007 03:34:14 +0000 (14:34 +1100)
commitf6ab0b922c3423b88c0e6e3e2c5fc1e58d83055d
treefd1eedbaed6a5d837f319a6ba9010fbba80560da
parent2a397e82c7db18019e408f953dd58dc1963a328c
[POWERPC] powerpc: Fix demotion of segments to 4K pages

When demoting a process to use 4K HW pages (instead of 64K), which
happens under various circumstances such as doing cache inhibited
mappings on machines that do not support 64K CI pages, the assembly
hash code calls back into the C function flush_hash_page().  This
function prototype was recently changed to accomodate for 1T segments
but the assembly call site was not updated, causing applications that
do demotion to hang.  In addition, when updating the per-CPU PACA for
the new sizes, we didn't properly update the slice "map", thus causing
the SLB miss code to re-insert segments for the wrong size.

This fixes both and adds a warning comment next to the C
implementation to try to avoid problems next time someone changes it.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/mm/hash_low_64.S
arch/powerpc/mm/hash_utils_64.c