]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Clear dmps off for eDP when resume.
authorYongqiang Sun <yongqiang.sun@amd.com>
Wed, 14 Feb 2018 22:12:39 +0000 (17:12 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Mar 2018 20:33:43 +0000 (15:33 -0500)
commit15f26c5ed85e94082e0f35a20d5f79ff17b33135
tree6e1e61ec36de04554d1679073fb7dd36dffa6abe
parentcc38e3f4ec61a61cd215234a3337151b49b1807f
drm/amd/display: Clear dmps off for eDP when resume.

This patch fixed secondary screen only S4 resume, eDP is unintentionally
light up due to incorrect dpms off flag.

When entering S4, dpms off flags are set to true via
set power state. During resume, eDP is light up by vbios, so the flags
should be changed to false to match the real state.
By change the flag properly, eDP is able to be turned off properly as per
OS request.

This change may affect S3/S4 Shut down resume IOIC, need to verify
those cases.

Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-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/dce110/dce110_hw_sequencer.c