Page-reclaim fixes and PRL stats addition
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 3 repliesIn review
v2 from the cover letter
- Remove comment erroneously added in initial commit.
- Add explicit abort func to clearly define invalidation done to indicate end of scope and invalidation done to abort PRL.
- Added PRL_ABORTED_STATS. (Matthew B)
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | drm/xe: Remove debug comment in page reclaimdrivers/ | +0 | 0 replies | |
| 2/4 | drm/xe: Add explicit abort page reclaim listdrivers/ drivers/ | +28 | 1 reply | |
| 3/4 | drm/xe: Fix page reclaim entry handling for large pagesdrivers/ | +47 | 1 reply | |
| 4/4 | drm/xe: Add page reclamation related statsdrivers/ drivers/ drivers/ +3 more | +20 | 1 reply |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Matthew Brost |
|---|---|
| 1/4 | R-b |
| 2/4 | R-b |
| 3/4 | R-b |
| 4/4 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/4] Page-reclaim fixes and PRL stats addition
This series provides fixes to page reclamation and additional stats for the page reclamation feature.
Patch 1 is just a small fixup to remove a debug comment.
Patch 2 makes the distinction between PRL invalidation done as part of a typical workflow and invalidation done to abort and fallback to normal TLB invalidation.
Patch 3 fixes the incorrect handling of larger page sizes for PRL entry generation. 64KB are just contigious 4KB PTE so only need to add one. 2MB also needs to be handled separately because page directory are handled differently. Also additional handling of racy pte reads and page walk completions before PTE.
Patch 4 adds PRL related stats to GT stats to assist in debugging and validation of the feature.
Modifications from the fixes will slightly conflict with the addition of stats so it seemed better to push patches as a series together.
Thanks,
Brian
v2:
- Remove comment erroneously added in initial commit.
- Add explicit abort func to clearly define invalidation done to indicate end of scope and invalidation done to abort PRL.
- Added PRL_ABORTED_STATS. (Matthew B)
v3:
- Convert abort function to macro. (Matthew B)
- Reworked logic for one PRL abort handling. (Matthew B)
Brian Nguyen (4):
drm/xe: Remove debug comment in page reclaim drm/xe: Add explicit abort page reclaim list drm/xe: Fix page reclaim entry handling for large pages drm/xe: Add page reclamation related stats
drivers/gpu/drm/xe/xe_gt_stats.c | 5 ++ drivers/gpu/drm/xe/xe_gt_stats_types.h | 5 ++ drivers/gpu/drm/xe/xe_guc_tlb_inval.c | 3 + drivers/gpu/drm/xe/xe_page_reclaim.c | 2 +- drivers/gpu/drm/xe/xe_page_reclaim.h | 20 ++++++ drivers/gpu/drm/xe/xe_pt.c | 84 ++++++++++++++++++-------- 6 files changed, 92 insertions(+), 27 deletions(-)
Signature · 1 line
2.52.0