drm/amdgpu: do not resume device in thaw for normal hibernation
authorSamuel Zhang <guoqing.zhang@amd.com>
Thu, 10 Jul 2025 06:23:13 +0000 (14:23 +0800)
committerMario Limonciello <mario.limonciello@amd.com>
Thu, 10 Jul 2025 15:49:45 +0000 (10:49 -0500)
commit530694f54dd5e097866999bbaebc5c133e5507b6
tree1eae83fe757d26871a8c65aa0ce5fdb519788755
parentc2aaddbd2deded9d3301f1bafed242a0f71baba8
drm/amdgpu: do not resume device in thaw for normal hibernation

For normal hibernation, GPU do not need to be resumed in thaw since it is
not involved in writing the hibernation image. Skip resume in this case
can reduce the hibernation time.

On VM with 8 * 192GB VRAM dGPUs, 98% VRAM usage and 1.7TB system memory,
this can save 50 minutes.

Signed-off-by: Samuel Zhang <guoqing.zhang@amd.com>
Tested-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Link: https://lore.kernel.org/r/20250710062313.3226149-6-guoqing.zhang@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c