Re: [PATCH v4 0/8] coresight: Fix device registration and unregistration

From: Leo Yan

Date: Tue Feb 24 2026 - 06:09:36 EST


On Mon, Feb 23, 2026 at 01:28:03PM +0000, Suzuki K Poulose wrote:

[...]

> [ 827.216924] Possible unsafe locking scenario:
> [ 827.216924]
> [ 827.222849] CPU0 CPU1
> [ 827.227380] ---- ----
> [ 827.231912] lock(coresight_mutex);
> [ 827.235491] lock(ect_mutex);
> [ 827.241073] lock(coresight_mutex);
> [ 827.247176] lock(ect_mutex);
> [ 827.250233]
> [ 827.250233] *** DEADLOCK ***

Thanks for the test, Suzuki.

I have sent a refactor patch to dismiss locking chain:
https://lore.kernel.org/linux-arm-kernel/20260224-arm_coresight_refactor_cti_resource_release-v1-1-ff1b2bca9176@xxxxxxx/T/#u

For recording, I enabled the following configs to reproduce the lockdep
report:

CONFIG_LOCKUP_DETECTOR
CONFIG_PROVE_LOCKING

Thanks,
Leo