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)
Dec 26 2023, 3:23 PM
Unknown Object (File)
Dec 20 2023, 8:20 AM
Unknown Object (File)
Dec 12 2023, 5:15 AM
Unknown Object (File)
Nov 26 2023, 10:32 AM
Unknown Object (File)
Nov 9 2023, 4:32 PM
Unknown Object (File)
Nov 5 2023, 10:46 PM
Unknown Object (File)
Oct 8 2023, 3:28 PM
Unknown Object (File)
Oct 4 2023, 9:43 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 Not Applicable
Unit
Tests Not Applicable