[POWERPC] Fixes for the SLB shadow buffer code
authorMichael Neuling <mikey@neuling.org>
Fri, 3 Aug 2007 01:55:39 +0000 (11:55 +1000)
committerPaul Mackerras <paulus@samba.org>
Fri, 3 Aug 2007 09:36:01 +0000 (19:36 +1000)
commit67439b76f29cb278bb3412fc873b980fc65110c9
treed70c627453d429f63c777769f5596184c001fe39
parent5628244059976009151d41c2798855290753d8d5
[POWERPC] Fixes for the SLB shadow buffer code

On a machine with hardware 64kB pages and a kernel configured for a
64kB base page size, we need to change the vmalloc segment from 64kB
pages to 4kB pages if some driver creates a non-cacheable mapping in
the vmalloc area.  However, we never updated with SLB shadow buffer.
This fixes it.  Thanks to paulus for finding this.

Also added some write barriers to ensure the shadow buffer contents
are always consistent.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/entry_64.S
arch/powerpc/mm/hash_utils_64.c
arch/powerpc/mm/slb.c
include/asm-powerpc/mmu-hash64.h