]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915/display: Ignore IGNORE_PSR2_HW_TRACKING for platforms without sel fetch
authorJosé Roberto de Souza <jose.souza@intel.com>
Wed, 7 Oct 2020 19:52:36 +0000 (12:52 -0700)
committerJosé Roberto de Souza <jose.souza@intel.com>
Fri, 9 Oct 2020 22:07:35 +0000 (15:07 -0700)
For platforms without selective fetch this register is reserved so
do not write 0 to it.

Cc: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201007195238.53955-1-jose.souza@intel.com
drivers/gpu/drm/i915/display/intel_psr.c

index 8a9d0bdde1bfb229a725e94b4a4c3c659fc9ed52..4e09ae61d4aa6f05889b97c33f6d39b23cffee5c 100644 (file)
@@ -942,7 +942,7 @@ static void intel_psr_enable_source(struct intel_dp *intel_dp,
                intel_de_write(dev_priv, EXITLINE(cpu_transcoder), val);
        }
 
-       if (HAS_PSR_HW_TRACKING(dev_priv))
+       if (HAS_PSR_HW_TRACKING(dev_priv) && HAS_PSR2_SEL_FETCH(dev_priv))
                intel_de_rmw(dev_priv, CHICKEN_PAR1_1, IGNORE_PSR2_HW_TRACKING,
                             dev_priv->psr.psr2_sel_fetch_enabled ?
                             IGNORE_PSR2_HW_TRACKING : 0);