drm/amd/display: fix dpms_off issue when disabling bios mode
authorZhongwei <Zhongwei.Zhang@amd.com>
Fri, 28 Oct 2022 05:40:31 +0000 (13:40 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Apr 2023 12:50:21 +0000 (08:50 -0400)
commit58e67bb3c131da5ee14e4842b08e53f4888dce0a
treeaf56a422053016ad3a094b65808dffbbaa5171b0
parent255ce8f7c169fa385ad04f01c7babab5f636a3ce
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 backlight by
display's powerState.

Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Zhongwei <Zhongwei.Zhang@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c