]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/xe/memirq: Enable GT_MI_USER_INTERRUPT only
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Mon, 11 May 2026 17:28:38 +0000 (19:28 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 13 May 2026 18:11:21 +0000 (20:11 +0200)
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
drivers/gpu/drm/xe/xe_memirq.c

index 579af47edc61f1020cbdb7fd9fd2cf204328e3e5..3848ff81c1f9ebda3d7f31f6f6d49cbc7e3144a3 100644 (file)
@@ -212,7 +212,11 @@ out:
 
 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;
 }