]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitcad4f7ae9bfa19af879c1dfb33594d88657e1ddb
treed70c627453d429f63c777769f5596184c001fe39
parent802dc37fe7ded7892ad8ed07ab50d74159480917
[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