Skip to content

TTM shrinker fragmentation / partial restore fixes

Matthew Brost dri-devel intel-xe lkml stable 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest2 patches 5 repliesIn review
  2. v42 patches 4 repliesSuperseded
  3. v32 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v22 patches0 repliesSuperseded

Changes in v5 from the cover letter

- Reordert tm_pool_apply_caching before restore free (sashiko)
- Add ttm_pool_backup_folio helper (Thomas)

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/ttm: Drop tt->restore after successful restoredrivers/gpu/drm/ttm/ttm_pool.c+12 -30 replies
2/2drm/ttm/pool: back up at native page orderdrivers/gpu/drm/ttm/ttm_pool.c+94 -165 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchThomas Hellström
1/2R-b
2/2

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

Read the v5 thread

Cover letter [PATCH v5 0/2] TTM shrinker fragmentation / partial restore fixes

Fix shrinker fragmentation / partial restore fixes. Related to [1], continuation of [2], patches have details.

Series working shrinker getting triggered in a loop plus the below error injection:

cd /sys/kernel/debug/ttm/backup_fault_inject
echo 100 > probability
echo 3000 > interval
echo -1 > times
echo 0 > space
echo 0 > verbose
echo M > task-filter
cd -

Matt

[1] https://patchwork.freedesktop.org/series/165330/
[2] https://patchwork.freedesktop.org/series/165877/

v3:
- Address sashiko concerns
v4:
- Actual 'Save alloc in snapshot on restore failure (sashiko)' (missed local change)
v5:
- Reordert tm_pool_apply_caching before restore free (sashiko)
- Add ttm_pool_backup_folio helper (Thomas)

Matthew Brost (2):
drm/ttm: Drop tt->restore after successful restore drm/ttm/pool: back up at native page order

 drivers/gpu/drm/ttm/ttm_pool.c | 125 ++++++++++++++++++++++++++++-----
 1 file changed, 106 insertions(+), 19 deletions(-)
Signature · 1 line
2.34.1