]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
soc: qcom: aoss: remove spurious IRQF_ONESHOT flags
authorDaniel Thompson <daniel.thompson@linaro.org>
Thu, 27 Jan 2022 17:35:54 +0000 (17:35 +0000)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 12:38:16 +0000 (14:38 +0200)
commitb5031339d0a3f1004dccd27fb295e11c6b30c44d
tree8315d968655cb207881c12a3ab921aa7550c176b
parent4e1ed1f7fcc3486fb9d8693f0bb34246b0c5adec
soc: qcom: aoss: remove spurious IRQF_ONESHOT flags

BugLink: https://bugs.launchpad.net/bugs/1969110
[ Upstream commit 8030cb9a55688c1339edd284d9d6ce5f9fc75160 ]

Quoting the header comments, IRQF_ONESHOT is "Used by threaded interrupts
which need to keep the irq line disabled until the threaded handler has
been run.". When applied to an interrupt that doesn't request a threaded
irq then IRQF_ONESHOT has a lesser known (undocumented?) side effect,
which it to disable the forced threading of the irq. For "normal" kernels
(without forced threading) then, if there is no thread_fn, then
IRQF_ONESHOT is a nop.

In this case disabling forced threading is not appropriate for this driver
because it calls wake_up_all() and this API cannot be called from
no-thread interrupt handlers on PREEMPT_RT systems (deadlock risk, triggers
sleeping-while-atomic warnings).

Fix this by removing IRQF_ONESHOT.

Fixes: 2209481409b7 ("soc: qcom: Add AOSS QMP driver")
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
[bjorn: Added Fixes tag]
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220127173554.158111-1-daniel.thompson@linaro.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 15565049d729fa87247c5b803746efa3a1d58345)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/soc/qcom/qcom_aoss.c