]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite9879b00371b53ed53a80f08d3678d05102e8a03
tree796cc7086ec870185562b36a8b62ce7911563dac
parent63e7e640948e8f09af4427b133b749a6ba8e3b85
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