Skip to content

drm/ttm, drm/xe: Shrinker support

Thomas Hellström intel-xe 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest8 patches 0 repliesNew
  2. v28 patches 0 repliesSuperseded
  3. v18 patches 0 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8drm/ttm: Allow TTM LRU list nodes of different typesdrivers/gpu/drm/ttm/ttm_device.c drivers/gpu/drm/ttm/ttm_resource.c include/drm/ttm/ttm_resource.h+110 -240 replies
2/8drm/ttm: Use LRU hitchesdrivers/gpu/drm/ttm/ttm_bo.c drivers/gpu/drm/ttm/ttm_device.c drivers/gpu/drm/ttm/ttm_resource.c +1 more+82 -380 replies
3/8drm/ttm, drm/amdgpu, drm/xe: Consider hitch moves within bulk sublist movesdrivers/gpu/drm/amd/amdgpu/amdgpu_vm.c drivers/gpu/drm/ttm/ttm_resource.c drivers/gpu/drm/xe/xe_vm.c +2 more+134 -210 replies
4/8drm/ttm: Allow continued swapout after -ENOSPC faluredrivers/gpu/drm/ttm/ttm_device.c+13 -80 replies
5/8drm/ttm: Add a virtual base class for graphics memory backupdrivers/gpu/drm/ttm/Makefile drivers/gpu/drm/ttm/ttm_backup_shmem.c include/drm/ttm/ttm_backup.h+171 -10 replies
6/8drm/ttm/pool: Provide a helper to shrink pages.drivers/gpu/drm/ttm/ttm_pool.c drivers/gpu/drm/ttm/ttm_tt.c include/drm/ttm/ttm_pool.h +1 more+423 -130 replies
7/8drm/xe, drm/ttm: Provide a generic LRU walker helperdrivers/gpu/drm/ttm/ttm_resource.c drivers/gpu/drm/xe/Makefile drivers/gpu/drm/xe/xe_ttm_helpers.c +1 more+143 -00 replies
8/8drm/xe: Add a shrinker for xe bosdrivers/gpu/drm/xe/Makefile drivers/gpu/drm/xe/xe_bo.c drivers/gpu/drm/xe/xe_bo.h +6 more+388 -170 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [CI v3 0/8] drm/ttm, drm/xe: Shrinker support

Replace the system memory watermark accounting with a shrinker.

Thomas Hellström (8):
drm/ttm: Allow TTM LRU list nodes of different types drm/ttm: Use LRU hitches
drm/ttm, drm/amdgpu, drm/xe: Consider hitch moves within bulk sublist
moves
drm/ttm: Allow continued swapout after -ENOSPC falure drm/ttm: Add a virtual base class for graphics memory backup drm/ttm/pool: Provide a helper to shrink pages.
drm/xe, drm/ttm: Provide a generic LRU walker helper drm/xe: Add a shrinker for xe bos

 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c |   4 +
 drivers/gpu/drm/ttm/Makefile           |   2 +-
 drivers/gpu/drm/ttm/ttm_backup_shmem.c | 122 ++++++++
 drivers/gpu/drm/ttm/ttm_bo.c           |   1 +
 drivers/gpu/drm/ttm/ttm_device.c       |  33 ++-
 drivers/gpu/drm/ttm/ttm_pool.c         | 388 ++++++++++++++++++++++++-
 drivers/gpu/drm/ttm/ttm_resource.c     | 231 ++++++++++++---
 drivers/gpu/drm/ttm/ttm_tt.c           |  32 ++
 drivers/gpu/drm/xe/Makefile            |   2 +
 drivers/gpu/drm/xe/xe_bo.c             | 106 +++++--
 drivers/gpu/drm/xe/xe_bo.h             |   3 +
 drivers/gpu/drm/xe/xe_device.c         |   8 +
 drivers/gpu/drm/xe/xe_device_types.h   |   2 +
 drivers/gpu/drm/xe/xe_shrinker.c       | 204 +++++++++++++
 drivers/gpu/drm/xe/xe_shrinker.h       |  18 ++
 drivers/gpu/drm/xe/xe_ttm_helpers.c    | 166 +++++++++++
 drivers/gpu/drm/xe/xe_ttm_helpers.h    |  36 +++
 drivers/gpu/drm/xe/xe_vm.c             |   4 +
 include/drm/ttm/ttm_backup.h           |  48 +++
 include/drm/ttm/ttm_device.h           |   2 +
 include/drm/ttm/ttm_pool.h             |   4 +
 include/drm/ttm/ttm_resource.h         |  96 +++++-
 include/drm/ttm/ttm_tt.h               |  12 +
 23 files changed, 1433 insertions(+), 91 deletions(-)
 create mode 100644 drivers/gpu/drm/ttm/ttm_backup_shmem.c
 create mode 100644 drivers/gpu/drm/xe/xe_shrinker.c
 create mode 100644 drivers/gpu/drm/xe/xe_shrinker.h
 create mode 100644 drivers/gpu/drm/xe/xe_ttm_helpers.c
 create mode 100644 drivers/gpu/drm/xe/xe_ttm_helpers.h
 create mode 100644 include/drm/ttm/ttm_backup.h
Signature · 1 line
2.44.0