Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] Fix serialization on burst of unbinds
@ 2025-10-17 16:52 Matthew Brost
  2025-10-17 16:52 ` [PATCH 1/1] drm/xe: Avoid serializing unbind jobs on prior TLB invalidations Matthew Brost
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Matthew Brost @ 2025-10-17 16:52 UTC (permalink / raw)
  To: intel-xe; +Cc: carlos.santa, thomas.hellstrom

Attempting to resolve part of [1]; the patch should explain the details
of this solution.

Other options have been discussed, including not exporting TLB
invalidation fences to user space, or using TLB invalidation fences to
enforce ordering on the bind queue, rather than simply attaching TLB
invalidations to dma-resv, which blocks reclaim. I’ve implemented this
approach, and it appears to have the same effect as this patch. However,
I can't confidently reason that it won't violate queue fence ordering
rules. If desired, this alternative solution can also be posted for
discussion.

Matt

[1] https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/6047

Matthew Brost (1):
  drm/xe: Avoid serializing unbind jobs on prior TLB invalidations

 drivers/gpu/drm/xe/xe_exec.c          |  3 +-
 drivers/gpu/drm/xe/xe_exec_queue.c    | 18 +++++++++--
 drivers/gpu/drm/xe/xe_exec_queue.h    |  3 +-
 drivers/gpu/drm/xe/xe_pt.c            | 15 +++++++--
 drivers/gpu/drm/xe/xe_sched_job.c     | 44 ++++++++++++++++++++++++++-
 drivers/gpu/drm/xe/xe_sched_job.h     |  7 ++++-
 drivers/gpu/drm/xe/xe_tlb_inval_job.c | 14 +++++++++
 drivers/gpu/drm/xe/xe_tlb_inval_job.h |  2 ++
 8 files changed, 98 insertions(+), 8 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2025-10-23 19:27 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-17 16:52 [PATCH 0/1] Fix serialization on burst of unbinds Matthew Brost
2025-10-17 16:52 ` [PATCH 1/1] drm/xe: Avoid serializing unbind jobs on prior TLB invalidations Matthew Brost
2025-10-21 17:55   ` Summers, Stuart
2025-10-21 20:36     ` Matthew Brost
2025-10-21 20:43       ` Summers, Stuart
2025-10-21 20:50         ` Matthew Brost
2025-10-22  8:00   ` Tvrtko Ursulin
2025-10-22 15:10     ` Matthew Brost
2025-10-23 12:46       ` Tvrtko Ursulin
2025-10-23 18:55         ` Matthew Brost
2025-10-23 19:27           ` Matthew Brost
2025-10-23 12:28   ` Thomas Hellström
2025-10-17 18:36 ` ✓ CI.KUnit: success for Fix serialization on burst of unbinds Patchwork
2025-10-17 19:16 ` ✓ Xe.CI.BAT: " Patchwork
2025-10-18 18:20 ` ✗ Xe.CI.Full: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox