drm/xe/memirq: Enable GT_MI_USER_INTERRUPT only

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
This commit is contained in:
Michal Wajdeczko
2026-05-11 19:28:38 +02:00
parent 284f4cae45
commit 2ddedd4b7b

View File

@@ -212,7 +212,11 @@ static int memirq_alloc_pages(struct xe_memirq *memirq)
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;
}