drm/i915: Start tracking PSR state in crtc state
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 12 Oct 2017 13:02:01 +0000 (16:02 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 12 Oct 2017 18:18:00 +0000 (21:18 +0300)
commit4d90f2d507ab4634e9e1923de3a6769ac0aa71fa
tree4b04d3d55cf9368b41877ed67f7105d388c549e8
parentfa9caf0b6e69703ff8a4d4da17897008ec2f2dd3
drm/i915: Start tracking PSR state in crtc state

Add the minimal amount of PSR tracking into the crtc state. This allows
precomputing the possibility of using PSR correctly, and it means we can
safely call the psr enable/disable functions for any DP endcoder.

As a nice bonus we get rid of some more crtc->config usage, which we
want to kill off eventually.

v2: Fix 'goto unlock' fail in intel_psr_enable() (Jani)
    Check intel_dp_is_edp() in is_edp_psr() (Jani)

Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171012130201.21318-1-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_psr.c