mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 08:02:27 +02:00
accel/ivpu: Update last_busy in IRQ handler
Call pm_runtime_mark_last_busy() in top half of IRQ handler to prevent device from being runtime suspended before bottom half is executed on a workqueue. Reviewed-by: Karol Wachowski <karol.wachowski@intel.com> Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com> Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250129125636.1047413-3-jacek.lawrynowicz@linux.intel.com
This commit is contained in:
parent
3477696345
commit
b8c00323ae
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
#include <linux/dmi.h>
|
||||
#include <linux/fault-inject.h>
|
||||
#include <linux/pm_runtime.h>
|
||||
|
||||
#ifdef CONFIG_FAULT_INJECTION
|
||||
DECLARE_FAULT_ATTR(ivpu_hw_failure);
|
||||
|
|
@ -331,7 +332,9 @@ irqreturn_t ivpu_hw_irq_handler(int irq, void *ptr)
|
|||
/* Re-enable global interrupts to re-trigger MSI for pending interrupts */
|
||||
ivpu_hw_btrs_global_int_enable(vdev);
|
||||
|
||||
if (ip_handled || btrs_handled)
|
||||
return IRQ_HANDLED;
|
||||
return IRQ_NONE;
|
||||
if (!ip_handled && !btrs_handled)
|
||||
return IRQ_NONE;
|
||||
|
||||
pm_runtime_mark_last_busy(vdev->drm.dev);
|
||||
return IRQ_HANDLED;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user