]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Set PSR level to enable ALPM by default
authorDavid Zhang <dingchen.zhang@amd.com>
Tue, 3 May 2022 14:56:54 +0000 (10:56 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 6 Jun 2022 18:42:14 +0000 (14:42 -0400)
commit5237c6e14e8413b03f4066118cf8f0d051728bbd
tree7ca406c510af8a8273524ba6404a87900d3b7ba8
parente51ab9506cc80f903faf949c0e2d4b648e611ac2
drm/amd/display: Set PSR level to enable ALPM by default

[Why & How]
While support ALPM, do ALPM state transition while PSR entry/exit.
ALPM is needed for PSR-SU feature, and since the function is ready,
we'd enable it by default.

- Add psr level definition to enable/disable ALPM and set ALPM
  powerdone mode.
- Enable ALPM by default

Signed-off-by: David Zhang <dingchen.zhang@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c
drivers/gpu/drm/amd/display/dc/dc_types.h