Skip to content

Page-reclaim fixes and PRL stats addition

Brian Nguyen intel-xe 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. 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 filesSizeRepliesApplied
1/4drm/xe: Remove debug comment in page reclaimdrivers/gpu/drm/xe/xe_page_reclaim.c+0 -10 replies
2/4drm/xe: Add explicit abort page reclaim listdrivers/gpu/drm/xe/xe_page_reclaim.h drivers/gpu/drm/xe/xe_pt.c+28 -121 reply
3/4drm/xe: Fix page reclaim entry handling for large pagesdrivers/gpu/drm/xe/xe_pt.c+47 -171 reply
4/4drm/xe: Add page reclamation related statsdrivers/gpu/drm/xe/xe_gt_stats.c drivers/gpu/drm/xe/xe_gt_stats_types.h drivers/gpu/drm/xe/xe_guc_tlb_inval.c +3 more+20 -01 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchMatthew Brost
1/4R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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