Commit e0d68273 authored by Christophe Leroy's avatar Christophe Leroy Committed by Michael Ellerman

powerpc: Remove CONFIG_PPC_BOOK3E

CONFIG_PPC_BOOK3E is redundant with CONFIG_PPC_BOOK3E_64.

The later is more explicit about the fact that it's a 64 bits target.

Remove CONFIG_PPC_BOOK3E.
Signed-off-by: default avatarChristophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/5d0891490813c19cdcfc04678f512ea68cba3e64.1663606876.git.christophe.leroy@csgroup.eu
parent d7216567
...@@ -548,7 +548,7 @@ config PPC64_SUPPORTS_MEMORY_FAILURE ...@@ -548,7 +548,7 @@ config PPC64_SUPPORTS_MEMORY_FAILURE
config KEXEC config KEXEC
bool "kexec system call" bool "kexec system call"
depends on (PPC_BOOK3S || PPC_85xx || (44x && !SMP)) || PPC_BOOK3E depends on (PPC_BOOK3S || PPC_85xx || (44x && !SMP)) || PPC_BOOK3E_64
select KEXEC_CORE select KEXEC_CORE
help help
kexec is a system call that implements the ability to shutdown your kexec is a system call that implements the ability to shutdown your
......
...@@ -463,7 +463,7 @@ static inline void cpu_feature_keys_init(void) { } ...@@ -463,7 +463,7 @@ static inline void cpu_feature_keys_init(void) { }
#define CPU_FTRS_COMPATIBLE (CPU_FTR_PPCAS_ARCH_V2) #define CPU_FTRS_COMPATIBLE (CPU_FTR_PPCAS_ARCH_V2)
#ifdef CONFIG_PPC64 #ifdef CONFIG_PPC64
#ifdef CONFIG_PPC_BOOK3E #ifdef CONFIG_PPC_BOOK3E_64
#define CPU_FTRS_POSSIBLE (CPU_FTRS_E6500 | CPU_FTRS_E5500) #define CPU_FTRS_POSSIBLE (CPU_FTRS_E6500 | CPU_FTRS_E5500)
#else #else
#ifdef CONFIG_CPU_LITTLE_ENDIAN #ifdef CONFIG_CPU_LITTLE_ENDIAN
...@@ -521,7 +521,7 @@ enum { ...@@ -521,7 +521,7 @@ enum {
#endif /* __powerpc64__ */ #endif /* __powerpc64__ */
#ifdef CONFIG_PPC64 #ifdef CONFIG_PPC64
#ifdef CONFIG_PPC_BOOK3E #ifdef CONFIG_PPC_BOOK3E_64
#define CPU_FTRS_ALWAYS (CPU_FTRS_E6500 & CPU_FTRS_E5500) #define CPU_FTRS_ALWAYS (CPU_FTRS_E6500 & CPU_FTRS_E5500)
#else #else
......
...@@ -281,7 +281,7 @@ static inline bool nmi_disables_ftrace(struct pt_regs *regs) ...@@ -281,7 +281,7 @@ static inline bool nmi_disables_ftrace(struct pt_regs *regs)
if (TRAP(regs) == INTERRUPT_PERFMON) if (TRAP(regs) == INTERRUPT_PERFMON)
return false; return false;
} }
if (IS_ENABLED(CONFIG_PPC_BOOK3E)) { if (IS_ENABLED(CONFIG_PPC_BOOK3E_64)) {
if (TRAP(regs) == INTERRUPT_PERFMON) if (TRAP(regs) == INTERRUPT_PERFMON)
return false; return false;
} }
......
...@@ -15,7 +15,7 @@ static inline void tlb_flush_pgtable(struct mmu_gather *tlb, ...@@ -15,7 +15,7 @@ static inline void tlb_flush_pgtable(struct mmu_gather *tlb,
{ {
} }
#endif /* !CONFIG_PPC_BOOK3E */ #endif /* !CONFIG_PPC_BOOK3E_64 */
static inline pgd_t *pgd_alloc(struct mm_struct *mm) static inline pgd_t *pgd_alloc(struct mm_struct *mm)
{ {
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include <asm/lppaca.h> #include <asm/lppaca.h>
#include <asm/mmu.h> #include <asm/mmu.h>
#include <asm/page.h> #include <asm/page.h>
#ifdef CONFIG_PPC_BOOK3E #ifdef CONFIG_PPC_BOOK3E_64
#include <asm/exception-64e.h> #include <asm/exception-64e.h>
#else #else
#include <asm/exception-64s.h> #include <asm/exception-64s.h>
...@@ -127,7 +127,7 @@ struct paca_struct { ...@@ -127,7 +127,7 @@ struct paca_struct {
#endif #endif
#endif /* CONFIG_PPC_BOOK3S_64 */ #endif /* CONFIG_PPC_BOOK3S_64 */
#ifdef CONFIG_PPC_BOOK3E #ifdef CONFIG_PPC_BOOK3E_64
u64 exgen[8] __aligned(0x40); u64 exgen[8] __aligned(0x40);
/* Keep pgd in the same cacheline as the start of extlb */ /* Keep pgd in the same cacheline as the start of extlb */
pgd_t *pgd __aligned(0x40); /* Current PGD */ pgd_t *pgd __aligned(0x40); /* Current PGD */
...@@ -151,7 +151,7 @@ struct paca_struct { ...@@ -151,7 +151,7 @@ struct paca_struct {
void *dbg_kstack; void *dbg_kstack;
struct tlb_core_data tcd; struct tlb_core_data tcd;
#endif /* CONFIG_PPC_BOOK3E */ #endif /* CONFIG_PPC_BOOK3E_64 */
#ifdef CONFIG_PPC_64S_HASH_MMU #ifdef CONFIG_PPC_64S_HASH_MMU
unsigned char mm_ctx_low_slices_psize[BITS_PER_LONG / BITS_PER_BYTE]; unsigned char mm_ctx_low_slices_psize[BITS_PER_LONG / BITS_PER_BYTE];
...@@ -168,7 +168,7 @@ struct paca_struct { ...@@ -168,7 +168,7 @@ struct paca_struct {
#ifdef CONFIG_PPC64 #ifdef CONFIG_PPC64
u64 exit_save_r1; /* Syscall/interrupt R1 save */ u64 exit_save_r1; /* Syscall/interrupt R1 save */
#endif #endif
#ifdef CONFIG_PPC_BOOK3E #ifdef CONFIG_PPC_BOOK3E_64
u16 trap_save; /* Used when bad stack is encountered */ u16 trap_save; /* Used when bad stack is encountered */
#endif #endif
#ifdef CONFIG_PPC_BOOK3S_64 #ifdef CONFIG_PPC_BOOK3S_64
......
...@@ -709,7 +709,7 @@ END_FTR_SECTION_NESTED(CPU_FTR_CELL_TB_BUG, CPU_FTR_CELL_TB_BUG, 96) ...@@ -709,7 +709,7 @@ END_FTR_SECTION_NESTED(CPU_FTR_CELL_TB_BUG, CPU_FTR_CELL_TB_BUG, 96)
* kernel is built for. * kernel is built for.
*/ */
#ifdef CONFIG_PPC_BOOK3E #ifdef CONFIG_PPC_BOOK3E_64
#define FIXUP_ENDIAN #define FIXUP_ENDIAN
#else #else
/* /*
...@@ -749,7 +749,7 @@ END_FTR_SECTION_NESTED(CPU_FTR_CELL_TB_BUG, CPU_FTR_CELL_TB_BUG, 96) ...@@ -749,7 +749,7 @@ END_FTR_SECTION_NESTED(CPU_FTR_CELL_TB_BUG, CPU_FTR_CELL_TB_BUG, 96)
.long 0x2402004c; /* hrfid */ \ .long 0x2402004c; /* hrfid */ \
191: 191:
#endif /* !CONFIG_PPC_BOOK3E */ #endif /* !CONFIG_PPC_BOOK3E_64 */
#endif /* __ASSEMBLY__ */ #endif /* __ASSEMBLY__ */
......
...@@ -197,7 +197,7 @@ int main(void) ...@@ -197,7 +197,7 @@ int main(void)
OFFSET(PACAIRQHAPPENED, paca_struct, irq_happened); OFFSET(PACAIRQHAPPENED, paca_struct, irq_happened);
OFFSET(PACA_FTRACE_ENABLED, paca_struct, ftrace_enabled); OFFSET(PACA_FTRACE_ENABLED, paca_struct, ftrace_enabled);
#ifdef CONFIG_PPC_BOOK3E #ifdef CONFIG_PPC_BOOK3E_64
OFFSET(PACAPGD, paca_struct, pgd); OFFSET(PACAPGD, paca_struct, pgd);
OFFSET(PACA_KERNELPGD, paca_struct, kernel_pgd); OFFSET(PACA_KERNELPGD, paca_struct, kernel_pgd);
OFFSET(PACA_EXGEN, paca_struct, exgen); OFFSET(PACA_EXGEN, paca_struct, exgen);
...@@ -213,7 +213,7 @@ int main(void) ...@@ -213,7 +213,7 @@ int main(void)
OFFSET(TCD_ESEL_NEXT, tlb_core_data, esel_next); OFFSET(TCD_ESEL_NEXT, tlb_core_data, esel_next);
OFFSET(TCD_ESEL_MAX, tlb_core_data, esel_max); OFFSET(TCD_ESEL_MAX, tlb_core_data, esel_max);
OFFSET(TCD_ESEL_FIRST, tlb_core_data, esel_first); OFFSET(TCD_ESEL_FIRST, tlb_core_data, esel_first);
#endif /* CONFIG_PPC_BOOK3E */ #endif /* CONFIG_PPC_BOOK3E_64 */
#ifdef CONFIG_PPC_BOOK3S_64 #ifdef CONFIG_PPC_BOOK3S_64
OFFSET(PACA_EXGEN, paca_struct, exgen); OFFSET(PACA_EXGEN, paca_struct, exgen);
...@@ -248,7 +248,7 @@ int main(void) ...@@ -248,7 +248,7 @@ int main(void)
#ifdef CONFIG_PPC64 #ifdef CONFIG_PPC64
OFFSET(PACA_EXIT_SAVE_R1, paca_struct, exit_save_r1); OFFSET(PACA_EXIT_SAVE_R1, paca_struct, exit_save_r1);
#endif #endif
#ifdef CONFIG_PPC_BOOK3E #ifdef CONFIG_PPC_BOOK3E_64
OFFSET(PACA_TRAP_SAVE, paca_struct, trap_save); OFFSET(PACA_TRAP_SAVE, paca_struct, trap_save);
#endif #endif
OFFSET(PACA_SPRG_VDSO, paca_struct, sprg_vdso); OFFSET(PACA_SPRG_VDSO, paca_struct, sprg_vdso);
......
...@@ -292,16 +292,16 @@ _GLOBAL(enter_prom) ...@@ -292,16 +292,16 @@ _GLOBAL(enter_prom)
/* Prepare a 32-bit mode big endian MSR /* Prepare a 32-bit mode big endian MSR
*/ */
#ifdef CONFIG_PPC_BOOK3E #ifdef CONFIG_PPC_BOOK3E_64
rlwinm r11,r11,0,1,31 rlwinm r11,r11,0,1,31
mtsrr1 r11 mtsrr1 r11
rfi rfi
#else /* CONFIG_PPC_BOOK3E */ #else /* CONFIG_PPC_BOOK3E_64 */
LOAD_REG_IMMEDIATE(r12, MSR_SF | MSR_LE) LOAD_REG_IMMEDIATE(r12, MSR_SF | MSR_LE)
andc r11,r11,r12 andc r11,r11,r12
mtsrr1 r11 mtsrr1 r11
RFI_TO_KERNEL RFI_TO_KERNEL
#endif /* CONFIG_PPC_BOOK3E */ #endif /* CONFIG_PPC_BOOK3E_64 */
1: /* Return from OF */ 1: /* Return from OF */
FIXUP_ENDIAN FIXUP_ENDIAN
......
...@@ -143,7 +143,7 @@ DEFINE_FIXED_SYMBOL(__run_at_load, first_256B) ...@@ -143,7 +143,7 @@ DEFINE_FIXED_SYMBOL(__run_at_load, first_256B)
.globl __secondary_hold .globl __secondary_hold
__secondary_hold: __secondary_hold:
FIXUP_ENDIAN FIXUP_ENDIAN
#ifndef CONFIG_PPC_BOOK3E #ifndef CONFIG_PPC_BOOK3E_64
mfmsr r24 mfmsr r24
ori r24,r24,MSR_RI ori r24,r24,MSR_RI
mtmsrd r24 /* RI on */ mtmsrd r24 /* RI on */
...@@ -160,7 +160,7 @@ __secondary_hold: ...@@ -160,7 +160,7 @@ __secondary_hold:
sync sync
li r26,0 li r26,0
#ifdef CONFIG_PPC_BOOK3E #ifdef CONFIG_PPC_BOOK3E_64
tovirt(r26,r26) tovirt(r26,r26)
#endif #endif
/* All secondary cpus wait here until told to start. */ /* All secondary cpus wait here until told to start. */
...@@ -169,7 +169,7 @@ __secondary_hold: ...@@ -169,7 +169,7 @@ __secondary_hold:
beq 100b beq 100b
#if defined(CONFIG_SMP) || defined(CONFIG_KEXEC_CORE) #if defined(CONFIG_SMP) || defined(CONFIG_KEXEC_CORE)
#ifdef CONFIG_PPC_BOOK3E #ifdef CONFIG_PPC_BOOK3E_64
tovirt(r12,r12) tovirt(r12,r12)
#endif #endif
mtctr r12 mtctr r12
...@@ -178,7 +178,7 @@ __secondary_hold: ...@@ -178,7 +178,7 @@ __secondary_hold:
* it may be the case that other platforms have r4 right to * it may be the case that other platforms have r4 right to
* begin with, this gives us some safety in case it is not * begin with, this gives us some safety in case it is not
*/ */
#ifdef CONFIG_PPC_BOOK3E #ifdef CONFIG_PPC_BOOK3E_64
mr r4,r25 mr r4,r25
#else #else
li r4,0 li r4,0
...@@ -214,7 +214,7 @@ USE_TEXT_SECTION() ...@@ -214,7 +214,7 @@ USE_TEXT_SECTION()
#include "interrupt_64.S" #include "interrupt_64.S"
#ifdef CONFIG_PPC_BOOK3E #ifdef CONFIG_PPC_BOOK3E_64
/* /*
* The booting_thread_hwid holds the thread id we want to boot in cpu * The booting_thread_hwid holds the thread id we want to boot in cpu
* hotplug case. It is set by cpu hotplug code, and is invalid by default. * hotplug case. It is set by cpu hotplug code, and is invalid by default.
...@@ -322,7 +322,7 @@ _GLOBAL(fsl_secondary_thread_init) ...@@ -322,7 +322,7 @@ _GLOBAL(fsl_secondary_thread_init)
bl book3e_secondary_thread_init bl book3e_secondary_thread_init
b generic_secondary_common_init b generic_secondary_common_init
#endif /* CONFIG_PPC_BOOK3E */ #endif /* CONFIG_PPC_BOOK3E_64 */
/* /*
* On pSeries and most other platforms, secondary processors spin * On pSeries and most other platforms, secondary processors spin
...@@ -345,7 +345,7 @@ _GLOBAL(generic_secondary_smp_init) ...@@ -345,7 +345,7 @@ _GLOBAL(generic_secondary_smp_init)
bl relative_toc bl relative_toc
tovirt(r2,r2) tovirt(r2,r2)
#ifdef CONFIG_PPC_BOOK3E #ifdef CONFIG_PPC_BOOK3E_64
/* Book3E initialization */ /* Book3E initialization */
mr r3,r24 mr r3,r24
mr r4,r25 mr r4,r25
...@@ -417,7 +417,7 @@ generic_secondary_common_init: ...@@ -417,7 +417,7 @@ generic_secondary_common_init:
b kexec_wait /* next kernel might do better */ b kexec_wait /* next kernel might do better */
2: SET_PACA(r13) 2: SET_PACA(r13)
#ifdef CONFIG_PPC_BOOK3E #ifdef CONFIG_PPC_BOOK3E_64
addi r12,r13,PACA_EXTLB /* and TLB exc frame in another */ addi r12,r13,PACA_EXTLB /* and TLB exc frame in another */
mtspr SPRN_SPRG_TLB_EXFRAME,r12 mtspr SPRN_SPRG_TLB_EXFRAME,r12
#endif #endif
...@@ -519,7 +519,7 @@ __start_initialization_multiplatform: ...@@ -519,7 +519,7 @@ __start_initialization_multiplatform:
mr r29,r9 mr r29,r9
#endif #endif
#ifdef CONFIG_PPC_BOOK3E #ifdef CONFIG_PPC_BOOK3E_64
bl start_initialization_book3e bl start_initialization_book3e
b __after_prom_start b __after_prom_start
#else #else
...@@ -540,7 +540,7 @@ __start_initialization_multiplatform: ...@@ -540,7 +540,7 @@ __start_initialization_multiplatform:
/* Switch off MMU if not already off */ /* Switch off MMU if not already off */
bl __mmu_off bl __mmu_off
b __after_prom_start b __after_prom_start
#endif /* CONFIG_PPC_BOOK3E */ #endif /* CONFIG_PPC_BOOK3E_64 */
__REF __REF
__boot_from_prom: __boot_from_prom:
...@@ -587,11 +587,11 @@ __after_prom_start: ...@@ -587,11 +587,11 @@ __after_prom_start:
/* process relocations for the final address of the kernel */ /* process relocations for the final address of the kernel */
lis r25,PAGE_OFFSET@highest /* compute virtual base of kernel */ lis r25,PAGE_OFFSET@highest /* compute virtual base of kernel */
sldi r25,r25,32 sldi r25,r25,32
#if defined(CONFIG_PPC_BOOK3E) #if defined(CONFIG_PPC_BOOK3E_64)
tovirt(r26,r26) /* on booke, we already run at PAGE_OFFSET */ tovirt(r26,r26) /* on booke, we already run at PAGE_OFFSET */
#endif #endif
lwz r7,(FIXED_SYMBOL_ABS_ADDR(__run_at_load))(r26) lwz r7,(FIXED_SYMBOL_ABS_ADDR(__run_at_load))(r26)
#if defined(CONFIG_PPC_BOOK3E) #if defined(CONFIG_PPC_BOOK3E_64)
tophys(r26,r26) tophys(r26,r26)
#endif #endif
cmplwi cr0,r7,1 /* flagged to stay where we are ? */ cmplwi cr0,r7,1 /* flagged to stay where we are ? */
...@@ -599,7 +599,7 @@ __after_prom_start: ...@@ -599,7 +599,7 @@ __after_prom_start:
add r25,r25,r26 add r25,r25,r26
1: mr r3,r25 1: mr r3,r25
bl relocate bl relocate
#if defined(CONFIG_PPC_BOOK3E) #if defined(CONFIG_PPC_BOOK3E_64)
/* IVPR needs to be set after relocation. */ /* IVPR needs to be set after relocation. */
bl init_core_book3e bl init_core_book3e
#endif #endif
...@@ -613,11 +613,11 @@ __after_prom_start: ...@@ -613,11 +613,11 @@ __after_prom_start:
* Note: This process overwrites the OF exception vectors. * Note: This process overwrites the OF exception vectors.
*/ */
li r3,0 /* target addr */ li r3,0 /* target addr */
#ifdef CONFIG_PPC_BOOK3E #ifdef CONFIG_PPC_BOOK3E_64
tovirt(r3,r3) /* on booke, we already run at PAGE_OFFSET */ tovirt(r3,r3) /* on booke, we already run at PAGE_OFFSET */
#endif #endif
mr. r4,r26 /* In some cases the loader may */ mr. r4,r26 /* In some cases the loader may */
#if defined(CONFIG_PPC_BOOK3E) #if defined(CONFIG_PPC_BOOK3E_64)
tovirt(r4,r4) tovirt(r4,r4)
#endif #endif
beq 9f /* have already put us at zero */ beq 9f /* have already put us at zero */
...@@ -630,14 +630,14 @@ __after_prom_start: ...@@ -630,14 +630,14 @@ __after_prom_start:
* variable __run_at_load, if it is set the kernel is treated as relocatable * variable __run_at_load, if it is set the kernel is treated as relocatable
* kernel, otherwise it will be moved to PHYSICAL_START * kernel, otherwise it will be moved to PHYSICAL_START
*/ */
#if defined(CONFIG_PPC_BOOK3E) #if defined(CONFIG_PPC_BOOK3E_64)
tovirt(r26,r26) /* on booke, we already run at PAGE_OFFSET */ tovirt(r26,r26) /* on booke, we already run at PAGE_OFFSET */
#endif #endif
lwz r7,(FIXED_SYMBOL_ABS_ADDR(__run_at_load))(r26) lwz r7,(FIXED_SYMBOL_ABS_ADDR(__run_at_load))(r26)
cmplwi cr0,r7,1 cmplwi cr0,r7,1
bne 3f bne 3f
#ifdef CONFIG_PPC_BOOK3E #ifdef CONFIG_PPC_BOOK3E_64
LOAD_REG_ADDR(r5, __end_interrupts) LOAD_REG_ADDR(r5, __end_interrupts)
LOAD_REG_ADDR(r11, _stext) LOAD_REG_ADDR(r11, _stext)
sub r5,r5,r11 sub r5,r5,r11
...@@ -871,10 +871,10 @@ _GLOBAL(start_secondary_resume) ...@@ -871,10 +871,10 @@ _GLOBAL(start_secondary_resume)
*/ */
enable_64b_mode: enable_64b_mode:
mfmsr r11 /* grab the current MSR */ mfmsr r11 /* grab the current MSR */
#ifdef CONFIG_PPC_BOOK3E #ifdef CONFIG_PPC_BOOK3E_64
oris r11,r11,0x8000 /* CM bit set, we'll set ICM later */ oris r11,r11,0x8000 /* CM bit set, we'll set ICM later */
mtmsr r11 mtmsr r11
#else /* CONFIG_PPC_BOOK3E */ #else /* CONFIG_PPC_BOOK3E_64 */
LOAD_REG_IMMEDIATE(r12, MSR_64BIT) LOAD_REG_IMMEDIATE(r12, MSR_64BIT)
or r11,r11,r12 or r11,r11,r12
mtmsrd r11 mtmsrd r11
...@@ -940,7 +940,7 @@ start_here_multiplatform: ...@@ -940,7 +940,7 @@ start_here_multiplatform:
std r29,8(r11); std r29,8(r11);
#endif #endif
#ifndef CONFIG_PPC_BOOK3E #ifndef CONFIG_PPC_BOOK3E_64
mfmsr r6 mfmsr r6
ori r6,r6,MSR_RI ori r6,r6,MSR_RI
mtmsrd r6 /* RI on */ mtmsrd r6 /* RI on */
......
...@@ -286,7 +286,7 @@ kexec_flag: ...@@ -286,7 +286,7 @@ kexec_flag:
#ifdef CONFIG_KEXEC_CORE #ifdef CONFIG_KEXEC_CORE
#ifdef CONFIG_PPC_BOOK3E #ifdef CONFIG_PPC_BOOK3E_64
/* /*
* BOOK3E has no real MMU mode, so we have to setup the initial TLB * BOOK3E has no real MMU mode, so we have to setup the initial TLB
* for a core to identity map v:0 to p:0. This current implementation * for a core to identity map v:0 to p:0. This current implementation
...@@ -354,7 +354,7 @@ _GLOBAL(kexec_smp_wait) ...@@ -354,7 +354,7 @@ _GLOBAL(kexec_smp_wait)
* don't overwrite r3 here, it is live for kexec_wait above. * don't overwrite r3 here, it is live for kexec_wait above.
*/ */
real_mode: /* assume normal blr return */ real_mode: /* assume normal blr return */
#ifdef CONFIG_PPC_BOOK3E #ifdef CONFIG_PPC_BOOK3E_64
/* Create an identity mapping. */ /* Create an identity mapping. */
b kexec_create_tlb b kexec_create_tlb
#else #else
...@@ -413,7 +413,7 @@ _GLOBAL(kexec_sequence) ...@@ -413,7 +413,7 @@ _GLOBAL(kexec_sequence)
lhz r25,PACAHWCPUID(r13) /* get our phys cpu from paca */ lhz r25,PACAHWCPUID(r13) /* get our phys cpu from paca */
/* disable interrupts, we are overwriting kernel data next */ /* disable interrupts, we are overwriting kernel data next */
#ifdef CONFIG_PPC_BOOK3E #ifdef CONFIG_PPC_BOOK3E_64
wrteei 0 wrteei 0
#else #else
mfmsr r3 mfmsr r3
......
...@@ -186,7 +186,7 @@ void __init initialise_paca(struct paca_struct *new_paca, int cpu) ...@@ -186,7 +186,7 @@ void __init initialise_paca(struct paca_struct *new_paca, int cpu)
#ifdef CONFIG_PPC_PSERIES #ifdef CONFIG_PPC_PSERIES
new_paca->lppaca_ptr = NULL; new_paca->lppaca_ptr = NULL;
#endif #endif
#ifdef CONFIG_PPC_BOOK3E #ifdef CONFIG_PPC_BOOK3E_64
new_paca->kernel_pgd = swapper_pg_dir; new_paca->kernel_pgd = swapper_pg_dir;
#endif #endif
new_paca->lock_token = 0x8000; new_paca->lock_token = 0x8000;
...@@ -203,7 +203,7 @@ void __init initialise_paca(struct paca_struct *new_paca, int cpu) ...@@ -203,7 +203,7 @@ void __init initialise_paca(struct paca_struct *new_paca, int cpu)
new_paca->slb_shadow_ptr = NULL; new_paca->slb_shadow_ptr = NULL;
#endif #endif
#ifdef CONFIG_PPC_BOOK3E #ifdef CONFIG_PPC_BOOK3E_64
/* For now -- if we have threads this will be adjusted later */ /* For now -- if we have threads this will be adjusted later */
new_paca->tcd_ptr = &new_paca->tcd; new_paca->tcd_ptr = &new_paca->tcd;
#endif #endif
...@@ -215,7 +215,7 @@ void setup_paca(struct paca_struct *new_paca) ...@@ -215,7 +215,7 @@ void setup_paca(struct paca_struct *new_paca)
/* Setup r13 */ /* Setup r13 */
local_paca = new_paca; local_paca = new_paca;
#ifdef CONFIG_PPC_BOOK3E #ifdef CONFIG_PPC_BOOK3E_64
/* On Book3E, initialize the TLB miss exception frames */ /* On Book3E, initialize the TLB miss exception frames */
mtspr(SPRN_SPRG_TLB_EXFRAME, local_paca->extlb); mtspr(SPRN_SPRG_TLB_EXFRAME, local_paca->extlb);
#else #else
......
...@@ -23,7 +23,7 @@ void check_smt_enabled(void); ...@@ -23,7 +23,7 @@ void check_smt_enabled(void);
static inline void check_smt_enabled(void) { } static inline void check_smt_enabled(void) { }
#endif #endif
#if defined(CONFIG_PPC_BOOK3E) && defined(CONFIG_SMP) #if defined(CONFIG_PPC_BOOK3E_64) && defined(CONFIG_SMP)
void setup_tlb_core_data(void); void setup_tlb_core_data(void);
#else #else
static inline void setup_tlb_core_data(void) { } static inline void setup_tlb_core_data(void) { }
......
...@@ -86,7 +86,7 @@ struct ppc64_caches ppc64_caches = { ...@@ -86,7 +86,7 @@ struct ppc64_caches ppc64_caches = {
}; };
EXPORT_SYMBOL_GPL(ppc64_caches); EXPORT_SYMBOL_GPL(ppc64_caches);
#if defined(CONFIG_PPC_BOOK3E) && defined(CONFIG_SMP) #if defined(CONFIG_PPC_BOOK3E_64) && defined(CONFIG_SMP)
void __init setup_tlb_core_data(void) void __init setup_tlb_core_data(void)
{ {
int cpu; int cpu;
...@@ -673,7 +673,7 @@ void __init initialize_cache_info(void) ...@@ -673,7 +673,7 @@ void __init initialize_cache_info(void)
*/ */
__init u64 ppc64_bolted_size(void) __init u64 ppc64_bolted_size(void)
{ {
#ifdef CONFIG_PPC_BOOK3E #ifdef CONFIG_PPC_BOOK3E_64
/* Freescale BookE bolts the entire linear mapping */ /* Freescale BookE bolts the entire linear mapping */
/* XXX: BookE ppc64_rma_limit setup seems to disagree? */ /* XXX: BookE ppc64_rma_limit setup seems to disagree? */
if (early_mmu_has_feature(MMU_FTR_TYPE_FSL_E)) if (early_mmu_has_feature(MMU_FTR_TYPE_FSL_E))
...@@ -723,7 +723,7 @@ void __init irqstack_early_init(void) ...@@ -723,7 +723,7 @@ void __init irqstack_early_init(void)
} }
} }
#ifdef CONFIG_PPC_BOOK3E #ifdef CONFIG_PPC_BOOK3E_64
void __init exc_lvl_early_init(void) void __init exc_lvl_early_init(void)
{ {
unsigned int i; unsigned int i;
...@@ -825,7 +825,7 @@ void __init setup_per_cpu_areas(void) ...@@ -825,7 +825,7 @@ void __init setup_per_cpu_areas(void)
/* /*
* BookE and BookS radix are historical values and should be revisited. * BookE and BookS radix are historical values and should be revisited.
*/ */
if (IS_ENABLED(CONFIG_PPC_BOOK3E)) { if (IS_ENABLED(CONFIG_PPC_BOOK3E_64)) {
atom_size = SZ_1M; atom_size = SZ_1M;
} else if (radix_enabled()) { } else if (radix_enabled()) {
atom_size = PAGE_SIZE; atom_size = PAGE_SIZE;
......
...@@ -71,7 +71,7 @@ SECTIONS ...@@ -71,7 +71,7 @@ SECTIONS
.head.text : AT(ADDR(.head.text) - LOAD_OFFSET) { .head.text : AT(ADDR(.head.text) - LOAD_OFFSET) {
#ifdef CONFIG_PPC64 #ifdef CONFIG_PPC64
KEEP(*(.head.text.first_256B)); KEEP(*(.head.text.first_256B));
#ifdef CONFIG_PPC_BOOK3E #ifdef CONFIG_PPC_BOOK3E_64
#else #else
KEEP(*(.head.text.real_vectors)); KEEP(*(.head.text.real_vectors));
*(.head.text.real_trampolines); *(.head.text.real_trampolines);
......
...@@ -360,7 +360,7 @@ void default_machine_kexec(struct kimage *image) ...@@ -360,7 +360,7 @@ void default_machine_kexec(struct kimage *image)
* the RMA. On BookE there is no real MMU off mode, so we have to * the RMA. On BookE there is no real MMU off mode, so we have to
* keep it enabled as well (but then we have bolted TLB entries). * keep it enabled as well (but then we have bolted TLB entries).
*/ */
#ifdef CONFIG_PPC_BOOK3E #ifdef CONFIG_PPC_BOOK3E_64
copy_with_mmu_off = false; copy_with_mmu_off = false;
#else #else
copy_with_mmu_off = radix_enabled() || copy_with_mmu_off = radix_enabled() ||
......
...@@ -38,7 +38,7 @@ static inline void _tlbil_pid(unsigned int pid) ...@@ -38,7 +38,7 @@ static inline void _tlbil_pid(unsigned int pid)
#else /* CONFIG_40x || CONFIG_PPC_8xx */ #else /* CONFIG_40x || CONFIG_PPC_8xx */
extern void _tlbil_all(void); extern void _tlbil_all(void);
extern void _tlbil_pid(unsigned int pid); extern void _tlbil_pid(unsigned int pid);
#ifdef CONFIG_PPC_BOOK3E #ifdef CONFIG_PPC_BOOK3E_64
extern void _tlbil_pid_noind(unsigned int pid); extern void _tlbil_pid_noind(unsigned int pid);
#else #else
#define _tlbil_pid_noind(pid) _tlbil_pid(pid) #define _tlbil_pid_noind(pid) _tlbil_pid(pid)
...@@ -55,7 +55,7 @@ static inline void _tlbil_va(unsigned long address, unsigned int pid, ...@@ -55,7 +55,7 @@ static inline void _tlbil_va(unsigned long address, unsigned int pid,
asm volatile ("tlbie %0; sync" : : "r" (address) : "memory"); asm volatile ("tlbie %0; sync" : : "r" (address) : "memory");
trace_tlbie(0, 0, address, pid, 0, 0, 0); trace_tlbie(0, 0, address, pid, 0, 0, 0);
} }
#elif defined(CONFIG_PPC_BOOK3E) #elif defined(CONFIG_PPC_BOOK3E_64)
extern void _tlbil_va(unsigned long address, unsigned int pid, extern void _tlbil_va(unsigned long address, unsigned int pid,
unsigned int tsize, unsigned int ind); unsigned int tsize, unsigned int ind);
#else #else
...@@ -67,7 +67,7 @@ static inline void _tlbil_va(unsigned long address, unsigned int pid, ...@@ -67,7 +67,7 @@ static inline void _tlbil_va(unsigned long address, unsigned int pid,
} }
#endif /* CONFIG_PPC_8xx */ #endif /* CONFIG_PPC_8xx */
#if defined(CONFIG_PPC_BOOK3E) || defined(CONFIG_PPC_47x) #if defined(CONFIG_PPC_BOOK3E_64) || defined(CONFIG_PPC_47x)
extern void _tlbivax_bcast(unsigned long address, unsigned int pid, extern void _tlbivax_bcast(unsigned long address, unsigned int pid,
unsigned int tsize, unsigned int ind); unsigned int tsize, unsigned int ind);
#else #else
......
...@@ -294,7 +294,7 @@ ALT_MMU_FTR_SECTION_END_IFCLR(MMU_FTR_USE_TLBILX) ...@@ -294,7 +294,7 @@ ALT_MMU_FTR_SECTION_END_IFCLR(MMU_FTR_USE_TLBILX)
isync isync
1: wrtee r10 1: wrtee r10
blr blr
#elif defined(CONFIG_PPC_BOOK3E) #elif defined(CONFIG_PPC_BOOK3E_64)
/* /*
* New Book3E (>= 2.06) implementation * New Book3E (>= 2.06) implementation
* *
......
# SPDX-License-Identifier: GPL-2.0 # SPDX-License-Identifier: GPL-2.0
menuconfig FSL_SOC_BOOKE menuconfig FSL_SOC_BOOKE
bool "Freescale Book-E Machine Type" bool "Freescale Book-E Machine Type"
depends on PPC_85xx || PPC_BOOK3E depends on PPC_85xx || PPC_BOOK3E_64
select FSL_SOC select FSL_SOC
select PPC_UDBG_16550 select PPC_UDBG_16550
select MPIC select MPIC
......
...@@ -257,10 +257,6 @@ config PPC_BOOK3S ...@@ -257,10 +257,6 @@ config PPC_BOOK3S
def_bool y def_bool y
depends on PPC_BOOK3S_32 || PPC_BOOK3S_64 depends on PPC_BOOK3S_32 || PPC_BOOK3S_64
config PPC_BOOK3E
def_bool y
depends on PPC_BOOK3E_64
config E500 config E500
select FSL_EMB_PERFMON select FSL_EMB_PERFMON
select PPC_FSL_BOOK3E select PPC_FSL_BOOK3E
...@@ -316,7 +312,7 @@ config 4xx ...@@ -316,7 +312,7 @@ config 4xx
config BOOKE config BOOKE
bool bool
depends on E500 || 44x || PPC_BOOK3E depends on E500 || 44x || PPC_BOOK3E_64
default y default y
config BOOKE_OR_40x config BOOKE_OR_40x
...@@ -480,7 +476,7 @@ config PPC_MMU_NOHASH ...@@ -480,7 +476,7 @@ config PPC_MMU_NOHASH
config PPC_BOOK3E_MMU config PPC_BOOK3E_MMU
def_bool y def_bool y
depends on PPC_85xx || PPC_BOOK3E depends on PPC_85xx || PPC_BOOK3E_64
config PPC_HAVE_PMU_SUPPORT config PPC_HAVE_PMU_SUPPORT
bool bool
...@@ -503,7 +499,7 @@ config FORCE_SMP ...@@ -503,7 +499,7 @@ config FORCE_SMP
select SMP select SMP
config SMP config SMP
depends on PPC_BOOK3S || PPC_BOOK3E || PPC_85xx || PPC_47x depends on PPC_BOOK3S || PPC_BOOK3E_64 || PPC_85xx || PPC_47x
select GENERIC_IRQ_MIGRATION select GENERIC_IRQ_MIGRATION
bool "Symmetric multi-processing support" if !FORCE_SMP bool "Symmetric multi-processing support" if !FORCE_SMP
help help
......
...@@ -195,7 +195,7 @@ static int do_spu_cmd(void); ...@@ -195,7 +195,7 @@ static int do_spu_cmd(void);
#ifdef CONFIG_44x #ifdef CONFIG_44x
static void dump_tlb_44x(void); static void dump_tlb_44x(void);
#endif #endif
#ifdef CONFIG_PPC_BOOK3E #ifdef CONFIG_PPC_BOOK3E_64
static void dump_tlb_book3e(void); static void dump_tlb_book3e(void);
#endif #endif
...@@ -288,11 +288,11 @@ Commands:\n\ ...@@ -288,11 +288,11 @@ Commands:\n\
t print backtrace\n\ t print backtrace\n\
x exit monitor and recover\n\ x exit monitor and recover\n\
X exit monitor and don't recover\n" X exit monitor and don't recover\n"
#if defined(CONFIG_PPC64) && !defined(CONFIG_PPC_BOOK3E) #if defined(CONFIG_PPC64) && !defined(CONFIG_PPC_BOOK3E_64)
" u dump segment table or SLB\n" " u dump segment table or SLB\n"
#elif defined(CONFIG_PPC_BOOK3S_32) #elif defined(CONFIG_PPC_BOOK3S_32)
" u dump segment registers\n" " u dump segment registers\n"
#elif defined(CONFIG_44x) || defined(CONFIG_PPC_BOOK3E) #elif defined(CONFIG_44x) || defined(CONFIG_PPC_BOOK3E_64)
" u dump TLB\n" " u dump TLB\n"
#endif #endif
" U show uptime information\n" " U show uptime information\n"
...@@ -1166,7 +1166,7 @@ cmds(struct pt_regs *excp) ...@@ -1166,7 +1166,7 @@ cmds(struct pt_regs *excp)
case 'u': case 'u':
dump_tlb_44x(); dump_tlb_44x();
break; break;
#elif defined(CONFIG_PPC_BOOK3E) #elif defined(CONFIG_PPC_BOOK3E_64)
case 'u': case 'u':
dump_tlb_book3e(); dump_tlb_book3e();
break; break;
...@@ -2686,7 +2686,7 @@ static void dump_one_paca(int cpu) ...@@ -2686,7 +2686,7 @@ static void dump_one_paca(int cpu)
DUMP(p, rfi_flush_fallback_area, "%-*px"); DUMP(p, rfi_flush_fallback_area, "%-*px");
#endif #endif
DUMP(p, dscr_default, "%#-*llx"); DUMP(p, dscr_default, "%#-*llx");
#ifdef CONFIG_PPC_BOOK3E #ifdef CONFIG_PPC_BOOK3E_64
DUMP(p, pgd, "%-*px"); DUMP(p, pgd, "%-*px");
DUMP(p, kernel_pgd, "%-*px"); DUMP(p, kernel_pgd, "%-*px");
DUMP(p, tcd_ptr, "%-*px"); DUMP(p, tcd_ptr, "%-*px");
...@@ -2701,7 +2701,7 @@ static void dump_one_paca(int cpu) ...@@ -2701,7 +2701,7 @@ static void dump_one_paca(int cpu)
DUMP(p, canary, "%#-*lx"); DUMP(p, canary, "%#-*lx");
#endif #endif
DUMP(p, saved_r1, "%#-*llx"); DUMP(p, saved_r1, "%#-*llx");
#ifdef CONFIG_PPC_BOOK3E #ifdef CONFIG_PPC_BOOK3E_64
DUMP(p, trap_save, "%#-*x"); DUMP(p, trap_save, "%#-*x");
#endif #endif
DUMP(p, irq_soft_mask, "%#-*x"); DUMP(p, irq_soft_mask, "%#-*x");
...@@ -3823,7 +3823,7 @@ static void dump_tlb_44x(void) ...@@ -3823,7 +3823,7 @@ static void dump_tlb_44x(void)
} }
#endif /* CONFIG_44x */ #endif /* CONFIG_44x */
#ifdef CONFIG_PPC_BOOK3E #ifdef CONFIG_PPC_BOOK3E_64
static void dump_tlb_book3e(void) static void dump_tlb_book3e(void)
{ {
u32 mmucfg, pidmask, lpidmask; u32 mmucfg, pidmask, lpidmask;
...@@ -3965,7 +3965,7 @@ static void dump_tlb_book3e(void) ...@@ -3965,7 +3965,7 @@ static void dump_tlb_book3e(void)
} }
} }
} }
#endif /* CONFIG_PPC_BOOK3E */ #endif /* CONFIG_PPC_BOOK3E_64 */
static void xmon_init(int enable) static void xmon_init(int enable)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment