]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Don't optimize bandwidth before disabling planes
authorAric Cyr <aric.cyr@amd.com>
Fri, 12 Feb 2021 23:13:59 +0000 (18:13 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 22 Feb 2021 23:05:57 +0000 (18:05 -0500)
commit245bb28508ee02a40d89682ebc7a0726d653914d
tree62a70099cf803dfdf86aa0534775d48943e1ce5f
parent78f530b1b1240905cd2890a1d7b4ed6408647ed4
drm/amd/display: Don't optimize bandwidth before disabling planes

[Why]
There is a window of time where we optimize bandwidth due to no streams
enabled will enable PSTATE changing but HUBPs are not disabled yet.
This results in underflow counter increasing in some hotplug scenarios.

[How]
Set the optimize-bandwidth flag for later processing once all the HUBPs
are properly disabled.

Signed-off-by: Aric Cyr <aric.cyr@amd.com>
Acked-by: Bindu Ramamurthy <bindu.r@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