]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Use Nominal vBlank If Provided Instead Of Capping It
authorAustin Zheng <Austin.Zheng@amd.com>
Tue, 7 Jan 2025 22:49:36 +0000 (17:49 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Feb 2025 02:02:57 +0000 (21:02 -0500)
commit41df56b1fc24cc36fffb10e437385b3a49fbb5e2
treeb4c242f1587b1a85ed1b01a4ade3a26d9192a77c
parent5f0d1ef6f16e150ee46cc00b8d233d9d271fe39e
drm/amd/display: Use Nominal vBlank If Provided Instead Of Capping It

[Why/How]
vBlank used to determine the max vStartup is based on the smallest between
the vblank provided by the timing and vblank in ip_caps.
Extra vblank time is not considered if the vblank provided by the timing ends
up being higher than what's defined by the ip_caps

Use 1 less than the vblank size in case the timing is interlaced
so vstartup will always be less than vblank_nom.

Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Signed-off-by: Austin Zheng <Austin.Zheng@amd.com>
Signed-off-by: Wayne Lin <wayne.lin@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/dml21/src/dml2_core/dml2_core_dcn4_calcs.c