]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/vrr: Refactor condition for computing vmax and LRR
authorAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Mon, 24 Mar 2025 13:32:37 +0000 (19:02 +0530)
committerAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Tue, 25 Mar 2025 15:47:24 +0000 (21:17 +0530)
commit660d1c6385b96c3985010589382c9c7849d4734c
tree90d74d71f85480862f0bd2d91868987e25ff8de2
parent9c29a0dd8c6eae77f3d0addac78331d1a516dc39
drm/i915/vrr: Refactor condition for computing vmax and LRR

LRR and Vmax can be computed only if VRR is supported and vrr.in_range
is set. Currently we proceed with vrr timings only for VRR supporting
panels and return otherwise. For using VRR TG with fix timings, need to
continue even for panels that do not support VRR.

To achieve this, refactor the condition for computing vmax and
update_lrr so that we can continue for fixed timings for panels that do
not support VRR.

v2: Set vmax = vmin for non VRR panels. (Ville)

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://lore.kernel.org/r/20250324133248.4071909-6-ankit.k.nautiyal@intel.com
drivers/gpu/drm/i915/display/intel_vrr.c