Skip to contentSkip to conversation

drm/bridge-connector: simplify handling of USB-C DP

PATCH In review Dmitry Baryshkov 5 participants 28 messages Jul 29, 2023 – Aug 18, 2023

Subsystems (9)
lore
Share & tools
lore
#0 lore raw

cover drm/bridge-connector: simplify handling of USB-C DP

During the discussion of DP connetors, it was pointed out that existing DP drivers supporting USB-C altmode (AMDGPU, Intel) use DRM_MODE_CONNECTOR_DisplayPort for such connectors rather than DRM_MODE_CONNECTOR_USB.

This patchset attempts to solve this issue. It adds USB to the enum drm_dp_subconnector and then provides a simple yet efficient way to define DP-in-USB subconnector type for the drivers that use drm_bridge_connector.

Dmitry Baryshkov (4):
drm: allow specifying default subtype for the DP subconnector property drm/bridge-connector: handle subconnector types
drm/uapi: document the USB subconnector type
soc: qcom: pmic_glink: properly describe the DP connector

 .../gpu/drm/amd/amdgpu/amdgpu_connectors.c    |  3 +-
 .../display/amdgpu_dm/amdgpu_dm_mst_types.c   |  3 +-
 drivers/gpu/drm/drm_bridge_connector.c        | 33 ++++++++++++++++++-
 drivers/gpu/drm/drm_connector.c               |  7 ++--
 drivers/gpu/drm/i915/display/intel_dp.c       |  3 +-
 drivers/soc/qcom/pmic_glink_altmode.c         |  3 +-
 include/drm/drm_bridge.h                      |  4 +++
 include/drm/drm_connector.h                   |  3 +-
 include/uapi/drm/drm_mode.h                   |  1 +
 9 files changed, 52 insertions(+), 8 deletions(-)
Signature · 1 line
2.39.2
#1 lore raw

PATCH 1/4 drm: allow specifying default subtype for the DP subconnector property

In the embedded usecases the default subtype depends on the bridge chain, so it is easier to specify the subtype at the proprety attachment type rather than specifying it later.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c              | 3 ++-
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c | 3 ++-
 drivers/gpu/drm/drm_connector.c                             | 6 ++++--
 drivers/gpu/drm/i915/display/intel_dp.c                     | 3 ++-
 include/drm/drm_connector.h                                 | 3 ++-
 5 files changed, 12 insertions(+), 6 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c +2 -1
