drm/amd/display: Prevent VStartup Overflow
authorRyan Seto <ryanseto@amd.com>
Fri, 28 Feb 2025 20:52:42 +0000 (15:52 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Mar 2025 18:03:46 +0000 (14:03 -0400)
commit7b59cc671ae719fe5d608718c472c5735c04f75a
treec3245257d77f3305fac7225bf1e724255c5c9281
parent082ec59662046fd473a679e7bf6ce63968a54120
drm/amd/display: Prevent VStartup Overflow

[WHY & HOW]
Fixed Overflow issue by clamping VStartup to max value of register.

Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Signed-off-by: Ryan Seto <ryanseto@amd.com>
Signed-off-by: Alex Hung <alex.hung@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/dml2/display_mode_core.c