commit | aea4ccf8d9f3eabbc931f0e82df65ffca28c25e5 | [log] [tgz] |
---|---|---|
author | Harrison Mutai <harrison.mutai@arm.com> | Fri Dec 09 12:14:25 2022 +0000 |
committer | Harrison Mutai <harrison.mutai@arm.com> | Wed Jan 25 09:40:33 2023 +0000 |
tree | 8d59c00437acf25634525f592460b102f8c973ec | |
parent | 695a48b5b4366d1005f8b9a0fc83726914668fb5 [diff] [blame] |
fix(cpus): workaround for Cortex-A510 erratum 2684597 Cortex-A510 erratum 2684597 is a Cat B erratum that applies to revisions r0p0, r0p1, r0p2, r0p3, r1p0, r1p1 and r1p2. It is fixed in r1p3. The workaround is to execute a TSB CSYNC and DSB before executing WFI for power down. SDEN can be found here: https://developer.arm.com/documentation/SDEN1873361/latest https://developer.arm.com/documentation/SDEN1873351/latest Change-Id: Ic0b24b600bc013eb59c797401fbdc9bda8058d6d Signed-off-by: Harrison Mutai <harrison.mutai@arm.com>
diff --git a/lib/psci/aarch64/psci_helpers.S b/lib/psci/aarch64/psci_helpers.S index 0bb1988..61f31e5 100644 --- a/lib/psci/aarch64/psci_helpers.S +++ b/lib/psci/aarch64/psci_helpers.S
@@ -124,6 +124,9 @@ * ----------------------------------------------------------------------- */ func psci_power_down_wfi +#if ERRATA_A510_2684597 + bl apply_cpu_pwr_dwn_errata +#endif dsb sy // ensure write buffer empty 1: wfi