]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/ttm: add new api ttm_device_prepare_hibernation()
authorSamuel Zhang <guoqing.zhang@amd.com>
Thu, 10 Jul 2025 06:23:09 +0000 (14:23 +0800)
committerMario Limonciello <mario.limonciello@amd.com>
Thu, 10 Jul 2025 15:49:44 +0000 (10:49 -0500)
commit40b6a946d21ee7b2b6d394bb2f1cdd3973aa9da5
tree07132ce21a22465ae8349660fdecda59ba019785
parentbead8800222768dab1a421206350d530b0c45254
drm/ttm: add new api ttm_device_prepare_hibernation()

This new api is used for hibernation to move GTT BOs to shmem after
VRAM eviction. shmem will be flushed to swap disk later to reduce
the system memory usage for hibernation.

Signed-off-by: Samuel Zhang <guoqing.zhang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://lore.kernel.org/r/20250710062313.3226149-2-guoqing.zhang@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
drivers/gpu/drm/ttm/ttm_device.c
include/drm/ttm/ttm_device.h