summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_init.c
diff options
context:
space:
mode:
authorSung Lee <sung.lee@amd.com>2020-06-25 13:49:31 -0400
committerAlex Deucher <alexander.deucher@amd.com>2020-07-14 14:34:02 -0400
commitca751df231d14fd2bd1f8ee700d6a16cc541706a (patch)
tree158127233f18f30d79dfc0e08d2d6eb8e5f8d5f8 /drivers/gpu/drm/amd/display/dc/dcn20/dcn20_init.c
parenteaa483642f63cff60139bfdfb7fc971b3789bcaf (diff)
downloadlinux-stable-ca751df231d14fd2bd1f8ee700d6a16cc541706a.tar.gz
linux-stable-ca751df231d14fd2bd1f8ee700d6a16cc541706a.tar.bz2
linux-stable-ca751df231d14fd2bd1f8ee700d6a16cc541706a.zip
drm/amd/display: Power down hardware if set mode is not called before timeout
[WHY] In headless systems, if set mode is not called, hardware will not be powered down on boot, causing HW/SW discrepancies. Powering down hardware on boot will ensure SW state is accurate. [HOW] Set a timer callback on boot for 10 seconds. If set mode is not called within that time, power down hardware. Otherwise, do not power down. Signed-off-by: Sung Lee <sung.lee@amd.com> Reviewed-by: Anthony Koo <Anthony.Koo@amd.com> Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dcn20/dcn20_init.c')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dcn20/dcn20_init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_init.c b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_init.c
index bb9e9bec2f28..2380392b916e 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_init.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_init.c
@@ -30,6 +30,7 @@
static const struct hw_sequencer_funcs dcn20_funcs = {
.program_gamut_remap = dcn10_program_gamut_remap,
.init_hw = dcn10_init_hw,
+ .power_down_on_boot = dcn10_power_down_on_boot,
.apply_ctx_to_hw = dce110_apply_ctx_to_hw,
.apply_ctx_for_surface = NULL,
.program_front_end_for_ctx = dcn20_program_front_end_for_ctx,