OSDN Git Service

drm/i915: Use the AUX_IO power domain only for eDP/PSR port
authorImre Deak <imre.deak@intel.com>
Mon, 14 Nov 2022 12:22:46 +0000 (14:22 +0200)
committerImre Deak <imre.deak@intel.com>
Fri, 18 Nov 2022 15:28:31 +0000 (17:28 +0200)
commitb2e00dd378eed5274a043f6cdfd4f8e2731bb6b5
tree9afbae42fcff341b5c790f8f98fca8478dc94050
parent5c30cfcd4020963502d318ab76599fbbbdf307a6
drm/i915: Use the AUX_IO power domain only for eDP/PSR port

Use the AUX_IO_A display power domain only for eDP on port A where PSR
is also supported. This is the case where DC states need to be enabled
while the output is enabled - ensured by AUX_IO_A domain not enabling
the DC_OFF power well. Otherwise port A can be treated the same way as
other ports with an external DP output: using the AUX_<port> domain
which disables the unrequired DC states.

This change prepares for the next patch enabling DC states on all ports
supporting eDP/PSR besides port A.

v2:
- Check the encoder PSR capability instead of PSR being enabled in the
  crtc_state, as the latter can be changed with a fastset.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221114122251.21327-5-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_ddi.c