Skip to content

add entries for ARM Cortex-A720 + A750 CPUs - #4091

Merged
rocallahan merged 3 commits into
rr-debugger:masterfrom
pH14:msr1-cix-p1-pmu
Aug 11, 2026
Merged

add entries for ARM Cortex-A720 + A750 CPUs#4091
rocallahan merged 3 commits into
rr-debugger:masterfrom
pH14:msr1-cix-p1-pmu

Conversation

@pH14

@pH14 pH14 commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

This PR adds support for Cortex-A720 cores, marks the Cortex-A520 as unsupported, and possibly fixes the regression noted in #4072


I tested out rr on an MS-R1 box which has a CIX P1 chip, which has both Cortex-A720 and Cortex-A520 cores. The Cortex-A720 PMU passed all tests, and the Cortex-A520 PMU intermittently overcounted branches so it's marked unsupported.

While doing the validation, I found two additional places that needed small tweaks:

  1. Preserving named PMU event types -- this change in PerfCounters.cc I think fixes the regression noted in rr should open all PMUs #4072 where AArch64 systems with heterogeneous cores could result in seeing no branch events

  2. Update automatic CPU selection -- the existing logic could result in a A520 core being selected. I've updated the selection code to first filter for only supported CPUs (and then filter to P cores if available as before).


I've read the contributor guidelines, but admittedly this is my first commit here. Happy to make any changes necessary, and thanks for the great project 🙇

pH14 added 3 commits August 10, 2026 06:59
Per-CPU raw event types were introduced for x86 hybrid CPUs, but the unconditional assignment also replaced the sentinel used by named AArch64 PMUs. Only substitute configurations that actually use PERF_TYPE_RAW so architecture-specific post-processing can resolve named PMUs.

Fixes rr-debugger#4072.
Separate PMU eligibility from the existing P-core preference. Automatic 'any' selection now considers every supported CPU, while default selection additionally prefers P-cores. Explicit numeric CPU binding remains unchanged.
Recognize Cortex-A520 and Cortex-A720 MIDRs. Enable deterministic BR_RETIRED and STREX_SPEC counting on A720 with a measured skid of 1000. Keep A520 unsupported because its retired-branch counter intermittently overcounts.
@rocallahan

Copy link
Copy Markdown
Collaborator

Looks great, thanks!!

@rocallahan
rocallahan merged commit 572d62f into rr-debugger:master Aug 11, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants