summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Wang <Danny.Wang@amd.com>2025-07-24 08:58:21 +0300
committerAlex Deucher <alexander.deucher@amd.com>2025-08-11 18:13:26 +0300
commitad335b5fc9ed1cdeb33fbe97d2969b3a2eedaf3e (patch)
treecc7e46187b359f018a4d187303e170e22af2e151
parente7496c15d830689cc4fc666b976c845ed2c5ed28 (diff)
downloadlinux-ad335b5fc9ed1cdeb33fbe97d2969b3a2eedaf3e.tar.xz
drm/amd/display: Reset apply_eamless_boot_optimization when dpms_off
[WHY&HOW] The user closed the lid while the system was powering on and opened it again before the “apply_seamless_boot_optimization” was set to false, resulting in the eDP remaining blank. Reset the “apply_seamless_boot_optimization” to false when dpms off. Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> Signed-off-by: Danny Wang <Danny.Wang@amd.com> Signed-off-by: Tom Chung <chiahsuan.chung@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/display/dc/core/dc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c
index 242bcb30dd34..5bf97d8fb34a 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc.c
@@ -3391,7 +3391,7 @@ static void update_seamless_boot_flags(struct dc *dc,
int surface_count,
struct dc_stream_state *stream)
{
- if (get_seamless_boot_stream_count(context) > 0 && surface_count > 0) {
+ if (get_seamless_boot_stream_count(context) > 0 && (surface_count > 0 || stream->dpms_off)) {
/* Optimize seamless boot flag keeps clocks and watermarks high until
* first flip. After first flip, optimization is required to lower
* bandwidth. Important to note that it is expected UEFI will