]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Do not forward invalid TLB invalidation seqnos to upper layers
authorMatthew Brost <matthew.brost@intel.com>
Fri, 12 Dec 2025 21:32:27 +0000 (05:32 +0800)
committerMatthew Brost <matthew.brost@intel.com>
Sat, 13 Dec 2025 00:59:01 +0000 (16:59 -0800)
commit44ece22518594ec9ffd9ab8c4c500b522278289e
tree54565f19082512fd41f69dc7046f7e6f827d2455
parent825aed0328588b2837636c1c5a0c48795d724617
drm/xe: Do not forward invalid TLB invalidation seqnos to upper layers

Certain TLB invalidation operations send multiple H2G messages per seqno
with only the final H2G containing the valid seqno - the others carry an
invalid seqno. The G2H handler drops these invalid seqno to aovid
prematurely signaling a TLB invalidation fence.

With TLB_INVALIDATION_SEQNO_INVALID used to indicate in progress
multi-step TLB invalidations, reset tdr to ensure that timeout
won't prematurely trigger when G2H actions are still ongoing.

v2: Remove lock from xe_tlb_inval_reset_timeout. (Matthew B)

v3: Squash with dependent patch from Matthew Brost' series.

Signed-off-by: Brian Nguyen <brian3.nguyen@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patch.msgid.link/20251212213225.3564537-13-brian3.nguyen@intel.com
drivers/gpu/drm/xe/xe_tlb_inval.c
drivers/gpu/drm/xe/xe_tlb_inval_types.h