]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/i915/lobf: Add fixed refresh rate check in compute_config()
authorAnimesh Manna <animesh.manna@intel.com>
Wed, 23 Apr 2025 09:23:28 +0000 (14:53 +0530)
committerAnimesh Manna <animesh.manna@intel.com>
Thu, 24 Apr 2025 08:24:41 +0000 (13:54 +0530)
LOBF can be enabled with vrr fixed rate mode, so add check
if vmin = vmax = flipline in compute_config().

Signed-off-by: Animesh Manna <animesh.manna@intel.com>
Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
Link: https://lore.kernel.org/r/20250423092334.2294483-6-animesh.manna@intel.com
drivers/gpu/drm/i915/display/intel_alpm.c

index e66ffdbfdb0d2f9668403beda7a958d1d949ec4a..01949b90c0c349a10c085f5be02c4e1c3ffb256f 100644 (file)
@@ -290,6 +290,10 @@ void intel_alpm_lobf_compute_config(struct intel_dp *intel_dp,
        if (crtc_state->has_psr)
                return;
 
+       if (crtc_state->vrr.vmin != crtc_state->vrr.vmax ||
+           crtc_state->vrr.vmin != crtc_state->vrr.flipline)
+               return;
+
        if (!(intel_alpm_aux_wake_supported(intel_dp) ||
              intel_alpm_aux_less_wake_supported(intel_dp)))
                return;