]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: remove global optimize seamless boot stream count
authorLewis Huang <Lewis.Huang@amd.com>
Mon, 1 Feb 2021 03:26:03 +0000 (11:26 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Feb 2021 21:43:10 +0000 (16:43 -0500)
commit16005ee26a79931ef468d13db8e19b313eb50094
tree4342f5df7f383eccdf4d961933c21be9d7c211d8
parentaf5138ccf3effdc599ca4b2907848fc5dbcee287
drm/amd/display: remove global optimize seamless boot stream count

[Why]
In following sequence driver will add counter twice on
same edp stream.
1. Boot into OS.
2. Set timing with edp only.
3. Set timing with edp and external monitor.
4. Set visibility on for edp.

Step 2 and 3 will add seamless boot counter twice and
subtract it once in step 4.

[How]
Remove global counter and calculate it is used.

Signed-off-by: Lewis Huang <Lewis.Huang@amd.com>
Reviewed-by: Martin Leung <Martin.Leung@amd.com>
Acked-by: Qingqing Zhuo <Qingqing.Zhuo@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
drivers/gpu/drm/amd/display/dc/dc.h