]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/ttm: Add helpers for shrinking
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Wed, 5 Mar 2025 09:22:18 +0000 (10:22 +0100)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Wed, 5 Mar 2025 16:08:59 +0000 (17:08 +0100)
commit70d645deac98303d1bf9ab08a4e68da52bf8c1e1
tree08b504b501ada5b6344c63f7cddd9c71fea387f5
parentf3bcfd04a52fb1b1702349bed2bccc1126b97f89
drm/ttm: Add helpers for shrinking

Add a number of helpers for shrinking that access core TTM and
core MM functionality in a way that make them unsuitable for
driver open-coding.

v11:
- New patch (split off from previous) and additional helpers.
v13:
- Adapt to ttm_backup interface change.
- Take resource off LRU when backed up.

Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Acked-by: Christian König <christian.koenig@amd.com>
Link: https://lore.kernel.org/intel-xe/20250305092220.123405-6-thomas.hellstrom@linux.intel.com
drivers/gpu/drm/ttm/ttm_bo_util.c
drivers/gpu/drm/ttm/ttm_tt.c
include/drm/ttm/ttm_bo.h
include/drm/ttm/ttm_tt.h