From: Zhongwei Zhang Date: Fri, 28 Oct 2022 05:40:31 +0000 (+0800) Subject: drm/amd/display: fix dpms_off issue when disabling bios mode X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5aa663752ff6f844c6bfc97d89231e98884ae769;p=linux.git 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: Aric Cyr Acked-by: Tom Chung Signed-off-by: Zhongwei Zhang Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index 9c3704c4d7e4e..9f42adc234e30 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -1192,7 +1192,7 @@ static void disable_vbios_mode_if_required( if (pix_clk_100hz != requested_pix_clk_100hz) { core_link_disable_stream(pipe); - pipe->stream->dpms_off = false; + pipe->stream->dpms_off = true; } } }