Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/xe/ct: drop irq usage of xa_erase()

Unclear why disabling interrupts is needed here. Nothing seems to be
touching fence_lookup and its corresponding lock from an irq so there
should be no risk of deadlock.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: Badal Nilawar <badal.nilawar@intel.com>
Reviewed-by: Badal Nilawar <badal.nilawar@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241001084346.98516-8-matthew.auld@intel.com

+2 -2
+2 -2
drivers/gpu/drm/xe/xe_guc_ct.c
··· 890 890 goto retry_same_fence; 891 891 892 892 if (!g2h_fence_needs_alloc(&g2h_fence)) 893 - xa_erase_irq(&ct->fence_lookup, g2h_fence.seqno); 893 + xa_erase(&ct->fence_lookup, g2h_fence.seqno); 894 894 895 895 return ret; 896 896 } ··· 907 907 if (!ret) { 908 908 xe_gt_err(gt, "Timed out wait for G2H, fence %u, action %04x, done %s", 909 909 g2h_fence.seqno, action[0], str_yes_no(g2h_fence.done)); 910 - xa_erase_irq(&ct->fence_lookup, g2h_fence.seqno); 910 + xa_erase(&ct->fence_lookup, g2h_fence.seqno); 911 911 mutex_unlock(&ct->lock); 912 912 return -ETIME; 913 913 }