]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/xe: Drop xe_gt_tlb_invalidation_wait
authorMatthew Brost <matthew.brost@intel.com>
Fri, 19 Jul 2024 17:29:03 +0000 (10:29 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Sat, 20 Jul 2024 02:45:31 +0000 (19:45 -0700)
commit61ac035361ae555ee5a17a7667fe96afdde3d59a
tree7605bfcebec8fbba098e7cfc4b94bb0fb3841948
parenta522b285c6b4b611406d59612a8d7241714d2e31
drm/xe: Drop xe_gt_tlb_invalidation_wait

Having two methods to wait on GT TLB invalidations is not ideal. Remove
xe_gt_tlb_invalidation_wait and only use GT TLB invalidation fences.

In addition to two methods being less than ideal, once GT TLB
invalidations are coalesced the seqno cannot be assigned during
xe_gt_tlb_invalidation_ggtt/range. Thus xe_gt_tlb_invalidation_wait
would not have a seqno to wait one. A fence however can be armed and
later signaled.

v3:
 - Add explaination about coalescing to commit message
v4:
 - Don't put dma fence if defined on stack (CI)
v5:
 - Initialize ret to zero (CI)
v6:
 - Use invalidation_fence_signal helper in tlb timeout (Matthew Auld)

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240719172905.1527927-3-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c
drivers/gpu/drm/xe/xe_gt_tlb_invalidation.h
drivers/gpu/drm/xe/xe_pt.c
drivers/gpu/drm/xe/xe_vm.c