]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/psr: Allow SCL=0 on platforms with always-on VRR TG
authorAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Sun, 17 May 2026 14:27:53 +0000 (19:57 +0530)
committerAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Mon, 25 May 2026 10:33:31 +0000 (16:03 +0530)
For Legacy timing generator, if there are no panel replay/sel_update or
other SRD constraints, the Set context latency (SCL) window should be
at least 1.

However, for VRR timing generator the SCL window can be 0. It has other
guardband constraints, but that are checked during guardband computation.

Allow SCL to be 0 for platforms that have VRR TG always on.

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
Link: https://patch.msgid.link/20260517142753.2813959-3-ankit.k.nautiyal@intel.com
drivers/gpu/drm/i915/display/intel_psr.c

index 6d3801cb0612299ca86e3c852b6b3ba4503c299c..9382ad1e01d82179a1ee1b8d800f8f239273b176 100644 (file)
@@ -1519,6 +1519,9 @@ int _intel_psr_min_set_context_latency(const struct intel_crtc_state *crtc_state
            needs_panel_replay)
                return 0;
 
+       if (intel_vrr_always_use_vrr_tg(display))
+               return 0;
+
        return 1;
 }