diff options
author | Olof Johansson <olof@lixom.net> | 2007-10-15 16:58:59 +0200 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-10-17 14:30:09 +0200 |
commit | f66bce5e6aa1388289c04496c3fcae7bebf5f905 (patch) | |
tree | 7e788739a51947f1caff47f9b5226cad739e3805 /arch/powerpc/mm/slb.c | |
parent | [POWERPC] Enable NO_HZ and high res timers for pseries and ppc64 configs (diff) | |
download | linux-f66bce5e6aa1388289c04496c3fcae7bebf5f905.tar.xz linux-f66bce5e6aa1388289c04496c3fcae7bebf5f905.zip |
[POWERPC] Add 1TB workaround for PA6T
PA6T has a bug where the slbie instruction does not honor the large
segment bit. As a result, we have to always use slbia when switching
context.
We don't have to worry about changing the slbie's during fault processing,
since they should never be replacing one VSID with another using the
same ESID. I.e. there's no risk for inserting duplicate entries due to a
failed slbie of the old entry. So as long as we clear it out on context
switch we should be fine.
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/mm/slb.c')
-rw-r--r-- | arch/powerpc/mm/slb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/mm/slb.c b/arch/powerpc/mm/slb.c index 6c164cec9d2c..bbd2c512ee05 100644 --- a/arch/powerpc/mm/slb.c +++ b/arch/powerpc/mm/slb.c @@ -157,7 +157,8 @@ void switch_slb(struct task_struct *tsk, struct mm_struct *mm) unsigned long stack = KSTK_ESP(tsk); unsigned long unmapped_base; - if (offset <= SLB_CACHE_ENTRIES) { + if (!cpu_has_feature(CPU_FTR_NO_SLBIE_B) && + offset <= SLB_CACHE_ENTRIES) { int i; asm volatile("isync" : : : "memory"); for (i = 0; i < offset; i++) { |