drm/amd/display: WA for DF keeps awake after S0i3.
authorYongqiang Sun <yongqiang.sun@amd.com>
Mon, 17 Sep 2018 14:05:51 +0000 (10:05 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 9 Oct 2018 22:02:22 +0000 (17:02 -0500)
commitceb9831dd6e5dfb79f94b205eade4ecc29e26d60
tree5d25c385351fc60f05b6702006f51f20bd3e8e64
parente15fc81f11854451ec8a8ed9168b8247e4e9a10b
drm/amd/display: WA for DF keeps awake after S0i3.

[Why]
DF keeps awake after S0i3 resume due to DRAM_STATE_CNTL
is set by bios command table during dcn init_hw.

[How]
As a work around, check STATE_CNTL status before init_hw,
if it is 0 before init_hw and set to 1 after init_hw,
change it to 0.

Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@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/dcn10/dcn10_hubbub.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubbub.h
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c