drm/i915/icl: Fix port B combo PHY context loss after DC transitions
authorImre Deak <imre.deak@intel.com>
Tue, 6 Nov 2018 16:06:21 +0000 (18:06 +0200)
committerImre Deak <imre.deak@intel.com>
Thu, 8 Nov 2018 17:27:29 +0000 (19:27 +0200)
commit602438ead302aaa844899db5214b489d0d93fe18
treeef833b16f6e57f2841ba991c9c6df228c0521759
parentbc458c1174e3124c10897fcc1b8b54fbc2db474e
drm/i915/icl: Fix port B combo PHY context loss after DC transitions

On ICL DMC/PCODE retains the HW context only for port A across DC
transitions, for the other port B combo PHY, it doesn't. So we need to
do this manually after exiting from DC6. Do the reinit even after
exiting from DC5, it won't hurt since we only reinit the PHY in case
it's needed (in case it was disabled to begin with).

As can be guessed from the bugzilla report leaving the PHY uninited will
lead to a later timeout during the port B specific AUX and DDI_IO power
well enabling.

v2:
- Apply the fix on all GEN>=11 platforms. (Rodrigo)

Bspec: 21257
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108070
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: José Roberto de Souza <jose.souza@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181106160621.23057-6-imre.deak@intel.com
drivers/gpu/drm/i915/intel_runtime_pm.c