Re: [PATCH V3] coresight: trbe: Fix TRBE potential sleep in atomic context

From: Suzuki K Poulose
Date: Fri Aug 18 2023 - 12:31:13 EST


On Fri, 18 Aug 2023 16:40:52 +0800, Junhao He wrote:
> smp_call_function_single() will allocate an IPI interrupt vector to
> the target processor and send a function call request to the interrupt
> vector. After the target processor receives the IPI interrupt, it will
> execute arm_trbe_remove_coresight_cpu() call request in the interrupt
> handler.
>
> According to the device_unregister() stack information, if other process
> is useing the device, the down_write() may sleep, and trigger deadlocks
> or unexpected errors.
>
> [...]

Applied, thanks!

[1/1] coresight: trbe: Fix TRBE potential sleep in atomic context
https://git.kernel.org/coresight/c/c0a232f1e19e3

Best regards,
--
Suzuki K Poulose <suzuki.poulose@xxxxxxx>