summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
diff options
context:
space:
mode:
authorPrike Liang <Prike.Liang@amd.com>2024-10-14 15:25:35 +0800
committerAlex Deucher <alexander.deucher@amd.com>2024-10-28 16:40:58 -0400
commitd5e3d8a2a6cb8b8c8678e60ae8067c18ffbc2da2 (patch)
treecf0e272900575aba3e4ab45d75c3fd7433f7b909 /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
parent58a8c756fc4ca243fb5c070e1b9e0970f00757d9 (diff)
downloadlinux-d5e3d8a2a6cb8b8c8678e60ae8067c18ffbc2da2.tar.gz
linux-d5e3d8a2a6cb8b8c8678e60ae8067c18ffbc2da2.tar.bz2
linux-d5e3d8a2a6cb8b8c8678e60ae8067c18ffbc2da2.zip
drm/amdgpu: clean up the suspend_complete
To check the status of S3 suspend completion, use the PM core pm_suspend_global_flags bit(1) to detect S3 abort events. Therefore, clean up the AMDGPU driver's private flag suspend_complete. Signed-off-by: Prike Liang <Prike.Liang@amd.com> Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
index 46f756513948..ff3ac30744dc 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
@@ -2500,7 +2500,6 @@ static int amdgpu_pmops_suspend(struct device *dev)
struct drm_device *drm_dev = dev_get_drvdata(dev);
struct amdgpu_device *adev = drm_to_adev(drm_dev);
- adev->suspend_complete = false;
if (amdgpu_acpi_is_s0ix_active(adev))
adev->in_s0ix = true;
else if (amdgpu_acpi_is_s3_active(adev))
@@ -2515,7 +2514,6 @@ static int amdgpu_pmops_suspend_noirq(struct device *dev)
struct drm_device *drm_dev = dev_get_drvdata(dev);
struct amdgpu_device *adev = drm_to_adev(drm_dev);
- adev->suspend_complete = true;
if (amdgpu_acpi_should_gpu_reset(adev))
return amdgpu_asic_reset(adev);