powerpc/fsl-booke: Add support for tlbilx instructions
PATCH v2 1/1 powerpc/fsl-booke: Add support for tlbilx instructions
The e500mc core supports the new tlbilx instructions that do core local invalidates and also provide us the ability to take down all TLB entries matching a given PID.
Signed-off-by Kumar Gala <[email protected]>
---
* Fixed BOOKE_PAGESZ_4K build error, we renamed to BOOK3E_PAGESZ_4K
arch/powerpc/include/asm/mmu.h | 4 +- arch/powerpc/kernel/cputable.c | 3 +- arch/powerpc/mm/tlb_nohash_low.S | 44 +++++++++++++++++++++++++++++++------ 3 files changed, 41 insertions(+), 10 deletions(-)
arch/powerpc/include/asm/mmu.h +2 -2
@@ -36,9 +36,9 @@*/ #define MMU_FTR_USE_TLBIVAX_BCAST ASM_CONST(0x00040000) -/* Enable use of tlbilx invalidate-by-PID variant. +/* Enable use of tlbilx invalidate instructions. */ -#define MMU_FTR_USE_TLBILX_PID ASM_CONST(0x00080000) +#define MMU_FTR_USE_TLBILX ASM_CONST(0x00080000)/* This indicates that the processor cannot handle multiple outstanding * broadcast tlbivax or tlbsync. This makes the code use a spinlock
arch/powerpc/kernel/cputable.c +2 -1
@@ -1740,7 +1740,8 @@ static struct cpu_spec __initdata cpu_specs[] = { .cpu_name = "e500mc", .cpu_features = CPU_FTRS_E500MC, .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, - .mmu_features = MMU_FTR_TYPE_FSL_E | MMU_FTR_BIG_PHYS, + .mmu_features =MMU_FTR_TYPE_FSL_E |MMU_FTR_BIG_PHYS | + MMU_FTR_USE_TLBILX, .icache_bsize = 64, .dcache_bsize = 64, .num_pmcs = 4,
arch/powerpc/mm/tlb_nohash_low.S +37 -7
75 lines not on this page · raw message
Signature · 1 line
1.5.6.6