Commit 5aa66375 authored by Zhongwei Zhang's avatar Zhongwei Zhang Committed by Alex Deucher

drm/amd/display: fix dpms_off issue when disabling bios mode

[Why]
disable_vbios_mode_if_required() will set dpms_off to false
during boot when pixel clk dismatches with driver requires.
This will cause extra backlight on and off if OS call 2
times setmode.

[How]
Set dpms_off to true to keep power_off and
let OS control BL by display's powerState.
Reviewed-by: default avatarAric Cyr <Aric.Cyr@amd.com>
Acked-by: default avatarTom Chung <chiahsuan.chung@amd.com>
Signed-off-by: default avatarZhongwei Zhang <Zhongwei.Zhang@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent a5d313b4
...@@ -1192,7 +1192,7 @@ static void disable_vbios_mode_if_required( ...@@ -1192,7 +1192,7 @@ static void disable_vbios_mode_if_required(
if (pix_clk_100hz != requested_pix_clk_100hz) { if (pix_clk_100hz != requested_pix_clk_100hz) {
core_link_disable_stream(pipe); core_link_disable_stream(pipe);
pipe->stream->dpms_off = false; pipe->stream->dpms_off = true;
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment