diff options
| author | Siarhei Siamashka <[email protected]> | 2017-03-06 03:16:53 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2017-03-14 20:40:17 -0400 |
| commit | 19a75b8cf8d17fffa9493bf3f3e380d76eccd8dd (patch) | |
| tree | 6a23baf8e4cf02ff764ce0d2d1adf76fe642386c /arch/arm/cpu | |
| parent | 7584f2e0fb0f3c1686ab066c43c3279d8c326978 (diff) | |
arm: omap3: Bring back ARM errata workaround 725233
The workaround for ARM errata 725233 had been lost since
commit 45bf05854bc94e (armv7: adapt omap3 to the new cache
maintenance framework). Bring it back in order to avoid
very difficult to reproduce, but actually encountered in
the wild CPU deadlocks when running software rendered
X11 desktop on OMAP3530 hardware.
Signed-off-by: Siarhei Siamashka <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
[trini: Migrate to Kconfig]
Signed-off-by: Tom Rini <[email protected]>
Diffstat (limited to 'arch/arm/cpu')
| -rw-r--r-- | arch/arm/cpu/armv7/start.S | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/start.S b/arch/arm/cpu/armv7/start.S index 7eee54ba700..1a6aee94424 100644 --- a/arch/arm/cpu/armv7/start.S +++ b/arch/arm/cpu/armv7/start.S @@ -270,6 +270,19 @@ skip_errata_430973: skip_errata_621766: #endif +#ifdef CONFIG_ARM_ERRATA_725233 + cmp r2, #0x21 @ Only on < r2p1 (Cortex A8) + bge skip_errata_725233 + + mrc p15, 1, r0, c9, c0, 2 @ Read L2ACR + orr r0, r0, #(0x1 << 27) @ L2 PLD data forwarding disable + push {r1-r5} @ Save the cpu info registers + bl v7_arch_cp15_set_l2aux_ctrl + pop {r1-r5} @ Restore the cpu info - fall through + +skip_errata_725233: +#endif + mov pc, r5 @ back to my caller ENDPROC(cpu_init_cp15) |
