All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] FD close cleanup for XE
@ 2026-10-15  5:01 Daniel Charles
  2026-10-15  5:01 ` [PATCH v3 1/3] drm/xe: Read scheduler message opcode under lock Daniel Charles
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Daniel Charles @ 2026-10-15  5:01 UTC (permalink / raw)
  To: intel-xe; +Cc: x.wang, jia.yao, jonathan.cavitt, matthew.brost, Daniel Charles

This series adds the suggested logic to synchronously wait for the queue
kill to complete on FD close. This is needed to avoid a race condition
where the scheduler may still be processing messages for a queue that
has been closed, which can lead to errors.

v3:
    - Patch 3 only, fix GT reset seen in CI (xe_create@create-contexts).
      See the patch 3 changelog for details.

v2:
    - Bound the wait with a timeout, GT reset on timeout (Sashiko, Matt B)
    - Drop the flush_work() loop (Matt B)
    - Use xe_assert() for the killed-queue check (Matt B)
    - Merge the put loop into the kill_sync loop (Matt B)

Daniel Charles (1):
  drm/xe: Synchronously wait for queue kill on FD close

Matthew Brost (2):
  drm/xe: Read scheduler message opcode under lock
  drm/xe: Disable scheduling early on FD close to avoid CAT error
    cascade

 drivers/gpu/drm/xe/xe_device.c               |   5 +
 drivers/gpu/drm/xe/xe_exec_queue.c           |  13 +++
 drivers/gpu/drm/xe/xe_exec_queue.h           |   1 +
 drivers/gpu/drm/xe/xe_exec_queue_types.h     |   2 +
 drivers/gpu/drm/xe/xe_gpu_scheduler.c        |  13 ++-
 drivers/gpu/drm/xe/xe_gpu_scheduler_types.h  |   2 +-
 drivers/gpu/drm/xe/xe_gt_sriov_vf.c          |   1 +
 drivers/gpu/drm/xe/xe_guc_exec_queue_types.h |   2 +-
 drivers/gpu/drm/xe/xe_guc_submit.c           | 101 +++++++++++++++++--
 drivers/gpu/drm/xe/xe_guc_submit.h           |   1 +
 drivers/gpu/drm/xe/xe_guc_types.h            |   6 ++
 11 files changed, 134 insertions(+), 13 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-10-15 11:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-15  5:01 [PATCH v3 0/3] FD close cleanup for XE Daniel Charles
2026-10-15  5:01 ` [PATCH v3 1/3] drm/xe: Read scheduler message opcode under lock Daniel Charles
2026-10-15  5:01 ` [PATCH v3 2/3] drm/xe: Disable scheduling early on FD close to avoid CAT error cascade Daniel Charles
2026-10-15  5:01 ` [PATCH v3 3/3] drm/xe: Synchronously wait for queue kill on FD close Daniel Charles
2026-10-15  5:28   ` sashiko-bot
2026-10-15  5:13 ` ✗ CI.checkpatch: warning for FD close cleanup for XE (rev3) Patchwork
2026-10-15  5:15 ` ✓ CI.KUnit: success " Patchwork
2026-10-15 11:34 ` ✓ Xe.CI.BAT: " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.