]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Fixed dim around 1sec when resume from S3 (v2)
authorYongqiang Sun <yongqiang.sun@amd.com>
Mon, 5 Mar 2018 15:28:34 +0000 (10:28 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 14 Mar 2018 21:01:14 +0000 (16:01 -0500)
commitc0b0ec49c42fb8caa95a90fd3b306707feb26206
tree6e2c04350984f9d6bcdbcb0a22fb6901ebbe2026
parent338a15ed96f8fdaee8d7e4379294353af6f7160d
drm/amd/display: Fixed dim around 1sec when resume from S3 (v2)

root cause:
DMCU try to perform a smoothness brightness change.Incorrect initial
brightness level causes the 1 sec dim.
Change:
Cache brightness level in stream, and clear it when edp backlight on.
If brightness level in stream is 0, set brightness with ramp value is 0.
DMCU will set the brightness without smoothness transition.

v2: squash in null pointer fix (Harry)

Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@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/core/dc_link.c
drivers/gpu/drm/amd/display/dc/dc_stream.h
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c