diff options
author | Marc Zyngier <maz@kernel.org> | 2022-02-24 10:12:25 +0000 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2022-03-01 10:06:25 +0000 |
commit | a6aca2f460e203781dc41391913cc5b54f4bc0ce (patch) | |
tree | b7e3d153e1e7feafbbf01506f0439cb1e8556354 /tools/perf/scripts/python/stackcollapse.py | |
parent | d494d088ac44b9cf561362a7856fa20b656be64f (diff) |
irqchip/qcom-pdc: Fix broken locking
pdc_enable_intr() serves as a primitive to qcom_pdc_gic_{en,dis}able,
and has a raw spinlock for mutual exclusion, which is uses with
interruptible primitives.
This means that this critical section can itself be interrupted.
Should the interrupt also be a PDC interrupt, and the endpoint driver
perform an irq_disable() on that interrupt, we end-up in a deadlock.
Fix this by using the irqsave/irqrestore variants of the locking
primitives.
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Maulik Shah <quic_mkshah@quicinc.com>
Link: https://lore.kernel.org/r/20220224101226.88373-5-maz@kernel.org
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions