Re: [PATCH] perf/arm-cmn: Fail DTC counter allocation correctly

From: Catalin Marinas
Date: Tue Dec 12 2023 - 12:23:02 EST


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