From: Danny Wang <danny.w...@amd.com>

[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.kazlaus...@amd.com>
Signed-off-by: Danny Wang <danny.w...@amd.com>
Signed-off-by: Tom Chung <chiahsuan.ch...@amd.com>
---
 drivers/gpu/drm/amd/display/dc/core/dc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-- 
2.43.0

Reply via email to