We only expect and handle the GT_MI_USER_INTERRUPT from the
engines, there is no point in enabling other interrupts, like
GT_CONTEXT_SWITCH_INTERRUPT, if we don't intent to handle them.
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: MichaĆ Winiarski <michal.winiarski@intel.com>
Link: https://patch.msgid.link/20260511172838.2299-3-michal.wajdeczko@intel.com
static void memirq_set_enable(struct xe_memirq *memirq, bool enable)
{
- iosys_map_wr(&memirq->mask, 0, u32, enable ? GENMASK(15, 0) : 0);
+ /*
+ * We only care about the GT_MI_USER_INTERRUPT from the engines and
+ * the GuC does not look at the ENABLE mask at all.
+ */
+ iosys_map_wr(&memirq->mask, 0, u32, enable ? GT_MI_USER_INTERRUPT : 0);
memirq->enabled = enable;
}