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

powerpc: Drop SYNC_601() ISYNC_601() and SYNC()

Those macros are now empty at all time. Drop them.
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/7990bb63fc53e460bfa94f8040184881d9e6fbc3.1601362098.git.christophe.leroy@csgroup.eu
parent e42a6400
...@@ -382,10 +382,6 @@ GLUE(.,name): ...@@ -382,10 +382,6 @@ GLUE(.,name):
#endif #endif
/* various errata or part fixups */ /* various errata or part fixups */
#define SYNC
#define SYNC_601
#define ISYNC_601
#if defined(CONFIG_PPC_CELL) || defined(CONFIG_PPC_FSL_BOOK3E) #if defined(CONFIG_PPC_CELL) || defined(CONFIG_PPC_FSL_BOOK3E)
#define MFTB(dest) \ #define MFTB(dest) \
90: mfspr dest, SPRN_TBRL; \ 90: mfspr dest, SPRN_TBRL; \
......
...@@ -234,7 +234,6 @@ transfer_to_handler_cont: ...@@ -234,7 +234,6 @@ transfer_to_handler_cont:
mtspr SPRN_SRR0,r11 mtspr SPRN_SRR0,r11
mtspr SPRN_SRR1,r10 mtspr SPRN_SRR1,r10
mtlr r9 mtlr r9
SYNC
RFI /* jump to handler, enable MMU */ RFI /* jump to handler, enable MMU */
#if defined (CONFIG_PPC_BOOK3S_32) || defined(CONFIG_E500) #if defined (CONFIG_PPC_BOOK3S_32) || defined(CONFIG_E500)
...@@ -264,7 +263,6 @@ _ASM_NOKPROBE_SYMBOL(transfer_to_handler_cont) ...@@ -264,7 +263,6 @@ _ASM_NOKPROBE_SYMBOL(transfer_to_handler_cont)
LOAD_REG_IMMEDIATE(r0, MSR_KERNEL) LOAD_REG_IMMEDIATE(r0, MSR_KERNEL)
mtspr SPRN_SRR0,r12 mtspr SPRN_SRR0,r12
mtspr SPRN_SRR1,r0 mtspr SPRN_SRR1,r0
SYNC
RFI RFI
reenable_mmu: reenable_mmu:
...@@ -323,7 +321,6 @@ stack_ovf: ...@@ -323,7 +321,6 @@ stack_ovf:
#endif #endif
mtspr SPRN_SRR0,r9 mtspr SPRN_SRR0,r9
mtspr SPRN_SRR1,r10 mtspr SPRN_SRR1,r10
SYNC
RFI RFI
_ASM_NOKPROBE_SYMBOL(stack_ovf) _ASM_NOKPROBE_SYMBOL(stack_ovf)
#endif #endif
...@@ -411,7 +408,6 @@ ret_from_syscall: ...@@ -411,7 +408,6 @@ ret_from_syscall:
/* disable interrupts so current_thread_info()->flags can't change */ /* disable interrupts so current_thread_info()->flags can't change */
LOAD_REG_IMMEDIATE(r10,MSR_KERNEL) /* doesn't include MSR_EE */ LOAD_REG_IMMEDIATE(r10,MSR_KERNEL) /* doesn't include MSR_EE */
/* Note: We don't bother telling lockdep about it */ /* Note: We don't bother telling lockdep about it */
SYNC
mtmsr r10 mtmsr r10
lwz r9,TI_FLAGS(r2) lwz r9,TI_FLAGS(r2)
li r8,-MAX_ERRNO li r8,-MAX_ERRNO
...@@ -474,7 +470,6 @@ syscall_exit_finish: ...@@ -474,7 +470,6 @@ syscall_exit_finish:
#endif #endif
mtspr SPRN_SRR0,r7 mtspr SPRN_SRR0,r7
mtspr SPRN_SRR1,r8 mtspr SPRN_SRR1,r8
SYNC
RFI RFI
_ASM_NOKPROBE_SYMBOL(syscall_exit_finish) _ASM_NOKPROBE_SYMBOL(syscall_exit_finish)
#ifdef CONFIG_44x #ifdef CONFIG_44x
...@@ -567,7 +562,6 @@ syscall_exit_work: ...@@ -567,7 +562,6 @@ syscall_exit_work:
* lockdep as we are supposed to have IRQs on at this point * lockdep as we are supposed to have IRQs on at this point
*/ */
ori r10,r10,MSR_EE ori r10,r10,MSR_EE
SYNC
mtmsr r10 mtmsr r10
/* Save NVGPRS if they're not saved already */ /* Save NVGPRS if they're not saved already */
...@@ -606,7 +600,6 @@ ret_from_kernel_syscall: ...@@ -606,7 +600,6 @@ ret_from_kernel_syscall:
#endif #endif
mtspr SPRN_SRR0, r9 mtspr SPRN_SRR0, r9
mtspr SPRN_SRR1, r10 mtspr SPRN_SRR1, r10
SYNC
RFI RFI
_ASM_NOKPROBE_SYMBOL(ret_from_kernel_syscall) _ASM_NOKPROBE_SYMBOL(ret_from_kernel_syscall)
...@@ -810,7 +803,6 @@ fast_exception_return: ...@@ -810,7 +803,6 @@ fast_exception_return:
REST_GPR(9, r11) REST_GPR(9, r11)
REST_GPR(12, r11) REST_GPR(12, r11)
lwz r11,GPR11(r11) lwz r11,GPR11(r11)
SYNC
RFI RFI
_ASM_NOKPROBE_SYMBOL(fast_exception_return) _ASM_NOKPROBE_SYMBOL(fast_exception_return)
...@@ -872,7 +864,6 @@ ret_from_except: ...@@ -872,7 +864,6 @@ ret_from_except:
* from the interrupt. */ * from the interrupt. */
/* Note: We don't bother telling lockdep about it */ /* Note: We don't bother telling lockdep about it */
LOAD_REG_IMMEDIATE(r10,MSR_KERNEL) LOAD_REG_IMMEDIATE(r10,MSR_KERNEL)
SYNC /* Some chip revs have problems here... */
mtmsr r10 /* disable interrupts */ mtmsr r10 /* disable interrupts */
lwz r3,_MSR(r1) /* Returning to user mode? */ lwz r3,_MSR(r1) /* Returning to user mode? */
...@@ -1035,7 +1026,6 @@ END_FTR_SECTION_IFSET(CPU_FTR_NEED_PAIRED_STWCX) ...@@ -1035,7 +1026,6 @@ END_FTR_SECTION_IFSET(CPU_FTR_NEED_PAIRED_STWCX)
* exc_exit_restart below. -- paulus * exc_exit_restart below. -- paulus
*/ */
LOAD_REG_IMMEDIATE(r10,MSR_KERNEL & ~MSR_RI) LOAD_REG_IMMEDIATE(r10,MSR_KERNEL & ~MSR_RI)
SYNC
mtmsr r10 /* clear the RI bit */ mtmsr r10 /* clear the RI bit */
.globl exc_exit_restart .globl exc_exit_restart
exc_exit_restart: exc_exit_restart:
...@@ -1046,7 +1036,6 @@ exc_exit_restart: ...@@ -1046,7 +1036,6 @@ exc_exit_restart:
lwz r1,GPR1(r1) lwz r1,GPR1(r1)
.globl exc_exit_restart_end .globl exc_exit_restart_end
exc_exit_restart_end: exc_exit_restart_end:
SYNC
RFI RFI
_ASM_NOKPROBE_SYMBOL(exc_exit_restart) _ASM_NOKPROBE_SYMBOL(exc_exit_restart)
_ASM_NOKPROBE_SYMBOL(exc_exit_restart_end) _ASM_NOKPROBE_SYMBOL(exc_exit_restart_end)
...@@ -1274,7 +1263,6 @@ do_resched: /* r10 contains MSR_KERNEL here */ ...@@ -1274,7 +1263,6 @@ do_resched: /* r10 contains MSR_KERNEL here */
mfmsr r10 mfmsr r10
#endif #endif
ori r10,r10,MSR_EE ori r10,r10,MSR_EE
SYNC
mtmsr r10 /* hard-enable interrupts */ mtmsr r10 /* hard-enable interrupts */
bl schedule bl schedule
recheck: recheck:
...@@ -1283,7 +1271,6 @@ recheck: ...@@ -1283,7 +1271,6 @@ recheck:
* TI_FLAGS aren't advertised. * TI_FLAGS aren't advertised.
*/ */
LOAD_REG_IMMEDIATE(r10,MSR_KERNEL) LOAD_REG_IMMEDIATE(r10,MSR_KERNEL)
SYNC
mtmsr r10 /* disable interrupts */ mtmsr r10 /* disable interrupts */
lwz r9,TI_FLAGS(r2) lwz r9,TI_FLAGS(r2)
andi. r0,r9,_TIF_NEED_RESCHED andi. r0,r9,_TIF_NEED_RESCHED
...@@ -1292,7 +1279,6 @@ recheck: ...@@ -1292,7 +1279,6 @@ recheck:
beq restore_user beq restore_user
do_user_signal: /* r10 contains MSR_KERNEL here */ do_user_signal: /* r10 contains MSR_KERNEL here */
ori r10,r10,MSR_EE ori r10,r10,MSR_EE
SYNC
mtmsr r10 /* hard-enable interrupts */ mtmsr r10 /* hard-enable interrupts */
/* save r13-r31 in the exception frame, if not already done */ /* save r13-r31 in the exception frame, if not already done */
lwz r3,_TRAP(r1) lwz r3,_TRAP(r1)
...@@ -1382,8 +1368,7 @@ _GLOBAL(enter_rtas) ...@@ -1382,8 +1368,7 @@ _GLOBAL(enter_rtas)
mfmsr r9 mfmsr r9
stw r9,8(r1) stw r9,8(r1)
LOAD_REG_IMMEDIATE(r0,MSR_KERNEL) LOAD_REG_IMMEDIATE(r0,MSR_KERNEL)
SYNC /* disable interrupts so SRR0/1 */ mtmsr r0 /* disable interrupts so SRR0/1 don't get trashed */
mtmsr r0 /* don't get trashed */
li r9,MSR_KERNEL & ~(MSR_IR|MSR_DR) li r9,MSR_KERNEL & ~(MSR_IR|MSR_DR)
mtlr r6 mtlr r6
stw r7, THREAD + RTAS_SP(r2) stw r7, THREAD + RTAS_SP(r2)
......
...@@ -87,7 +87,6 @@ BEGIN_FTR_SECTION ...@@ -87,7 +87,6 @@ BEGIN_FTR_SECTION
oris r5,r5,MSR_VSX@h oris r5,r5,MSR_VSX@h
END_FTR_SECTION_IFSET(CPU_FTR_VSX) END_FTR_SECTION_IFSET(CPU_FTR_VSX)
#endif #endif
SYNC
MTMSRD(r5) /* enable use of fpu now */ MTMSRD(r5) /* enable use of fpu now */
isync isync
/* enable use of FP after return */ /* enable use of FP after return */
......
...@@ -219,7 +219,6 @@ turn_on_mmu: ...@@ -219,7 +219,6 @@ turn_on_mmu:
lis r0,start_here@h lis r0,start_here@h
ori r0,r0,start_here@l ori r0,r0,start_here@l
mtspr SPRN_SRR0,r0 mtspr SPRN_SRR0,r0
SYNC
RFI /* enables MMU */ RFI /* enables MMU */
/* /*
...@@ -784,14 +783,12 @@ fast_hash_page_return: ...@@ -784,14 +783,12 @@ fast_hash_page_return:
mtcr r11 mtcr r11
lwz r11, THR11(r10) lwz r11, THR11(r10)
mfspr r10, SPRN_SPRG_SCRATCH0 mfspr r10, SPRN_SPRG_SCRATCH0
SYNC
RFI RFI
1: /* ISI */ 1: /* ISI */
mtcr r11 mtcr r11
mfspr r11, SPRN_SPRG_SCRATCH1 mfspr r11, SPRN_SPRG_SCRATCH1
mfspr r10, SPRN_SPRG_SCRATCH0 mfspr r10, SPRN_SPRG_SCRATCH0
SYNC
RFI RFI
stack_overflow: stack_overflow:
...@@ -882,7 +879,6 @@ __secondary_start_pmac_0: ...@@ -882,7 +879,6 @@ __secondary_start_pmac_0:
set to map the 0xf0000000 - 0xffffffff region */ set to map the 0xf0000000 - 0xffffffff region */
mfmsr r0 mfmsr r0
rlwinm r0,r0,0,28,26 /* clear DR (0x10) */ rlwinm r0,r0,0,28,26 /* clear DR (0x10) */
SYNC
mtmsr r0 mtmsr r0
isync isync
...@@ -930,7 +926,6 @@ __secondary_start: ...@@ -930,7 +926,6 @@ __secondary_start:
ori r3,r3,start_secondary@l ori r3,r3,start_secondary@l
mtspr SPRN_SRR0,r3 mtspr SPRN_SRR0,r3
mtspr SPRN_SRR1,r4 mtspr SPRN_SRR1,r4
SYNC
RFI RFI
#endif /* CONFIG_SMP */ #endif /* CONFIG_SMP */
...@@ -1074,7 +1069,6 @@ END_MMU_FTR_SECTION_IFSET(MMU_FTR_HPTE_TABLE) ...@@ -1074,7 +1069,6 @@ END_MMU_FTR_SECTION_IFSET(MMU_FTR_HPTE_TABLE)
.align 4 .align 4
mtspr SPRN_SRR0,r4 mtspr SPRN_SRR0,r4
mtspr SPRN_SRR1,r3 mtspr SPRN_SRR1,r3
SYNC
RFI RFI
/* Load up the kernel context */ /* Load up the kernel context */
2: bl load_up_mmu 2: bl load_up_mmu
...@@ -1099,7 +1093,6 @@ END_MMU_FTR_SECTION_IFSET(MMU_FTR_HPTE_TABLE) ...@@ -1099,7 +1093,6 @@ END_MMU_FTR_SECTION_IFSET(MMU_FTR_HPTE_TABLE)
ori r3,r3,start_kernel@l ori r3,r3,start_kernel@l
mtspr SPRN_SRR0,r3 mtspr SPRN_SRR0,r3
mtspr SPRN_SRR1,r4 mtspr SPRN_SRR1,r4
SYNC
RFI RFI
/* /*
...@@ -1217,7 +1210,6 @@ _ENTRY(update_bats) ...@@ -1217,7 +1210,6 @@ _ENTRY(update_bats)
.align 4 .align 4
mtspr SPRN_SRR0, r4 mtspr SPRN_SRR0, r4
mtspr SPRN_SRR1, r3 mtspr SPRN_SRR1, r3
SYNC
RFI RFI
1: bl clear_bats 1: bl clear_bats
lis r3, BATS@ha lis r3, BATS@ha
...@@ -1237,7 +1229,6 @@ END_MMU_FTR_SECTION_IFSET(MMU_FTR_USE_HIGH_BATS) ...@@ -1237,7 +1229,6 @@ END_MMU_FTR_SECTION_IFSET(MMU_FTR_USE_HIGH_BATS)
mtmsr r3 mtmsr r3
mtspr SPRN_SRR0, r7 mtspr SPRN_SRR0, r7
mtspr SPRN_SRR1, r6 mtspr SPRN_SRR1, r6
SYNC
RFI RFI
flush_tlbs: flush_tlbs:
......
...@@ -222,7 +222,6 @@ ...@@ -222,7 +222,6 @@
#endif #endif
mtspr SPRN_SRR1,r10 mtspr SPRN_SRR1,r10
mtspr SPRN_SRR0,r11 mtspr SPRN_SRR0,r11
SYNC
RFI /* jump to handler, enable MMU */ RFI /* jump to handler, enable MMU */
99: b ret_from_kernel_syscall 99: b ret_from_kernel_syscall
.endm .endm
......
...@@ -256,7 +256,6 @@ END_FTR_SECTION_IFSET(CPU_FTR_SPEC7450) ...@@ -256,7 +256,6 @@ END_FTR_SECTION_IFSET(CPU_FTR_SPEC7450)
sync sync
/* Restore MSR (restores EE and DR bits to original state) */ /* Restore MSR (restores EE and DR bits to original state) */
SYNC
mtmsr r7 mtmsr r7
isync isync
...@@ -377,7 +376,7 @@ END_FTR_SECTION_IFCLR(CPU_FTR_L3CR) ...@@ -377,7 +376,7 @@ END_FTR_SECTION_IFCLR(CPU_FTR_L3CR)
1: bdnz 1b 1: bdnz 1b
/* Restore MSR (restores EE and DR bits to original state) */ /* Restore MSR (restores EE and DR bits to original state) */
4: SYNC 4:
mtmsr r7 mtmsr r7
isync isync
blr blr
......
...@@ -199,11 +199,9 @@ _GLOBAL(add_hash_page) ...@@ -199,11 +199,9 @@ _GLOBAL(add_hash_page)
* covered by a BAT). -- paulus * covered by a BAT). -- paulus
*/ */
mfmsr r9 mfmsr r9
SYNC
rlwinm r0,r9,0,17,15 /* clear bit 16 (MSR_EE) */ rlwinm r0,r9,0,17,15 /* clear bit 16 (MSR_EE) */
rlwinm r0,r0,0,28,26 /* clear MSR_DR */ rlwinm r0,r0,0,28,26 /* clear MSR_DR */
mtmsr r0 mtmsr r0
SYNC_601
isync isync
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
...@@ -262,7 +260,6 @@ _GLOBAL(add_hash_page) ...@@ -262,7 +260,6 @@ _GLOBAL(add_hash_page)
/* reenable interrupts and DR */ /* reenable interrupts and DR */
mtmsr r9 mtmsr r9
SYNC_601
isync isync
lwz r0,4(r1) lwz r0,4(r1)
...@@ -506,11 +503,9 @@ _GLOBAL(flush_hash_pages) ...@@ -506,11 +503,9 @@ _GLOBAL(flush_hash_pages)
* covered by a BAT). -- paulus * covered by a BAT). -- paulus
*/ */
mfmsr r10 mfmsr r10
SYNC
rlwinm r0,r10,0,17,15 /* clear bit 16 (MSR_EE) */ rlwinm r0,r10,0,17,15 /* clear bit 16 (MSR_EE) */
rlwinm r0,r0,0,28,26 /* clear MSR_DR */ rlwinm r0,r0,0,28,26 /* clear MSR_DR */
mtmsr r0 mtmsr r0
SYNC_601
isync isync
/* First find a PTE in the range that has _PAGE_HASHPTE set */ /* First find a PTE in the range that has _PAGE_HASHPTE set */
...@@ -629,7 +624,6 @@ _GLOBAL(flush_hash_pages) ...@@ -629,7 +624,6 @@ _GLOBAL(flush_hash_pages)
#endif #endif
19: mtmsr r10 19: mtmsr r10
SYNC_601
isync isync
blr blr
EXPORT_SYMBOL(flush_hash_pages) EXPORT_SYMBOL(flush_hash_pages)
...@@ -643,11 +637,9 @@ _GLOBAL(_tlbie) ...@@ -643,11 +637,9 @@ _GLOBAL(_tlbie)
lwz r8,TASK_CPU(r2) lwz r8,TASK_CPU(r2)
oris r8,r8,11 oris r8,r8,11
mfmsr r10 mfmsr r10
SYNC
rlwinm r0,r10,0,17,15 /* clear bit 16 (MSR_EE) */ rlwinm r0,r10,0,17,15 /* clear bit 16 (MSR_EE) */
rlwinm r0,r0,0,28,26 /* clear DR */ rlwinm r0,r0,0,28,26 /* clear DR */
mtmsr r0 mtmsr r0
SYNC_601
isync isync
lis r9,mmu_hash_lock@h lis r9,mmu_hash_lock@h
ori r9,r9,mmu_hash_lock@l ori r9,r9,mmu_hash_lock@l
...@@ -664,7 +656,6 @@ _GLOBAL(_tlbie) ...@@ -664,7 +656,6 @@ _GLOBAL(_tlbie)
li r0,0 li r0,0
stw r0,0(r9) /* clear mmu_hash_lock */ stw r0,0(r9) /* clear mmu_hash_lock */
mtmsr r10 mtmsr r10
SYNC_601
isync isync
#else /* CONFIG_SMP */ #else /* CONFIG_SMP */
tlbie r3 tlbie r3
...@@ -681,11 +672,9 @@ _GLOBAL(_tlbia) ...@@ -681,11 +672,9 @@ _GLOBAL(_tlbia)
lwz r8,TASK_CPU(r2) lwz r8,TASK_CPU(r2)
oris r8,r8,10 oris r8,r8,10
mfmsr r10 mfmsr r10
SYNC
rlwinm r0,r10,0,17,15 /* clear bit 16 (MSR_EE) */ rlwinm r0,r10,0,17,15 /* clear bit 16 (MSR_EE) */
rlwinm r0,r0,0,28,26 /* clear DR */ rlwinm r0,r0,0,28,26 /* clear DR */
mtmsr r0 mtmsr r0
SYNC_601
isync isync
lis r9,mmu_hash_lock@h lis r9,mmu_hash_lock@h
ori r9,r9,mmu_hash_lock@l ori r9,r9,mmu_hash_lock@l
...@@ -709,7 +698,6 @@ _GLOBAL(_tlbia) ...@@ -709,7 +698,6 @@ _GLOBAL(_tlbia)
li r0,0 li r0,0
stw r0,0(r9) /* clear mmu_hash_lock */ stw r0,0(r9) /* clear mmu_hash_lock */
mtmsr r10 mtmsr r10
SYNC_601
isync isync
#endif /* CONFIG_SMP */ #endif /* CONFIG_SMP */
blr blr
......
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