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
F81902510: D36925.id111625.diff
Sat, Nov 30, 2:07 PM
Unknown Object (File)
Sat, Nov 30, 4:20 AM
Unknown Object (File)
Fri, Nov 15, 4:10 PM
Unknown Object (File)
Tue, Nov 12, 7:54 AM
Unknown Object (File)
Sat, Nov 9, 5:35 AM
Unknown Object (File)
Sat, Nov 9, 5:25 AM
Unknown Object (File)
Fri, Nov 8, 6:30 AM
Unknown Object (File)
Fri, Nov 8, 4:06 AM
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