powerpc: Remove IBM405 Erratum #77
This erratum is dedicated to IBM 405GP and STB03xxx which are now gone. Remove this erratum. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/44dbc08e9034681eb28324cbabc086e97044c36c.1590079969.git.christophe.leroy@csgroup.eu
This commit is contained in:

committed by
Michael Ellerman

parent
59fb463b48
commit
455531e9d8
@@ -28,7 +28,6 @@
|
||||
#include <asm/unistd.h>
|
||||
#include <asm/ptrace.h>
|
||||
#include <asm/export.h>
|
||||
#include <asm/asm-405.h>
|
||||
#include <asm/feature-fixups.h>
|
||||
#include <asm/barrier.h>
|
||||
#include <asm/kup.h>
|
||||
@@ -541,9 +540,6 @@ syscall_exit_work:
|
||||
addi r12,r2,TI_FLAGS
|
||||
3: lwarx r8,0,r12
|
||||
andc r8,r8,r11
|
||||
#ifdef CONFIG_IBM405_ERR77
|
||||
dcbt 0,r12
|
||||
#endif
|
||||
stwcx. r8,0,r12
|
||||
bne- 3b
|
||||
|
||||
@@ -918,9 +914,6 @@ resume_kernel:
|
||||
addi r5,r2,TI_FLAGS
|
||||
0: lwarx r8,0,r5
|
||||
andc r8,r8,r11
|
||||
#ifdef CONFIG_IBM405_ERR77
|
||||
dcbt 0,r5
|
||||
#endif
|
||||
stwcx. r8,0,r5
|
||||
bne- 0b
|
||||
1:
|
||||
@@ -997,7 +990,6 @@ END_MMU_FTR_SECTION_IFSET(MMU_FTR_TYPE_47x)
|
||||
mtspr SPRN_XER,r10
|
||||
mtctr r11
|
||||
|
||||
PPC405_ERR77(0,r1)
|
||||
BEGIN_FTR_SECTION
|
||||
lwarx r11,0,r1
|
||||
END_FTR_SECTION_IFSET(CPU_FTR_NEED_PAIRED_STWCX)
|
||||
@@ -1066,7 +1058,6 @@ exc_exit_start:
|
||||
lwz r1,GPR1(r1)
|
||||
.globl exc_exit_restart_end
|
||||
exc_exit_restart_end:
|
||||
PPC405_ERR77_SYNC
|
||||
rfi
|
||||
b . /* prevent prefetch past rfi */
|
||||
|
||||
@@ -1109,7 +1100,6 @@ exc_exit_restart_end:
|
||||
lwz r11,_CTR(r1); \
|
||||
mtspr SPRN_XER,r10; \
|
||||
mtctr r11; \
|
||||
PPC405_ERR77(0,r1); \
|
||||
stwcx. r0,0,r1; /* to clear the reservation */ \
|
||||
lwz r11,_LINK(r1); \
|
||||
mtlr r11; \
|
||||
@@ -1129,7 +1119,6 @@ exc_exit_restart_end:
|
||||
lwz r10,GPR10(r1); \
|
||||
lwz r11,GPR11(r1); \
|
||||
lwz r1,GPR1(r1); \
|
||||
PPC405_ERR77_SYNC; \
|
||||
exc_lvl_rfi; \
|
||||
b .; /* prevent prefetch past exc_lvl_rfi */
|
||||
|
||||
|
@@ -36,7 +36,6 @@
|
||||
#include <asm/asm-offsets.h>
|
||||
#include <asm/ptrace.h>
|
||||
#include <asm/export.h>
|
||||
#include <asm/asm-405.h>
|
||||
|
||||
#include "head_32.h"
|
||||
|
||||
@@ -487,7 +486,6 @@ _ENTRY(saved_ksp_limit)
|
||||
lwz r12,GPR12(r11)
|
||||
lwz r10,crit_r10@l(0)
|
||||
lwz r11,crit_r11@l(0)
|
||||
PPC405_ERR77_SYNC
|
||||
rfci
|
||||
b .
|
||||
|
||||
@@ -569,7 +567,6 @@ finish_tlb_load:
|
||||
mfspr r12, SPRN_SPRG_SCRATCH3
|
||||
mfspr r11, SPRN_SPRG_SCRATCH1
|
||||
mfspr r10, SPRN_SPRG_SCRATCH0
|
||||
PPC405_ERR77_SYNC
|
||||
rfi /* Should sync shadow TLBs */
|
||||
b . /* prevent prefetch past rfi */
|
||||
|
||||
|
Reference in New Issue
Block a user