]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Add xe_tlb_inval_idle helper
authorMatthew Brost <matthew.brost@intel.com>
Fri, 16 Jan 2026 22:17:29 +0000 (14:17 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Sat, 17 Jan 2026 02:24:54 +0000 (18:24 -0800)
commit6b42b635d6a20fd418ecc7c4c3ad52ef99fe7227
treef0a4b1a10310c322d947f525a715fc27d9f48482
parent2d93d5d53024257e686b3aa839e148cde776e35e
drm/xe: Add xe_tlb_inval_idle helper

Introduce the xe_tlb_inval_idle helper to detect whether any TLB
invalidations are currently in flight. This is used in context-based TLB
invalidations to determine whether dummy TLB invalidations need to be
sent to maintain proper TLB invalidation fence ordering..

v2:
 - Implement xe_tlb_inval_idle based on pending list

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Stuart Summers <stuart.summers@intel.com>
Tested-by: Stuart Summers <stuart.summers@intel.com>
Link: https://patch.msgid.link/20260116221731.868657-10-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_tlb_inval.c
drivers/gpu/drm/xe/xe_tlb_inval.h