From: Mario Limonciello <[email protected]> The special cases to use pm_hibernate_is_recovering() and pm_hibernation_mode_is_suspend() were for an optimization to avoid turning the display on and moving memory around when the system was about to hibernate anyway.
As the hibernate core skips thaw() unless it's necessary drop them. Signed-off-by: Mario Limonciello <[email protected]> --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index 6d547f4e4bafc..4a37c3e517a9f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c @@ -2671,10 +2671,6 @@ static int amdgpu_pmops_thaw(struct device *dev) { struct drm_device *drm_dev = dev_get_drvdata(dev); - /* do not resume device if it's normal hibernation */ - if (!pm_hibernate_is_recovering() && !pm_hibernation_mode_is_suspend()) - return 0; - return amdgpu_device_resume(drm_dev, true); } -- 2.43.0