index d34037b85cf8..c18459ecd4be 100644
@@ -2022,7 +2022,8 @@ amdgpu_connector_add(struct amdgpu_device *adev,
 
 	if (connector_type == DRM_MODE_CONNECTOR_DisplayPort ||
 	    connector_type == DRM_MODE_CONNECTOR_eDP) {
-		drm_connector_attach_dp_subconnector_property(&amdgpu_connector->base);
+		drm_connector_attach_dp_subconnector_property(&amdgpu_connector->base,
+							      DRM_MODE_SUBCONNECTOR_Unknown);
 	}
 
 	return;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c +2 -1
index 943959012d04..297321f0199e 100644
@@ -759,7 +759,8 @@ void amdgpu_dm_initialize_dp_connector(struct amdgpu_display_manager *dm,
 	drm_dp_mst_topology_mgr_init(&aconnector->mst_mgr, adev_to_drm(dm->adev),
 				     &aconnector->dm_dp_aux.aux, 16, 4, aconnector->connector_id);
 
-	drm_connector_attach_dp_subconnector_property(&aconnector->base);
+	drm_connector_attach_dp_subconnector_property(&aconnector->base,
+						      DRM_MODE_SUBCONNECTOR_Unknown);
 }
 
 int dm_mst_get_pbn_divider(struct dc_link *link)
drivers/gpu/drm/drm_connector.c +4 -2
index a3d3e7dc08b2..a6066e4a5e9a 100644
@@ -1577,10 +1577,12 @@ EXPORT_SYMBOL(drm_mode_create_dvi_i_properties);
 /**
  * drm_connector_attach_dp_subconnector_property - create subconnector property for DP
  * @connector: drm_connector to attach property
+ * @subtype: initial value for the subconnector type
  *
  * Called by a driver when DP connector is created.
  */
-void drm_connector_attach_dp_subconnector_property(struct drm_connector *connector)
+void drm_connector_attach_dp_subconnector_property(struct drm_connector *connector,
+						   enum drm_mode_subconnector subtype)
 {
 	struct drm_mode_config *mode_config = &connector->dev->mode_config;
 
@@ -1594,7 +1596,7 @@ void drm_connector_attach_dp_subconnector_property(struct drm_connector *connect
 
 	drm_object_attach_property(&connector->base,
 				   mode_config->dp_subconnector_property,
-				   DRM_MODE_SUBCONNECTOR_Unknown);
+				   subtype);
 }
 EXPORT_SYMBOL(drm_connector_attach_dp_subconnector_property);
 
drivers/gpu/drm/i915/display/intel_dp.c +2 -1
index 474785110662..5819105187f6 100644
@@ -5391,7 +5391,8 @@ intel_dp_add_properties(struct intel_dp *intel_dp, struct drm_connector *connect
 	enum port port = dp_to_dig_port(intel_dp)->base.port;
 
 	if (!intel_dp_is_edp(intel_dp))
-		drm_connector_attach_dp_subconnector_property(connector);
+		drm_connector_attach_dp_subconnector_property(connector,
+							      DRM_MODE_SUBCONNECTOR_Unknown);
 
 	if (!IS_G4X(dev_priv) && port != PORT_A)
 		intel_attach_force_audio_property(connector);
include/drm/drm_connector.h +2 -1
index 5a8115dca359..a130a78f6e0f 100644
@@ -1990,7 +1990,8 @@ const char *drm_get_hdcp_content_type_name(int val);
 int drm_get_tv_mode_from_name(const char *name, size_t len);
 
 int drm_mode_create_dvi_i_properties(struct drm_device *dev);
-void drm_connector_attach_dp_subconnector_property(struct drm_connector *connector);
+void drm_connector_attach_dp_subconnector_property(struct drm_connector *connector,
+						   enum drm_mode_subconnector subtype);
 
 int drm_mode_create_tv_margin_properties(struct drm_device *dev);
 int drm_mode_create_tv_properties_legacy(struct drm_device *dev,
Signature · 1 line
2.39.2
#2 lore raw

Re: [PATCH 1/4] drm: allow specifying default subtype for the DP subconnector property

Hi Dmitry,

Thank you for the patch.

Quoted 2 lines · Dmitry Baryshkov

In the embedded usecases the default subtype depends on the bridge chain, so it is easier to specify the subtype at the proprety attachment

s/proprety/property/

Quoted 1 line

type rather than specifying it later.

Did you mean s/type/time/ ?

I think I understand why you need this, looking at patch 2/4, but the commit message isn't very clear. It would benefit from being reworded.

Quoted 92 lines
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c              | 3 ++-
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c | 3 ++-
 drivers/gpu/drm/drm_connector.c                             | 6 ++++--
 drivers/gpu/drm/i915/display/intel_dp.c                     | 3 ++-
 include/drm/drm_connector.h                                 | 3 ++-
 5 files changed, 12 insertions(+), 6 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c +2 -1
index d34037b85cf8..c18459ecd4be 100644
@@ -2022,7 +2022,8 @@ amdgpu_connector_add(struct amdgpu_device *adev,
 
 	if (connector_type == DRM_MODE_CONNECTOR_DisplayPort ||
 	    connector_type == DRM_MODE_CONNECTOR_eDP) {
-		drm_connector_attach_dp_subconnector_property(&amdgpu_connector->base);
+		drm_connector_attach_dp_subconnector_property(&amdgpu_connector->base,
+							      DRM_MODE_SUBCONNECTOR_Unknown);
 	}
 
 	return;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c +2 -1
index 943959012d04..297321f0199e 100644
@@ -759,7 +759,8 @@ void amdgpu_dm_initialize_dp_connector(struct amdgpu_display_manager *dm,
 	drm_dp_mst_topology_mgr_init(&aconnector->mst_mgr, adev_to_drm(dm->adev),
 				     &aconnector->dm_dp_aux.aux, 16, 4, aconnector->connector_id);
 
-	drm_connector_attach_dp_subconnector_property(&aconnector->base);
+	drm_connector_attach_dp_subconnector_property(&aconnector->base,
+						      DRM_MODE_SUBCONNECTOR_Unknown);
 }
 
 int dm_mst_get_pbn_divider(struct dc_link *link)
drivers/gpu/drm/drm_connector.c +4 -2
index a3d3e7dc08b2..a6066e4a5e9a 100644
@@ -1577,10 +1577,12 @@ EXPORT_SYMBOL(drm_mode_create_dvi_i_properties);
 /**
  * drm_connector_attach_dp_subconnector_property - create subconnector property for DP
  * @connector: drm_connector to attach property
+ * @subtype: initial value for the subconnector type
  *
  * Called by a driver when DP connector is created.
  */
-void drm_connector_attach_dp_subconnector_property(struct drm_connector *connector)
+void drm_connector_attach_dp_subconnector_property(struct drm_connector *connector,
+						   enum drm_mode_subconnector subtype)
 {
 	struct drm_mode_config *mode_config = &connector->dev->mode_config;
 
@@ -1594,7 +1596,7 @@ void drm_connector_attach_dp_subconnector_property(struct drm_connector *connect
 
 	drm_object_attach_property(&connector->base,
 				   mode_config->dp_subconnector_property,
-				   DRM_MODE_SUBCONNECTOR_Unknown);
+				   subtype);
 }
 EXPORT_SYMBOL(drm_connector_attach_dp_subconnector_property);
 
drivers/gpu/drm/i915/display/intel_dp.c +2 -1
index 474785110662..5819105187f6 100644
@@ -5391,7 +5391,8 @@ intel_dp_add_properties(struct intel_dp *intel_dp, struct drm_connector *connect
 	enum port port = dp_to_dig_port(intel_dp)->base.port;
 
 	if (!intel_dp_is_edp(intel_dp))
-		drm_connector_attach_dp_subconnector_property(connector);
+		drm_connector_attach_dp_subconnector_property(connector,
+							      DRM_MODE_SUBCONNECTOR_Unknown);
 
 	if (!IS_G4X(dev_priv) && port != PORT_A)
 		intel_attach_force_audio_property(connector);
include/drm/drm_connector.h +2 -1
index 5a8115dca359..a130a78f6e0f 100644
@@ -1990,7 +1990,8 @@ const char *drm_get_hdcp_content_type_name(int val);
 int drm_get_tv_mode_from_name(const char *name, size_t len);
 
 int drm_mode_create_dvi_i_properties(struct drm_device *dev);
-void drm_connector_attach_dp_subconnector_property(struct drm_connector *connector);
+void drm_connector_attach_dp_subconnector_property(struct drm_connector *connector,
+						   enum drm_mode_subconnector subtype);
 
 int drm_mode_create_tv_margin_properties(struct drm_device *dev);
 int drm_mode_create_tv_properties_legacy(struct drm_device *dev,
Signature · 3 lines
Regards,

Laurent Pinchart
#3 lore raw

Re: [PATCH 1/4] drm: allow specifying default subtype for the DP subconnector property

Quoted 8 lines · Laurent Pinchart

Hi Dmitry,

Thank you for the patch.

Quoted 2 lines · Dmitry Baryshkov

In the embedded usecases the default subtype depends on the bridge chain, so it is easier to specify the subtype at the proprety attachment

Quoted 8 lines

s/proprety/property/

Quoted 1 line

type rather than specifying it later.

Did you mean s/type/time/ ?

I think I understand why you need this, looking at patch 2/4, but the commit message isn't very clear. It would benefit from being reworded.

Ack, thanks for the feedback.

Quoted 94 lines
Quoted 93 lines
---
  drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c              | 3 ++-
  drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c | 3 ++-
  drivers/gpu/drm/drm_connector.c                             | 6 ++++--
  drivers/gpu/drm/i915/display/intel_dp.c                     | 3 ++-
  include/drm/drm_connector.h                                 | 3 ++-
  5 files changed, 12 insertions(+), 6 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c +2 -1
index d34037b85cf8..c18459ecd4be 100644
@@ -2022,7 +2022,8 @@ amdgpu_connector_add(struct amdgpu_device *adev,
 
  	if (connector_type == DRM_MODE_CONNECTOR_DisplayPort ||
  	    connector_type == DRM_MODE_CONNECTOR_eDP) {
-		drm_connector_attach_dp_subconnector_property(&amdgpu_connector->base);
+		drm_connector_attach_dp_subconnector_property(&amdgpu_connector->base,
+							      DRM_MODE_SUBCONNECTOR_Unknown);
  	}
 
  	return;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c +2 -1
index 943959012d04..297321f0199e 100644
@@ -759,7 +759,8 @@ void amdgpu_dm_initialize_dp_connector(struct amdgpu_display_manager *dm,
  	drm_dp_mst_topology_mgr_init(&aconnector->mst_mgr, adev_to_drm(dm->adev),
  				     &aconnector->dm_dp_aux.aux, 16, 4, aconnector->connector_id);
 
-	drm_connector_attach_dp_subconnector_property(&aconnector->base);
+	drm_connector_attach_dp_subconnector_property(&aconnector->base,
+						      DRM_MODE_SUBCONNECTOR_Unknown);
  }
 
  int dm_mst_get_pbn_divider(struct dc_link *link)
drivers/gpu/drm/drm_connector.c +4 -2
index a3d3e7dc08b2..a6066e4a5e9a 100644
@@ -1577,10 +1577,12 @@ EXPORT_SYMBOL(drm_mode_create_dvi_i_properties);
  /**
   * drm_connector_attach_dp_subconnector_property - create subconnector property for DP
   * @connector: drm_connector to attach property
+ * @subtype: initial value for the subconnector type
   *
   * Called by a driver when DP connector is created.
   */
-void drm_connector_attach_dp_subconnector_property(struct drm_connector *connector)
+void drm_connector_attach_dp_subconnector_property(struct drm_connector *connector,
+						   enum drm_mode_subconnector subtype)
  {
  	struct drm_mode_config *mode_config = &connector->dev->mode_config;
 
@@ -1594,7 +1596,7 @@ void drm_connector_attach_dp_subconnector_property(struct drm_connector *connect
 
  	drm_object_attach_property(&connector->base,
  				   mode_config->dp_subconnector_property,
-				   DRM_MODE_SUBCONNECTOR_Unknown);
+				   subtype);
  }
  EXPORT_SYMBOL(drm_connector_attach_dp_subconnector_property);
 
drivers/gpu/drm/i915/display/intel_dp.c +2 -1
index 474785110662..5819105187f6 100644
@@ -5391,7 +5391,8 @@ intel_dp_add_properties(struct intel_dp *intel_dp, struct drm_connector *connect
  	enum port port = dp_to_dig_port(intel_dp)->base.port;
 
  	if (!intel_dp_is_edp(intel_dp))
-		drm_connector_attach_dp_subconnector_property(connector);
+		drm_connector_attach_dp_subconnector_property(connector,
+							      DRM_MODE_SUBCONNECTOR_Unknown);
 
  	if (!IS_G4X(dev_priv) && port != PORT_A)
  		intel_attach_force_audio_property(connector);
include/drm/drm_connector.h +2 -1
index 5a8115dca359..a130a78f6e0f 100644
@@ -1990,7 +1990,8 @@ const char *drm_get_hdcp_content_type_name(int val);
  int drm_get_tv_mode_from_name(const char *name, size_t len);
 
  int drm_mode_create_dvi_i_properties(struct drm_device *dev);
-void drm_connector_attach_dp_subconnector_property(struct drm_connector *connector);
+void drm_connector_attach_dp_subconnector_property(struct drm_connector *connector,
+						   enum drm_mode_subconnector subtype);
 
  int drm_mode_create_tv_margin_properties(struct drm_device *dev);
  int drm_mode_create_tv_properties_legacy(struct drm_device *dev,
Signature · 2 lines
With best wishes
Dmitry
#4 lore raw

PATCH 2/4 drm/bridge-connector: handle subconnector types

In reply to Dmitry Baryshkov

If the created connector type supports subconnector type property, create and attach corresponding it. The default subtype value is 0, which maps to the DRM_MODE_SUBCONNECTOR_Unknown type.

---
 drivers/gpu/drm/drm_bridge_connector.c | 33 +++++++++++++++++++++++++-
 include/drm/drm_bridge.h               |  4 ++++
 2 files changed, 36 insertions(+), 1 deletion(-)
drivers/gpu/drm/drm_bridge_connector.c +32 -1
index 07b5930b1282..a7b92f0d2430 100644
@@ -329,7 +329,9 @@ struct drm_connector *drm_bridge_connector_init(struct drm_device *drm,
 	struct drm_connector *connector;
 	struct i2c_adapter *ddc = NULL;
 	struct drm_bridge *bridge, *panel_bridge = NULL;
+	enum drm_mode_subconnector subconnector;
 	int connector_type;
+	int ret;
 
 	bridge_connector = kzalloc(sizeof(*bridge_connector), GFP_KERNEL);
 	if (!bridge_connector)
@@ -365,8 +367,10 @@ struct drm_connector *drm_bridge_connector_init(struct drm_device *drm,
 		if (bridge->ops & DRM_BRIDGE_OP_MODES)
 			bridge_connector->bridge_modes = bridge;
 
-		if (!drm_bridge_get_next_bridge(bridge))
+		if (!drm_bridge_get_next_bridge(bridge)) {
 			connector_type = bridge->type;
+			subconnector = bridge->subtype;
+		}
 
 #ifdef CONFIG_OF
 		if (!drm_bridge_get_next_bridge(bridge) &&
@@ -399,6 +403,33 @@ struct drm_connector *drm_bridge_connector_init(struct drm_device *drm,
 	if (panel_bridge)
 		drm_panel_bridge_set_orientation(connector, panel_bridge);
 
+	if (connector_type == DRM_MODE_CONNECTOR_DisplayPort) {
+		drm_connector_attach_dp_subconnector_property(connector, subconnector);
+	} else if (connector_type == DRM_MODE_CONNECTOR_DVII) {
+		ret = drm_mode_create_dvi_i_properties(drm);
+		if (ret)
+			return ERR_PTR(ret);
+
+		drm_object_attach_property(&connector->base,
+					   drm->mode_config.dvi_i_subconnector_property,
+					   subconnector);
+	} else if (connector_type == DRM_MODE_CONNECTOR_TV) {
+		ret = drm_mode_create_tv_properties(drm,
+						    BIT(DRM_MODE_TV_MODE_NTSC) |
+						    BIT(DRM_MODE_TV_MODE_NTSC_443) |
+						    BIT(DRM_MODE_TV_MODE_NTSC_J) |
+						    BIT(DRM_MODE_TV_MODE_PAL) |
+						    BIT(DRM_MODE_TV_MODE_PAL_M) |
+						    BIT(DRM_MODE_TV_MODE_PAL_N) |
+						    BIT(DRM_MODE_TV_MODE_SECAM));
+		if (ret)
+			return ERR_PTR(ret);
+
+		drm_object_attach_property(&connector->base,
+					   drm->mode_config.tv_subconnector_property,
+					   subconnector);
+	}
+
 	return connector;
 }
 EXPORT_SYMBOL_GPL(drm_bridge_connector_init);
include/drm/drm_bridge.h +4 -0
index bf964cdfb330..68b14ac5ac0d 100644
@@ -739,6 +739,10 @@ struct drm_bridge {
 	 * identifies the type of connected display.
 	 */
 	int type;
+	/**
+	 * @subtype: the subtype of the connector for the DP/TV/DVI-I cases.
+	 */
+	enum drm_mode_subconnector subtype;
 	/**
 	 * @interlace_allowed: Indicate that the bridge can handle interlaced
 	 * modes.
Signature · 1 line
2.39.2
maintainer
#5 lore raw

Re: [PATCH 2/4] drm/bridge-connector: handle subconnector types

Quoted 51 lines · Dmitry Baryshkov

If the created connector type supports subconnector type property, create and attach corresponding it. The default subtype value is 0, which maps to the DRM_MODE_SUBCONNECTOR_Unknown type.

---
  drivers/gpu/drm/drm_bridge_connector.c | 33 +++++++++++++++++++++++++-
  include/drm/drm_bridge.h               |  4 ++++
  2 files changed, 36 insertions(+), 1 deletion(-)
drivers/gpu/drm/drm_bridge_connector.c +16 -1
index 07b5930b1282..a7b92f0d2430 100644
@@ -329,7 +329,9 @@ struct drm_connector *drm_bridge_connector_init(struct drm_device *drm,
  	struct drm_connector *connector;
  	struct i2c_adapter *ddc = NULL;
  	struct drm_bridge *bridge, *panel_bridge = NULL;
+	enum drm_mode_subconnector subconnector;
  	int connector_type;
+	int ret;
 
  	bridge_connector = kzalloc(sizeof(*bridge_connector), GFP_KERNEL);
  	if (!bridge_connector)
@@ -365,8 +367,10 @@ struct drm_connector *drm_bridge_connector_init(struct drm_device *drm,
  		if (bridge->ops & DRM_BRIDGE_OP_MODES)
  			bridge_connector->bridge_modes = bridge;
 
-		if (!drm_bridge_get_next_bridge(bridge))
+		if (!drm_bridge_get_next_bridge(bridge)) {
  			connector_type = bridge->type;
+			subconnector = bridge->subtype;
+		}
 
  #ifdef CONFIG_OF
  		if (!drm_bridge_get_next_bridge(bridge) &&
@@ -399,6 +403,33 @@ struct drm_connector *drm_bridge_connector_init(struct drm_device *drm,
  	if (panel_bridge)
  		drm_panel_bridge_set_orientation(connector, panel_bridge);
 
+	if (connector_type == DRM_MODE_CONNECTOR_DisplayPort) {
+		drm_connector_attach_dp_subconnector_property(connector, subconnector);
+	} else if (connector_type == DRM_MODE_CONNECTOR_DVII) {
+		ret = drm_mode_create_dvi_i_properties(drm);
+		if (ret)
+			return ERR_PTR(ret);
+
+		drm_object_attach_property(&connector->base,
+					   drm->mode_config.dvi_i_subconnector_property,
+					   subconnector);
+	} else if (connector_type == DRM_MODE_CONNECTOR_TV) {

drivers/gpu/drm/drm_bridge_connector.c struct drm_connector *drm_bridge_connector_init(struct drm_device *drm, · line 426

Quoted 10 lines
drivers/gpu/drm/drm_bridge_connector.c +10 -0
+		ret = drm_mode_create_tv_properties(drm,
+						    BIT(DRM_MODE_TV_MODE_NTSC) |
+						    BIT(DRM_MODE_TV_MODE_NTSC_443) |
+						    BIT(DRM_MODE_TV_MODE_NTSC_J) |
+						    BIT(DRM_MODE_TV_MODE_PAL) |
+						    BIT(DRM_MODE_TV_MODE_PAL_M) |
+						    BIT(DRM_MODE_TV_MODE_PAL_N) |
+						    BIT(DRM_MODE_TV_MODE_SECAM));
+		if (ret)
+			return ERR_PTR(ret);

I don't think this is right, this should be called from the appropriate encoder device depending on the analog tv mode capabilities.

drivers/gpu/drm/drm_bridge_connector.c struct drm_connector *drm_bridge_connector_init(struct drm_device *drm, · line 430

Quoted 4 lines
drivers/gpu/drm/drm_bridge_connector.c +4 -0
+
+		drm_object_attach_property(&connector->base,
+					   drm->mode_config.tv_subconnector_property,
+					   subconnector);

Here, only add the property if drm->mode_config.tv_subconnector_property exists, and perhaps add a warning if not.

AFAIK same for DRM_MODE_CONNECTOR_DVII.

Quoted 20 lines
drivers/gpu/drm/drm_bridge_connector.c +2 -0
+	}
+
  	return connector;
  }
  EXPORT_SYMBOL_GPL(drm_bridge_connector_init);
include/drm/drm_bridge.h +4 -0
index bf964cdfb330..68b14ac5ac0d 100644
@@ -739,6 +739,10 @@ struct drm_bridge {
  	 * identifies the type of connected display.
  	 */
  	int type;
+	/**
+	 * @subtype: the subtype of the connector for the DP/TV/DVI-I cases.
+	 */
+	enum drm_mode_subconnector subtype;
  	/**
  	 * @interlace_allowed: Indicate that the bridge can handle interlaced
  	 * modes.
#6 lore raw

Re: [PATCH 2/4] drm/bridge-connector: handle subconnector types

Quoted 58 lines · Neil Armstrong
Quoted 56 lines · Dmitry Baryshkov

If the created connector type supports subconnector type property, create and attach corresponding it. The default subtype value is 0, which maps to the DRM_MODE_SUBCONNECTOR_Unknown type.

---
  drivers/gpu/drm/drm_bridge_connector.c | 33 +++++++++++++++++++++++++-
  include/drm/drm_bridge.h               |  4 ++++
  2 files changed, 36 insertions(+), 1 deletion(-)
drivers/gpu/drm/drm_bridge_connector.c +21 -1
index 07b5930b1282..a7b92f0d2430 100644
@@ -329,7 +329,9 @@ struct drm_connector *drm_bridge_connector_init(struct drm_device *drm,
      struct drm_connector *connector;
      struct i2c_adapter *ddc = NULL;
      struct drm_bridge *bridge, *panel_bridge = NULL;
+     enum drm_mode_subconnector subconnector;
      int connector_type;
+     int ret;
 
      bridge_connector = kzalloc(sizeof(*bridge_connector), GFP_KERNEL);
      if (!bridge_connector)
@@ -365,8 +367,10 @@ struct drm_connector *drm_bridge_connector_init(struct drm_device *drm,
              if (bridge->ops & DRM_BRIDGE_OP_MODES)
                      bridge_connector->bridge_modes = bridge;
 
-             if (!drm_bridge_get_next_bridge(bridge))
+             if (!drm_bridge_get_next_bridge(bridge)) {
                      connector_type = bridge->type;
+                     subconnector = bridge->subtype;
+             }
 
  #ifdef CONFIG_OF
              if (!drm_bridge_get_next_bridge(bridge) &&
@@ -399,6 +403,33 @@ struct drm_connector *drm_bridge_connector_init(struct drm_device *drm,
      if (panel_bridge)
              drm_panel_bridge_set_orientation(connector, panel_bridge);
 
+     if (connector_type == DRM_MODE_CONNECTOR_DisplayPort) {
+             drm_connector_attach_dp_subconnector_property(connector, subconnector);
+     } else if (connector_type == DRM_MODE_CONNECTOR_DVII) {
+             ret = drm_mode_create_dvi_i_properties(drm);
+             if (ret)
+                     return ERR_PTR(ret);
+
+             drm_object_attach_property(&connector->base,
+                                        drm->mode_config.dvi_i_subconnector_property,
+                                        subconnector);
+     } else if (connector_type == DRM_MODE_CONNECTOR_TV) {
+             ret = drm_mode_create_tv_properties(drm,
+                                                 BIT(DRM_MODE_TV_MODE_NTSC) |
+                                                 BIT(DRM_MODE_TV_MODE_NTSC_443) |
+                                                 BIT(DRM_MODE_TV_MODE_NTSC_J) |
+                                                 BIT(DRM_MODE_TV_MODE_PAL) |
Quoted 8 lines

drivers/gpu/drm/drm_bridge_connector.c struct drm_connector *drm_bridge_connector_init(struct drm_device *drm, · line 426

Quoted 5 lines
drivers/gpu/drm/drm_bridge_connector.c +5 -0
+                                                 BIT(DRM_MODE_TV_MODE_PAL_M) |
+                                                 BIT(DRM_MODE_TV_MODE_PAL_N) |
+                                                 BIT(DRM_MODE_TV_MODE_SECAM));
+             if (ret)
+                     return ERR_PTR(ret);

I don't think this is right, this should be called from the appropriate encoder device depending on the analog tv mode capabilities.

Good question. My logic was the following: the DRM device can have different TV out ports with different capabilities (yeah, pure theoretical construct). In this case it might be impossible to create a single subset of values. Thus it is more correct to create the property listing all possible values. The property is immutable anyway (and so the user doesn't have control over the value).

Quoted 7 lines

drivers/gpu/drm/drm_bridge_connector.c struct drm_connector *drm_bridge_connector_init(struct drm_device *drm, · line 430

Quoted 4 lines
drivers/gpu/drm/drm_bridge_connector.c +4 -0
+
+             drm_object_attach_property(&connector->base,
+                                        drm->mode_config.tv_subconnector_property,
+                                        subconnector);

Here, only add the property if drm->mode_config.tv_subconnector_property exists, and perhaps add a warning if not.

This property is created in the previous call,
drm_mode_create_tv_properties() ->
drm_mode_create_tv_properties_legacy().

Quoted 24 lines

AFAIK same for DRM_MODE_CONNECTOR_DVII.

Quoted 20 lines
drivers/gpu/drm/drm_bridge_connector.c +2 -0
+     }
+
      return connector;
  }
  EXPORT_SYMBOL_GPL(drm_bridge_connector_init);
include/drm/drm_bridge.h +4 -0
index bf964cdfb330..68b14ac5ac0d 100644
@@ -739,6 +739,10 @@ struct drm_bridge {
       * identifies the type of connected display.
       */
      int type;
+     /**
+      * @subtype: the subtype of the connector for the DP/TV/DVI-I cases.
+      */
+     enum drm_mode_subconnector subtype;
      /**
       * @interlace_allowed: Indicate that the bridge can handle interlaced
       * modes.
Signature · 2 lines
With best wishes
Dmitry
#7 lore raw

Re: [PATCH 2/4] drm/bridge-connector: handle subconnector types

Quoted 67 lines · Dmitry Baryshkov
Quoted 57 lines · Neil Armstrong
Quoted 56 lines · Dmitry Baryshkov

If the created connector type supports subconnector type property, create and attach corresponding it. The default subtype value is 0, which maps to the DRM_MODE_SUBCONNECTOR_Unknown type.

---
  drivers/gpu/drm/drm_bridge_connector.c | 33 +++++++++++++++++++++++++-
  include/drm/drm_bridge.h               |  4 ++++
  2 files changed, 36 insertions(+), 1 deletion(-)
drivers/gpu/drm/drm_bridge_connector.c +21 -1
index 07b5930b1282..a7b92f0d2430 100644
@@ -329,7 +329,9 @@ struct drm_connector *drm_bridge_connector_init(struct drm_device *drm,
      struct drm_connector *connector;
      struct i2c_adapter *ddc = NULL;
      struct drm_bridge *bridge, *panel_bridge = NULL;
+     enum drm_mode_subconnector subconnector;
      int connector_type;
+     int ret;
 
      bridge_connector = kzalloc(sizeof(*bridge_connector), GFP_KERNEL);
      if (!bridge_connector)
@@ -365,8 +367,10 @@ struct drm_connector *drm_bridge_connector_init(struct drm_device *drm,
              if (bridge->ops & DRM_BRIDGE_OP_MODES)
                      bridge_connector->bridge_modes = bridge;
 
-             if (!drm_bridge_get_next_bridge(bridge))
+             if (!drm_bridge_get_next_bridge(bridge)) {
                      connector_type = bridge->type;
+                     subconnector = bridge->subtype;
+             }
 
  #ifdef CONFIG_OF
              if (!drm_bridge_get_next_bridge(bridge) &&
@@ -399,6 +403,33 @@ struct drm_connector *drm_bridge_connector_init(struct drm_device *drm,
      if (panel_bridge)
              drm_panel_bridge_set_orientation(connector, panel_bridge);
 
+     if (connector_type == DRM_MODE_CONNECTOR_DisplayPort) {
+             drm_connector_attach_dp_subconnector_property(connector, subconnector);
+     } else if (connector_type == DRM_MODE_CONNECTOR_DVII) {
+             ret = drm_mode_create_dvi_i_properties(drm);
+             if (ret)
+                     return ERR_PTR(ret);
+
+             drm_object_attach_property(&connector->base,
+                                        drm->mode_config.dvi_i_subconnector_property,
+                                        subconnector);
+     } else if (connector_type == DRM_MODE_CONNECTOR_TV) {
+             ret = drm_mode_create_tv_properties(drm,
+                                                 BIT(DRM_MODE_TV_MODE_NTSC) |
+                                                 BIT(DRM_MODE_TV_MODE_NTSC_443) |
+                                                 BIT(DRM_MODE_TV_MODE_NTSC_J) |
+                                                 BIT(DRM_MODE_TV_MODE_PAL) |
Quoted 8 lines

drivers/gpu/drm/drm_bridge_connector.c struct drm_connector *drm_bridge_connector_init(struct drm_device *drm, · line 426

Quoted 5 lines
drivers/gpu/drm/drm_bridge_connector.c +5 -0
+                                                 BIT(DRM_MODE_TV_MODE_PAL_M) |
+                                                 BIT(DRM_MODE_TV_MODE_PAL_N) |
+                                                 BIT(DRM_MODE_TV_MODE_SECAM));
+             if (ret)
+                     return ERR_PTR(ret);

I don't think this is right, this should be called from the appropriate encoder device depending on the analog tv mode capabilities.

Quoted 6 lines

Good question. My logic was the following: the DRM device can have different TV out ports with different capabilities (yeah, pure theoretical construct). In this case it might be impossible to create a single subset of values. Thus it is more correct to create the property listing all possible values. The property is immutable anyway (and so the user doesn't have control over the value).

Those ports would correspond to different connectors, so I agree with Neil, I don't think it's right to create a single property with all modes and attach it to all analog output connectors.

If you want to support multiple analog outputs that have different capabilities, this will need changes to drm_mode_create_tv_properties() to allow creating multiple properties. If you don't want to do so now, and prefer limiting support to devices where all ports support the same modes (which includes devices with a single analog output), then the modes should reflect what the device supports.

Quoted 34 lines
Quoted 7 lines

drivers/gpu/drm/drm_bridge_connector.c struct drm_connector *drm_bridge_connector_init(struct drm_device *drm, · line 430

Quoted 4 lines
drivers/gpu/drm/drm_bridge_connector.c +4 -0
+
+             drm_object_attach_property(&connector->base,
+                                        drm->mode_config.tv_subconnector_property,
+                                        subconnector);

Here, only add the property if drm->mode_config.tv_subconnector_property exists, and perhaps add a warning if not.

This property is created in the previous call,
drm_mode_create_tv_properties() ->
drm_mode_create_tv_properties_legacy().

Quoted 22 lines

AFAIK same for DRM_MODE_CONNECTOR_DVII.

Quoted 20 lines
drivers/gpu/drm/drm_bridge_connector.c +2 -0
+     }
+
      return connector;
  }
  EXPORT_SYMBOL_GPL(drm_bridge_connector_init);
include/drm/drm_bridge.h +4 -0
index bf964cdfb330..68b14ac5ac0d 100644
@@ -739,6 +739,10 @@ struct drm_bridge {
       * identifies the type of connected display.
       */
      int type;
+     /**
+      * @subtype: the subtype of the connector for the DP/TV/DVI-I cases.
+      */
+     enum drm_mode_subconnector subtype;
      /**
       * @interlace_allowed: Indicate that the bridge can handle interlaced
       * modes.
Signature · 3 lines
Regards,

Laurent Pinchart
#8 lore raw

Re: [PATCH 2/4] drm/bridge-connector: handle subconnector types

Quoted 75 lines · Laurent Pinchart
Quoted 67 lines · Dmitry Baryshkov
Quoted 57 lines · Neil Armstrong
Quoted 56 lines · Dmitry Baryshkov

If the created connector type supports subconnector type property, create and attach corresponding it. The default subtype value is 0, which maps to the DRM_MODE_SUBCONNECTOR_Unknown type.

---
   drivers/gpu/drm/drm_bridge_connector.c | 33 +++++++++++++++++++++++++-
   include/drm/drm_bridge.h               |  4 ++++
   2 files changed, 36 insertions(+), 1 deletion(-)
drivers/gpu/drm/drm_bridge_connector.c +21 -1
index 07b5930b1282..a7b92f0d2430 100644
@@ -329,7 +329,9 @@ struct drm_connector *drm_bridge_connector_init(struct drm_device *drm,
       struct drm_connector *connector;
       struct i2c_adapter *ddc = NULL;
       struct drm_bridge *bridge, *panel_bridge = NULL;
+     enum drm_mode_subconnector subconnector;
       int connector_type;
+     int ret;
 
       bridge_connector = kzalloc(sizeof(*bridge_connector), GFP_KERNEL);
       if (!bridge_connector)
@@ -365,8 +367,10 @@ struct drm_connector *drm_bridge_connector_init(struct drm_device *drm,
               if (bridge->ops & DRM_BRIDGE_OP_MODES)
                       bridge_connector->bridge_modes = bridge;
 
-             if (!drm_bridge_get_next_bridge(bridge))
+             if (!drm_bridge_get_next_bridge(bridge)) {
                       connector_type = bridge->type;
+                     subconnector = bridge->subtype;
+             }
 
   #ifdef CONFIG_OF
               if (!drm_bridge_get_next_bridge(bridge) &&
@@ -399,6 +403,33 @@ struct drm_connector *drm_bridge_connector_init(struct drm_device *drm,
       if (panel_bridge)
               drm_panel_bridge_set_orientation(connector, panel_bridge);
 
+     if (connector_type == DRM_MODE_CONNECTOR_DisplayPort) {
+             drm_connector_attach_dp_subconnector_property(connector, subconnector);
+     } else if (connector_type == DRM_MODE_CONNECTOR_DVII) {
+             ret = drm_mode_create_dvi_i_properties(drm);
+             if (ret)
+                     return ERR_PTR(ret);
+
+             drm_object_attach_property(&connector->base,
+                                        drm->mode_config.dvi_i_subconnector_property,
+                                        subconnector);
+     } else if (connector_type == DRM_MODE_CONNECTOR_TV) {
+             ret = drm_mode_create_tv_properties(drm,
+                                                 BIT(DRM_MODE_TV_MODE_NTSC) |
+                                                 BIT(DRM_MODE_TV_MODE_NTSC_443) |
+                                                 BIT(DRM_MODE_TV_MODE_NTSC_J) |
+                                                 BIT(DRM_MODE_TV_MODE_PAL) |
Quoted 8 lines

drivers/gpu/drm/drm_bridge_connector.c struct drm_connector *drm_bridge_connector_init(struct drm_device *drm, · line 426

Quoted 5 lines
drivers/gpu/drm/drm_bridge_connector.c +5 -0
+                                                 BIT(DRM_MODE_TV_MODE_PAL_M) |
+                                                 BIT(DRM_MODE_TV_MODE_PAL_N) |
+                                                 BIT(DRM_MODE_TV_MODE_SECAM));
+             if (ret)
+                     return ERR_PTR(ret);

I don't think this is right, this should be called from the appropriate encoder device depending on the analog tv mode capabilities.

Quoted 6 lines

Good question. My logic was the following: the DRM device can have different TV out ports with different capabilities (yeah, pure theoretical construct). In this case it might be impossible to create a single subset of values. Thus it is more correct to create the property listing all possible values. The property is immutable anyway (and so the user doesn't have control over the value).

Quoted 3 lines

Those ports would correspond to different connectors, so I agree with Neil, I don't think it's right to create a single property with all modes and attach it to all analog output connectors.

I agree that this case is mishandled currently (as current design assumes a single property that fits for the complete device).

Quoted 7 lines

If you want to support multiple analog outputs that have different capabilities, this will need changes to drm_mode_create_tv_properties() to allow creating multiple properties. If you don't want to do so now, and prefer limiting support to devices where all ports support the same modes (which includes devices with a single analog output), then the modes should reflect what the device supports.

Ack, I'll drop the create call and check for the property existence before attaching it.

Quoted 36 lines
Quoted 35 lines
Quoted 8 lines

drivers/gpu/drm/drm_bridge_connector.c struct drm_connector *drm_bridge_connector_init(struct drm_device *drm, · line 430

Quoted 5 lines
drivers/gpu/drm/drm_bridge_connector.c +4 -0
+
+             drm_object_attach_property(&connector->base,
+                                        drm->mode_config.tv_subconnector_property,
+                                        subconnector);

Here, only add the property if drm->mode_config.tv_subconnector_property exists, and perhaps add a warning if not.

This property is created in the previous call,
drm_mode_create_tv_properties() ->
drm_mode_create_tv_properties_legacy().

Quoted 22 lines

AFAIK same for DRM_MODE_CONNECTOR_DVII.

Quoted 20 lines
drivers/gpu/drm/drm_bridge_connector.c +2 -0
+     }
+
       return connector;
   }
   EXPORT_SYMBOL_GPL(drm_bridge_connector_init);
include/drm/drm_bridge.h +4 -0
index bf964cdfb330..68b14ac5ac0d 100644
@@ -739,6 +739,10 @@ struct drm_bridge {
        * identifies the type of connected display.
        */
       int type;
+     /**
+      * @subtype: the subtype of the connector for the DP/TV/DVI-I cases.
+      */
+     enum drm_mode_subconnector subtype;
       /**
        * @interlace_allowed: Indicate that the bridge can handle interlaced
        * modes.
Signature · 2 lines
With best wishes
Dmitry
#9 lore raw

PATCH 3/4 drm/uapi: document the USB subconnector type

In reply to Dmitry Baryshkov

To properly define the USB-C DP altmode connectors, add the USB subconnector type.

---
 drivers/gpu/drm/drm_connector.c | 1 +
 include/uapi/drm/drm_mode.h     | 1 +
 2 files changed, 2 insertions(+)
drivers/gpu/drm/drm_connector.c +1 -0
index a6066e4a5e9a..9e96b038f5d0 100644
@@ -1050,6 +1050,7 @@ static const struct drm_prop_enum_list drm_dp_subconnector_enum_list[] = {
 	{ DRM_MODE_SUBCONNECTOR_DisplayPort, "DP"        }, /* DP */
 	{ DRM_MODE_SUBCONNECTOR_Wireless,    "Wireless"  }, /* DP */
 	{ DRM_MODE_SUBCONNECTOR_Native,	     "Native"    }, /* DP */
+	{ DRM_MODE_SUBCONNECTOR_USB,	     "USB"       }, /* DP */
 };
 
 DRM_ENUM_NAME_FN(drm_get_dp_subconnector_name,
include/uapi/drm/drm_mode.h +1 -0
index 92d96a2b6763..0f74918b011c 100644
@@ -398,6 +398,7 @@ enum drm_mode_subconnector {
 	DRM_MODE_SUBCONNECTOR_HDMIA       = 11, /*            DP */
 	DRM_MODE_SUBCONNECTOR_Native      = 15, /*            DP */
 	DRM_MODE_SUBCONNECTOR_Wireless    = 18, /*            DP */
+	DRM_MODE_SUBCONNECTOR_USB         = 20, /*            DP */
 };
 
 #define DRM_MODE_CONNECTOR_Unknown	0
Signature · 1 line
2.39.2
#10 lore raw

Re: [PATCH 3/4] drm/uapi: document the USB subconnector type

Hi Dmitry,

Thank you for the patch.

Quoted 15 lines · Dmitry Baryshkov

To properly define the USB-C DP altmode connectors, add the USB subconnector type.

---
 drivers/gpu/drm/drm_connector.c | 1 +
 include/uapi/drm/drm_mode.h     | 1 +
 2 files changed, 2 insertions(+)
drivers/gpu/drm/drm_connector.c +0 -0
index a6066e4a5e9a..9e96b038f5d0 100644

drivers/gpu/drm/drm_connector.c static const struct drm_prop_enum_list drm_dp_subconnector_enum_list[] = { · line 1053

Quoted 4 lines
drivers/gpu/drm/drm_connector.c +1 -0
@@ -1050,6 +1050,7 @@ static const struct drm_prop_enum_list drm_dp_subconnector_enum_list[] = {
 	{ DRM_MODE_SUBCONNECTOR_DisplayPort, "DP"        }, /* DP */
 	{ DRM_MODE_SUBCONNECTOR_Wireless,    "Wireless"  }, /* DP */
 	{ DRM_MODE_SUBCONNECTOR_Native,	     "Native"    }, /* DP */
+	{ DRM_MODE_SUBCONNECTOR_USB,	     "USB"       }, /* DP */

Should this be DRM_MODE_SUBCONNECTOR_USB_C and "USB-C", in case we get another USB type later ?

Quoted 15 lines
drivers/gpu/drm/drm_connector.c +0 -0
 };
 
 DRM_ENUM_NAME_FN(drm_get_dp_subconnector_name,
include/uapi/drm/drm_mode.h +1 -0
index 92d96a2b6763..0f74918b011c 100644
@@ -398,6 +398,7 @@ enum drm_mode_subconnector {
 	DRM_MODE_SUBCONNECTOR_HDMIA       = 11, /*            DP */
 	DRM_MODE_SUBCONNECTOR_Native      = 15, /*            DP */
 	DRM_MODE_SUBCONNECTOR_Wireless    = 18, /*            DP */
+	DRM_MODE_SUBCONNECTOR_USB         = 20, /*            DP */
 };
 
 #define DRM_MODE_CONNECTOR_Unknown	0
Signature · 3 lines
Regards,

Laurent Pinchart
#11 lore raw

Re: [PATCH 3/4] drm/uapi: document the USB subconnector type

Quoted 15 lines · Laurent Pinchart

Hi Dmitry,

Thank you for the patch.

Quoted 10 lines · Dmitry Baryshkov

To properly define the USB-C DP altmode connectors, add the USB subconnector type.

---
  drivers/gpu/drm/drm_connector.c | 1 +
  include/uapi/drm/drm_mode.h     | 1 +
  2 files changed, 2 insertions(+)
Quoted 12 lines

drivers/gpu/drm/drm_connector.c static const struct drm_prop_enum_list drm_dp_subconnector_enum_list[] = { · line 1053

Quoted 9 lines
drivers/gpu/drm/drm_connector.c +1 -0
index a6066e4a5e9a..9e96b038f5d0 100644
@@ -1050,6 +1050,7 @@ static const struct drm_prop_enum_list drm_dp_subconnector_enum_list[] = {
  	{ DRM_MODE_SUBCONNECTOR_DisplayPort, "DP"        }, /* DP */
  	{ DRM_MODE_SUBCONNECTOR_Wireless,    "Wireless"  }, /* DP */
  	{ DRM_MODE_SUBCONNECTOR_Native,	     "Native"    }, /* DP */
+	{ DRM_MODE_SUBCONNECTOR_USB,	     "USB"       }, /* DP */

Should this be DRM_MODE_SUBCONNECTOR_USB_C and "USB-C", in case we get another USB type later ?

Hmm, which id should I use for micro-USB then? (consider anx7808, SlimPort). I thought about using DRM_MODE_SUBCONNECTOR_USB for both of them. But maybe I should add another subtype for SlimPort.

Quoted 17 lines
Quoted 16 lines
drivers/gpu/drm/drm_connector.c +0 -0
  };
 
  DRM_ENUM_NAME_FN(drm_get_dp_subconnector_name,
include/uapi/drm/drm_mode.h +1 -0
index 92d96a2b6763..0f74918b011c 100644
@@ -398,6 +398,7 @@ enum drm_mode_subconnector {
  	DRM_MODE_SUBCONNECTOR_HDMIA       = 11, /*            DP */
  	DRM_MODE_SUBCONNECTOR_Native      = 15, /*            DP */
  	DRM_MODE_SUBCONNECTOR_Wireless    = 18, /*            DP */
+	DRM_MODE_SUBCONNECTOR_USB         = 20, /*            DP */
  };
 
  #define DRM_MODE_CONNECTOR_Unknown	0
Signature · 2 lines
With best wishes
Dmitry
#12 lore raw

Re: [PATCH 3/4] drm/uapi: document the USB subconnector type

Quoted 29 lines · Dmitry Baryshkov
Quoted 15 lines · Laurent Pinchart

Hi Dmitry,

Thank you for the patch.

Quoted 10 lines · Dmitry Baryshkov

To properly define the USB-C DP altmode connectors, add the USB subconnector type.

---
  drivers/gpu/drm/drm_connector.c | 1 +
  include/uapi/drm/drm_mode.h     | 1 +
  2 files changed, 2 insertions(+)
Quoted 12 lines

drivers/gpu/drm/drm_connector.c static const struct drm_prop_enum_list drm_dp_subconnector_enum_list[] = { · line 1053

Quoted 9 lines
drivers/gpu/drm/drm_connector.c +1 -0
index a6066e4a5e9a..9e96b038f5d0 100644
@@ -1050,6 +1050,7 @@ static const struct drm_prop_enum_list drm_dp_subconnector_enum_list[] = {
  	{ DRM_MODE_SUBCONNECTOR_DisplayPort, "DP"        }, /* DP */
  	{ DRM_MODE_SUBCONNECTOR_Wireless,    "Wireless"  }, /* DP */
  	{ DRM_MODE_SUBCONNECTOR_Native,	     "Native"    }, /* DP */
+	{ DRM_MODE_SUBCONNECTOR_USB,	     "USB"       }, /* DP */

Should this be DRM_MODE_SUBCONNECTOR_USB_C and "USB-C", in case we get another USB type later ?

Quoted 3 lines

Hmm, which id should I use for micro-USB then? (consider anx7808, SlimPort). I thought about using DRM_MODE_SUBCONNECTOR_USB for both of them. But maybe I should add another subtype for SlimPort.

I suppose it depends on whether userspace needs a way to differentiate those. Do you have a good visibility on the userspace use cases ?

Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
drivers/gpu/drm/drm_connector.c +0 -0
  };
 
  DRM_ENUM_NAME_FN(drm_get_dp_subconnector_name,
include/uapi/drm/drm_mode.h +1 -0
index 92d96a2b6763..0f74918b011c 100644
@@ -398,6 +398,7 @@ enum drm_mode_subconnector {
  	DRM_MODE_SUBCONNECTOR_HDMIA       = 11, /*            DP */
  	DRM_MODE_SUBCONNECTOR_Native      = 15, /*            DP */
  	DRM_MODE_SUBCONNECTOR_Wireless    = 18, /*            DP */
+	DRM_MODE_SUBCONNECTOR_USB         = 20, /*            DP */
  };
 
  #define DRM_MODE_CONNECTOR_Unknown	0
Signature · 3 lines
Regards,

Laurent Pinchart
#13 lore raw

Re: [PATCH 3/4] drm/uapi: document the USB subconnector type

2 августа 2023 г. 22:13:51 GMT+03:00, Laurent Pinchart <[email protected]> пишет:

Quoted 30 lines · Dmitry Baryshkov
Quoted 29 lines · Laurent Pinchart
Quoted 27 lines

Hi Dmitry,

Thank you for the patch.

Quoted 15 lines · Dmitry Baryshkov

To properly define the USB-C DP altmode connectors, add the USB subconnector type.

---
  drivers/gpu/drm/drm_connector.c | 1 +
  include/uapi/drm/drm_mode.h     | 1 +
  2 files changed, 2 insertions(+)
drivers/gpu/drm/drm_connector.c +0 -0
index a6066e4a5e9a..9e96b038f5d0 100644

drivers/gpu/drm/drm_connector.c static const struct drm_prop_enum_list drm_dp_subconnector_enum_list[] = { · line 1053

Quoted 4 lines
drivers/gpu/drm/drm_connector.c +1 -0
@@ -1050,6 +1050,7 @@ static const struct drm_prop_enum_list drm_dp_subconnector_enum_list[] = {
  	{ DRM_MODE_SUBCONNECTOR_DisplayPort, "DP"        }, /* DP */
  	{ DRM_MODE_SUBCONNECTOR_Wireless,    "Wireless"  }, /* DP */
  	{ DRM_MODE_SUBCONNECTOR_Native,	     "Native"    }, /* DP */
+	{ DRM_MODE_SUBCONNECTOR_USB,	     "USB"       }, /* DP */

Should this be DRM_MODE_SUBCONNECTOR_USB_C and "USB-C", in case we get another USB type later ?

Quoted 6 lines
Quoted 3 lines

Hmm, which id should I use for micro-USB then? (consider anx7808, SlimPort). I thought about using DRM_MODE_SUBCONNECTOR_USB for both of them. But maybe I should add another subtype for SlimPort.

I suppose it depends on whether userspace needs a way to differentiate those. Do you have a good visibility on the userspace use cases ?

No. I'm not even sure, which userspace handles subtypes properly.

For the reference, SlimPort is mostly legacy hardware, think about Nexus 4, 5, 6, 7 (2013)

Quoted 17 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
drivers/gpu/drm/drm_connector.c +0 -0
  };
 
  DRM_ENUM_NAME_FN(drm_get_dp_subconnector_name,
include/uapi/drm/drm_mode.h +1 -0
index 92d96a2b6763..0f74918b011c 100644
@@ -398,6 +398,7 @@ enum drm_mode_subconnector {
  	DRM_MODE_SUBCONNECTOR_HDMIA       = 11, /*            DP */
  	DRM_MODE_SUBCONNECTOR_Native      = 15, /*            DP */
  	DRM_MODE_SUBCONNECTOR_Wireless    = 18, /*            DP */
+	DRM_MODE_SUBCONNECTOR_USB         = 20, /*            DP */
  };
 
  #define DRM_MODE_CONNECTOR_Unknown	0
#14 lore raw

Re: [PATCH 3/4] drm/uapi: document the USB subconnector type

Quoted 5 lines · Dmitry Baryshkov
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines

drivers/gpu/drm/drm_connector.c static const struct drm_prop_enum_list drm_dp_subconnector_enum_list[] = { · line 1053

Quoted 1 line
drivers/gpu/drm/drm_connector.c +1 -0
+	{ DRM_MODE_SUBCONNECTOR_USB,	     "USB"       }, /* DP */

Should this be DRM_MODE_SUBCONNECTOR_USB_C and "USB-C", in case we get another USB type later ?

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

Hmm, which id should I use for micro-USB then? (consider anx7808, SlimPort). I thought about using DRM_MODE_SUBCONNECTOR_USB for both of them. But maybe I should add another subtype for SlimPort.

I suppose it depends on whether userspace needs a way to differentiate those. Do you have a good visibility on the userspace use cases ?

No. I'm not even sure, which userspace handles subtypes properly.

wlroots uses it for human-readable output descriptions, e.g.

Quoted 1 line

wayland-info

interface: 'wl_output', version: 4, name: 49
name: DP-3
description: Samsung Electric Company SyncMaster HS3P505873 (DP-3 via DVI-D)

The "via DVI-D" bit comes from subconnector.

The description is displayed to the user when picking an output to screen capture, among other things. It is helpful to users because they can better understand why their output connected via DVI shows up as "DP".

The KMS docs describe "subconnector" to be defined as "downstream port" for DP. Can USB-C (or USB) be seen as a DP downstream port?

#15 lore raw

Re: [PATCH 3/4] drm/uapi: document the USB subconnector type

Quoted 2 lines · Simon Ser

The KMS docs describe "subconnector" to be defined as "downstream port" for DP. Can USB-C (or USB) be seen as a DP downstream port?

To expand on this a bit: I'm wondering if we're mixing apples and oranges here. The current values of "subconnector" typically describe the lower-level protocol tunneled inside DP. For instance, VGA can be tunneled inside the DP cable when using DP → VGA adapter.

However, in the USB-C case, DP itself is tunneled inside USB-C. And you might use a USB-C → DP adapter. So it's not really *sub*connector, it's more of a *super*connector, right?

I think [1] is somewhat related, since it also allows user-space to discover whether a connector uses USB-C. But relying on sysfs to figure this out isn't super optimal perhaps.

[1]: https://lore.kernel.org/dri-devel/[email protected]/

#16 lore raw

Re: [PATCH 3/4] drm/uapi: document the USB subconnector type

Quoted 10 lines · Simon Ser
Quoted 2 lines · Simon Ser

The KMS docs describe "subconnector" to be defined as "downstream port" for DP. Can USB-C (or USB) be seen as a DP downstream port?

To expand on this a bit: I'm wondering if we're mixing apples and oranges here. The current values of "subconnector" typically describe the lower-level protocol tunneled inside DP. For instance, VGA can be tunneled inside the DP cable when using DP → VGA adapter.

My opinion hasn't changed: I think this should be the USB connector with proper DP / DVI / HDMI / etc. subconnector type (or lack of it). In the end, the physical connector on the side of laptop is USB-C.

If we want to make it different from GUD, we might want to define a USB-DP connector type (which would also include SlimPort).

Quoted 10 lines

However, in the USB-C case, DP itself is tunneled inside USB-C. And you might use a USB-C → DP adapter. So it's not really *sub*connector, it's more of a *super*connector, right?

I think [1] is somewhat related, since it also allows user-space to discover whether a connector uses USB-C. But relying on sysfs to figure this out isn't super optimal perhaps.

[1]: https://lore.kernel.org/dri-devel/[email protected]/

Signature · 2 lines
With best wishes
Dmitry
#17 lore raw

Re: [PATCH 3/4] drm/uapi: document the USB subconnector type

Quoted 7 lines · Dmitry Baryshkov
Quoted 5 lines · On Thu, 3 Aug 2023 at 18:31, Simon Ser [email protected] wrote:
Quoted 2 lines · On Thursday, August 3rd, 2023 at 17:22, Simon Ser [email protected] wrote:

The KMS docs describe "subconnector" to be defined as "downstream port" for DP. Can USB-C (or USB) be seen as a DP downstream port?

Quoted 8 lines
Quoted 4 lines

To expand on this a bit: I'm wondering if we're mixing apples and oranges here. The current values of "subconnector" typically describe the lower-level protocol tunneled inside DP. For instance, VGA can be tunneled inside the DP cable when using DP → VGA adapter.

My opinion hasn't changed: I think this should be the USB connector with proper DP / DVI / HDMI / etc. subconnector type (or lack of it). In the end, the physical connector on the side of laptop is USB-C.

- Even if the connector is USB-C, the protocol used for display is still DP. There's also the case of Thunderbolt.
- This is inconsistent with existing drivers. i915 and amdgpu expose DP ports for their USB-C ports. Changing that isn't possible without causing user-space regressions (compositor config files use the connector type).

#18 lore raw

Re: [PATCH 3/4] drm/uapi: document the USB subconnector type

Quoted 15 lines · Simon Ser
Quoted 12 lines · Dmitry Baryshkov
Quoted 9 lines · On Thu, 3 Aug 2023 at 18:31, Simon Ser [email protected] wrote:
Quoted 2 lines · On Thursday, August 3rd, 2023 at 17:22, Simon Ser [email protected] wrote:

The KMS docs describe "subconnector" to be defined as "downstream port" for DP. Can USB-C (or USB) be seen as a DP downstream port?

To expand on this a bit: I'm wondering if we're mixing apples and oranges here. The current values of "subconnector" typically describe the lower-level protocol tunneled inside DP. For instance, VGA can be tunneled inside the DP cable when using DP → VGA adapter.

Quoted 6 lines
Quoted 3 lines

My opinion hasn't changed: I think this should be the USB connector with proper DP / DVI / HDMI / etc. subconnector type (or lack of it). In the end, the physical connector on the side of laptop is USB-C.

- Even if the connector is USB-C, the protocol used for display is still DP. There's also the case of Thunderbolt.

Yes. But the connector type is not about the protocol.

Quoted 4 lines

- This is inconsistent with existing drivers. i915 and amdgpu expose DP ports for their USB-C ports. Changing that isn't possible without causing user-space regressions (compositor config files use the connector type).

Yes, I know. Consider my phrase as a personal opinion or minority report.

I think that using DisplayPort for USB-C connectors was a mistake, which we now have to cope with somehow.

Signature · 2 lines
With best wishes
Dmitry
#19 lore raw

Re: [PATCH 3/4] drm/uapi: document the USB subconnector type

In reply to Simon Ser
Quoted 9 lines · Simon Ser
Quoted 2 lines · Simon Ser

The KMS docs describe "subconnector" to be defined as "downstream port" for DP. Can USB-C (or USB) be seen as a DP downstream port?

To expand on this a bit: I'm wondering if we're mixing apples and oranges here. The current values of "subconnector" typically describe the lower-level protocol tunneled inside DP. For instance, VGA can be tunneled inside the DP cable when using DP → VGA adapter.

Doesn't this contradict the example use case you gave in your previous e-mail, with wlroots stating "DP-3 via DVI-D" ? I understand that as DP carried over a DVI-D physical connector, did I get it wrong ?

Quoted 9 lines

However, in the USB-C case, DP itself is tunneled inside USB-C. And you might use a USB-C → DP adapter. So it's not really *sub*connector, it's more of a *super*connector, right?

I think [1] is somewhat related, since it also allows user-space to discover whether a connector uses USB-C. But relying on sysfs to figure this out isn't super optimal perhaps.

[1]: https://lore.kernel.org/dri-devel/[email protected]/

Signature · 3 lines
Regards,

Laurent Pinchart
#20 lore raw

Re: [PATCH 3/4] drm/uapi: document the USB subconnector type

Quoted 7 lines · Laurent Pinchart
Quoted 5 lines · Simon Ser
Quoted 2 lines · On Thursday, August 3rd, 2023 at 17:22, Simon Ser [email protected] wrote:

The KMS docs describe "subconnector" to be defined as "downstream port" for DP. Can USB-C (or USB) be seen as a DP downstream port?

Quoted 8 lines
Quoted 4 lines

To expand on this a bit: I'm wondering if we're mixing apples and oranges here. The current values of "subconnector" typically describe the lower-level protocol tunneled inside DP. For instance, VGA can be tunneled inside the DP cable when using DP → VGA adapter.

Doesn't this contradict the example use case you gave in your previous e-mail, with wlroots stating "DP-3 via DVI-D" ? I understand that as DP carried over a DVI-D physical connector, did I get it wrong ?

No, this is DVI carried over DP. DP cannot be carried over VGA/DVI/HDMI, but VGA/DVI/HDMI can be carried over DP.

#21 lore raw

Re: [PATCH 3/4] drm/uapi: document the USB subconnector type

Quoted 15 lines · Simon Ser
Quoted 12 lines · Laurent Pinchart
Quoted 9 lines · Simon Ser
Quoted 2 lines · On Thursday, August 3rd, 2023 at 17:22, Simon Ser [email protected] wrote:

The KMS docs describe "subconnector" to be defined as "downstream port" for DP. Can USB-C (or USB) be seen as a DP downstream port?

To expand on this a bit: I'm wondering if we're mixing apples and oranges here. The current values of "subconnector" typically describe the lower-level protocol tunneled inside DP. For instance, VGA can be tunneled inside the DP cable when using DP → VGA adapter.

Quoted 6 lines
Quoted 3 lines

Doesn't this contradict the example use case you gave in your previous e-mail, with wlroots stating "DP-3 via DVI-D" ? I understand that as DP carried over a DVI-D physical connector, did I get it wrong ?

No, this is DVI carried over DP. DP cannot be carried over VGA/DVI/HDMI, but VGA/DVI/HDMI can be carried over DP.

Well, not quite. It means that the sink (display) connected to this port identifies itself as an VGA / DVI / HDMI monitor. E.g. on if connect HDMI/DVI monitor through the DP-DVI dongle (native DP connector), AMD driver still identifies it as 'subconnector HDMI', despite dongle a DVI connector on the other side.

Signature · 2 lines
With best wishes
Dmitry
#22 lore raw

Re: [PATCH 3/4] drm/uapi: document the USB subconnector type

In reply to Simon Ser

Simon, Laurent,

Quoted 14 lines · Simon Ser
Quoted 12 lines · Laurent Pinchart
Quoted 9 lines · Simon Ser
Quoted 2 lines · On Thursday, August 3rd, 2023 at 17:22, Simon Ser [email protected] wrote:

The KMS docs describe "subconnector" to be defined as "downstream port" for DP. Can USB-C (or USB) be seen as a DP downstream port?

To expand on this a bit: I'm wondering if we're mixing apples and oranges here. The current values of "subconnector" typically describe the lower-level protocol tunneled inside DP. For instance, VGA can be tunneled inside the DP cable when using DP → VGA adapter.

Quoted 6 lines
Quoted 3 lines

Doesn't this contradict the example use case you gave in your previous e-mail, with wlroots stating "DP-3 via DVI-D" ? I understand that as DP carried over a DVI-D physical connector, did I get it wrong ?

No, this is DVI carried over DP. DP cannot be carried over VGA/DVI/HDMI, but VGA/DVI/HDMI can be carried over DP.

Please excuse me for the long delay, I was on vacation.

Several notes on the subconnector topic.

For TV and DVI-I we are really identifying a connector (or a part of the connector pins) present on the device.

So, we can have e.g. following combinations (type / subtype):

DVI-I / DVI-D (digital part of DVI connector) DVI-I / DVI-A (analog part of DVI connector)

TV / S-Video (full S-Video connector)
TV / Composite (either a separate Composite connector, or shared with S-Video) etc.

For DP unfortunately we have mixed everything together.
The physical connector present on the device can be DP / miniDP or USB-C (or micro-USB for SlimPort).

The physical protocol can be DP or DVI / HDMI (but only for dual-mode DP ports). Over USB-C link the DP can be transferred using DP or USB signal levels.

And last, but not least, we have the dongle / display connector type, which can be VGA (for active DP -> VGA converters), HDMI, DVI, DP, etc.

If we were designing this from the scratch, I'd say that we should encode physical connector type to DRM connector type and the dongle type to subconnector. However AMD and Intel drivers have already reused DisplayPort connector type for USB-C connections. Subconnector type represents (if known) the type of downstream / dongle port. I'm not going to judge whether this was correct or not. We have to live with this and behave in a similar way.

We have been looking for a way to document that the corresponding DP port is represented by the USB connector on the device.

Consequently, I believe the best way to document it, would be to use DisplayPort / USB, when there is no dongle connected, switching to DisplayPort / HDMI, DisplayPort / VGA, DisplayPort / DisplayPort, etc. when the actual dongle / display is connected and then switching back to the DisplayPort / USB when it gets disconnected.

If this sounds good to all parties, I'll post v2, adding this explanation to the cover letter.

Signature · 2 lines
With best wishes
Dmitry
#23 lore raw

Re: [PATCH 3/4] drm/uapi: document the USB subconnector type

Quoted 11 lines · Dmitry Baryshkov

We have been looking for a way to document that the corresponding DP port is represented by the USB connector on the device.

Consequently, I believe the best way to document it, would be to use DisplayPort / USB, when there is no dongle connected, switching to DisplayPort / HDMI, DisplayPort / VGA, DisplayPort / DisplayPort, etc. when the actual dongle / display is connected and then switching back to the DisplayPort / USB when it gets disconnected.

If this sounds good to all parties, I'll post v2, adding this explanation to the cover letter.

But how can user-space discover that the port is USB-C when it's connected? That information is lost at this point.

(In addition, this clashes with the existing semantics of the subconnector prop as discussed before: USB-C is not sub-, it's super-.)

#24 lore raw

Re: [PATCH 3/4] drm/uapi: document the USB subconnector type

Quoted 11 lines · Simon Ser
Quoted 9 lines · Dmitry Baryshkov

We have been looking for a way to document that the corresponding DP port is represented by the USB connector on the device.

Consequently, I believe the best way to document it, would be to use DisplayPort / USB, when there is no dongle connected, switching to DisplayPort / HDMI, DisplayPort / VGA, DisplayPort / DisplayPort, etc. when the actual dongle / display is connected and then switching back to the DisplayPort / USB when it gets disconnected.

Quoted 5 lines
Quoted 2 lines

If this sounds good to all parties, I'll post v2, adding this explanation to the cover letter.

But how can user-space discover that the port is USB-C when it's connected? That information is lost at this point.

Yes, unfortunately.

Quoted 2 lines

(In addition, this clashes with the existing semantics of the subconnector prop as discussed before: USB-C is not sub-, it's super-.)

Ok. How do we proceed then? Is it fine to add another property for DP case? Do you have any particular property name in mind? I will follow with addition of this property then.

Signature · 2 lines
With best wishes
Dmitry
#25 lore raw

PATCH 4/4 soc: qcom: pmic_glink: properly describe the DP connector

In reply to Dmitry Baryshkov

During the discussion of the DP connectors, it was suggested that USB-C DisplayPort connectors should have DRM_MODE_CONNECTOR_DisplayPort connector type. This follows the example provided by other drivers (AMDGPU, Intel). To distinguish them from native DP ports, they should have the freshly defined USB as a subconnector type.

---
 drivers/soc/qcom/pmic_glink_altmode.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/soc/qcom/pmic_glink_altmode.c +2 -1
index 1dedacc52aea..9094944c6cc0 100644
@@ -417,7 +417,8 @@ static int pmic_glink_altmode_probe(struct auxiliary_device *adev,
 		alt_port->bridge.funcs = &pmic_glink_altmode_bridge_funcs;
 		alt_port->bridge.of_node = to_of_node(fwnode);
 		alt_port->bridge.ops = DRM_BRIDGE_OP_HPD;
-		alt_port->bridge.type = DRM_MODE_CONNECTOR_USB;
+		alt_port->bridge.type = DRM_MODE_CONNECTOR_DisplayPort;
+		alt_port->bridge.subtype = DRM_MODE_SUBCONNECTOR_USB;
 
 		ret = devm_drm_bridge_add(dev, &alt_port->bridge);
 		if (ret)
Signature · 1 line
2.39.2
#27 lore raw

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/bridge-connector: simplify handling of USB-C DP

In reply to Dmitry Baryshkov
== Series Details ==

== Series Details ==

Series: drm/bridge-connector: simplify handling of USB-C DP
URL : https://patchwork.freedesktop.org/series/121560/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_13439 -> Patchwork_121560v1
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with Patchwork_121560v1 absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in Patchwork_121560v1, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_121560v1/index.html

Participating hosts (43 -> 41)
------------------------------

Missing (2): fi-kbl-soraka fi-snb-2520m

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in Patchwork_121560v1:

### IGT changes ###

#### Possible regressions ####

* igt@i915_selftest@live@mman:
- bat-dg2-8: [PASS][1] -> [DMESG-WARN][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13439/bat-dg2-8/igt@i915_selftest@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_121560v1/bat-dg2-8/igt@i915_selftest@[email protected]

Known issues
------------

Here are the changes found in Patchwork_121560v1 that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@core_auth@basic-auth:
- bat-adlp-11: NOTRUN -> [ABORT][3] ([i915#8011])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_121560v1/bat-adlp-11/igt@[email protected]

* igt@i915_pm_rpm@basic-pci-d3-state:
- fi-tgl-1115g4: [PASS][4] -> [FAIL][5] ([i915#7940])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13439/fi-tgl-1115g4/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_121560v1/fi-tgl-1115g4/igt@[email protected]

* igt@i915_selftest@live@gt_lrc:
- bat-dg2-11: [PASS][6] -> [INCOMPLETE][7] ([i915#7609] / [i915#7913])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13439/bat-dg2-11/igt@i915_selftest@live@gt_lrc.html
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_121560v1/bat-dg2-11/igt@i915_selftest@live@gt_lrc.html

* igt@i915_selftest@live@gt_mocs:
- bat-mtlp-6: [PASS][8] -> [DMESG-FAIL][9] ([i915#7059])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13439/bat-mtlp-6/igt@i915_selftest@live@gt_mocs.html
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_121560v1/bat-mtlp-6/igt@i915_selftest@live@gt_mocs.html

* igt@i915_selftest@live@hangcheck:
- fi-skl-guc: [PASS][10] -> [DMESG-FAIL][11] ([i915#8723])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13439/fi-skl-guc/igt@i915_selftest@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_121560v1/fi-skl-guc/igt@i915_selftest@[email protected]

* igt@i915_selftest@live@reset:
- bat-rpls-2: NOTRUN -> [ABORT][12] ([i915#4983] / [i915#7461] / [i915#7913] / [i915#7981] / [i915#8347])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_121560v1/bat-rpls-2/igt@i915_selftest@[email protected]

* igt@i915_selftest@live@slpc:
- bat-mtlp-6: NOTRUN -> [DMESG-WARN][13] ([i915#6367])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_121560v1/bat-mtlp-6/igt@i915_selftest@[email protected]

* igt@i915_suspend@basic-s3-without-i915:
- bat-mtlp-6: NOTRUN -> [SKIP][14] ([i915#6645])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_121560v1/bat-mtlp-6/igt@[email protected]

* igt@kms_chamelium_hpd@common-hpd-after-suspend:
- bat-mtlp-6: NOTRUN -> [SKIP][15] ([i915#7828])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_121560v1/bat-mtlp-6/igt@[email protected]

* igt@kms_pipe_crc_basic@nonblocking-crc-frame-sequence:
- bat-dg2-11: NOTRUN -> [SKIP][16] ([i915#1845] / [i915#5354]) +3 similar issues
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_121560v1/bat-dg2-11/igt@[email protected]

* igt@kms_pipe_crc_basic@read-crc-frame-sequence@pipe-d-edp-1:
- bat-rplp-1: [PASS][17] -> [ABORT][18] ([i915#8442] / [i915#8668])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13439/bat-rplp-1/igt@kms_pipe_crc_basic@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_121560v1/bat-rplp-1/igt@kms_pipe_crc_basic@[email protected]

* igt@kms_pipe_crc_basic@suspend-read-crc:
- bat-mtlp-6: NOTRUN -> [SKIP][19] ([i915#1845] / [i915#4078])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_121560v1/bat-mtlp-6/igt@[email protected]

#### Possible fixes ####

* igt@i915_selftest@live@mman:
- bat-rpls-2: [TIMEOUT][20] ([i915#6794] / [i915#7392]) -> [PASS][21]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13439/bat-rpls-2/igt@i915_selftest@[email protected]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_121560v1/bat-rpls-2/igt@i915_selftest@[email protected]

* igt@i915_selftest@live@requests:
- bat-mtlp-8: [DMESG-FAIL][22] ([i915#8497]) -> [PASS][23]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13439/bat-mtlp-8/igt@i915_selftest@[email protected]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_121560v1/bat-mtlp-8/igt@i915_selftest@[email protected]

* igt@i915_selftest@live@slpc:
- bat-mtlp-8: [DMESG-WARN][24] ([i915#6367]) -> [PASS][25]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13439/bat-mtlp-8/igt@i915_selftest@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_121560v1/bat-mtlp-8/igt@i915_selftest@[email protected]
- bat-rpls-1: [DMESG-WARN][26] ([i915#6367]) -> [PASS][27]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13439/bat-rpls-1/igt@i915_selftest@[email protected]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_121560v1/bat-rpls-1/igt@i915_selftest@[email protected]

#### Warnings ####

* igt@i915_module_load@load:
- bat-adlp-11: [ABORT][28] ([i915#4423]) -> [DMESG-WARN][29] ([i915#4423])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13439/bat-adlp-11/igt@[email protected]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_121560v1/bat-adlp-11/igt@[email protected]

* igt@i915_pm_rpm@basic-pci-d3-state:
- fi-skl-guc: [FAIL][30] ([i915#7691]) -> [FAIL][31] ([i915#7940])
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13439/fi-skl-guc/igt@[email protected]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_121560v1/fi-skl-guc/igt@[email protected]
- fi-kbl-guc: [FAIL][32] ([i915#7940]) -> [SKIP][33] ([fdo#109271])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13439/fi-kbl-guc/igt@[email protected]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_121560v1/fi-kbl-guc/igt@[email protected]

* igt@i915_selftest@live@requests:
- bat-mtlp-6: [ABORT][34] ([i915#7982]) -> [DMESG-FAIL][35] ([i915#8497])
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13439/bat-mtlp-6/igt@i915_selftest@[email protected]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_121560v1/bat-mtlp-6/igt@i915_selftest@[email protected]

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[Intel XE#486]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/486
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#4078]: https://gitlab.freedesktop.org/drm/intel/issues/4078
[i915#4423]: https://gitlab.freedesktop.org/drm/intel/issues/4423
[i915#4983]: https://gitlab.freedesktop.org/drm/intel/issues/4983
[i915#5354]: https://gitlab.freedesktop.org/drm/intel/issues/5354
[i915#6367]: https://gitlab.freedesktop.org/drm/intel/issues/6367
[i915#6645]: https://gitlab.freedesktop.org/drm/intel/issues/6645
[i915#6794]: https://gitlab.freedesktop.org/drm/intel/issues/6794
[i915#7059]: https://gitlab.freedesktop.org/drm/intel/issues/7059
[i915#7392]: https://gitlab.freedesktop.org/drm/intel/issues/7392
[i915#7461]: https://gitlab.freedesktop.org/drm/intel/issues/7461
[i915#7609]: https://gitlab.freedesktop.org/drm/intel/issues/7609
[i915#7691]: https://gitlab.freedesktop.org/drm/intel/issues/7691
[i915#7828]: https://gitlab.freedesktop.org/drm/intel/issues/7828
[i915#7913]: https://gitlab.freedesktop.org/drm/intel/issues/7913
[i915#7940]: https://gitlab.freedesktop.org/drm/intel/issues/7940
[i915#7981]: https://gitlab.freedesktop.org/drm/intel/issues/7981
[i915#7982]: https://gitlab.freedesktop.org/drm/intel/issues/7982
[i915#8011]: https://gitlab.freedesktop.org/drm/intel/issues/8011
[i915#8347]: https://gitlab.freedesktop.org/drm/intel/issues/8347
[i915#8442]: https://gitlab.freedesktop.org/drm/intel/issues/8442
[i915#8497]: https://gitlab.freedesktop.org/drm/intel/issues/8497
[i915#8668]: https://gitlab.freedesktop.org/drm/intel/issues/8668
[i915#8723]: https://gitlab.freedesktop.org/drm/intel/issues/8723
[i915#8879]: https://gitlab.freedesktop.org/drm/intel/issues/8879

Build changes
-------------

* Linux: CI_DRM_13439 -> Patchwork_121560v1

CI-20190529: 20190529
CI_DRM_13439: 85ccbe6fd4781b77f1eaeef7501577603a478aab @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7409: 7409
Patchwork_121560v1: 85ccbe6fd4781b77f1eaeef7501577603a478aab @ git://anongit.freedesktop.org/gfx-ci/linux

### Linux commits

d766ef0dda53 soc: qcom: pmic_glink: properly describe the DP connector 761f8aee74ed drm/uapi: document the USB subconnector type
f2d582140cb0 drm/bridge-connector: handle subconnector types b96e7660a215 drm: allow specifying default subtype for the DP subconnector property

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_121560v1/index.html