HomeFreeBSD

hwpmc: initialize arm64 counter/interrupt state

Description

hwpmc: initialize arm64 counter/interrupt state

Performance counters and overflow interrupts are assumed to be disabled
by default, but this is not guaranteed. Ensure we disable both during
per-cpu initialization, before enabling the PMU. Otherwise, some systems
(such as the Ampere eMAG) would experience an interrupt storm upon
loading the hwpmc module.

Reviewed by: br
MFC after: 5 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D32854

(cherry picked from commit b826cc3caf6abc6a5d1926bd478b464938d45697)

Details

Provenance
mhorneAuthored on Nov 8 2021, 7:33 PM
Reviewer
br
Differential Revision
D32854: hwpmc: initialize arm64 counter/interrupt state
Parents
rG741e50928a23: pf tests: test NAT-ed ICMP errors
Branches
Unknown
Tags
Unknown