All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [V2 PATCH 1/2] dp/mst: add SDP stream support
@ 2015-11-11  5:33 libin.yang
  2015-11-11  5:33 ` [V2 PATCH 2/2] drm/i915: start adding dp mst audio libin.yang
  2015-11-12 14:40 ` [V2 PATCH 1/2] dp/mst: add SDP stream support Yang, Libin
  0 siblings, 2 replies; 9+ messages in thread
From: libin.yang @ 2015-11-11  5:33 UTC (permalink / raw
  To: intel-gfx, jani.nikula, daniel.vetter, ville.syrjala
  Cc: Dave Airlie, Libin Yang

From: Libin Yang <libin.yang@linux.intel.com>

This adds code to initialise the SDP streams
for a sink in the simplest ordering.

I've no idea how you'd want to control the
ordering at this level, so don't bother
until someone comes up with a use case.

Signed-off-by: Libin Yang <libin.yang@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
---
 drivers/gpu/drm/drm_dp_mst_topology.c | 38 ++++++++++++++++++++++++++++++++---
 include/drm/drm_dp_mst_helper.h       |  7 +++++--
 2 files changed, 40 insertions(+), 5 deletions(-)

diff --git a/drivers/gpu/drm/drm_dp_mst_topology.c b/drivers/gpu/drm/drm_dp_mst_topology.c
index 809959d..f50eb7b 100644
--- a/drivers/gpu/drm/drm_dp_mst_topology.c
+++ b/drivers/gpu/drm/drm_dp_mst_topology.c
@@ -666,7 +666,9 @@ static int build_enum_path_resources(struct drm_dp_sideband_msg_tx *msg, int por
 }
 
 static int build_allocate_payload(struct drm_dp_sideband_msg_tx *msg, int port_num,
-				  u8 vcpi, uint16_t pbn)
+				  u8 vcpi, uint16_t pbn,
+				  u8 number_sdp_streams,
+				  u8 *sdp_stream_sink)
 {
 	struct drm_dp_sideband_msg_req_body req;
 	memset(&req, 0, sizeof(req));
@@ -674,6 +676,9 @@ static int build_allocate_payload(struct drm_dp_sideband_msg_tx *msg, int port_n
 	req.u.allocate_payload.port_number = port_num;
 	req.u.allocate_payload.vcpi = vcpi;
 	req.u.allocate_payload.pbn = pbn;
+	req.u.allocate_payload.number_sdp_streams = number_sdp_streams;
+	memcpy(req.u.allocate_payload.sdp_stream_sink, sdp_stream_sink,
+		   number_sdp_streams);
 	drm_dp_encode_sideband_req(&req, msg);
 	msg->path_msg = true;
 	return 0;
@@ -1562,6 +1567,8 @@ static int drm_dp_payload_send_msg(struct drm_dp_mst_topology_mgr *mgr,
 	struct drm_dp_sideband_msg_tx *txmsg;
 	struct drm_dp_mst_branch *mstb;
 	int len, ret;
+	u8 sinks[DRM_DP_MAX_SDP_STREAMS];
+	int i;
 
 	mstb = drm_dp_get_validated_mstb_ref(mgr, port->parent);
 	if (!mstb)
@@ -1573,10 +1580,13 @@ static int drm_dp_payload_send_msg(struct drm_dp_mst_topology_mgr *mgr,
 		goto fail_put;
 	}
 
+	for (i = 0; i < port->num_sdp_streams; i++)
+		sinks[i] = i;
+
 	txmsg->dst = mstb;
 	len = build_allocate_payload(txmsg, port->port_num,
 				     id,
-				     pbn);
+				     pbn, port->num_sdp_streams, sinks);
 
 	drm_dp_queue_down_tx(mgr, txmsg);
 
@@ -2259,6 +2269,27 @@ out:
 EXPORT_SYMBOL(drm_dp_mst_detect_port);
 
 /**
+ * drm_dp_mst_port_has_audio() - Check whether port has audio capability or not
+ * @mgr: manager for this port
+ * @port: unverified pointer to a port.
+ *
+ * This returns whether the port supports audio or not.
+ */
+bool drm_dp_mst_port_has_audio(struct drm_dp_mst_topology_mgr *mgr,
+					struct drm_dp_mst_port *port)
+{
+	bool ret = false;
+
+	port = drm_dp_get_validated_port_ref(mgr, port);
+	if (!port)
+		return ret;
+	ret = port->has_audio;
+	drm_dp_put_port(port);
+	return ret;
+}
+EXPORT_SYMBOL(drm_dp_mst_port_has_audio);
+
+/**
  * drm_dp_mst_get_edid() - get EDID for an MST port
  * @connector: toplevel connector to get EDID for
  * @mgr: manager for this port
@@ -2283,6 +2314,7 @@ struct edid *drm_dp_mst_get_edid(struct drm_connector *connector, struct drm_dp_
 		edid = drm_get_edid(connector, &port->aux.ddc);
 		drm_mode_connector_set_tile_property(connector);
 	}
+	port->has_audio = drm_detect_monitor_audio(edid);
 	drm_dp_put_port(port);
 	return edid;
 }
@@ -2566,7 +2598,7 @@ static void drm_dp_mst_dump_mstb(struct seq_file *m,
 
 	seq_printf(m, "%smst: %p, %d\n", prefix, mstb, mstb->num_ports);
 	list_for_each_entry(port, &mstb->ports, next) {
-		seq_printf(m, "%sport: %d: ddps: %d ldps: %d, %p, conn: %p\n", prefix, port->port_num, port->ddps, port->ldps, port, port->connector);
+		seq_printf(m, "%sport: %d: ddps: %d ldps: %d, sdp: %d/%d, %p, conn: %p\n", prefix, port->port_num, port->ddps, port->ldps, port->num_sdp_streams, port->num_sdp_stream_sinks, port, port->connector);
 		if (port->mstb)
 			drm_dp_mst_dump_mstb(m, port->mstb);
 	}
diff --git a/include/drm/drm_dp_mst_helper.h b/include/drm/drm_dp_mst_helper.h
index 5340099..74b5888 100644
--- a/include/drm/drm_dp_mst_helper.h
+++ b/include/drm/drm_dp_mst_helper.h
@@ -94,6 +94,7 @@ struct drm_dp_mst_port {
 	struct drm_dp_mst_topology_mgr *mgr;
 
 	struct edid *cached_edid; /* for DP logical ports - make tiling work */
+	bool has_audio;
 };
 
 /**
@@ -215,13 +216,13 @@ struct drm_dp_sideband_msg_rx {
 	struct drm_dp_sideband_msg_hdr initial_hdr;
 };
 
-
+#define DRM_DP_MAX_SDP_STREAMS 16
 struct drm_dp_allocate_payload {
 	u8 port_number;
 	u8 number_sdp_streams;
 	u8 vcpi;
 	u16 pbn;
-	u8 sdp_stream_sink[8];
+	u8 sdp_stream_sink[DRM_DP_MAX_SDP_STREAMS];
 };
 
 struct drm_dp_allocate_payload_ack_reply {
@@ -484,6 +485,8 @@ int drm_dp_mst_hpd_irq(struct drm_dp_mst_topology_mgr *mgr, u8 *esi, bool *handl
 
 enum drm_connector_status drm_dp_mst_detect_port(struct drm_connector *connector, struct drm_dp_mst_topology_mgr *mgr, struct drm_dp_mst_port *port);
 
+bool drm_dp_mst_port_has_audio(struct drm_dp_mst_topology_mgr *mgr,
+					struct drm_dp_mst_port *port);
 struct edid *drm_dp_mst_get_edid(struct drm_connector *connector, struct drm_dp_mst_topology_mgr *mgr, struct drm_dp_mst_port *port);
 
 
-- 
1.9.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [V2 PATCH 2/2] drm/i915: start adding dp mst audio
  2015-11-11  5:33 [V2 PATCH 1/2] dp/mst: add SDP stream support libin.yang
@ 2015-11-11  5:33 ` libin.yang
  2015-11-19 11:07   ` Ander Conselvan De Oliveira
  2015-11-12 14:40 ` [V2 PATCH 1/2] dp/mst: add SDP stream support Yang, Libin
  1 sibling, 1 reply; 9+ messages in thread
From: libin.yang @ 2015-11-11  5:33 UTC (permalink / raw
  To: intel-gfx, jani.nikula, daniel.vetter, ville.syrjala
  Cc: Dave Airlie, Libin Yang

From: Libin Yang <libin.yang@linux.intel.com>

This patch adds support for DP MST audio in i915.

Enable audio codec when DP MST is enabled if has_audio flag is set.
Disable audio codec when DP MST is disabled if has_audio flag is set.

Signed-off-by: Libin Yang <libin.yang@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
---
 drivers/gpu/drm/i915/i915_debugfs.c | 14 ++++++++++++++
 drivers/gpu/drm/i915/intel_audio.c  |  9 ++++++---
 drivers/gpu/drm/i915/intel_dp_mst.c | 25 +++++++++++++++++++++++++
 3 files changed, 45 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index 5659d4c..38c7a5d 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -2873,6 +2873,18 @@ static void intel_dp_info(struct seq_file *m,
 		intel_panel_info(m, &intel_connector->panel);
 }
 
+static void intel_dp_mst_info(struct seq_file *m,
+			  struct intel_connector *intel_connector)
+{
+	struct intel_encoder *intel_encoder = intel_connector->encoder;
+	struct intel_dp_mst_encoder *intel_mst =
+		enc_to_mst(&intel_encoder->base);
+	struct intel_digital_port *intel_dig_port = intel_mst->primary;
+	struct intel_dp *intel_dp = &intel_dig_port->dp;
+
+	seq_printf(m, "\taudio support: %s\n", drm_dp_mst_port_has_audio(&intel_dp->mst_mgr, intel_connector->port) ? "yes" : "no");
+}
+
 static void intel_hdmi_info(struct seq_file *m,
 			    struct intel_connector *intel_connector)
 {
@@ -2916,6 +2928,8 @@ static void intel_connector_info(struct seq_file *m,
 			intel_hdmi_info(m, intel_connector);
 		else if (intel_encoder->type == INTEL_OUTPUT_LVDS)
 			intel_lvds_info(m, intel_connector);
+		else if (intel_encoder->type == INTEL_OUTPUT_DP_MST)
+			intel_dp_mst_info(m, intel_connector);
 	}
 
 	seq_printf(m, "\tmodes:\n");
diff --git a/drivers/gpu/drm/i915/intel_audio.c b/drivers/gpu/drm/i915/intel_audio.c
index 63d4706..07b2aa6 100644
--- a/drivers/gpu/drm/i915/intel_audio.c
+++ b/drivers/gpu/drm/i915/intel_audio.c
@@ -262,7 +262,8 @@ static void hsw_audio_codec_disable(struct intel_encoder *encoder)
 	tmp |= AUD_CONFIG_N_PROG_ENABLE;
 	tmp &= ~AUD_CONFIG_UPPER_N_MASK;
 	tmp &= ~AUD_CONFIG_LOWER_N_MASK;
-	if (intel_pipe_has_type(intel_crtc, INTEL_OUTPUT_DISPLAYPORT))
+	if (intel_pipe_has_type(intel_crtc, INTEL_OUTPUT_DISPLAYPORT) ||
+		intel_pipe_has_type(intel_crtc, INTEL_OUTPUT_DP_MST))
 		tmp |= AUD_CONFIG_N_VALUE_INDEX;
 	I915_WRITE(HSW_AUD_CFG(pipe), tmp);
 
@@ -478,7 +479,8 @@ static void ilk_audio_codec_enable(struct drm_connector *connector,
 	tmp &= ~AUD_CONFIG_N_VALUE_INDEX;
 	tmp &= ~AUD_CONFIG_N_PROG_ENABLE;
 	tmp &= ~AUD_CONFIG_PIXEL_CLOCK_HDMI_MASK;
-	if (intel_pipe_has_type(intel_crtc, INTEL_OUTPUT_DISPLAYPORT))
+	if (intel_pipe_has_type(intel_crtc, INTEL_OUTPUT_DISPLAYPORT) ||
+		intel_pipe_has_type(intel_crtc, INTEL_OUTPUT_DP_MST))
 		tmp |= AUD_CONFIG_N_VALUE_INDEX;
 	else
 		tmp |= audio_config_hdmi_pixel_clock(adjusted_mode);
@@ -516,7 +518,8 @@ void intel_audio_codec_enable(struct intel_encoder *intel_encoder)
 
 	/* ELD Conn_Type */
 	connector->eld[5] &= ~(3 << 2);
-	if (intel_pipe_has_type(crtc, INTEL_OUTPUT_DISPLAYPORT))
+	if (intel_pipe_has_type(crtc, INTEL_OUTPUT_DISPLAYPORT) ||
+		intel_pipe_has_type(crtc, INTEL_OUTPUT_DP_MST))
 		connector->eld[5] |= (1 << 2);
 
 	connector->eld[6] = drm_av_sync_delay(connector, adjusted_mode) / 2;
diff --git a/drivers/gpu/drm/i915/intel_dp_mst.c b/drivers/gpu/drm/i915/intel_dp_mst.c
index 0639275..4ded0fb 100644
--- a/drivers/gpu/drm/i915/intel_dp_mst.c
+++ b/drivers/gpu/drm/i915/intel_dp_mst.c
@@ -78,6 +78,8 @@ static bool intel_dp_mst_compute_config(struct intel_encoder *encoder,
 		return false;
 	}
 
+	if (drm_dp_mst_port_has_audio(&intel_dp->mst_mgr, found->port))
+		pipe_config->has_audio = true;
 	mst_pbn = drm_dp_calc_pbn_mode(adjusted_mode->crtc_clock, bpp);
 
 	pipe_config->pbn = mst_pbn;
@@ -102,6 +104,11 @@ static void intel_mst_disable_dp(struct intel_encoder *encoder)
 	struct intel_dp_mst_encoder *intel_mst = enc_to_mst(&encoder->base);
 	struct intel_digital_port *intel_dig_port = intel_mst->primary;
 	struct intel_dp *intel_dp = &intel_dig_port->dp;
+	struct drm_device *dev = encoder->base.dev;
+	struct drm_i915_private *dev_priv = dev->dev_private;
+	struct drm_crtc *crtc = encoder->base.crtc;
+	struct intel_crtc *intel_crtc = to_intel_crtc(crtc);
+
 	int ret;
 
 	DRM_DEBUG_KMS("%d\n", intel_dp->active_mst_links);
@@ -112,6 +119,10 @@ static void intel_mst_disable_dp(struct intel_encoder *encoder)
 	if (ret) {
 		DRM_ERROR("failed to update payload %d\n", ret);
 	}
+	if (intel_crtc->config->has_audio) {
+		intel_audio_codec_disable(encoder);
+		intel_display_power_put(dev_priv, POWER_DOMAIN_AUDIO);
+	}
 }
 
 static void intel_mst_post_disable_dp(struct intel_encoder *encoder)
