Skip to content

Commit

Permalink
drm/i915/tc: Skip ref held check for TC legacy aux power wells
Browse files Browse the repository at this point in the history
As part of ICL TC cold exit sequences we need to request aux power
well before lock the access to TC ports, so skiping the
intel_tc_port_ref_held() check for TC legacy ports.

Reviewed-by: Imre Deak <imre.deak@intel.com>
Tested-by: You-Sheng Yang <vicamo.yang@canonical.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200414194956.164323-5-jose.souza@intel.com
  • Loading branch information
José Roberto de Souza committed Apr 17, 2020
1 parent feb7e0e commit 7ce40a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/i915/display/intel_display_power.c
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,9 @@ static void icl_tc_port_assert_ref_held(struct drm_i915_private *dev_priv,
if (drm_WARN_ON(&dev_priv->drm, !dig_port))
return;

if (INTEL_GEN(dev_priv) == 11 && dig_port->tc_legacy_port)
return;

drm_WARN_ON(&dev_priv->drm, !intel_tc_port_ref_held(dig_port));
}

Expand Down

0 comments on commit 7ce40a6

Please sign in to comment.