]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdgpu: move GTT to shmem after eviction for hibernation
authorSamuel Zhang <guoqing.zhang@amd.com>
Thu, 10 Jul 2025 06:23:10 +0000 (14:23 +0800)
committerMario Limonciello <mario.limonciello@amd.com>
Thu, 10 Jul 2025 15:49:45 +0000 (10:49 -0500)
commit924dda024f3bea64be5f3ac067a075e466739dc9
tree88729ff31a41049ba009acce063a2705e643d7b2
parent40b6a946d21ee7b2b6d394bb2f1cdd3973aa9da5
drm/amdgpu: move GTT to shmem after eviction for hibernation

When hibernate with data center dGPUs, huge number of VRAM BOs evicted
to GTT and takes too much system memory. This will cause hibernation
fail due to insufficient memory for creating the hibernation image.

Move GTT BOs to shmem in KMD, then shmem to swap disk in kernel
hibernation code to make room for hibernation image.

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-3-guoqing.zhang@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c