[PATCH v2] perf/arm-cmn: Fix DTC reset

Will Deacon will at kernel.org
Mon Jun 5 09:35:08 PDT 2023


On Wed, 24 May 2023 17:44:32 +0100, Robin Murphy wrote:
> It turns out that my naive DTC reset logic fails to work as intended,
> since, after checking with the hardware designers, the PMU actually
> needs to be fully enabled in order to correctly clear any pending
> overflows. Therefore, invert the sequence to start with turning on both
> enables so that we can reliably get the DTCs into a known state, then
> moving to our normal counters-stopped state from there. Since all the
> DTM counters have already been unpaired during the initial discovery
> pass, we just need to additionally reset the cycle counters to ensure
> that no other unexpected overflows occur during this period.
> 
> [...]

Applied to will (for-next/perf), thanks!

[1/1] perf/arm-cmn: Fix DTC reset
      https://git.kernel.org/will/c/71746c995cac

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev



More information about the linux-arm-kernel mailing list