@@ -214,6 +225,7 @@ static void intel_mst_enable_dp(struct intel_encoder *encoder)
 	struct intel_dp *intel_dp = &intel_dig_port->dp;
 	struct drm_device *dev = intel_dig_port->base.base.dev;
 	struct drm_i915_private *dev_priv = dev->dev_private;
+	struct intel_crtc *crtc = to_intel_crtc(encoder->base.crtc);
 	enum port port = intel_dig_port->port;
 	int ret;
 
@@ -226,6 +238,13 @@ static void intel_mst_enable_dp(struct intel_encoder *encoder)
 	ret = drm_dp_check_act_status(&intel_dp->mst_mgr);
 
 	ret = drm_dp_update_payload_part2(&intel_dp->mst_mgr);
+
+	if (crtc->config->has_audio) {
+		DRM_DEBUG_DRIVER("Enabling DP audio on pipe %c\n",
+				 pipe_name(crtc->pipe));
+		intel_display_power_get(dev_priv, POWER_DOMAIN_AUDIO);
+		intel_audio_codec_enable(encoder);
+	}
 }
 
 static bool intel_dp_mst_enc_get_hw_state(struct intel_encoder *encoder,
@@ -251,6 +270,12 @@ static void intel_dp_mst_enc_get_config(struct intel_encoder *encoder,
 
 	pipe_config->has_dp_encoder = true;
 
+	if (intel_display_power_is_enabled(dev_priv, POWER_DOMAIN_AUDIO)) {
+		temp = I915_READ(HSW_AUD_PIN_ELD_CP_VLD);
+		if (temp & AUDIO_OUTPUT_ENABLE(crtc->pipe))
+			pipe_config->has_audio = true;
+	}
+
 	temp = I915_READ(TRANS_DDI_FUNC_CTL(cpu_transcoder));
 	if (temp & TRANS_DDI_PHSYNC)
 		flags |= DRM_MODE_FLAG_PHSYNC;
-- 
1.9.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [V2 PATCH 1/2] dp/mst: add SDP stream support
  2015-11-11  5:33 [V2 PATCH 1/2] dp/mst: add SDP stream support libin.yang
  2015-11-11  5:33 ` [V2 PATCH 2/2] drm/i915: start adding dp mst audio libin.yang
@ 2015-11-12 14:40 ` Yang, Libin
  1 sibling, 0 replies; 9+ messages in thread
From: Yang, Libin @ 2015-11-12 14:40 UTC (permalink / raw
  To: libin.yang@linux.intel.com, intel-gfx@lists.freedesktop.org,
	jani.nikula@linux.intel.com, Vetter, Daniel,
	ville.syrjala@linux.intel.com
  Cc: Dave Airlie

Hi Jani,

Do you have time to have a review? Thanks.

Regards,
Libin

> -----Original Message-----
> From: libin.yang@linux.intel.com [mailto:libin.yang@linux.intel.com]
> Sent: Wednesday, November 11, 2015 1:33 PM
> To: intel-gfx@lists.freedesktop.org; jani.nikula@linux.intel.com; Vetter,
> Daniel; ville.syrjala@linux.intel.com
> Cc: Yang, Libin; Libin Yang; Dave Airlie
> Subject: [V2 PATCH 1/2] dp/mst: add SDP stream support
> 
> From: Libin Yang <libin.yang@linux.intel.com>
> 
> This adds code to initialise the SDP streams
> for a sink in the simplest ordering.
> 
> I've no idea how you'd want to control the
> ordering at this level, so don't bother
> until someone comes up with a use case.
> 
> Signed-off-by: Libin Yang <libin.yang@linux.intel.com>
> Signed-off-by: Dave Airlie <airlied@redhat.com>
> ---
>  drivers/gpu/drm/drm_dp_mst_topology.c | 38
> ++++++++++++++++++++++++++++++++---
>  include/drm/drm_dp_mst_helper.h       |  7 +++++--
>  2 files changed, 40 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/gpu/drm/drm_dp_mst_topology.c
> b/drivers/gpu/drm/drm_dp_mst_topology.c
> index 809959d..f50eb7b 100644
> --- a/drivers/gpu/drm/drm_dp_mst_topology.c
> +++ b/drivers/gpu/drm/drm_dp_mst_topology.c
> @@ -666,7 +666,9 @@ static int build_enum_path_resources(struct
> drm_dp_sideband_msg_tx *msg, int por
>  }
> 
>  static int build_allocate_payload(struct drm_dp_sideband_msg_tx *msg,
> int port_num,
> -				  u8 vcpi, uint16_t pbn)
> +				  u8 vcpi, uint16_t pbn,
> +				  u8 number_sdp_streams,
> +				  u8 *sdp_stream_sink)
>  {
>  	struct drm_dp_sideband_msg_req_body req;
>  	memset(&req, 0, sizeof(req));
> @@ -674,6 +676,9 @@ static int build_allocate_payload(struct
> drm_dp_sideband_msg_tx *msg, int port_n
>  	req.u.allocate_payload.port_number = port_num;
>  	req.u.allocate_payload.vcpi = vcpi;
>  	req.u.allocate_payload.pbn = pbn;
> +	req.u.allocate_payload.number_sdp_streams =
> number_sdp_streams;
> +	memcpy(req.u.allocate_payload.sdp_stream_sink,
> sdp_stream_sink,
> +		   number_sdp_streams);
>  	drm_dp_encode_sideband_req(&req, msg);
>  	msg->path_msg = true;
>  	return 0;
> @@ -1562,6 +1567,8 @@ static int drm_dp_payload_send_msg(struct
> drm_dp_mst_topology_mgr *mgr,
>  	struct drm_dp_sideband_msg_tx *txmsg;
>  	struct drm_dp_mst_branch *mstb;
>  	int len, ret;
> +	u8 sinks[DRM_DP_MAX_SDP_STREAMS];
> +	int i;
> 
>  	mstb = drm_dp_get_validated_mstb_ref(mgr, port->parent);
>  	if (!mstb)
> @@ -1573,10 +1580,13 @@ static int
> drm_dp_payload_send_msg(struct drm_dp_mst_topology_mgr *mgr,
>  		goto fail_put;
>  	}
> 
> +	for (i = 0; i < port->num_sdp_streams; i++)
> +		sinks[i] = i;
> +
>  	txmsg->dst = mstb;
>  	len = build_allocate_payload(txmsg, port->port_num,
>  				     id,
> -				     pbn);
> +				     pbn, port->num_sdp_streams, sinks);
> 
>  	drm_dp_queue_down_tx(mgr, txmsg);
> 
> @@ -2259,6 +2269,27 @@ out:
>  EXPORT_SYMBOL(drm_dp_mst_detect_port);
> 
>  /**
> + * drm_dp_mst_port_has_audio() - Check whether port has audio
> capability or not
> + * @mgr: manager for this port
> + * @port: unverified pointer to a port.
> + *
> + * This returns whether the port supports audio or not.
> + */
> +bool drm_dp_mst_port_has_audio(struct drm_dp_mst_topology_mgr
> *mgr,
> +					struct drm_dp_mst_port *port)
> +{
> +	bool ret = false;
> +
> +	port = drm_dp_get_validated_port_ref(mgr, port);
> +	if (!port)
> +		return ret;
> +	ret = port->has_audio;
> +	drm_dp_put_port(port);
> +	return ret;
> +}
> +EXPORT_SYMBOL(drm_dp_mst_port_has_audio);
> +
> +/**
>   * drm_dp_mst_get_edid() - get EDID for an MST port
>   * @connector: toplevel connector to get EDID for
>   * @mgr: manager for this port
> @@ -2283,6 +2314,7 @@ struct edid *drm_dp_mst_get_edid(struct
> drm_connector *connector, struct drm_dp_
>  		edid = drm_get_edid(connector, &port->aux.ddc);
>  		drm_mode_connector_set_tile_property(connector);
>  	}
> +	port->has_audio = drm_detect_monitor_audio(edid);
>  	drm_dp_put_port(port);
>  	return edid;
>  }
> @@ -2566,7 +2598,7 @@ static void drm_dp_mst_dump_mstb(struct
> seq_file *m,
> 
>  	seq_printf(m, "%smst: %p, %d\n", prefix, mstb, mstb-
> >num_ports);
>  	list_for_each_entry(port, &mstb->ports, next) {
> -		seq_printf(m, "%sport: %d: ddps: %d ldps: %d, %p,
> conn: %p\n", prefix, port->port_num, port->ddps, port->ldps, port, port-
> >connector);
> +		seq_printf(m, "%sport: %d: ddps: %d ldps: %d,
> sdp: %d/%d, %p, conn: %p\n", prefix, port->port_num, port->ddps, port-
> >ldps, port->num_sdp_streams, port->num_sdp_stream_sinks, port,
> port->connector);
>  		if (port->mstb)
>  			drm_dp_mst_dump_mstb(m, port->mstb);
>  	}
> diff --git a/include/drm/drm_dp_mst_helper.h
> b/include/drm/drm_dp_mst_helper.h
> index 5340099..74b5888 100644
> --- a/include/drm/drm_dp_mst_helper.h
> +++ b/include/drm/drm_dp_mst_helper.h
> @@ -94,6 +94,7 @@ struct drm_dp_mst_port {
>  	struct drm_dp_mst_topology_mgr *mgr;
> 
>  	struct edid *cached_edid; /* for DP logical ports - make tiling
> work */
> +	bool has_audio;
>  };
> 
>  /**
> @@ -215,13 +216,13 @@ struct drm_dp_sideband_msg_rx {
>  	struct drm_dp_sideband_msg_hdr initial_hdr;
>  };
> 
> -
> +#define DRM_DP_MAX_SDP_STREAMS 16
>  struct drm_dp_allocate_payload {
>  	u8 port_number;
>  	u8 number_sdp_streams;
>  	u8 vcpi;
>  	u16 pbn;
> -	u8 sdp_stream_sink[8];
> +	u8 sdp_stream_sink[DRM_DP_MAX_SDP_STREAMS];
>  };
> 
>  struct drm_dp_allocate_payload_ack_reply {
> @@ -484,6 +485,8 @@ int drm_dp_mst_hpd_irq(struct
> drm_dp_mst_topology_mgr *mgr, u8 *esi, bool *handl
> 
>  enum drm_connector_status drm_dp_mst_detect_port(struct
> drm_connector *connector, struct drm_dp_mst_topology_mgr *mgr,
> struct drm_dp_mst_port *port);
> 
> +bool drm_dp_mst_port_has_audio(struct drm_dp_mst_topology_mgr
> *mgr,
> +					struct drm_dp_mst_port *port);
>  struct edid *drm_dp_mst_get_edid(struct drm_connector *connector,
> struct drm_dp_mst_topology_mgr *mgr, struct drm_dp_mst_port
> *port);
> 
> 
> --
> 1.9.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [V2 PATCH 2/2] drm/i915: start adding dp mst audio
  2015-11-11  5:33 ` [V2 PATCH 2/2] drm/i915: start adding dp mst audio libin.yang
@ 2015-11-19 11:07   ` Ander Conselvan De Oliveira
  2015-11-23  2:23     ` Libin Yang
  2015-11-23 14:04     ` Zanoni, Paulo R
  0 siblings, 2 replies; 9+ messages in thread
From: Ander Conselvan De Oliveira @ 2015-11-19 11:07 UTC (permalink / raw
  To: libin.yang, intel-gfx, jani.nikula, daniel.vetter, ville.syrjala
  Cc: Dave Airlie

(Cc'ing Paulo for the audio power domain question)

On Wed, 2015-11-11 at 13:33 +0800, libin.yang@linux.intel.com wrote:
> From: Libin Yang <libin.yang@linux.intel.com>
> 
> This patch adds support for DP MST audio in i915.
> 
> Enable audio codec when DP MST is enabled if has_audio flag is set.
> Disable audio codec when DP MST is disabled if has_audio flag is set.
> 
> Signed-off-by: Libin Yang <libin.yang@linux.intel.com>
> Signed-off-by: Dave Airlie <airlied@redhat.com>
> ---
>  drivers/gpu/drm/i915/i915_debugfs.c | 14 ++++++++++++++
>  drivers/gpu/drm/i915/intel_audio.c  |  9 ++++++---
>  drivers/gpu/drm/i915/intel_dp_mst.c | 25 +++++++++++++++++++++++++
>  3 files changed, 45 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_debugfs.c
> b/drivers/gpu/drm/i915/i915_debugfs.c
> index 5659d4c..38c7a5d 100644
> --- a/drivers/gpu/drm/i915/i915_debugfs.c
> +++ b/drivers/gpu/drm/i915/i915_debugfs.c
> @@ -2873,6 +2873,18 @@ static void intel_dp_info(struct seq_file *m,
>  		intel_panel_info(m, &intel_connector->panel);
>  }
>  
> +static void intel_dp_mst_info(struct seq_file *m,
> +			  struct intel_connector *intel_connector)
> +{
> +	struct intel_encoder *intel_encoder = intel_connector->encoder;
> +	struct intel_dp_mst_encoder *intel_mst =
> +		enc_to_mst(&intel_encoder->base);
> +	struct intel_digital_port *intel_dig_port = intel_mst->primary;
> +	struct intel_dp *intel_dp = &intel_dig_port->dp;
> +
> +	seq_printf(m, "\taudio support: %s\n",
> drm_dp_mst_port_has_audio(&intel_dp->mst_mgr, intel_connector->port) ? "yes" :
> "no");

Too much going on in just one line. You can replace the ternary operator with
yesno(). You could also add a has_audio bool:

bool has_audio = drm_dp_mst_port_has_audio(...);
seq_printf(..., yesno(has_audio));


> +}
> +
>  static void intel_hdmi_info(struct seq_file *m,
>  			    struct intel_connector *intel_connector)
>  {
> @@ -2916,6 +2928,8 @@ static void intel_connector_info(struct seq_file *m,
>  			intel_hdmi_info(m, intel_connector);
>  		else if (intel_encoder->type == INTEL_OUTPUT_LVDS)
>  			intel_lvds_info(m, intel_connector);
> +		else if (intel_encoder->type == INTEL_OUTPUT_DP_MST)
> +			intel_dp_mst_info(m, intel_connector);
>  	}
>  
>  	seq_printf(m, "\tmodes:\n");
> diff --git a/drivers/gpu/drm/i915/intel_audio.c
> b/drivers/gpu/drm/i915/intel_audio.c
> index 63d4706..07b2aa6 100644
> --- a/drivers/gpu/drm/i915/intel_audio.c
> +++ b/drivers/gpu/drm/i915/intel_audio.c
> @@ -262,7 +262,8 @@ static void hsw_audio_codec_disable(struct intel_encoder
> *encoder)
>  	tmp |= AUD_CONFIG_N_PROG_ENABLE;
>  	tmp &= ~AUD_CONFIG_UPPER_N_MASK;
>  	tmp &= ~AUD_CONFIG_LOWER_N_MASK;
> -	if (intel_pipe_has_type(intel_crtc, INTEL_OUTPUT_DISPLAYPORT))
> +	if (intel_pipe_has_type(intel_crtc, INTEL_OUTPUT_DISPLAYPORT) ||
> +		intel_pipe_has_type(intel_crtc, INTEL_OUTPUT_DP_MST))

The second line should be aligned with '('.

>  		tmp |= AUD_CONFIG_N_VALUE_INDEX;
>  	I915_WRITE(HSW_AUD_CFG(pipe), tmp);
>  
> @@ -478,7 +479,8 @@ static void ilk_audio_codec_enable(struct drm_connector
> *connector,
>  	tmp &= ~AUD_CONFIG_N_VALUE_INDEX;
>  	tmp &= ~AUD_CONFIG_N_PROG_ENABLE;
>  	tmp &= ~AUD_CONFIG_PIXEL_CLOCK_HDMI_MASK;
> -	if (intel_pipe_has_type(intel_crtc, INTEL_OUTPUT_DISPLAYPORT))
> +	if (intel_pipe_has_type(intel_crtc, INTEL_OUTPUT_DISPLAYPORT) ||
> +		intel_pipe_has_type(intel_crtc, INTEL_OUTPUT_DP_MST))

Same here.

>  		tmp |= AUD_CONFIG_N_VALUE_INDEX;
>  	else
>  		tmp |= audio_config_hdmi_pixel_clock(adjusted_mode);
> @@ -516,7 +518,8 @@ void intel_audio_codec_enable(struct intel_encoder
> *intel_encoder)
>  
>  	/* ELD Conn_Type */
>  	connector->eld[5] &= ~(3 << 2);
> -	if (intel_pipe_has_type(crtc, INTEL_OUTPUT_DISPLAYPORT))
> +	if (intel_pipe_has_type(crtc, INTEL_OUTPUT_DISPLAYPORT) ||
> +		intel_pipe_has_type(crtc, INTEL_OUTPUT_DP_MST))
>  		connector->eld[5] |= (1 << 2);

And here.

>  
>  	connector->eld[6] = drm_av_sync_delay(connector, adjusted_mode) / 2;
> diff --git a/drivers/gpu/drm/i915/intel_dp_mst.c
> b/drivers/gpu/drm/i915/intel_dp_mst.c
> index 0639275..4ded0fb 100644
> --- a/drivers/gpu/drm/i915/intel_dp_mst.c
> +++ b/drivers/gpu/drm/i915/intel_dp_mst.c
> @@ -78,6 +78,8 @@ static bool intel_dp_mst_compute_config(struct intel_encoder
> *encoder,
>  		return false;
>  	}
>  
> +	if (drm_dp_mst_port_has_audio(&intel_dp->mst_mgr, found->port))
> +		pipe_config->has_audio = true;
>  	mst_pbn = drm_dp_calc_pbn_mode(adjusted_mode->crtc_clock, bpp);
>  
>  	pipe_config->pbn = mst_pbn;
> @@ -102,6 +104,11 @@ static void intel_mst_disable_dp(struct intel_encoder
> *encoder)
>  	struct intel_dp_mst_encoder *intel_mst = enc_to_mst(&encoder->base);
>  	struct intel_digital_port *intel_dig_port = intel_mst->primary;
>  	struct intel_dp *intel_dp = &intel_dig_port->dp;
> +	struct drm_device *dev = encoder->base.dev;
> +	struct drm_i915_private *dev_priv = dev->dev_private;
> +	struct drm_crtc *crtc = encoder->base.crtc;
> +	struct intel_crtc *intel_crtc = to_intel_crtc(crtc);
> +
>  	int ret;
>  
>  	DRM_DEBUG_KMS("%d\n", intel_dp->active_mst_links);
> @@ -112,6 +119,10 @@ static void intel_mst_disable_dp(struct intel_encoder
> *encoder)
>  	if (ret) {
>  		DRM_ERROR("failed to update payload %d\n", ret);
>  	}
> +	if (intel_crtc->config->has_audio) {
> +		intel_audio_codec_disable(encoder);
> +		intel_display_power_put(dev_priv, POWER_DOMAIN_AUDIO);
> +	}

It seems the power domain is only need for DDI platforms. Perhaps it would make
sense to move that into hsw_audio_codec_{en,dis}able. Paulo?

>  }
>  
>  static void intel_mst_post_disable_dp(struct intel_encoder *encoder)
> @@ -214,6 +225,7 @@ static void intel_mst_enable_dp(struct intel_encoder
> *encoder)
>  	struct intel_dp *intel_dp = &intel_dig_port->dp;
>  	struct drm_device *dev = intel_dig_port->base.base.dev;
>  	struct drm_i915_private *dev_priv = dev->dev_private;
> +	struct intel_crtc *crtc = to_intel_crtc(encoder->base.crtc);
>  	enum port port = intel_dig_port->port;
>  	int ret;
>  
> @@ -226,6 +238,13 @@ static void intel_mst_enable_dp(struct intel_encoder
> *encoder)
>  	ret = drm_dp_check_act_status(&intel_dp->mst_mgr);
>  
>  	ret = drm_dp_update_payload_part2(&intel_dp->mst_mgr);
> +
> +	if (crtc->config->has_audio) {
> +		DRM_DEBUG_DRIVER("Enabling DP audio on pipe %c\n",
> +				 pipe_name(crtc->pipe));
> +		intel_display_power_get(dev_priv, POWER_DOMAIN_AUDIO);
> +		intel_audio_codec_enable(encoder);
> +	}
>  }
>  
>  static bool intel_dp_mst_enc_get_hw_state(struct intel_encoder *encoder,
> @@ -251,6 +270,12 @@ static void intel_dp_mst_enc_get_config(struct
> intel_encoder *encoder,
>  
>  	pipe_config->has_dp_encoder = true;
>  
> +	if (intel_display_power_is_enabled(dev_priv, POWER_DOMAIN_AUDIO)) {
> +		temp = I915_READ(HSW_AUD_PIN_ELD_CP_VLD);
> +		if (temp & AUDIO_OUTPUT_ENABLE(crtc->pipe))
> +			pipe_config->has_audio = true;
> +	}
> +

This code is DDI specific. That shouldn't be a problem since we only support DP
MST on DDI platforms, but we shouldn't duplicate that logic here. So I think
this should be added to a function that can be called both from here and
intel_ddi.c.

Ander
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [V2 PATCH 2/2] drm/i915: start adding dp mst audio
  2015-11-19 11:07   ` Ander Conselvan De Oliveira
@ 2015-11-23  2:23     ` Libin Yang
  2015-11-23  8:55       ` Ander Conselvan De Oliveira
  2015-11-23 14:04     ` Zanoni, Paulo R
  1 sibling, 1 reply; 9+ messages in thread
From: Libin Yang @ 2015-11-23  2:23 UTC (permalink / raw
  To: Ander Conselvan De Oliveira, intel-gfx, jani.nikula,
	daniel.vetter, ville.syrjala
  Cc: Dave Airlie


On 11/19/2015 07:07 PM, Ander Conselvan De Oliveira wrote:
> (Cc'ing Paulo for the audio power domain question)
>
> On Wed, 2015-11-11 at 13:33 +0800, libin.yang@linux.intel.com wrote:
>> From: Libin Yang <libin.yang@linux.intel.com>
>>
>> This patch adds support for DP MST audio in i915.
>>
>> Enable audio codec when DP MST is enabled if has_audio flag is set.
>> Disable audio codec when DP MST is disabled if has_audio flag is set.
>>
>> Signed-off-by: Libin Yang <libin.yang@linux.intel.com>
>> Signed-off-by: Dave Airlie <airlied@redhat.com>
>> ---
>>   drivers/gpu/drm/i915/i915_debugfs.c | 14 ++++++++++++++
>>   drivers/gpu/drm/i915/intel_audio.c  |  9 ++++++---
>>   drivers/gpu/drm/i915/intel_dp_mst.c | 25 +++++++++++++++++++++++++
>>   3 files changed, 45 insertions(+), 3 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/i915/i915_debugfs.c
>> b/drivers/gpu/drm/i915/i915_debugfs.c
>> index 5659d4c..38c7a5d 100644
>> --- a/drivers/gpu/drm/i915/i915_debugfs.c
>> +++ b/drivers/gpu/drm/i915/i915_debugfs.c
>> @@ -2873,6 +2873,18 @@ static void intel_dp_info(struct seq_file *m,
>>   		intel_panel_info(m, &intel_connector->panel);
>>   }
>>
>> +static void intel_dp_mst_info(struct seq_file *m,
>> +			  struct intel_connector *intel_connector)
>> +{
>> +	struct intel_encoder *intel_encoder = intel_connector->encoder;
>> +	struct intel_dp_mst_encoder *intel_mst =
>> +		enc_to_mst(&intel_encoder->base);
>> +	struct intel_digital_port *intel_dig_port = intel_mst->primary;
>> +	struct intel_dp *intel_dp = &intel_dig_port->dp;
>> +
>> +	seq_printf(m, "\taudio support: %s\n",
>> drm_dp_mst_port_has_audio(&intel_dp->mst_mgr, intel_connector->port) ? "yes" :
>> "no");
>
> Too much going on in just one line. You can replace the ternary operator with
> yesno(). You could also add a has_audio bool:
>
> bool has_audio = drm_dp_mst_port_has_audio(...);
> seq_printf(..., yesno(has_audio));

Get it. Thanks.

>
>
>> +}
>> +
>>   static void intel_hdmi_info(struct seq_file *m,
>>   			    struct intel_connector *intel_connector)
>>   {
>> @@ -2916,6 +2928,8 @@ static void intel_connector_info(struct seq_file *m,
>>   			intel_hdmi_info(m, intel_connector);
>>   		else if (intel_encoder->type == INTEL_OUTPUT_LVDS)
>>   			intel_lvds_info(m, intel_connector);
>> +		else if (intel_encoder->type == INTEL_OUTPUT_DP_MST)
>> +			intel_dp_mst_info(m, intel_connector);
>>   	}
>>
>>   	seq_printf(m, "\tmodes:\n");
>> diff --git a/drivers/gpu/drm/i915/intel_audio.c
>> b/drivers/gpu/drm/i915/intel_audio.c
>> index 63d4706..07b2aa6 100644
>> --- a/drivers/gpu/drm/i915/intel_audio.c
>> +++ b/drivers/gpu/drm/i915/intel_audio.c
>> @@ -262,7 +262,8 @@ static void hsw_audio_codec_disable(struct intel_encoder
>> *encoder)
>>   	tmp |= AUD_CONFIG_N_PROG_ENABLE;
>>   	tmp &= ~AUD_CONFIG_UPPER_N_MASK;
>>   	tmp &= ~AUD_CONFIG_LOWER_N_MASK;
>> -	if (intel_pipe_has_type(intel_crtc, INTEL_OUTPUT_DISPLAYPORT))
>> +	if (intel_pipe_has_type(intel_crtc, INTEL_OUTPUT_DISPLAYPORT) ||
>> +		intel_pipe_has_type(intel_crtc, INTEL_OUTPUT_DP_MST))
>
> The second line should be aligned with '('.

OK, I see.

>
>>   		tmp |= AUD_CONFIG_N_VALUE_INDEX;
>>   	I915_WRITE(HSW_AUD_CFG(pipe), tmp);
>>
>> @@ -478,7 +479,8 @@ static void ilk_audio_codec_enable(struct drm_connector
>> *connector,
>>   	tmp &= ~AUD_CONFIG_N_VALUE_INDEX;
>>   	tmp &= ~AUD_CONFIG_N_PROG_ENABLE;
>>   	tmp &= ~AUD_CONFIG_PIXEL_CLOCK_HDMI_MASK;
>> -	if (intel_pipe_has_type(intel_crtc, INTEL_OUTPUT_DISPLAYPORT))
>> +	if (intel_pipe_has_type(intel_crtc, INTEL_OUTPUT_DISPLAYPORT) ||
>> +		intel_pipe_has_type(intel_crtc, INTEL_OUTPUT_DP_MST))
>
> Same here.
>
>>   		tmp |= AUD_CONFIG_N_VALUE_INDEX;
>>   	else
>>   		tmp |= audio_config_hdmi_pixel_clock(adjusted_mode);
>> @@ -516,7 +518,8 @@ void intel_audio_codec_enable(struct intel_encoder
>> *intel_encoder)
>>
>>   	/* ELD Conn_Type */
>>   	connector->eld[5] &= ~(3 << 2);
>> -	if (intel_pipe_has_type(crtc, INTEL_OUTPUT_DISPLAYPORT))
>> +	if (intel_pipe_has_type(crtc, INTEL_OUTPUT_DISPLAYPORT) ||
>> +		intel_pipe_has_type(crtc, INTEL_OUTPUT_DP_MST))
>>   		connector->eld[5] |= (1 << 2);
>
> And here.
>
>>
>>   	connector->eld[6] = drm_av_sync_delay(connector, adjusted_mode) / 2;
>> diff --git a/drivers/gpu/drm/i915/intel_dp_mst.c
>> b/drivers/gpu/drm/i915/intel_dp_mst.c
>> index 0639275..4ded0fb 100644
>> --- a/drivers/gpu/drm/i915/intel_dp_mst.c
>> +++ b/drivers/gpu/drm/i915/intel_dp_mst.c
>> @@ -78,6 +78,8 @@ static bool intel_dp_mst_compute_config(struct intel_encoder
>> *encoder,
>>   		return false;
>>   	}
>>
>> +	if (drm_dp_mst_port_has_audio(&intel_dp->mst_mgr, found->port))
>> +		pipe_config->has_audio = true;
>>   	mst_pbn = drm_dp_calc_pbn_mode(adjusted_mode->crtc_clock, bpp);
>>
>>   	pipe_config->pbn = mst_pbn;
>> @@ -102,6 +104,11 @@ static void intel_mst_disable_dp(struct intel_encoder
>> *encoder)
>>   	struct intel_dp_mst_encoder *intel_mst = enc_to_mst(&encoder->base);
>>   	struct intel_digital_port *intel_dig_port = intel_mst->primary;
>>   	struct intel_dp *intel_dp = &intel_dig_port->dp;
>> +	struct drm_device *dev = encoder->base.dev;
>> +	struct drm_i915_private *dev_priv = dev->dev_private;
>> +	struct drm_crtc *crtc = encoder->base.crtc;
>> +	struct intel_crtc *intel_crtc = to_intel_crtc(crtc);
>> +
>>   	int ret;
>>
>>   	DRM_DEBUG_KMS("%d\n", intel_dp->active_mst_links);
>> @@ -112,6 +119,10 @@ static void intel_mst_disable_dp(struct intel_encoder
>> *encoder)
>>   	if (ret) {
>>   		DRM_ERROR("failed to update payload %d\n", ret);
>>   	}
>> +	if (intel_crtc->config->has_audio) {
>> +		intel_audio_codec_disable(encoder);
>> +		intel_display_power_put(dev_priv, POWER_DOMAIN_AUDIO);
>> +	}
>
> It seems the power domain is only need for DDI platforms. Perhaps it would make
> sense to move that into hsw_audio_codec_{en,dis}able. Paulo?
>
>>   }
>>
>>   static void intel_mst_post_disable_dp(struct intel_encoder *encoder)
>> @@ -214,6 +225,7 @@ static void intel_mst_enable_dp(struct intel_encoder
>> *encoder)
>>   	struct intel_dp *intel_dp = &intel_dig_port->dp;
>>   	struct drm_device *dev = intel_dig_port->base.base.dev;
>>   	struct drm_i915_private *dev_priv = dev->dev_private;
>> +	struct intel_crtc *crtc = to_intel_crtc(encoder->base.crtc);
>>   	enum port port = intel_dig_port->port;
>>   	int ret;
>>
>> @@ -226,6 +238,13 @@ static void intel_mst_enable_dp(struct intel_encoder
>> *encoder)
>>   	ret = drm_dp_check_act_status(&intel_dp->mst_mgr);
>>
>>   	ret = drm_dp_update_payload_part2(&intel_dp->mst_mgr);
>> +
>> +	if (crtc->config->has_audio) {
>> +		DRM_DEBUG_DRIVER("Enabling DP audio on pipe %c\n",
>> +				 pipe_name(crtc->pipe));
>> +		intel_display_power_get(dev_priv, POWER_DOMAIN_AUDIO);
>> +		intel_audio_codec_enable(encoder);
>> +	}
>>   }
>>
>>   static bool intel_dp_mst_enc_get_hw_state(struct intel_encoder *encoder,
>> @@ -251,6 +270,12 @@ static void intel_dp_mst_enc_get_config(struct
>> intel_encoder *encoder,
>>
>>   	pipe_config->has_dp_encoder = true;
>>
>> +	if (intel_display_power_is_enabled(dev_priv, POWER_DOMAIN_AUDIO)) {
>> +		temp = I915_READ(HSW_AUD_PIN_ELD_CP_VLD);
>> +		if (temp & AUDIO_OUTPUT_ENABLE(crtc->pipe))
>> +			pipe_config->has_audio = true;
>> +	}
>> +
>
> This code is DDI specific. That shouldn't be a problem since we only support DP
> MST on DDI platforms, but we shouldn't duplicate that logic here. So I think
> this should be added to a function that can be called both from here and
> intel_ddi.c.

OK, I will try to add a helper function. Which file do you suggest 
adding the function it?

Best Regards,
Libin

>
> Ander
>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [V2 PATCH 2/2] drm/i915: start adding dp mst audio
  2015-11-23  2:23     ` Libin Yang
@ 2015-11-23  8:55       ` Ander Conselvan De Oliveira
  0 siblings, 0 replies; 9+ messages in thread
From: Ander Conselvan De Oliveira @ 2015-11-23  8:55 UTC (permalink / raw
  To: Libin Yang, intel-gfx, jani.nikula, daniel.vetter, ville.syrjala
  Cc: Dave Airlie

On Mon, 2015-11-23 at 10:23 +0800, Libin Yang wrote:
> On 11/19/2015 07:07 PM, Ander Conselvan De Oliveira wrote:
> > (Cc'ing Paulo for the audio power domain question)
> > 
> > On Wed, 2015-11-11 at 13:33 +0800, libin.yang@linux.intel.com wrote:
> > > From: Libin Yang <libin.yang@linux.intel.com>
> > > 
> > > This patch adds support for DP MST audio in i915.
> > > 
> > > Enable audio codec when DP MST is enabled if has_audio flag is set.
> > > Disable audio codec when DP MST is disabled if has_audio flag is set.
> > > 
> > > Signed-off-by: Libin Yang <libin.yang@linux.intel.com>
> > > Signed-off-by: Dave Airlie <airlied@redhat.com>
> > > ---
> > >   drivers/gpu/drm/i915/i915_debugfs.c | 14 ++++++++++++++
> > >   drivers/gpu/drm/i915/intel_audio.c  |  9 ++++++---
> > >   drivers/gpu/drm/i915/intel_dp_mst.c | 25 +++++++++++++++++++++++++
> > >   3 files changed, 45 insertions(+), 3 deletions(-)
> > > 
> > > diff --git a/drivers/gpu/drm/i915/i915_debugfs.c
> > > b/drivers/gpu/drm/i915/i915_debugfs.c
> > > index 5659d4c..38c7a5d 100644
> > > --- a/drivers/gpu/drm/i915/i915_debugfs.c
> > > +++ b/drivers/gpu/drm/i915/i915_debugfs.c
> > > @@ -2873,6 +2873,18 @@ static void intel_dp_info(struct seq_file *m,
> > >   		intel_panel_info(m, &intel_connector->panel);
> > >   }
> > > 
> > > +static void intel_dp_mst_info(struct seq_file *m,
> > > +			  struct intel_connector *intel_connector)
> > > +{
> > > +	struct intel_encoder *intel_encoder = intel_connector->encoder;
> > > +	struct intel_dp_mst_encoder *intel_mst =
> > > +		enc_to_mst(&intel_encoder->base);
> > > +	struct intel_digital_port *intel_dig_port = intel_mst->primary;
> > > +	struct intel_dp *intel_dp = &intel_dig_port->dp;
> > > +
> > > +	seq_printf(m, "\taudio support: %s\n",
> > > drm_dp_mst_port_has_audio(&intel_dp->mst_mgr, intel_connector->port) ?
> > > "yes" :
> > > "no");
> > 
> > Too much going on in just one line. You can replace the ternary operator
> > with
> > yesno(). You could also add a has_audio bool:
> > 
> > bool has_audio = drm_dp_mst_port_has_audio(...);
> > seq_printf(..., yesno(has_audio));
> 
> Get it. Thanks.
> 
> > 
> > 
> > > +}
> > > +
> > >   static void intel_hdmi_info(struct seq_file *m,
> > >   			    struct intel_connector *intel_connector)
> > >   {
> > > @@ -2916,6 +2928,8 @@ static void intel_connector_info(struct seq_file *m,
> > >   			intel_hdmi_info(m, intel_connector);
> > >   		else if (intel_encoder->type == INTEL_OUTPUT_LVDS)
> > >   			intel_lvds_info(m, intel_connector);
> > > +		else if (intel_encoder->type == INTEL_OUTPUT_DP_MST)
> > > +			intel_dp_mst_info(m, intel_connector);
> > >   	}
> > > 
> > >   	seq_printf(m, "\tmodes:\n");
> > > diff --git a/drivers/gpu/drm/i915/intel_audio.c
> > > b/drivers/gpu/drm/i915/intel_audio.c
> > > index 63d4706..07b2aa6 100644
> > > --- a/drivers/gpu/drm/i915/intel_audio.c
> > > +++ b/drivers/gpu/drm/i915/intel_audio.c
> > > @@ -262,7 +262,8 @@ static void hsw_audio_codec_disable(struct
> > > intel_encoder
> > > *encoder)
> > >   	tmp |= AUD_CONFIG_N_PROG_ENABLE;
> > >   	tmp &= ~AUD_CONFIG_UPPER_N_MASK;
> > >   	tmp &= ~AUD_CONFIG_LOWER_N_MASK;
> > > -	if (intel_pipe_has_type(intel_crtc, INTEL_OUTPUT_DISPLAYPORT))
> > > +	if (intel_pipe_has_type(intel_crtc, INTEL_OUTPUT_DISPLAYPORT) ||
> > > +		intel_pipe_has_type(intel_crtc, INTEL_OUTPUT_DP_MST))
> > 
> > The second line should be aligned with '('.
> 
> OK, I see.
> 
> > 
> > >   		tmp |= AUD_CONFIG_N_VALUE_INDEX;
> > >   	I915_WRITE(HSW_AUD_CFG(pipe), tmp);
> > > 
> > > @@ -478,7 +479,8 @@ static void ilk_audio_codec_enable(struct
> > > drm_connector
> > > *connector,
> > >   	tmp &= ~AUD_CONFIG_N_VALUE_INDEX;
> > >   	tmp &= ~AUD_CONFIG_N_PROG_ENABLE;
> > >   	tmp &= ~AUD_CONFIG_PIXEL_CLOCK_HDMI_MASK;
> > > -	if (intel_pipe_has_type(intel_crtc, INTEL_OUTPUT_DISPLAYPORT))
> > > +	if (intel_pipe_has_type(intel_crtc, INTEL_OUTPUT_DISPLAYPORT) ||
> > > +		intel_pipe_has_type(intel_crtc, INTEL_OUTPUT_DP_MST))
> > 
> > Same here.
> > 
> > >   		tmp |= AUD_CONFIG_N_VALUE_INDEX;
> > >   	else
> > >   		tmp |= audio_config_hdmi_pixel_clock(adjusted_mode);
> > > @@ -516,7 +518,8 @@ void intel_audio_codec_enable(struct intel_encoder
> > > *intel_encoder)
> > > 
> > >   	/* ELD Conn_Type */
> > >   	connector->eld[5] &= ~(3 << 2);
> > > -	if (intel_pipe_has_type(crtc, INTEL_OUTPUT_DISPLAYPORT))
> > > +	if (intel_pipe_has_type(crtc, INTEL_OUTPUT_DISPLAYPORT) ||
> > > +		intel_pipe_has_type(crtc, INTEL_OUTPUT_DP_MST))
> > >   		connector->eld[5] |= (1 << 2);
> > 
> > And here.
> > 
> > > 
> > >   	connector->eld[6] = drm_av_sync_delay(connector, adjusted_mode)
> > > / 2;
> > > diff --git a/drivers/gpu/drm/i915/intel_dp_mst.c
> > > b/drivers/gpu/drm/i915/intel_dp_mst.c
> > > index 0639275..4ded0fb 100644
> > > --- a/drivers/gpu/drm/i915/intel_dp_mst.c
> > > +++ b/drivers/gpu/drm/i915/intel_dp_mst.c
> > > @@ -78,6 +78,8 @@ static bool intel_dp_mst_compute_config(struct
> > > intel_encoder
> > > *encoder,
> > >   		return false;
> > >   	}
> > > 
> > > +	if (drm_dp_mst_port_has_audio(&intel_dp->mst_mgr, found->port))
> > > +		pipe_config->has_audio = true;
> > >   	mst_pbn = drm_dp_calc_pbn_mode(adjusted_mode->crtc_clock, bpp);
> > > 
> > >   	pipe_config->pbn = mst_pbn;
> > > @@ -102,6 +104,11 @@ static void intel_mst_disable_dp(struct intel_encoder
> > > *encoder)
> > >   	struct intel_dp_mst_encoder *intel_mst = enc_to_mst(&encoder
> > > ->base);
> > >   	struct intel_digital_port *intel_dig_port = intel_mst->primary;
> > >   	struct intel_dp *intel_dp = &intel_dig_port->dp;
> > > +	struct drm_device *dev = encoder->base.dev;
> > > +	struct drm_i915_private *dev_priv = dev->dev_private;
> > > +	struct drm_crtc *crtc = encoder->base.crtc;
> > > +	struct intel_crtc *intel_crtc = to_intel_crtc(crtc);
> > > +
> > >   	int ret;
> > > 
> > >   	DRM_DEBUG_KMS("%d\n", intel_dp->active_mst_links);
> > > @@ -112,6 +119,10 @@ static void intel_mst_disable_dp(struct intel_encoder
> > > *encoder)
> > >   	if (ret) {
> > >   		DRM_ERROR("failed to update payload %d\n", ret);
> > >   	}
> > > +	if (intel_crtc->config->has_audio) {
> > > +		intel_audio_codec_disable(encoder);
> > > +		intel_display_power_put(dev_priv, POWER_DOMAIN_AUDIO);
> > > +	}
> > 
> > It seems the power domain is only need for DDI platforms. Perhaps it would
> > make
> > sense to move that into hsw_audio_codec_{en,dis}able. Paulo?
> > 
> > >   }
> > > 
> > >   static void intel_mst_post_disable_dp(struct intel_encoder *encoder)
> > > @@ -214,6 +225,7 @@ static void intel_mst_enable_dp(struct intel_encoder
> > > *encoder)
> > >   	struct intel_dp *intel_dp = &intel_dig_port->dp;
> > >   	struct drm_device *dev = intel_dig_port->base.base.dev;
> > >   	struct drm_i915_private *dev_priv = dev->dev_private;
> > > +	struct intel_crtc *crtc = to_intel_crtc(encoder->base.crtc);
> > >   	enum port port = intel_dig_port->port;
> > >   	int ret;
> > > 
> > > @@ -226,6 +238,13 @@ static void intel_mst_enable_dp(struct intel_encoder
> > > *encoder)
> > >   	ret = drm_dp_check_act_status(&intel_dp->mst_mgr);
> > > 
> > >   	ret = drm_dp_update_payload_part2(&intel_dp->mst_mgr);
> > > +
> > > +	if (crtc->config->has_audio) {
> > > +		DRM_DEBUG_DRIVER("Enabling DP audio on pipe %c\n",
> > > +				 pipe_name(crtc->pipe));
> > > +		intel_display_power_get(dev_priv, POWER_DOMAIN_AUDIO);
> > > +		intel_audio_codec_enable(encoder);
> > > +	}
> > >   }
> > > 
> > >   static bool intel_dp_mst_enc_get_hw_state(struct intel_encoder *encoder,
> > > @@ -251,6 +270,12 @@ static void intel_dp_mst_enc_get_config(struct
> > > intel_encoder *encoder,
> > > 
> > >   	pipe_config->has_dp_encoder = true;
> > > 
> > > +	if (intel_display_power_is_enabled(dev_priv, POWER_DOMAIN_AUDIO))
> > > {
> > > +		temp = I915_READ(HSW_AUD_PIN_ELD_CP_VLD);
> > > +		if (temp & AUDIO_OUTPUT_ENABLE(crtc->pipe))
> > > +			pipe_config->has_audio = true;
> > > +	}
> > > +
> > 
> > This code is DDI specific. That shouldn't be a problem since we only support
> > DP
> > MST on DDI platforms, but we shouldn't duplicate that logic here. So I think
> > this should be added to a function that can be called both from here and
> > intel_ddi.c.
> 
> OK, I will try to add a helper function. Which file do you suggest 
> adding the function it?

Add it to intel_ddi.c, where the original occurrence of that code is.

Ander
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [V2 PATCH 2/2] drm/i915: start adding dp mst audio
  2015-11-19 11:07   ` Ander Conselvan De Oliveira
  2015-11-23  2:23     ` Libin Yang
@ 2015-11-23 14:04     ` Zanoni, Paulo R
  2015-11-23 15:01       ` Ander Conselvan De Oliveira
  1 sibling, 1 reply; 9+ messages in thread
From: Zanoni, Paulo R @ 2015-11-23 14:04 UTC (permalink / raw
  To: ville.syrjala@linux.intel.com, intel-gfx@lists.freedesktop.org,
	jani.nikula@linux.intel.com, Vetter, Daniel, conselvan2@gmail.com,
	libin.yang@linux.intel.com
  Cc: airlied@redhat.com

Em Qui, 2015-11-19 às 13:07 +0200, Ander Conselvan De Oliveira
escreveu:
> (Cc'ing Paulo for the audio power domain question)
> 
> On Wed, 2015-11-11 at 13:33 +0800, libin.yang@linux.intel.com wrote:
> > From: Libin Yang <libin.yang@linux.intel.com>
> > 
> > This patch adds support for DP MST audio in i915.
> > 
> > Enable audio codec when DP MST is enabled if has_audio flag is set.
> > Disable audio codec when DP MST is disabled if has_audio flag is
> > set.
> > 
> > Signed-off-by: Libin Yang <libin.yang@linux.intel.com>
> > Signed-off-by: Dave Airlie <airlied@redhat.com>
> > ---
> >  drivers/gpu/drm/i915/i915_debugfs.c | 14 ++++++++++++++
> >  drivers/gpu/drm/i915/intel_audio.c  |  9 ++++++---
> >  drivers/gpu/drm/i915/intel_dp_mst.c | 25 +++++++++++++++++++++++++
> >  3 files changed, 45 insertions(+), 3 deletions(-)
> > 
> > diff --git a/drivers/gpu/drm/i915/i915_debugfs.c
> > b/drivers/gpu/drm/i915/i915_debugfs.c
> > index 5659d4c..38c7a5d 100644
> > --- a/drivers/gpu/drm/i915/i915_debugfs.c
> > +++ b/drivers/gpu/drm/i915/i915_debugfs.c
> > @@ -2873,6 +2873,18 @@ static void intel_dp_info(struct seq_file
> > *m,
> >  		intel_panel_info(m, &intel_connector->panel);
> >  }
> >  
> > +static void intel_dp_mst_info(struct seq_file *m,
> > +			  struct intel_connector *intel_connector)
> > +{
> > +	struct intel_encoder *intel_encoder = intel_connector-
> > >encoder;
> > +	struct intel_dp_mst_encoder *intel_mst =
> > +		enc_to_mst(&intel_encoder->base);
> > +	struct intel_digital_port *intel_dig_port = intel_mst-
> > >primary;
> > +	struct intel_dp *intel_dp = &intel_dig_port->dp;
> > +
> > +	seq_printf(m, "\taudio support: %s\n",
> > drm_dp_mst_port_has_audio(&intel_dp->mst_mgr, intel_connector-
> > >port) ? "yes" :
> > "no");
> 
> Too much going on in just one line. You can replace the ternary
> operator with
> yesno(). You could also add a has_audio bool:
> 
> bool has_audio = drm_dp_mst_port_has_audio(...);
> seq_printf(..., yesno(has_audio));
> 
> 
> > +}
> > +
> >  static void intel_hdmi_info(struct seq_file *m,
> >  			    struct intel_connector
> > *intel_connector)
> >  {
> > @@ -2916,6 +2928,8 @@ static void intel_connector_info(struct
> > seq_file *m,
> >  			intel_hdmi_info(m, intel_connector);
> >  		else if (intel_encoder->type == INTEL_OUTPUT_LVDS)
> >  			intel_lvds_info(m, intel_connector);
> > +		else if (intel_encoder->type ==
> > INTEL_OUTPUT_DP_MST)
> > +			intel_dp_mst_info(m, intel_connector);
> >  	}
> >  
> >  	seq_printf(m, "\tmodes:\n");
> > diff --git a/drivers/gpu/drm/i915/intel_audio.c
> > b/drivers/gpu/drm/i915/intel_audio.c
> > index 63d4706..07b2aa6 100644
> > --- a/drivers/gpu/drm/i915/intel_audio.c
> > +++ b/drivers/gpu/drm/i915/intel_audio.c
> > @@ -262,7 +262,8 @@ static void hsw_audio_codec_disable(struct
> > intel_encoder
> > *encoder)
> >  	tmp |= AUD_CONFIG_N_PROG_ENABLE;
> >  	tmp &= ~AUD_CONFIG_UPPER_N_MASK;
> >  	tmp &= ~AUD_CONFIG_LOWER_N_MASK;
> > -	if (intel_pipe_has_type(intel_crtc,
> > INTEL_OUTPUT_DISPLAYPORT))
> > +	if (intel_pipe_has_type(intel_crtc,
> > INTEL_OUTPUT_DISPLAYPORT) ||
> > +		intel_pipe_has_type(intel_crtc,
> > INTEL_OUTPUT_DP_MST))
> 
> The second line should be aligned with '('.
> 
> >  		tmp |= AUD_CONFIG_N_VALUE_INDEX;
> >  	I915_WRITE(HSW_AUD_CFG(pipe), tmp);
> >  
> > @@ -478,7 +479,8 @@ static void ilk_audio_codec_enable(struct
> > drm_connector
> > *connector,
> >  	tmp &= ~AUD_CONFIG_N_VALUE_INDEX;
> >  	tmp &= ~AUD_CONFIG_N_PROG_ENABLE;
> >  	tmp &= ~AUD_CONFIG_PIXEL_CLOCK_HDMI_MASK;
> > -	if (intel_pipe_has_type(intel_crtc,
> > INTEL_OUTPUT_DISPLAYPORT))
> > +	if (intel_pipe_has_type(intel_crtc,
> > INTEL_OUTPUT_DISPLAYPORT) ||
> > +		intel_pipe_has_type(intel_crtc,
> > INTEL_OUTPUT_DP_MST))
> 
> Same here.
> 
> >  		tmp |= AUD_CONFIG_N_VALUE_INDEX;
> >  	else
> >  		tmp |=
> > audio_config_hdmi_pixel_clock(adjusted_mode);
> > @@ -516,7 +518,8 @@ void intel_audio_codec_enable(struct
> > intel_encoder
> > *intel_encoder)
> >  
> >  	/* ELD Conn_Type */
> >  	connector->eld[5] &= ~(3 << 2);
> > -	if (intel_pipe_has_type(crtc, INTEL_OUTPUT_DISPLAYPORT))
> > +	if (intel_pipe_has_type(crtc, INTEL_OUTPUT_DISPLAYPORT) ||
> > +		intel_pipe_has_type(crtc, INTEL_OUTPUT_DP_MST))
> >  		connector->eld[5] |= (1 << 2);
> 
> And here.
> 
> >  
> >  	connector->eld[6] = drm_av_sync_delay(connector,
> > adjusted_mode) / 2;
> > diff --git a/drivers/gpu/drm/i915/intel_dp_mst.c
> > b/drivers/gpu/drm/i915/intel_dp_mst.c
> > index 0639275..4ded0fb 100644
> > --- a/drivers/gpu/drm/i915/intel_dp_mst.c
> > +++ b/drivers/gpu/drm/i915/intel_dp_mst.c
> > @@ -78,6 +78,8 @@ static bool intel_dp_mst_compute_config(struct
> > intel_encoder
> > *encoder,
> >  		return false;
> >  	}
> >  
> > +	if (drm_dp_mst_port_has_audio(&intel_dp->mst_mgr, found-
> > >port))
> > +		pipe_config->has_audio = true;
> >  	mst_pbn = drm_dp_calc_pbn_mode(adjusted_mode->crtc_clock,
> > bpp);
> >  
> >  	pipe_config->pbn = mst_pbn;
> > @@ -102,6 +104,11 @@ static void intel_mst_disable_dp(struct
> > intel_encoder
> > *encoder)
> >  	struct intel_dp_mst_encoder *intel_mst =
> > enc_to_mst(&encoder->base);
> >  	struct intel_digital_port *intel_dig_port = intel_mst-
> > >primary;
> >  	struct intel_dp *intel_dp = &intel_dig_port->dp;
> > +	struct drm_device *dev = encoder->base.dev;
> > +	struct drm_i915_private *dev_priv = dev->dev_private;
> > +	struct drm_crtc *crtc = encoder->base.crtc;
> > +	struct intel_crtc *intel_crtc = to_intel_crtc(crtc);
> > +
> >  	int ret;
> >  
> >  	DRM_DEBUG_KMS("%d\n", intel_dp->active_mst_links);
> > @@ -112,6 +119,10 @@ static void intel_mst_disable_dp(struct
> > intel_encoder
> > *encoder)
> >  	if (ret) {
> >  		DRM_ERROR("failed to update payload %d\n", ret);
> >  	}
> > +	if (intel_crtc->config->has_audio) {
> > +		intel_audio_codec_disable(encoder);
> > +		intel_display_power_put(dev_priv,
> > POWER_DOMAIN_AUDIO);
> > +	}
> 
> It seems the power domain is only need for DDI platforms. Perhaps it
> would make
> sense to move that into hsw_audio_codec_{en,dis}able. Paulo?

The power domains code usually tries to be platform-independent,
abstracting away the different power wells, which are the platform-
dependent thing. So I'm fine with every platform getting the audio
power domain when it needs to use audio, even if the platform doesn't
have power wells. So if some other platform in the future introduces
some new odd power well for audio, we can rely on the fact that we
already have the proper power domain get/put calls, and focus on just
implementing the correct translation from "audio power domain" to
proper power wells.

> 
> >  }
> >  
> >  static void intel_mst_post_disable_dp(struct intel_encoder
> > *encoder)
> > @@ -214,6 +225,7 @@ static void intel_mst_enable_dp(struct
> > intel_encoder
> > *encoder)
> >  	struct intel_dp *intel_dp = &intel_dig_port->dp;
> >  	struct drm_device *dev = intel_dig_port->base.base.dev;
> >  	struct drm_i915_private *dev_priv = dev->dev_private;
> > +	struct intel_crtc *crtc = to_intel_crtc(encoder-
> > >base.crtc);
> >  	enum port port = intel_dig_port->port;
> >  	int ret;
> >  
> > @@ -226,6 +238,13 @@ static void intel_mst_enable_dp(struct
> > intel_encoder
> > *encoder)
> >  	ret = drm_dp_check_act_status(&intel_dp->mst_mgr);
> >  
> >  	ret = drm_dp_update_payload_part2(&intel_dp->mst_mgr);
> > +
> > +	if (crtc->config->has_audio) {
> > +		DRM_DEBUG_DRIVER("Enabling DP audio on pipe %c\n",
> > +				 pipe_name(crtc->pipe));
> > +		intel_display_power_get(dev_priv,
> > POWER_DOMAIN_AUDIO);
> > +		intel_audio_codec_enable(encoder);
> > +	}
> >  }
> >  
> >  static bool intel_dp_mst_enc_get_hw_state(struct intel_encoder
> > *encoder,
> > @@ -251,6 +270,12 @@ static void intel_dp_mst_enc_get_config(struct
> > intel_encoder *encoder,
> >  
> >  	pipe_config->has_dp_encoder = true;
> >  
> > +	if (intel_display_power_is_enabled(dev_priv,
> > POWER_DOMAIN_AUDIO)) {
> > +		temp = I915_READ(HSW_AUD_PIN_ELD_CP_VLD);
> > +		if (temp & AUDIO_OUTPUT_ENABLE(crtc->pipe))
> > +			pipe_config->has_audio = true;
> > +	}
> > +
> 
> This code is DDI specific. That shouldn't be a problem since we only
> support DP
> MST on DDI platforms, but we shouldn't duplicate that logic here. So
> I think
> this should be added to a function that can be called both from here
> and
> intel_ddi.c.


> Ander
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [V2 PATCH 2/2] drm/i915: start adding dp mst audio
  2015-11-23 14:04     ` Zanoni, Paulo R
@ 2015-11-23 15:01       ` Ander Conselvan De Oliveira
  2015-11-24  7:10         ` Libin Yang
  0 siblings, 1 reply; 9+ messages in thread
From: Ander Conselvan De Oliveira @ 2015-11-23 15:01 UTC (permalink / raw
  To: Zanoni, Paulo R, ville.syrjala@linux.intel.com,
	intel-gfx@lists.freedesktop.org, jani.nikula@linux.intel.com,
	Vetter, Daniel, libin.yang@linux.intel.com
  Cc: airlied@redhat.com

On Mon, 2015-11-23 at 14:04 +0000, Zanoni, Paulo R wrote:
> Em Qui, 2015-11-19 às 13:07 +0200, Ander Conselvan De Oliveira
> escreveu:
> > (Cc'ing Paulo for the audio power domain question)
> > 
> > On Wed, 2015-11-11 at 13:33 +0800, libin.yang@linux.intel.com wrote:
> > > From: Libin Yang <libin.yang@linux.intel.com>
> > > 
> > > This patch adds support for DP MST audio in i915.
> > > 
> > > Enable audio codec when DP MST is enabled if has_audio flag is set.
> > > Disable audio codec when DP MST is disabled if has_audio flag is
> > > set.
> > > 
> > > Signed-off-by: Libin Yang <libin.yang@linux.intel.com>
> > > Signed-off-by: Dave Airlie <airlied@redhat.com>
> > > ---
> > >  drivers/gpu/drm/i915/i915_debugfs.c | 14 ++++++++++++++
> > >  drivers/gpu/drm/i915/intel_audio.c  |  9 ++++++---
> > >  drivers/gpu/drm/i915/intel_dp_mst.c | 25 +++++++++++++++++++++++++
> > >  3 files changed, 45 insertions(+), 3 deletions(-)
> > > 
> > > diff --git a/drivers/gpu/drm/i915/i915_debugfs.c
> > > b/drivers/gpu/drm/i915/i915_debugfs.c
> > > index 5659d4c..38c7a5d 100644
> > > --- a/drivers/gpu/drm/i915/i915_debugfs.c
> > > +++ b/drivers/gpu/drm/i915/i915_debugfs.c
> > > @@ -2873,6 +2873,18 @@ static void intel_dp_info(struct seq_file
> > > *m,
> > >  		intel_panel_info(m, &intel_connector->panel);
> > >  }
> > >  
> > > +static void intel_dp_mst_info(struct seq_file *m,
> > > +			  struct intel_connector *intel_connector)
> > > +{
> > > +	struct intel_encoder *intel_encoder = intel_connector-
> > > > encoder;
> > > +	struct intel_dp_mst_encoder *intel_mst =
> > > +		enc_to_mst(&intel_encoder->base);
> > > +	struct intel_digital_port *intel_dig_port = intel_mst-
> > > > primary;
> > > +	struct intel_dp *intel_dp = &intel_dig_port->dp;
> > > +
> > > +	seq_printf(m, "\taudio support: %s\n",
> > > drm_dp_mst_port_has_audio(&intel_dp->mst_mgr, intel_connector-
> > > > port) ? "yes" :
> > > "no");
> > 
> > Too much going on in just one line. You can replace the ternary
> > operator with
> > yesno(). You could also add a has_audio bool:
> > 
> > bool has_audio = drm_dp_mst_port_has_audio(...);
> > seq_printf(..., yesno(has_audio));
> > 
> > 
> > > +}
> > > +
> > >  static void intel_hdmi_info(struct seq_file *m,
> > >  			    struct intel_connector
> > > *intel_connector)
> > >  {
> > > @@ -2916,6 +2928,8 @@ static void intel_connector_info(struct
> > > seq_file *m,
> > >  			intel_hdmi_info(m, intel_connector);
> > >  		else if (intel_encoder->type == INTEL_OUTPUT_LVDS)
> > >  			intel_lvds_info(m, intel_connector);
> > > +		else if (intel_encoder->type ==
> > > INTEL_OUTPUT_DP_MST)
> > > +			intel_dp_mst_info(m, intel_connector);
> > >  	}
> > >  
> > >  	seq_printf(m, "\tmodes:\n");
> > > diff --git a/drivers/gpu/drm/i915/intel_audio.c
> > > b/drivers/gpu/drm/i915/intel_audio.c
> > > index 63d4706..07b2aa6 100644
> > > --- a/drivers/gpu/drm/i915/intel_audio.c
> > > +++ b/drivers/gpu/drm/i915/intel_audio.c
> > > @@ -262,7 +262,8 @@ static void hsw_audio_codec_disable(struct
> > > intel_encoder
> > > *encoder)
> > >  	tmp |= AUD_CONFIG_N_PROG_ENABLE;
> > >  	tmp &= ~AUD_CONFIG_UPPER_N_MASK;
> > >  	tmp &= ~AUD_CONFIG_LOWER_N_MASK;
> > > -	if (intel_pipe_has_type(intel_crtc,
> > > INTEL_OUTPUT_DISPLAYPORT))
> > > +	if (intel_pipe_has_type(intel_crtc,
> > > INTEL_OUTPUT_DISPLAYPORT) ||
> > > +		intel_pipe_has_type(intel_crtc,
> > > INTEL_OUTPUT_DP_MST))
> > 
> > The second line should be aligned with '('.
> > 
> > >  		tmp |= AUD_CONFIG_N_VALUE_INDEX;
> > >  	I915_WRITE(HSW_AUD_CFG(pipe), tmp);
> > >  
> > > @@ -478,7 +479,8 @@ static void ilk_audio_codec_enable(struct
> > > drm_connector
> > > *connector,
> > >  	tmp &= ~AUD_CONFIG_N_VALUE_INDEX;
> > >  	tmp &= ~AUD_CONFIG_N_PROG_ENABLE;
> > >  	tmp &= ~AUD_CONFIG_PIXEL_CLOCK_HDMI_MASK;
> > > -	if (intel_pipe_has_type(intel_crtc,
> > > INTEL_OUTPUT_DISPLAYPORT))
> > > +	if (intel_pipe_has_type(intel_crtc,
> > > INTEL_OUTPUT_DISPLAYPORT) ||
> > > +		intel_pipe_has_type(intel_crtc,
> > > INTEL_OUTPUT_DP_MST))
> > 
> > Same here.
> > 
> > >  		tmp |= AUD_CONFIG_N_VALUE_INDEX;
> > >  	else
> > >  		tmp |=
> > > audio_config_hdmi_pixel_clock(adjusted_mode);
> > > @@ -516,7 +518,8 @@ void intel_audio_codec_enable(struct
> > > intel_encoder
> > > *intel_encoder)
> > >  
> > >  	/* ELD Conn_Type */
> > >  	connector->eld[5] &= ~(3 << 2);
> > > -	if (intel_pipe_has_type(crtc, INTEL_OUTPUT_DISPLAYPORT))
> > > +	if (intel_pipe_has_type(crtc, INTEL_OUTPUT_DISPLAYPORT) ||
> > > +		intel_pipe_has_type(crtc, INTEL_OUTPUT_DP_MST))
> > >  		connector->eld[5] |= (1 << 2);
> > 
> > And here.
> > 
> > >  
> > >  	connector->eld[6] = drm_av_sync_delay(connector,
> > > adjusted_mode) / 2;
> > > diff --git a/drivers/gpu/drm/i915/intel_dp_mst.c
> > > b/drivers/gpu/drm/i915/intel_dp_mst.c
> > > index 0639275..4ded0fb 100644
> > > --- a/drivers/gpu/drm/i915/intel_dp_mst.c
> > > +++ b/drivers/gpu/drm/i915/intel_dp_mst.c
> > > @@ -78,6 +78,8 @@ static bool intel_dp_mst_compute_config(struct
> > > intel_encoder
> > > *encoder,
> > >  		return false;
> > >  	}
> > >  
> > > +	if (drm_dp_mst_port_has_audio(&intel_dp->mst_mgr, found-
> > > > port))
> > > +		pipe_config->has_audio = true;
> > >  	mst_pbn = drm_dp_calc_pbn_mode(adjusted_mode->crtc_clock,
> > > bpp);
> > >  
> > >  	pipe_config->pbn = mst_pbn;
> > > @@ -102,6 +104,11 @@ static void intel_mst_disable_dp(struct
> > > intel_encoder
> > > *encoder)
> > >  	struct intel_dp_mst_encoder *intel_mst =
> > > enc_to_mst(&encoder->base);
> > >  	struct intel_digital_port *intel_dig_port = intel_mst-
> > > > primary;
> > >  	struct intel_dp *intel_dp = &intel_dig_port->dp;
> > > +	struct drm_device *dev = encoder->base.dev;
> > > +	struct drm_i915_private *dev_priv = dev->dev_private;
> > > +	struct drm_crtc *crtc = encoder->base.crtc;
> > > +	struct intel_crtc *intel_crtc = to_intel_crtc(crtc);
> > > +
> > >  	int ret;
> > >  
> > >  	DRM_DEBUG_KMS("%d\n", intel_dp->active_mst_links);
> > > @@ -112,6 +119,10 @@ static void intel_mst_disable_dp(struct
> > > intel_encoder
> > > *encoder)
> > >  	if (ret) {
> > >  		DRM_ERROR("failed to update payload %d\n", ret);
> > >  	}
> > > +	if (intel_crtc->config->has_audio) {
> > > +		intel_audio_codec_disable(encoder);
> > > +		intel_display_power_put(dev_priv,
> > > POWER_DOMAIN_AUDIO);
> > > +	}
> > 
> > It seems the power domain is only need for DDI platforms. Perhaps it
> > would make
> > sense to move that into hsw_audio_codec_{en,dis}able. Paulo?
> 
> The power domains code usually tries to be platform-independent,
> abstracting away the different power wells, which are the platform-
> dependent thing. So I'm fine with every platform getting the audio
> power domain when it needs to use audio, even if the platform doesn't
> have power wells. So if some other platform in the future introduces
> some new odd power well for audio, we can rely on the fact that we
> already have the proper power domain get/put calls, and focus on just
> implementing the correct translation from "audio power domain" to
> proper power wells.

Hmm, ok. So I think the way to go is to move the power domain handling into
intel_audio_codec_enable/disable. But that would be a separate patch, so Libin,
I think you can leave this as is.

Ander

> 
> > 
> > >  }
> > >  
> > >  static void intel_mst_post_disable_dp(struct intel_encoder
> > > *encoder)
> > > @@ -214,6 +225,7 @@ static void intel_mst_enable_dp(struct
> > > intel_encoder
> > > *encoder)
> > >  	struct intel_dp *intel_dp = &intel_dig_port->dp;
> > >  	struct drm_device *dev = intel_dig_port->base.base.dev;
> > >  	struct drm_i915_private *dev_priv = dev->dev_private;
> > > +	struct intel_crtc *crtc = to_intel_crtc(encoder-
> > > > base.crtc);
> > >  	enum port port = intel_dig_port->port;
> > >  	int ret;
> > >  
> > > @@ -226,6 +238,13 @@ static void intel_mst_enable_dp(struct
> > > intel_encoder
> > > *encoder)
> > >  	ret = drm_dp_check_act_status(&intel_dp->mst_mgr);
> > >  
> > >  	ret = drm_dp_update_payload_part2(&intel_dp->mst_mgr);
> > > +
> > > +	if (crtc->config->has_audio) {
> > > +		DRM_DEBUG_DRIVER("Enabling DP audio on pipe %c\n",
> > > +				 pipe_name(crtc->pipe));
> > > +		intel_display_power_get(dev_priv,
> > > POWER_DOMAIN_AUDIO);
> > > +		intel_audio_codec_enable(encoder);
> > > +	}
> > >  }
> > >  
> > >  static bool intel_dp_mst_enc_get_hw_state(struct intel_encoder
> > > *encoder,
> > > @@ -251,6 +270,12 @@ static void intel_dp_mst_enc_get_config(struct
> > > intel_encoder *encoder,
> > >  
> > >  	pipe_config->has_dp_encoder = true;
> > >  
> > > +	if (intel_display_power_is_enabled(dev_priv,
> > > POWER_DOMAIN_AUDIO)) {
> > > +		temp = I915_READ(HSW_AUD_PIN_ELD_CP_VLD);
> > > +		if (temp & AUDIO_OUTPUT_ENABLE(crtc->pipe))
> > > +			pipe_config->has_audio = true;
> > > +	}
> > > +
> > 
> > This code is DDI specific. That shouldn't be a problem since we only
> > support DP
> > MST on DDI platforms, but we shouldn't duplicate that logic here. So
> > I think
> > this should be added to a function that can be called both from here
> > and
> > intel_ddi.c.
> 
> 
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [V2 PATCH 2/2] drm/i915: start adding dp mst audio
  2015-11-23 15:01       ` Ander Conselvan De Oliveira
@ 2015-11-24  7:10         ` Libin Yang
  0 siblings, 0 replies; 9+ messages in thread
From: Libin Yang @ 2015-11-24  7:10 UTC (permalink / raw
  To: Ander Conselvan De Oliveira, Zanoni, Paulo R,
	ville.syrjala@linux.intel.com, intel-gfx@lists.freedesktop.org,
	jani.nikula@linux.intel.com, Vetter, Daniel
  Cc: airlied@redhat.com



Best Regards,
Libin

On 11/23/2015 11:01 PM, Ander Conselvan De Oliveira wrote:
> On Mon, 2015-11-23 at 14:04 +0000, Zanoni, Paulo R wrote:
>> Em Qui, 2015-11-19 às 13:07 +0200, Ander Conselvan De Oliveira
>> escreveu:
>>> (Cc'ing Paulo for the audio power domain question)
>>>
>>> On Wed, 2015-11-11 at 13:33 +0800, libin.yang@linux.intel.com wrote:
>>>> From: Libin Yang <libin.yang@linux.intel.com>
>>>>
>>>> This patch adds support for DP MST audio in i915.
>>>>
>>>> Enable audio codec when DP MST is enabled if has_audio flag is set.
>>>> Disable audio codec when DP MST is disabled if has_audio flag is
>>>> set.
>>>>
>>>> Signed-off-by: Libin Yang <libin.yang@linux.intel.com>
>>>> Signed-off-by: Dave Airlie <airlied@redhat.com>
>>>> ---
>>>>   drivers/gpu/drm/i915/i915_debugfs.c | 14 ++++++++++++++
>>>>   drivers/gpu/drm/i915/intel_audio.c  |  9 ++++++---
>>>>   drivers/gpu/drm/i915/intel_dp_mst.c | 25 +++++++++++++++++++++++++
>>>>   3 files changed, 45 insertions(+), 3 deletions(-)
>>>>
>>>> diff --git a/drivers/gpu/drm/i915/i915_debugfs.c
>>>> b/drivers/gpu/drm/i915/i915_debugfs.c
>>>> index 5659d4c..38c7a5d 100644
>>>> --- a/drivers/gpu/drm/i915/i915_debugfs.c
>>>> +++ b/drivers/gpu/drm/i915/i915_debugfs.c
>>>> @@ -2873,6 +2873,18 @@ static void intel_dp_info(struct seq_file
>>>> *m,
>>>>   		intel_panel_info(m, &intel_connector->panel);
>>>>   }
>>>>
>>>> +static void intel_dp_mst_info(struct seq_file *m,
>>>> +			  struct intel_connector *intel_connector)
>>>> +{
>>>> +	struct intel_encoder *intel_encoder = intel_connector-
>>>>> encoder;
>>>> +	struct intel_dp_mst_encoder *intel_mst =
>>>> +		enc_to_mst(&intel_encoder->base);
>>>> +	struct intel_digital_port *intel_dig_port = intel_mst-
>>>>> primary;
>>>> +	struct intel_dp *intel_dp = &intel_dig_port->dp;
>>>> +
>>>> +	seq_printf(m, "\taudio support: %s\n",
>>>> drm_dp_mst_port_has_audio(&intel_dp->mst_mgr, intel_connector-
>>>>> port) ? "yes" :
>>>> "no");
>>>
>>> Too much going on in just one line. You can replace the ternary
>>> operator with
>>> yesno(). You could also add a has_audio bool:
>>>
>>> bool has_audio = drm_dp_mst_port_has_audio(...);
>>> seq_printf(..., yesno(has_audio));
>>>
>>>
>>>> +}
>>>> +
>>>>   static void intel_hdmi_info(struct seq_file *m,
>>>>   			    struct intel_connector
>>>> *intel_connector)
>>>>   {
>>>> @@ -2916,6 +2928,8 @@ static void intel_connector_info(struct
>>>> seq_file *m,
>>>>   			intel_hdmi_info(m, intel_connector);
>>>>   		else if (intel_encoder->type == INTEL_OUTPUT_LVDS)
>>>>   			intel_lvds_info(m, intel_connector);
>>>> +		else if (intel_encoder->type ==
>>>> INTEL_OUTPUT_DP_MST)
>>>> +			intel_dp_mst_info(m, intel_connector);
>>>>   	}
>>>>
>>>>   	seq_printf(m, "\tmodes:\n");
>>>> diff --git a/drivers/gpu/drm/i915/intel_audio.c
>>>> b/drivers/gpu/drm/i915/intel_audio.c
>>>> index 63d4706..07b2aa6 100644
>>>> --- a/drivers/gpu/drm/i915/intel_audio.c
>>>> +++ b/drivers/gpu/drm/i915/intel_audio.c
>>>> @@ -262,7 +262,8 @@ static void hsw_audio_codec_disable(struct
>>>> intel_encoder
>>>> *encoder)
>>>>   	tmp |= AUD_CONFIG_N_PROG_ENABLE;
>>>>   	tmp &= ~AUD_CONFIG_UPPER_N_MASK;
>>>>   	tmp &= ~AUD_CONFIG_LOWER_N_MASK;
>>>> -	if (intel_pipe_has_type(intel_crtc,
>>>> INTEL_OUTPUT_DISPLAYPORT))
>>>> +	if (intel_pipe_has_type(intel_crtc,
>>>> INTEL_OUTPUT_DISPLAYPORT) ||
>>>> +		intel_pipe_has_type(intel_crtc,
>>>> INTEL_OUTPUT_DP_MST))
>>>
>>> The second line should be aligned with '('.
>>>
>>>>   		tmp |= AUD_CONFIG_N_VALUE_INDEX;
>>>>   	I915_WRITE(HSW_AUD_CFG(pipe), tmp);
>>>>
>>>> @@ -478,7 +479,8 @@ static void ilk_audio_codec_enable(struct
>>>> drm_connector
>>>> *connector,
>>>>   	tmp &= ~AUD_CONFIG_N_VALUE_INDEX;
>>>>   	tmp &= ~AUD_CONFIG_N_PROG_ENABLE;
>>>>   	tmp &= ~AUD_CONFIG_PIXEL_CLOCK_HDMI_MASK;
>>>> -	if (intel_pipe_has_type(intel_crtc,
>>>> INTEL_OUTPUT_DISPLAYPORT))
>>>> +	if (intel_pipe_has_type(intel_crtc,
>>>> INTEL_OUTPUT_DISPLAYPORT) ||
>>>> +		intel_pipe_has_type(intel_crtc,
>>>> INTEL_OUTPUT_DP_MST))
>>>
>>> Same here.
>>>
>>>>   		tmp |= AUD_CONFIG_N_VALUE_INDEX;
>>>>   	else
>>>>   		tmp |=
>>>> audio_config_hdmi_pixel_clock(adjusted_mode);
>>>> @@ -516,7 +518,8 @@ void intel_audio_codec_enable(struct
>>>> intel_encoder
>>>> *intel_encoder)
>>>>
>>>>   	/* ELD Conn_Type */
>>>>   	connector->eld[5] &= ~(3 << 2);
>>>> -	if (intel_pipe_has_type(crtc, INTEL_OUTPUT_DISPLAYPORT))
>>>> +	if (intel_pipe_has_type(crtc, INTEL_OUTPUT_DISPLAYPORT) ||
>>>> +		intel_pipe_has_type(crtc, INTEL_OUTPUT_DP_MST))
>>>>   		connector->eld[5] |= (1 << 2);
>>>
>>> And here.
>>>
>>>>
>>>>   	connector->eld[6] = drm_av_sync_delay(connector,
>>>> adjusted_mode) / 2;
>>>> diff --git a/drivers/gpu/drm/i915/intel_dp_mst.c
>>>> b/drivers/gpu/drm/i915/intel_dp_mst.c
>>>> index 0639275..4ded0fb 100644
>>>> --- a/drivers/gpu/drm/i915/intel_dp_mst.c
>>>> +++ b/drivers/gpu/drm/i915/intel_dp_mst.c
>>>> @@ -78,6 +78,8 @@ static bool intel_dp_mst_compute_config(struct
>>>> intel_encoder
>>>> *encoder,
>>>>   		return false;
>>>>   	}
>>>>
>>>> +	if (drm_dp_mst_port_has_audio(&intel_dp->mst_mgr, found-
>>>>> port))
>>>> +		pipe_config->has_audio = true;
>>>>   	mst_pbn = drm_dp_calc_pbn_mode(adjusted_mode->crtc_clock,
>>>> bpp);
>>>>
>>>>   	pipe_config->pbn = mst_pbn;
>>>> @@ -102,6 +104,11 @@ static void intel_mst_disable_dp(struct
>>>> intel_encoder
>>>> *encoder)
>>>>   	struct intel_dp_mst_encoder *intel_mst =
>>>> enc_to_mst(&encoder->base);
>>>>   	struct intel_digital_port *intel_dig_port = intel_mst-
>>>>> primary;
>>>>   	struct intel_dp *intel_dp = &intel_dig_port->dp;
>>>> +	struct drm_device *dev = encoder->base.dev;
>>>> +	struct drm_i915_private *dev_priv = dev->dev_private;
>>>> +	struct drm_crtc *crtc = encoder->base.crtc;
>>>> +	struct intel_crtc *intel_crtc = to_intel_crtc(crtc);
>>>> +
>>>>   	int ret;
>>>>
>>>>   	DRM_DEBUG_KMS("%d\n", intel_dp->active_mst_links);
>>>> @@ -112,6 +119,10 @@ static void intel_mst_disable_dp(struct
>>>> intel_encoder
>>>> *encoder)
>>>>   	if (ret) {
>>>>   		DRM_ERROR("failed to update payload %d\n", ret);
>>>>   	}
>>>> +	if (intel_crtc->config->has_audio) {
>>>> +		intel_audio_codec_disable(encoder);
>>>> +		intel_display_power_put(dev_priv,
>>>> POWER_DOMAIN_AUDIO);
>>>> +	}
>>>
>>> It seems the power domain is only need for DDI platforms. Perhaps it
>>> would make
>>> sense to move that into hsw_audio_codec_{en,dis}able. Paulo?
>>
>> The power domains code usually tries to be platform-independent,
>> abstracting away the different power wells, which are the platform-
>> dependent thing. So I'm fine with every platform getting the audio
>> power domain when it needs to use audio, even if the platform doesn't
>> have power wells. So if some other platform in the future introduces
>> some new odd power well for audio, we can rely on the fact that we
>> already have the proper power domain get/put calls, and focus on just
>> implementing the correct translation from "audio power domain" to
>> proper power wells.
>
> Hmm, ok. So I think the way to go is to move the power domain handling into
> intel_audio_codec_enable/disable. But that would be a separate patch, so Libin,
> I think you can leave this as is.

get it. Thanks.

Regards,
Libin

>
> Ander
>
>>
>>>
>>>>   }
>>>>
>>>>   static void intel_mst_post_disable_dp(struct intel_encoder
>>>> *encoder)
>>>> @@ -214,6 +225,7 @@ static void intel_mst_enable_dp(struct
>>>> intel_encoder
>>>> *encoder)
>>>>   	struct intel_dp *intel_dp = &intel_dig_port->dp;
>>>>   	struct drm_device *dev = intel_dig_port->base.base.dev;
>>>>   	struct drm_i915_private *dev_priv = dev->dev_private;
>>>> +	struct intel_crtc *crtc = to_intel_crtc(encoder-
>>>>> base.crtc);
>>>>   	enum port port = intel_dig_port->port;
>>>>   	int ret;
>>>>
>>>> @@ -226,6 +238,13 @@ static void intel_mst_enable_dp(struct
>>>> intel_encoder
>>>> *encoder)
>>>>   	ret = drm_dp_check_act_status(&intel_dp->mst_mgr);
>>>>
>>>>   	ret = drm_dp_update_payload_part2(&intel_dp->mst_mgr);
>>>> +
>>>> +	if (crtc->config->has_audio) {
>>>> +		DRM_DEBUG_DRIVER("Enabling DP audio on pipe %c\n",
>>>> +				 pipe_name(crtc->pipe));
>>>> +		intel_display_power_get(dev_priv,
>>>> POWER_DOMAIN_AUDIO);
>>>> +		intel_audio_codec_enable(encoder);
>>>> +	}
>>>>   }
>>>>
>>>>   static bool intel_dp_mst_enc_get_hw_state(struct intel_encoder
>>>> *encoder,
>>>> @@ -251,6 +270,12 @@ static void intel_dp_mst_enc_get_config(struct
>>>> intel_encoder *encoder,
>>>>
>>>>   	pipe_config->has_dp_encoder = true;
>>>>
>>>> +	if (intel_display_power_is_enabled(dev_priv,
>>>> POWER_DOMAIN_AUDIO)) {
>>>> +		temp = I915_READ(HSW_AUD_PIN_ELD_CP_VLD);
>>>> +		if (temp & AUDIO_OUTPUT_ENABLE(crtc->pipe))
>>>> +			pipe_config->has_audio = true;
>>>> +	}
>>>> +
>>>
>>> This code is DDI specific. That shouldn't be a problem since we only
>>> support DP
>>> MST on DDI platforms, but we shouldn't duplicate that logic here. So
>>> I think
>>> this should be added to a function that can be called both from here
>>> and
>>> intel_ddi.c.
>>
>>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-11-24  7:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-11  5:33 [V2 PATCH 1/2] dp/mst: add SDP stream support libin.yang
2015-11-11  5:33 ` [V2 PATCH 2/2] drm/i915: start adding dp mst audio libin.yang
2015-11-19 11:07   ` Ander Conselvan De Oliveira
2015-11-23  2:23     ` Libin Yang
2015-11-23  8:55       ` Ander Conselvan De Oliveira
2015-11-23 14:04     ` Zanoni, Paulo R
2015-11-23 15:01       ` Ander Conselvan De Oliveira
2015-11-24  7:10         ` Libin Yang
2015-11-12 14:40 ` [V2 PATCH 1/2] dp/mst: add SDP stream support Yang, Libin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.