drm/i915/hsw: Drop the stereo 3D enabled check in psr_compute_config()
authorJosé Roberto de Souza <jose.souza@intel.com>
Wed, 21 Nov 2018 22:54:41 +0000 (14:54 -0800)
committerJosé Roberto de Souza <jose.souza@intel.com>
Thu, 22 Nov 2018 21:51:20 +0000 (13:51 -0800)
We should not access hardware while computing config also we don't
support stereo 3D so this test was never true.

Suggested-by: Ville Syrjälä <ville.syrjala@linux.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/20181121225441.18785-6-jose.souza@intel.com
drivers/gpu/drm/i915/intel_psr.c

index c5ab69e6c90b153f094362c941137280f8070d9e..572e626eadffed3cd6cccad05fe39261c5245cf0 100644 (file)
@@ -552,13 +552,6 @@ void intel_psr_compute_config(struct intel_dp *intel_dp,
                return;
        }
 
-       if (IS_HASWELL(dev_priv) &&
-           I915_READ(HSW_STEREO_3D_CTL(crtc_state->cpu_transcoder)) &
-                     S3D_ENABLE) {
-               DRM_DEBUG_KMS("PSR condition failed: Stereo 3D is Enabled\n");
-               return;
-       }
-
        if (IS_HASWELL(dev_priv) &&
            adjusted_mode->flags & DRM_MODE_FLAG_INTERLACE) {
                DRM_DEBUG_KMS("PSR condition failed: Interlaced is Enabled\n");