drm/amd/display: Compare v_front_porch when checking if streams are synchronizable
authorDavid Galiffi <David.Galiffi@amd.com>
Thu, 11 Jun 2020 21:36:14 +0000 (17:36 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2020 05:59:26 +0000 (01:59 -0400)
commit8582aea20bc5de1fc4f2029e6cde604b2c755c0a
tree216e3834806481813dfd5286bd851dac3c4b3a87
parent0f782777f05ded1bb9694aed250bc74f25f0c91b
drm/amd/display: Compare v_front_porch when checking if streams are synchronizable

[Why]
If the front porch of the two timings differ, then there may not be
enough time while both streams are in vertical blank to perform a memory
clock change. This can hang the system.

[How]
Check the each streams timing.v_front_porch when determining if the two
streams are synchronizable.

Signed-off-by: David Galiffi <David.Galiffi@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c