]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe: Optimize flushing of L2$ by skipping unnecessary page reclaim
authorBrian Nguyen <brian3.nguyen@intel.com>
Fri, 12 Dec 2025 21:32:35 +0000 (05:32 +0800)
committerMatthew Brost <matthew.brost@intel.com>
Sat, 13 Dec 2025 00:59:10 +0000 (16:59 -0800)
commit7c52f13b76c531ee2c503baafe52d357cab0c54a
treed70372b1dbb7dbd0844f76bbfe9724825d6b1c87
parent684965d96a918f78c3fbd3ef55444aa9cdd7c5f6
drm/xe: Optimize flushing of L2$ by skipping unnecessary page reclaim

There are additional hardware managed L2$ flushing such as the
transient display. In those scenarios, page reclamation is
unnecessary resulting in redundant cacheline flushes, so skip
over those corresponding ranges.

v2:
 - Elaborated on reasoning for page reclamation skip based on
   Tejas's discussion. (Matthew A, Tejas)

v3:
 - Removed MEDIA_IS_ON due to racy condition resulting in removal of
   relevant registers and values. (Matthew A)
 - Moved l3 policy access to xe_pat. (Matthew A)

v4:
 - Updated comments based on previous change. (Tejas)
 - Move back PAT index macros to xe_pat.c.

Signed-off-by: Brian Nguyen <brian3.nguyen@intel.com>
Reviewed-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patch.msgid.link/20251212213225.3564537-21-brian3.nguyen@intel.com
drivers/gpu/drm/xe/xe_page_reclaim.c
drivers/gpu/drm/xe/xe_page_reclaim.h
drivers/gpu/drm/xe/xe_pat.c
drivers/gpu/drm/xe/xe_pat.h
drivers/gpu/drm/xe/xe_pt.c