drm/amd/display: Fix vupdate and vline position calculation
authorAric Cyr <aric.cyr@amd.com>
Fri, 23 Sep 2022 21:09:54 +0000 (17:09 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Oct 2022 16:01:07 +0000 (12:01 -0400)
commit51619c671316e96d7adaf2b6ea94ce245b81b6dd
tree796cc7086ec870185562b36a8b62ce7911563dac
parentbaec651f4160f4c3f029edf84bbc18b4fcba9cf5
drm/amd/display: Fix vupdate and vline position calculation

[how]
Large deltas for periodic interrupts could result in the interrupt not
being programmed properly and thus not firing.

[why]
Add proper wrap-around support for calculating VUPDATE and VLINE
positions.

Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Aric Cyr <aric.cyr@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c