Re: [PATCH v3 2/3] media: qcom: iris: Fix IRQ disable depth imbalance on watchdog interrupt
From: Vikash Garodia
Date: Fri Nov 27 2026 - 08:59:04 EST
On 11/20/2026 1:12 PM, Vishnu Reddy wrote:
The hard IRQ handler disables the IRQ for every interrupt, and the
threaded handler re-enables it for non-watchdog interrupts. This
duplicates the masking and unmasking provided by IRQF_ONESHOT.
If power-off runs after the hard handler disables the IRQ but before
the threaded handler updates core->intr_status, and the stale status
indicates a non-watchdog interrupt, power-off disables the IRQ again.
The watchdog handler does not re-enable the IRQ, so the two disables
are not balanced by the single enable in power-on.
Request the IRQ with IRQF_ONESHOT and remove the hard IRQ handler.
Explicitly disable the IRQ in the threaded handler for watchdog
interrupts to prevent repeated triggering. Power-off always disables
the IRQ once, and power-on balances that disable and any additional
watchdog disable.
Fixes: bb8a95aa038e ("media: iris: implement power management")
Cc:stable@xxxxxxxxxxxxxxx
Signed-off-by: Vishnu Reddy<busanna.reddy@xxxxxxxxxxxxxxxx>
---
drivers/media/platform/qcom/iris/iris_core.h | 2 ++
drivers/media/platform/qcom/iris/iris_hfi_common.c | 14 ++++----------
drivers/media/platform/qcom/iris/iris_hfi_common.h | 1 -
drivers/media/platform/qcom/iris/iris_probe.c | 5 +++--
drivers/media/platform/qcom/iris/iris_vpu_common.c | 7 +++++--
5 files changed, 14 insertions(+), 15 deletions(-)
Reviewed-by: Vikash Garodia <vikash.garodia@xxxxxxxxxxxxxxxx>