diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2021-03-10 00:41:49 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-04-09 16:35:55 -0400 |
commit | e25443d2765f40a9b3d0056dc4d560a007dd850c (patch) | |
tree | b613c822cef797d35f4a8a0bc65b656db28b5fc7 /drivers/gpu/drm/drm_debugfs.c | |
parent | ed098aa34c51d81a16de93f59c64e36a136fd201 (diff) | |
download | linux-e25443d2765f40a9b3d0056dc4d560a007dd850c.tar.bz2 |
drm/amdgpu: add a dev_pm_ops prepare callback (v2)
as per:
https://www.kernel.org/doc/html/latest/driver-api/pm/devices.html
The prepare callback is required to support the DPM_FLAG_SMART_SUSPEND
driver flag. This allows runtime pm to auto complete when the
system goes into suspend avoiding a wake up on suspend and on resume.
Apply this for hybrid gfx and BOCO systems where d3cold is
provided by the ACPI platform.
v2: check if device is runtime suspended in prepare.
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/drm_debugfs.c')
0 files changed, 0 insertions, 0 deletions