drm/i915/psr: Update PSR2 resolution check for Cannonlake
authorDhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Tue, 6 Mar 2018 20:33:55 +0000 (12:33 -0800)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 6 Mar 2018 22:35:45 +0000 (14:35 -0800)
commitc90c275c6ff4b7eca4221a302b399499239ae89e
treeca1a372350bfaf13edaddc3d726dc745a6ec684b
parentf41d19beccfebb84abc729e2d8ece0c368b2152f
drm/i915/psr: Update PSR2 resolution check for Cannonlake

In fact, apply the Cannonlake resolution check for all >= Gen-10 platforms
to be safe.

v3: Update GLK too. (Ville)
    Longer variable names.
    if-else in place of ternary operator.
v2: Use local variables for resolution limits and print them (Ville)

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Elio Martinez Monroy <elio.martinez.monroy@intel.com>
Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180306203355.29292-1-dhinakaran.pandiyan@intel.com
drivers/gpu/drm/i915/intel_psr.c