Page MenuHomeFreeBSD

hwpmc: Move DMC-620 and CMN-600 events to allow for full Armv8.0 space
ClosedPublic

Authored by jrtc27 on Oct 10 2022, 3:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 10, 5:12 PM
Unknown Object (File)
Sep 21 2024, 12:10 PM
Unknown Object (File)
Sep 21 2024, 12:10 PM
Unknown Object (File)
Sep 21 2024, 12:09 PM
Unknown Object (File)
Sep 21 2024, 12:00 PM
Unknown Object (File)
Sep 19 2024, 12:39 AM
Unknown Object (File)
Aug 28 2024, 4:22 PM
Unknown Object (File)
Aug 28 2024, 4:22 PM
Subscribers

Details

Summary

The documented encoding space for Armv8 was only 8 bits, but v8.0 has
always had a 10-bit encoding space for its events, and downstream in
CheriBSD we relied on this full space. This worked until the DMC-620 and
CMN-600 events were added, trampling on what should have been reserved
for Armv8.0 right from the start. Thus, renumber the DMC-620 and CMN-600
events to not do this before they make it into a stable release,
allowing for the full Armv8.0 encoding space to be used without having
to split it across two different regions.

Note that Armv8.1 grows the encoding space to 16 bits, which doesn't fit
well with our current approach. No attempt is made to allow for these
events in this change, only the ones that have always been valid (according to
the hardware) from the first commit of Armv8 support to hwpmc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 47764
Build 44651: arc lint + arc unit