]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
cpufreq: qcom-hw: Fix probable nested interrupt handling
authorVladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Thu, 11 Nov 2021 15:48:07 +0000 (17:48 +0200)
committerPaolo Pisati <paolo.pisati@canonical.com>
Fri, 28 Jan 2022 09:59:17 +0000 (10:59 +0100)
commit6461a95648b3044c58cf85671d16dadc070efe6b
tree3d43184ec3a736485ca55bafa0fa209987a416fd
parent3e204301c13d5aaa26be22402ba81d9ac04b9a73
cpufreq: qcom-hw: Fix probable nested interrupt handling

BugLink: https://bugs.launchpad.net/bugs/1959376
[ Upstream commit e0e27c3d4e20dab861566f1c348ae44e4b498630 ]

Re-enabling an interrupt from its own interrupt handler may cause
an interrupt storm, if there is a pending interrupt and because its
handling is disabled due to already done entrance into the handler
above in the stack.

Also, apparently it is improper to lock a mutex in an interrupt contex.

Fixes: 275157b367f4 ("cpufreq: qcom-cpufreq-hw: Add dcvs interrupt support")
Signed-off-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/cpufreq/qcom-cpufreq-hw.c