]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Check SCRATCH reg to determine S3 resume.
authorYongqiang Sun <yongqiang.sun@amd.com>
Sat, 7 Apr 2018 01:38:10 +0000 (21:38 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 May 2018 18:43:26 +0000 (13:43 -0500)
commit50a1e07768ee05b4cb7bdb80f598db7ed530daa2
tree12166d6b978d28c9dca47fcec9534152018a29b7
parentfd9b21ececea4af0fea6c9a18f04c08acb8bf0fe
drm/amd/display: Check SCRATCH reg to determine S3 resume.

Use lid state only to determine fast boot optimization is not enough.
For S3/Resume, due to bios isn't involved in boot, eDP wasn't
light up, while lid state is open, if do fast boot optimization,
eDP panel will skip enable link and result in black screen after boot.
And becasue of bios isn't involved, no matter UEFI or Legacy boot,
BIOS_SCRATCH_3 value should be 0, use this to determine the case.

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