]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: fix multi display seamless boot case
authorAnthony Koo <anthony.koo@amd.com>
Sat, 13 Apr 2019 01:23:45 +0000 (21:23 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 24 May 2019 17:20:49 +0000 (12:20 -0500)
commit0997db5d4af8eec2215d553e3b02951b655290a8
tree0722f3990e01c37fe88d9c467d39ccc5e8bc9895
parente111bf3f30fc0a079127b32c37f65aaba5abaf2c
drm/amd/display: fix multi display seamless boot case

[Why]
There is a scenario that causes eDP to become blank if
there are multiple displays connected, and the external
display is set as the primary display such that the first
flip comes to the external display.

In this scenario, we call our optimize function before
the eDP even has a chance to flip.

[How]
There is a check that prevents bandwidth optimize from
occurring before first flip is complete on the seamless boot
display.
But actually it assumed the seamless boot display is the
first one to flip. But in this scenario it is not.
Modify the check to ensure the steam with the seamless
boot flag set is the one that has completed the first flip.

Signed-off-by: Anthony Koo <anthony.koo@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c