]> git.dujemihanovic.xyz Git - linux.git/commit
drm/amd/display: Enable Panel Replay for static screen use case
authorTom Chung <chiahsuan.chung@amd.com>
Wed, 6 Dec 2023 14:07:51 +0000 (22:07 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 15 Jan 2024 23:35:39 +0000 (18:35 -0500)
commit5950efe25ee02df4983864b3bc1f460ad5c8d862
tree5ea259be499d8dc4d8b44d9be97cba1cc56a7f8e
parent12f72a1599dc90b7f698b6a86a477ca4f2ef1f8e
drm/amd/display: Enable Panel Replay for static screen use case

[Why]
Enable the Panel Replay if eDP panel and ASIC support.
(prioritize Panel Replay over PSR)

[How]
- Setup the Panel Replay config during the device init
  (prioritize Panel Replay over PSR).
- Separate the Replay init function into two functions
  amdgpu_dm_link_setup_replay() and amdgpu_dm_set_replay_caps()
  to fix the issue in the earlier commit that cause PSR and Replay
  enabled at the same time.

Reviewed-by: Sun peng Li <sunpeng.li@amd.com>
Acked-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Tom Chung <chiahsuan.chung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_replay.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_replay.h
drivers/gpu/drm/amd/include/amd_shared.h