diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2008-07-15 17:12:25 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2008-09-24 17:29:40 -0400 |
commit | 0ba3418b8b1c85ee1771c63f1dd12041614e56ff (patch) | |
tree | 6f77bf668e76725710aae5126054eebd5913d319 /arch/powerpc/include/asm/reg_booke.h | |
parent | 1afb7f809bfb8fad9eec9419f3dfd75cee746ebd (diff) |
powerpc: Introduce local (non-broadcast) forms of tlb invalidates
Introduced a new set of low level tlb invalidate functions that do not
broadcast invalidates on the bus:
_tlbil_all - invalidate all
_tlbil_pid - invalidate based on process id (or mm context)
_tlbil_va - invalidate based on virtual address (ea + pid)
On non-SMP configs _tlbil_all should be functionally equivalent to _tlbia and
_tlbil_va should be functionally equivalent to _tlbie.
The intent of this change is to handle SMP based invalidates via IPIs instead
of broadcasts as the mechanism scales better for larger number of cores.
On e500 (fsl-booke mmu) based cores move to using MMUCSR for invalidate alls
and tlbsx/tlbwe for invalidate virtual address.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/reg_booke.h')
-rw-r--r-- | arch/powerpc/include/asm/reg_booke.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/reg_booke.h b/arch/powerpc/include/asm/reg_booke.h index be980f4ee495..67453766bff1 100644 --- a/arch/powerpc/include/asm/reg_booke.h +++ b/arch/powerpc/include/asm/reg_booke.h | |||
@@ -109,6 +109,7 @@ | |||
109 | #define SPRN_EVPR 0x3D6 /* Exception Vector Prefix Register */ | 109 | #define SPRN_EVPR 0x3D6 /* Exception Vector Prefix Register */ |
110 | #define SPRN_L1CSR0 0x3F2 /* L1 Cache Control and Status Register 0 */ | 110 | #define SPRN_L1CSR0 0x3F2 /* L1 Cache Control and Status Register 0 */ |
111 | #define SPRN_L1CSR1 0x3F3 /* L1 Cache Control and Status Register 1 */ | 111 | #define SPRN_L1CSR1 0x3F3 /* L1 Cache Control and Status Register 1 */ |
112 | #define SPRN_MMUCSR0 0x3F4 /* MMU Control and Status Register 0 */ | ||
112 | #define SPRN_PIT 0x3DB /* Programmable Interval Timer */ | 113 | #define SPRN_PIT 0x3DB /* Programmable Interval Timer */ |
113 | #define SPRN_BUCSR 0x3F5 /* Branch Unit Control and Status */ | 114 | #define SPRN_BUCSR 0x3F5 /* Branch Unit Control and Status */ |
114 | #define SPRN_L2CSR0 0x3F9 /* L2 Data Cache Control and Status Register 0 */ | 115 | #define SPRN_L2CSR0 0x3F9 /* L2 Data Cache Control and Status Register 0 */ |
@@ -410,6 +411,12 @@ | |||
410 | #define L2CSR0_L2LOA 0x00000080 /* L2 Cache Lock Overflow Allocate */ | 411 | #define L2CSR0_L2LOA 0x00000080 /* L2 Cache Lock Overflow Allocate */ |
411 | #define L2CSR0_L2LO 0x00000020 /* L2 Cache Lock Overflow */ | 412 | #define L2CSR0_L2LO 0x00000020 /* L2 Cache Lock Overflow */ |
412 | 413 | ||
414 | /* Bit definitions for MMUCSR0 */ | ||
415 | #define MMUCSR0_TLB1FI 0x00000002 /* TLB1 Flash invalidate */ | ||
416 | #define MMUCSR0_TLB0FI 0x00000004 /* TLB0 Flash invalidate */ | ||
417 | #define MMUCSR0_TLB2FI 0x00000040 /* TLB2 Flash invalidate */ | ||
418 | #define MMUCSR0_TLB3FI 0x00000020 /* TLB3 Flash invalidate */ | ||
419 | |||
413 | /* Bit definitions for SGR. */ | 420 | /* Bit definitions for SGR. */ |
414 | #define SGR_NORMAL 0 /* Speculative fetching allowed. */ | 421 | #define SGR_NORMAL 0 /* Speculative fetching allowed. */ |
415 | #define SGR_GUARDED 1 /* Speculative fetching disallowed. */ | 422 | #define SGR_GUARDED 1 /* Speculative fetching disallowed. */ |