drm/i915/dp: Do not enable PSR2 if DSC is enabled
authorManasi Navare <manasi.d.navare@intel.com>
Wed, 28 Nov 2018 20:26:14 +0000 (12:26 -0800)
committerManasi Navare <manasi.d.navare@intel.com>
Thu, 29 Nov 2018 20:21:43 +0000 (12:21 -0800)
commit8228c42fc0ee54dd2c798035baa35739e54bfe91
tree19f20d2fdb8d4bf21fe987260c57bcee417c6ae9
parenta4a157777c807d5c0ead1b747dd9b07a07864498
drm/i915/dp: Do not enable PSR2 if DSC is enabled

If a eDP panel supports both PSR2 and VDSC, our HW cannot
support both at a time. Give priority to PSR2 if a requested
resolution can be supported without compression else enable
VDSC and keep PSR2 disabled.

v4:
Fix the unrealted stuff removed during rebase (Ville)
v3:
* Rebase
v2:
* Add warning for DSC and PSR2 enabled together (DK)

Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Manasi Navare <manasi.d.navare@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181128202628.20238-3-manasi.d.navare@intel.com
drivers/gpu/drm/i915/intel_psr.c