]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Add power down display on boot flag
authorThomas Lim <Thomas.Lim@amd.com>
Wed, 10 Apr 2019 21:06:07 +0000 (17:06 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 29 Apr 2019 19:58:53 +0000 (14:58 -0500)
commit8269009f0f2d5028092e293f6472690ec6d4620f
treeafe16166c680efbe6d48a419b997e4c4be8f297c
parente1c29576d67d85c6498aff95b0c79d7d6b11b7e7
drm/amd/display: Add power down display on boot flag

[Why]

Due to the generic introduction of seamless boot, the display is no
longer blanked upon boot. However, this causes corruption on some
systems that does not lock the memory in the non-secure boot case,
resulting in brief corruption on boot due to garbage being written into
the frame buffer.

[How]
Add a flag, read during DC init, to determine whether display should be
blanked on boot. Default to true.

Signed-off-by: Thomas Lim <Thomas.Lim@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Leo Li <sunpeng.li@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/dc/dc.h
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c