]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Append page reclamation action to tlb inval
authorBrian Nguyen <brian3.nguyen@intel.com>
Fri, 12 Dec 2025 21:32:34 +0000 (05:32 +0800)
committerMatthew Brost <matthew.brost@intel.com>
Sat, 13 Dec 2025 00:59:10 +0000 (16:59 -0800)
commit684965d96a918f78c3fbd3ef55444aa9cdd7c5f6
treec28e9a872ffcbe400f5092427a51549c92ca2b7b
parent9945e6a52f3c66b40ae30c2f4b79312a56fc9ba7
drm/xe: Append page reclamation action to tlb inval

Add page reclamation action to tlb inval backend. The page reclamation
action is paired with range tlb invalidations so both are issued at the
same time.

Page reclamation will issue the TLB invalidation with an invalid seqno
and a H2G page reclamation action with the fence's corresponding seqno
and handle the fence accordingly on page reclaim action done handler.

If page reclamation fails, tlb timeout handler will be responsible for
signalling fence and cleaning up.

v2:
 - add send_page_reclaim to patch.
 - Remove flush_cache and use prl_sa pointer to determine PPC flush
   instead of explicit bool. Add NULL as fallback for others. (Matthew B)

v3:
 - Add comments for flush_cache with media.

Signed-off-by: Brian Nguyen <brian3.nguyen@intel.com>
Suggested-by: Matthew Brost <matthew.brost@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-20-brian3.nguyen@intel.com
drivers/gpu/drm/xe/xe_guc_tlb_inval.c
drivers/gpu/drm/xe/xe_tlb_inval.c
drivers/gpu/drm/xe/xe_tlb_inval.h
drivers/gpu/drm/xe/xe_tlb_inval_job.c
drivers/gpu/drm/xe/xe_tlb_inval_types.h
drivers/gpu/drm/xe/xe_vm.c