[PATCH v5 1/2] perf/imx_ddr: speed up overflow frequency of cycle

Will Deacon will at kernel.org
Wed Aug 16 11:25:28 PDT 2023


On Fri, 11 Aug 2023 09:54:37 +0800, Xu Yang wrote:
> For i.MX8MP, we cannot ensure that cycle counter overflow occurs at least
> 4 times as often as other events. Due to byte counters will count for any
> event configured, it will overflow more often. And if byte counters
> overflow that related counters would stop since they share the
> COUNTER_CNTL. We can speed up cycle counter overflow frequency by setting
> counter parameter (CP) field of cycle counter. In this way, we can avoid
> stop counting byte counters when interrupt didn't come and the byte
> counters can be fetched or updated from each cycle counter overflow
> interrupt.
> 
> [...]

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

[1/2] perf/imx_ddr: speed up overflow frequency of cycle
      https://git.kernel.org/will/c/e89ecd836886
[2/2] perf/imx_ddr: don't enable counter0 if none of 4 counters are used
      https://git.kernel.org/will/c/f4e2bd91ddf5

Cheers,
-- 
Will

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



More information about the linux-arm-kernel mailing list