]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: enable DPM_FLAG_MAY_SKIP_RESUME and DPM_FLAG_SMART_SUSPEND flags (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 22 Jan 2021 22:45:29 +0000 (17:45 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Apr 2021 20:36:02 +0000 (16:36 -0400)
commit50f076d64f3c16841f6df2ce35175aeddf94c84b
treec3b4c2927628c19bf82c908885483407fbd90d66
parent2b113335950e510f282ce14610ded224cede63b1
drm/amdgpu: enable DPM_FLAG_MAY_SKIP_RESUME and DPM_FLAG_SMART_SUSPEND flags (v2)

Once the device has runtime suspended, we don't need to power it
back up again for system suspend.  Likewise for resume, we don't
to power up the device again on resume only to power it back off
again via runtime pm because it's still idle.

v2: add DPM_FLAG_SMART_PREPARE as well

Reviewed-by: Evan Quan <evan.quan@amd.com>
Acked-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@amd.com> (v1)
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c