Skip to content

Commit 9856308

Browse files
committed
drm/i915: Only populate aux_ch if really needed
Mixing VBT based AUX CH with platform defaults seems like a recipe for conflicts. Let's only populate AUX CH if we absolutely need it, that is only if we are dealing with a DP output or a TC port (which need it due to some power well shenanigans). TODO: double check that real VBTs do in fact populate the AUX CH for HDMI TC legacy ports... Reviewed-by: Jani Nikula <[email protected]> Signed-off-by: Ville Syrjälä <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 4cca967 commit 9856308

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

drivers/gpu/drm/i915/display/g4x_hdmi.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,5 @@ void g4x_hdmi_init(struct drm_i915_private *dev_priv,
775775

776776
intel_infoframe_init(dig_port);
777777

778-
dig_port->aux_ch = intel_dp_aux_ch(intel_encoder);
779778
intel_hdmi_init_connector(dig_port, intel_connector);
780779
}

drivers/gpu/drm/i915/display/intel_ddi.c

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4676,6 +4676,14 @@ static bool port_strap_detected(struct drm_i915_private *i915, enum port port)
46764676
}
46774677
}
46784678

4679+
static bool need_aux_ch(struct intel_encoder *encoder, bool init_dp)
4680+
{
4681+
struct drm_i915_private *i915 = to_i915(encoder->base.dev);
4682+
enum phy phy = intel_port_to_phy(i915, encoder->port);
4683+
4684+
return init_dp || intel_phy_is_tc(i915, phy);
4685+
}
4686+
46794687
void intel_ddi_init(struct drm_i915_private *dev_priv, enum port port)
46804688
{
46814689
struct intel_digital_port *dig_port;
@@ -4929,7 +4937,9 @@ void intel_ddi_init(struct drm_i915_private *dev_priv, enum port port)
49294937

49304938
dig_port->dp.output_reg = INVALID_MMIO_REG;
49314939
dig_port->max_lanes = intel_ddi_max_lanes(dig_port);
4932-
dig_port->aux_ch = intel_dp_aux_ch(encoder);
4940+
4941+
if (need_aux_ch(encoder, init_dp))
4942+
dig_port->aux_ch = intel_dp_aux_ch(encoder);
49334943

49344944
if (intel_phy_is_tc(dev_priv, phy)) {
49354945
bool is_legacy =

0 commit comments

Comments
 (0)