Skip to content
Snippets Groups Projects
Commit 1e0d51a6 authored by York Sun's avatar York Sun
Browse files

powerpc: mpc85xx: Implement CPU erratum A-007907 for secondary cores


Commit 06ad970b ("powerpc: mpc85xx: Implemente workaround for CPU
erratum A-007907") clears L1CSR2 for the boot core, but other cores
don't run through the workaround. Add similar code for secondary
cores to clear DCSTASHID field in L1CSR2 register.

Signed-off-by: default avatarYork Sun <york.sun@nxp.com>
parent ce0dea88
No related branches found
No related tags found
No related merge requests found
...@@ -184,12 +184,18 @@ __secondary_start_page: ...@@ -184,12 +184,18 @@ __secondary_start_page:
mtspr SPRN_PIR,r4 /* write to PIR register */ mtspr SPRN_PIR,r4 /* write to PIR register */
#ifdef CONFIG_SYS_FSL_ERRATUM_A007907
mfspr r8, L1CSR2
clrrwi r8, r8, 10 /* clear bit [54-63] DCSTASHID */
mtspr L1CSR2, r8
#else
#ifdef CONFIG_SYS_CACHE_STASHING #ifdef CONFIG_SYS_CACHE_STASHING
/* set stash id to (coreID) * 2 + 32 + L1 CT (0) */ /* set stash id to (coreID) * 2 + 32 + L1 CT (0) */
slwi r8,r4,1 slwi r8,r4,1
addi r8,r8,32 addi r8,r8,32
mtspr L1CSR2,r8 mtspr L1CSR2,r8
#endif #endif
#endif /* CONFIG_SYS_FSL_ERRATUM_A007907 */
#if defined(CONFIG_SYS_P4080_ERRATUM_CPU22) || \ #if defined(CONFIG_SYS_P4080_ERRATUM_CPU22) || \
defined(CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011) defined(CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment