OSDN Git Service

drm/i915/display/dp: Do not enable PSR if VRR is enabled
authorManasi Navare <manasi.d.navare@intel.com>
Fri, 22 Jan 2021 23:26:36 +0000 (15:26 -0800)
committerManasi Navare <manasi.d.navare@intel.com>
Mon, 25 Jan 2021 23:22:59 +0000 (15:22 -0800)
Even though our HW supports PSR + VRR, the available panels
do not work reliably with PSR and VRR together. So if user
requested VRR and is supported by HW enable that and do not
enable PSR in that case.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Cc: Imre Deak <imre.deak@intel.com>
Signed-off-by: Manasi Navare <manasi.d.navare@intel.com>
Reviewed-by: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210122232647.22688-7-manasi.d.navare@intel.com
drivers/gpu/drm/i915/display/intel_psr.c

index 72d4c61..850cb7f 100644 (file)
@@ -812,6 +812,13 @@ void intel_psr_compute_config(struct intel_dp *intel_dp,
                &crtc_state->hw.adjusted_mode;
        int psr_setup_time;
 
+       /*
+        * Current PSR panels dont work reliably with VRR enabled
+        * So if VRR is enabled, do not enable PSR.
+        */
+       if (crtc_state->vrr.enable)
+               return;
+
        if (!CAN_PSR(dev_priv))
                return;