diff options
author | Michael Neuling <mikey@neuling.org> | 2007-08-03 11:55:39 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-08-03 19:36:01 +1000 |
commit | 67439b76f29cb278bb3412fc873b980fc65110c9 (patch) | |
tree | d70c627453d429f63c777769f5596184c001fe39 /arch/powerpc/mm/hash_utils_64.c | |
parent | 5628244059976009151d41c2798855290753d8d5 (diff) | |
download | op-kernel-dev-67439b76f29cb278bb3412fc873b980fc65110c9.zip op-kernel-dev-67439b76f29cb278bb3412fc873b980fc65110c9.tar.gz |
[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>
Diffstat (limited to 'arch/powerpc/mm/hash_utils_64.c')
-rw-r--r-- | arch/powerpc/mm/hash_utils_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/hash_utils_64.c b/arch/powerpc/mm/hash_utils_64.c index bc7b0ce..f178957 100644 --- a/arch/powerpc/mm/hash_utils_64.c +++ b/arch/powerpc/mm/hash_utils_64.c @@ -759,7 +759,7 @@ int hash_page(unsigned long ea, unsigned long access, unsigned long trap) mmu_psize_defs[mmu_vmalloc_psize].sllp) { get_paca()->vmalloc_sllp = mmu_psize_defs[mmu_vmalloc_psize].sllp; - slb_flush_and_rebolt(); + slb_vmalloc_update(); } #endif /* CONFIG_PPC_64K_PAGES */ |