Re: [PATCH v3 3/3] media: qcom: iris: Skip register access in IRQ handler after power-off

From: Vikash Garodia

Date: Fri Nov 27 2026 - 09:00:09 EST



On 11/20/2026 1:12 PM, Vishnu Reddy wrote:
The threaded IRQ handler reads and clears the interrupt registers
under core->lock. Power-off disables the IRQ without waiting for a
queued handler. If the handler is woken and queued around the same
time power-off is entered, it runs after the VPU is powered down and
accesses the registers of powered-off hardware.

disable_irq() cannot be used to wait for the handler. The caller of
power-off holds core->lock and blocks in disable_irq() waiting for the
handler, while the handler blocks waiting for core->lock.

Track the power state in core->powered, which power-on and power-off
change under core->lock. The handler checks it after taking the lock
and returns without touching the hardware when the VPU is off.

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 | 6 ++++++
drivers/media/platform/qcom/iris/iris_vpu_common.c | 2 ++
3 files changed, 10 insertions(+)

Reviewed-by: Vikash Garodia <vikash.garodia@xxxxxxxxxxxxxxxx>