mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-22 03:27:30 -04:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user