diff options
author | Prike Liang <Prike.Liang@amd.com> | 2021-02-22 14:04:12 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-02-24 09:28:55 -0500 |
commit | b00978de90752ba7ff73a3cab2de3fa1264ab932 (patch) | |
tree | aedb7b66917ab6b5fc1383371c3fdb59598f00a3 /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
parent | cd48758c82520aa20ac1b7b74fe5cefd4a46fd6a (diff) | |
download | linux-b00978de90752ba7ff73a3cab2de3fa1264ab932.tar.gz linux-b00978de90752ba7ff73a3cab2de3fa1264ab932.tar.bz2 linux-b00978de90752ba7ff73a3cab2de3fa1264ab932.zip |
drm/amdgpu: fix shutdown and poweroff process failed with s0ix
In the shutdown and poweroff opt on the s0i3 system we still need
un-gate the gfx clock gating and power gating before destory amdgpu device.
Fixes: 628c36d7b238e2 ("drm/amdgpu: update amdgpu device suspend/resume sequence for s0i3 support")
Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1499
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 4909147c929e..22e5d9f284c3 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h @@ -1003,6 +1003,12 @@ struct amdgpu_device { bool in_suspend; bool in_hibernate; + /* + * The combination flag in_poweroff_reboot_com used to identify the poweroff + * and reboot opt in the s0i3 system-wide suspend. + */ + bool in_poweroff_reboot_com; + atomic_t in_gpu_reset; enum pp_mp1_state mp1_state; struct rw_semaphore reset_sem; |