drm/amd/display: Require minimum VBlank size for stutter optimization
authorDillon Varone <dillon.varone@amd.com>
Fri, 1 Nov 2024 16:00:14 +0000 (12:00 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 11 Nov 2024 16:53:20 +0000 (11:53 -0500)
commit003215f962cdf2265f126a3f4c9ad20917f87fca
tree9cf3a3da71f82dca78db0ebbefa4adb314231f21
parentbcafdc61529a48f6f06355d78eb41b3aeda5296c
drm/amd/display: Require minimum VBlank size for stutter optimization

If the nominal VBlank is too small, optimizing for stutter can cause
the prefetch bandwidth to increase drasticaly, resulting in higher
clock and power requirements. Only optimize if it is >3x the stutter
latency.

Reviewed-by: Austin Zheng <austin.zheng@amd.com>
Signed-off-by: Dillon Varone <dillon.varone@amd.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn4_fams2.c