aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/lima/lima_sched.h
diff options
context:
space:
mode:
authorErico Nunes <[email protected]>2024-04-05 15:29:49 +0000
committerQiang Yu <[email protected]>2024-04-15 01:05:38 +0000
commit49c13b4d2dd4a831225746e758893673f6ae961c (patch)
tree0224fab4f5fcdd8749e917de8c680937db25ea19 /drivers/gpu/drm/lima/lima_sched.h
parentaccel/qaic: mark debugfs stub functions as static inline (diff)
downloadkernel-49c13b4d2dd4a831225746e758893673f6ae961c.tar.gz
kernel-49c13b4d2dd4a831225746e758893673f6ae961c.zip
drm/lima: add mask irq callback to gp and pp
This is needed because we want to reset those devices in device-agnostic code such as lima_sched. In particular, masking irqs will be useful before a hard reset to prevent race conditions. Signed-off-by: Erico Nunes <[email protected]> Signed-off-by: Qiang Yu <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/lima/lima_sched.h')
-rw-r--r--drivers/gpu/drm/lima/lima_sched.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/lima/lima_sched.h b/drivers/gpu/drm/lima/lima_sched.h
index 6bd4f3b70109..85b23ba901d5 100644
--- a/drivers/gpu/drm/lima/lima_sched.h
+++ b/drivers/gpu/drm/lima/lima_sched.h
@@ -80,6 +80,7 @@ struct lima_sched_pipe {
void (*task_error)(struct lima_sched_pipe *pipe);
void (*task_mmu_error)(struct lima_sched_pipe *pipe);
int (*task_recover)(struct lima_sched_pipe *pipe);
+ void (*task_mask_irq)(struct lima_sched_pipe *pipe);
struct work_struct recover_work;
};