OSDN Git Service

drm/i915/psr2: Fix max resolution supported.
authorRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 27 Feb 2018 21:29:12 +0000 (13:29 -0800)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 27 Feb 2018 23:54:12 +0000 (15:54 -0800)
According to spec:
"PSR2 is supported for pipe active sizes up to
3640 pixels wide and 2304 lines tall."

BSpec: 7713

Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180227212913.14083-1-rodrigo.vivi@intel.com
drivers/gpu/drm/i915/intel_psr.c

index 1f77633..2f685be 100644 (file)
@@ -523,9 +523,9 @@ void intel_psr_compute_config(struct intel_dp *intel_dp,
                return;
        }
 
-       /* PSR2 is restricted to work with panel resolutions upto 3200x2000 */
-       if (adjusted_mode->crtc_hdisplay > 3200 ||
-           adjusted_mode->crtc_vdisplay > 2000) {
+       /* PSR2 is restricted to work with panel resolutions up to 3640x2304 */
+       if (adjusted_mode->crtc_hdisplay > 3640 ||
+           adjusted_mode->crtc_vdisplay > 2304) {
                DRM_DEBUG_KMS("PSR2 disabled, panel resolution too big\n");
                return;
        }