]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/i915/vrr: Always use VRR timing generator for PTL+
authorAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Mon, 24 Mar 2025 13:32:45 +0000 (19:02 +0530)
committerAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Tue, 25 Mar 2025 15:47:25 +0000 (21:17 +0530)
Currently, the VRR timing generator is used only when VRR is enabled by
userspace for sinks that support VRR. Starting with PTL+, gradually move
away from the legacy timing generator and use the VRR timing generator
for both variable and fixed timings.

Note: For platforms where we always enable the VRR timing generator,
the LRR fastset is not allowed to avoid live programming of vrr.guardband
with VRR TG enabled. This effectively breaks the LRR fastset functionality
for these platforms and needs to be addressed.

v2: Use this for PTL for now to avoid losing LRR fastset for older
platforms. (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-14-ankit.k.nautiyal@intel.com
drivers/gpu/drm/i915/display/intel_vrr.c

index dda42522f461124a16ba0aa13056f299e7f376e6..5e60da2bb0c387a932494c45f06d21dc9a593607 100644 (file)
@@ -561,7 +561,9 @@ bool intel_vrr_always_use_vrr_tg(struct intel_display *display)
        if (!HAS_VRR(display))
                return false;
 
-       /* #TODO return true for platforms supporting fixed_rr */
+       if (DISPLAY_VER(display) >= 30)
+               return true;
+
        return false;
 }