drm/amd/display: fix report display count logic
authorEric Yang <Eric.Yang2@amd.com>
Wed, 26 Sep 2018 19:52:19 +0000 (15:52 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Nov 2018 19:20:45 +0000 (14:20 -0500)
commite2bf20073e4d32c78d4007b8aecb4a61b8418797
tree7f56ca421452210715e48e9f3b5d408513423ad5
parent560a77f5f4019518ec14020f140e38141aeeb661
drm/amd/display: fix report display count logic

[Why]
Previous logic to update display count in commit_planes_do_stream_update
doesn't cover all cases.

[How]
Update display count as part of clock updates. Count virtual stream
as active to work around headless situation.

Signed-off-by: Eric Yang <Eric.Yang2@amd.com>
Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@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
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dccg.c