]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/display: Add condition to sync eDP SW status and HW status
authorLewis Huang <Lewis.Huang@amd.com>
Thu, 18 Oct 2018 09:52:19 +0000 (17:52 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Nov 2018 19:21:45 +0000 (14:21 -0500)
commitd2b1d6bbc56afab8ebae9d52d7ca0ea3569bd600
tree2391c23793bd94192f277c16291dd780a2399b1d
parentff83a9a0d15d3be46b3288346a1180777f1a4e41
drm/amd/display: Add condition to sync eDP SW status and HW status

[Why]
Need to disable EDP backlight when enter S4 with EDP only
and resume from S4 with secondary only.

[How]
Align the real hw and sw state via vBios scratch register in
function enable_accelerated_mode when resume from S4.

Signed-off-by: Lewis Huang <Lewis.Huang@amd.com>
Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c
drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.h
drivers/gpu/drm/amd/display/dc/dc_bios_types.h
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c