[PATCH] perf/arm-cmn: Fail DTC counter allocation correctly
Catalin Marinas
catalin.marinas at arm.com
Tue Dec 12 09:22:54 PST 2023
On Mon, 11 Dec 2023 19:27:28 +0000, Robin Murphy wrote:
> Calling arm_cmn_event_clear() before all DTC indices are allocated is
> wrong, and can lead to arm_cmn_event_add() erroneously clearing live
> counters from full DTCs where allocation fails. Since the DTC counters
> are only updated by arm_cmn_init_counter() after all DTC and DTM
> allocations succeed, nothing actually needs cleaning up in this case
> anyway, and it should just return directly as it did before.
>
> [...]
Applied to arm64 (for-next/fixes), thanks!
[1/1] perf/arm-cmn: Fail DTC counter allocation correctly
https://git.kernel.org/arm64/c/1892fe103c3a
--
Catalin
More information about the linux-arm-kernel
mailing list