]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/vrr: Use crtc_vtotal for vmin
authorAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Tue, 11 Mar 2025 09:37:49 +0000 (15:07 +0530)
committerAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Thu, 13 Mar 2025 12:15:28 +0000 (17:45 +0530)
commit1f44247dde98b582d7d6ce7d402facc070fa4506
treea70abca8003670891aba25ac9ef9f9f83b4d8473
parent27217f9d185666c8bc1449796cd4029ca66d8d3c
drm/i915/vrr: Use crtc_vtotal for vmin

To have fixed refresh rate with VRR timing generator the
guardband/pipeline full can't be programmed on the fly. So we need to
ensure that the values satisfy both the fixed and variable refresh
rates.

Since we compute these value based on vmin, lets set the vmin to
crtc_vtotal for both fixed and variable timings instead of using the
current refresh rate based approach. This way the guardband remains
sufficient for both cases.

v2: Avoid using vblank delay while computing vtotal, as this comes into
the picture later. (Ville)

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250311093751.1329043-7-ankit.k.nautiyal@intel.com
drivers/gpu/drm/i915/display/intel_vrr.c