Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] drm/xe: include all registered queues in TLB invalidation
@ 2026-06-08 16:27 tilak.tirumalesh.tangudu
  2026-06-08 16:27 ` [PATCH 1/2] " tilak.tirumalesh.tangudu
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: tilak.tirumalesh.tangudu @ 2026-06-08 16:27 UTC (permalink / raw)
  To: tilak.tirumalesh.tangudu, thomas.hellstrom, daniele.ceraolospurio,
	matthew.auld, stuart.summers, intel-xe

From: Tangudu Tilak Tirumalesh <tilak.tirumalesh.tangudu@intel.com>

Context-based TLB invalidation in send_tlb_inval_ctx_ppgtt() filtered
exec queues with q->ops->active(), which reads q->guc->state bits
lock-free. Those bits are flipped without serialization from many
paths, and nothing in send_tlb_inval_ctx_ppgtt() serializes against
them, so any state-based predicate can race, causing missed TLB
invalidations on LR rebinds.

Patch 1 closes the TOCTOU by invalidating every queue currently
registered on vm->exec_queues.list for the GT. List membership is
stable under vm->exec_queues.lock held by the caller. The performance
impact is expected to be minimal and harmless; a race-safe filter can
be added later if it proves significant.

Patch 2 drops the now-unused .active op along with its GuC and
execlist backend implementations.

This series is a continuation of a dropped patch from an earlier
series sent with a different subject:
https://patchwork.freedesktop.org/series/167262/#rev1

Tangudu Tilak Tirumalesh (2):
  drm/xe: include all registered queues in TLB invalidation
  drm/xe: drop unused xe_exec_queue_ops::active callback

 drivers/gpu/drm/xe/xe_exec_queue_types.h | 2 --
 drivers/gpu/drm/xe/xe_execlist.c         | 7 -------
 drivers/gpu/drm/xe/xe_guc_submit.c       | 9 ---------
 drivers/gpu/drm/xe/xe_guc_tlb_inval.c    | 7 +++----
 4 files changed, 3 insertions(+), 22 deletions(-)

-- 
2.46.0


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

end of thread, other threads:[~2026-06-09 20:13 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-08 16:27 [PATCH 0/2] drm/xe: include all registered queues in TLB invalidation tilak.tirumalesh.tangudu
2026-06-08 16:27 ` [PATCH 1/2] " tilak.tirumalesh.tangudu
2026-06-09 15:02   ` Hellstrom, Thomas
2026-06-09 15:04     ` Matthew Brost
2026-06-08 16:27 ` [PATCH 2/2] drm/xe: drop unused xe_exec_queue_ops::active callback tilak.tirumalesh.tangudu
2026-06-09 15:03   ` Hellstrom, Thomas
2026-06-09 15:04   ` Matthew Brost
2026-06-08 16:38 ` ✓ CI.KUnit: success for drm/xe: include all registered queues in TLB invalidation Patchwork
2026-06-09  6:49 ` ✓ CI.KUnit: success for drm/xe: include all registered queues in TLB invalidation (rev2) Patchwork
2026-06-09  7:55 ` ✓ Xe.CI.BAT: " Patchwork
2026-06-09 17:53 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-06-09 18:22   ` Tangudu, Tilak Tirumalesh
2026-06-09 20:12     ` Lin, Shuicheng

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