drm/ttm, drm/xe: Modify the struct ttm_bo_lru_walk_cursor initialization
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Mon, 23 Jun 2025 15:53:12 +0000 (17:53 +0200)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Thu, 26 Jun 2025 15:15:32 +0000 (17:15 +0200)
commite1e85eb0a977f1eb1d17d4627aceaa8eeac37159
treee38d9ef3c9f809a8e767fd9fcad0ae7b212f20b7
parentc8e3d6d77507c42cc1a02783f70e1e4e85e3c80f
drm/ttm, drm/xe: Modify the struct ttm_bo_lru_walk_cursor initialization

Instead of the struct ttm_operation_ctx, Pass a struct ttm_lru_walk_arg
to enable us to easily extend the walk functionality, and to
implement ttm_lru_walk_for_evict() using the guarded LRU iteration.

Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://lore.kernel.org/r/20250623155313.4901-3-thomas.hellstrom@linux.intel.com
drivers/gpu/drm/ttm/ttm_bo_util.c
drivers/gpu/drm/xe/xe_shrinker.c
include/drm/ttm/ttm_bo.h