diff options
| author | Beata Michalska <beata.michalska@arm.com> | 2026-10-01 11:00:32 +0200 |
|---|---|---|
| committer | Will Deacon <will@kernel.org> | 2026-10-01 12:22:40 +0000 |
| commit | 45f7304679875eb000d67e194090ee7abd05c89c (patch) | |
| tree | 201366055eeffdb0369e9eaf624419961392488e /scripts/checkpatch.pl | |
| parent | 573371caf7aea8582212da81dcead2c3f48fac4b (diff) | |
| download | linux-stable-45f7304679875eb000d67e194090ee7abd05c89c.tar.gz linux-stable-45f7304679875eb000d67e194090ee7abd05c89c.zip | |
arm64: errata: Add Cortex-A725 erratum 3821522 workaround
Cortex-A725 erratum 3821522 affects the CNT_CYCLES event, which can
incur a significant increment error when a CPU enters and subsequently
exits WFE or WFI, and may no longer track the system counter
frequency.
The AMEVCNTR01_EL0 counter is used as the AMU constant counter for
frequency invariance and CPPC FFH feedback counters. Wire the affected
Cortex-A725 range into the shared broken AMU constant-counter capability
so the affected counter is treated as unavailable by returning zero in
the AMU counter paths. This prevents the broken counter from being used
as a reference source.
The erratum can also affect PMUv3 users of the CNT_CYCLES event,
but this workaround intentionally does not change PMU event handling.
Hiding or rejecting the PMU event from the erratum code would change
the perf-visible PMU event interface, including raw event selection,
and would need a separate PMU-specific approach rather than being
folded into the AMU reference-counter workaround.
Cc: stable@vger.kernel.org
Signed-off-by: Beata Michalska <beata.michalska@arm.com>
Reviewed-by: Vladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'scripts/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions
