Skip to contentSkip to conversation

Patch "drm/xe: Enforce correct user fence signaling order using" has been added to the 6.18-stable tree

DISCUSSION Thomas Hellström 1 participant 1 message Dec 17, 2025 1 message not in the archive Stable branch

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hi,

Quoted 8 lines · Sasha Levin

This is a note to let you know that I've just added the patch titled

    drm/xe: Enforce correct user fence signaling order using

to the 6.18-stable tree which can be found at:

http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

Quoted 9 lines

The filename of the patch is:
     drm-xe-enforce-correct-user-fence-signaling-order-us.patch and it can be found in the queue-6.18 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.

(Already replied to a similar email from GregKH) Please skip this patch. The patch looks already applied and appears to be the result of an incorrect merge resolution.

Thanks,
Thomas

Quoted 46 lines

commit e0d6df858765e6228a87c8559ccbe6826a1a6fef
Author: Matthew Brost <[email protected]>
Date:   Fri Oct 31 16:40:45 2025 -0700

    drm/xe: Enforce correct user fence signaling order using
    [ Upstream commit adda4e855ab6409a3edaa585293f1f2069ab7299 ]
    Prevent application hangs caused by out-of-order fence signaling when
    user fences are attached. Use drm_syncobj (via dma-fence-chain) to
    guarantee that each user fence signals in order, regardless of the
    signaling order of the attached fences. Ensure user fence writebacks to
    user space occur in the correct sequence.

    v7:
     - Skip drm_syncbj create of error (CI)

Fixes dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for

Intel GPUs")

    Link:
https://patch.msgid.link/[email protected]

drivers/gpu/drm/xe/xe_exec_queue.c +0 -0
index cb5f204c08ed6..a6efe4e8ab556 100644
@@ -344,6 +344,9 @@ void xe_exec_queue_destroy(struct kref *ref)

  struct xe_exec_queue *q = container_of(ref, struct xe_exec_queue, refcount);
  struct xe_exec_queue *eq, *next;

drivers/gpu/drm/xe/xe_exec_queue.c +3 -0
+	if (q->ufence_syncobj)
+		drm_syncobj_put(q->ufence_syncobj);
+

  if (q->ufence_syncobj) drm_syncobj_put(q->ufence_syncobj);