Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Page-reclaim fixes and PRL stats addition
@ 2026-01-05 23:33 Brian Nguyen
  2026-01-05 23:33 ` [PATCH 1/4] drm/xe: Remove debug comment in page reclaim Brian Nguyen
                   ` (5 more replies)
  0 siblings, 6 replies; 14+ messages in thread
From: Brian Nguyen @ 2026-01-05 23:33 UTC (permalink / raw)
  To: intel-xe; +Cc: matthew.brost

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../

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   | 26 ++++++++-
 drivers/gpu/drm/xe/xe_page_reclaim.h   |  3 +
 drivers/gpu/drm/xe/xe_pt.c             | 76 +++++++++++++++++---------
 drivers/gpu/drm/xe/xe_tlb_inval_job.c  |  2 +-
 7 files changed, 92 insertions(+), 28 deletions(-)

-- 
2.52.0


^ permalink raw reply	[flat|nested] 14+ messages in thread
* [PATCH 0/4] Page-reclaim fixes and PRL stats addition
@ 2026-01-07  1:04 Brian Nguyen
  2026-01-07  1:04 ` [PATCH 2/4] drm/xe: Add explicit abort page reclaim list Brian Nguyen
  0 siblings, 1 reply; 14+ messages in thread
From: Brian Nguyen @ 2026-01-07  1:04 UTC (permalink / raw)
  To: intel-xe; +Cc: matthew.brost

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(-)

-- 
2.52.0


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2026-01-07 19:58 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-05 23:33 [PATCH 0/4] Page-reclaim fixes and PRL stats addition Brian Nguyen
2026-01-05 23:33 ` [PATCH 1/4] drm/xe: Remove debug comment in page reclaim Brian Nguyen
2026-01-06  2:15   ` Matthew Brost
2026-01-05 23:33 ` [PATCH 2/4] drm/xe: Add explicit abort page reclaim list Brian Nguyen
2026-01-06  2:23   ` Matthew Brost
2026-01-06 12:44     ` Nguyen, Brian3
2026-01-05 23:33 ` [PATCH 3/4] drm/xe: Fix page reclaim entry handling for large pages Brian Nguyen
2026-01-06 16:41   ` Matthew Brost
2026-01-06 17:12     ` Nguyen, Brian3
2026-01-05 23:33 ` [PATCH 4/4] drm/xe: Add page reclamation related stats Brian Nguyen
2026-01-05 23:41 ` ✓ CI.KUnit: success for Page-reclaim fixes and PRL stats addition (rev2) Patchwork
2026-01-06  1:12 ` ✗ Xe.CI.Full: failure " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2026-01-07  1:04 [PATCH 0/4] Page-reclaim fixes and PRL stats addition Brian Nguyen
2026-01-07  1:04 ` [PATCH 2/4] drm/xe: Add explicit abort page reclaim list Brian Nguyen
2026-01-07 19:57   ` Matthew Brost

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox