mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
drm/amd/display: Reset apply_eamless_boot_optimization when dpms_off
[ Upstream commit ad335b5fc9 ]
[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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
3db7394212
commit
fc17bb647d
@@ -3132,7 +3132,7 @@ static void update_seamless_boot_flags(struct dc *dc,
|
|||||||
int surface_count,
|
int surface_count,
|
||||||
struct dc_stream_state *stream)
|
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
|
/* Optimize seamless boot flag keeps clocks and watermarks high until
|
||||||
* first flip. After first flip, optimization is required to lower
|
* first flip. After first flip, optimization is required to lower
|
||||||
* bandwidth. Important to note that it is expected UEFI will
|
* bandwidth. Important to note that it is expected UEFI will
|
||||||
|
|||||||
Reference in New Issue
Block a user