Skip to contentSkip to conversation

HDCP2.2 Phase II

PATCH Superseded Ramalingam C 4 participants 29 messages Apr 5, 2019 – Apr 16, 2019

Subsystems (4)

v4 of 12 Superseded Latest is v12 →

lore
Share & tools
lore
#0 lore raw

v4 cover HDCP2.2 Phase II

HDCP2.2 phase-II introduces below features:
Addition of two connector properties
HDCP Content Type
HDCP Topology
Addition of binary sysfs "hdcp_srm" at drm subsystem Parsing for HDCP1.4 and 2.2 SRM table
Once HDCP1.4/2.2 authentication is completed gathering the all
downstream topology for userspace
Extending debugfs entry to provide the HDCP2.2 capability too. Uevent for HDCP state change.
Dedicated file for hdcp in drm.

HDCP Content Type:
This property is used to indicate the content type
classification of a stream. Which indicate the HDCP version required for the rendering of that streams. This conten type is one of the parameter in the HDCP2.2 authentication flow, as even downstream repeaters will mandate the HDCP version requirement.

Two values possible for content type of a stream:
Type 0: Stream can be rendered only on HDCP encrypted link no
restriction on HDCP versions.
Type 1: Stream can be rendered only on HDCP2.2 encrypted link.

There is a parallel effort in #wayland community to add the support for HDCP2.2 along with content type support. Patches are under review in #wayland community.

HDCP Topology:
This blob property is used by the kernel to pass the downstream topology of the HDCP encrypted port to the userspace.

This is used by the userspace to implement the HDCP repeater, which KMD implementing the HDCP transmitters(downstream ports) and userspace implementing the upstream port(HDCP receiver).

Discussion is on going to add the downstream_info support in the weston HDCP stack.

hdcp_srm: write only binary sysfs used by the userspace to pass the SRM table of HDCP1.4 and 2.2. These are nothing but revocated list of receiver IDs of the HDCP sinks. KMD will use this list to identify the revocated devices in the HDCP authentication and deny the hdcp encryption to it.

Daniel has suggested about moving the SRM node implementation into DRM core. Still dome more clarification is required. Once that is done another respin on SRM patches are expected.

v4:
All hdcp properties are stored at mode_config, attached to req
connectors. [Daniel]
SRM bin sysfs is moved to drm subsystem as generic to all cards
[Daniel]
Uevents generation along with hdcp state update is moved into DRM
[Daniel]
explicit paddings are added for topology blob struct definition.
[Daniel]
Dedicated file for HDCP codes in drm. drm_hdcp.c [Daniel]

Series can be cloned from github
https://github.com/ramalingampc2008/drm-tip.git hdcp2_2_p2_v4

Test-with: <[email protected]>

Ramalingam C (13):
drm: move content protection property to mode_config drm/i915: debugfs: HDCP2.2 capability read
drm: Add Content protection type property drm/i915: Attach content type property
drivers: create binary sysfs for class
drm: HDCP SRM binary sysfs for subsystem drm/i915: SRM revocation check for HDCP1.4 and 2.2 drm/hdcp: gathering hdcp related code into drm_hdcp.c
drm: uevent for connector status change drm/hdcp: update content protection property with uevent drm/i915: update the hdcp state with uevent
drm: Add CP downstream_info property
drm/i915: Populate downstream info for HDCP

 drivers/base/class.c                |  19 ++
 drivers/gpu/drm/Makefile            |   2 +-
 drivers/gpu/drm/drm_atomic_uapi.c   |  11 +-
 drivers/gpu/drm/drm_connector.c     |  80 ++---
 drivers/gpu/drm/drm_hdcp.c          | 511 ++++++++++++++++++++++++++++
 drivers/gpu/drm/drm_internal.h      |   4 +
 drivers/gpu/drm/drm_sysfs.c         |  33 ++
 drivers/gpu/drm/i915/i915_debugfs.c |  13 +-
 drivers/gpu/drm/i915/intel_ddi.c    |  38 ++-
 drivers/gpu/drm/i915/intel_drv.h    |   5 +-
 drivers/gpu/drm/i915/intel_hdcp.c   | 159 +++++++--
 include/drm/drm_connector.h         |  21 +-
 include/drm/drm_hdcp.h              |  48 +++
 include/drm/drm_mode_config.h       |  18 +
 include/drm/drm_sysfs.h             |   5 +-
 include/linux/device.h              |   4 +
 include/uapi/drm/drm_mode.h         |  41 +++
 17 files changed, 918 insertions(+), 94 deletions(-)
 create mode 100644 drivers/gpu/drm/drm_hdcp.c
Signature · 6 lines
2.19.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw

PATCH v4 1/13 drm: move content protection property to mode_config

Content protection property is created once and stored in drm_mode_config. And attached to all HDCP capable connectors.

---
 drivers/gpu/drm/drm_atomic_uapi.c |  4 ++--
 drivers/gpu/drm/drm_connector.c   | 13 +++++++------
 include/drm/drm_connector.h       |  6 ------
 include/drm/drm_mode_config.h     |  6 ++++++
 4 files changed, 15 insertions(+), 14 deletions(-)
drivers/gpu/drm/drm_atomic_uapi.c +2 -2
index 4eb81f10bc54..e52acad9005f 100644
@@ -740,7 +740,7 @@ static int drm_atomic_connector_set_property(struct drm_connector *connector,
 		state->content_type = val;
 	} else if (property == connector->scaling_mode_property) {
 		state->scaling_mode = val;
-	} else if (property == connector->content_protection_property) {
+	} else if (property == config->content_protection_property) {
 		if (val == DRM_MODE_CONTENT_PROTECTION_ENABLED) {
 			DRM_DEBUG_KMS("only drivers can set CP Enabled\n");
 			return -EINVAL;
@@ -820,7 +820,7 @@ drm_atomic_connector_get_property(struct drm_connector *connector,
 		*val = state->colorspace;
 	} else if (property == connector->scaling_mode_property) {
 		*val = state->scaling_mode;
-	} else if (property == connector->content_protection_property) {
+	} else if (property == config->content_protection_property) {
 		*val = state->content_protection;
 	} else if (property == config->writeback_fb_id_property) {
 		/* Writeback framebuffer is one-shot, write and forget */
drivers/gpu/drm/drm_connector.c +7 -6
index 2355124849db..7c0eda9cca60 100644
@@ -1534,18 +1534,19 @@ int drm_connector_attach_content_protection_property(
 		struct drm_connector *connector)
 {
 	struct drm_device *dev = connector->dev;
-	struct drm_property *prop;
+	struct drm_property *prop =
+			dev->mode_config.content_protection_property;
 
-	prop = drm_property_create_enum(dev, 0, "Content Protection",
-					drm_cp_enum_list,
-					ARRAY_SIZE(drm_cp_enum_list));
+	if (!prop)
+		prop = drm_property_create_enum(dev, 0, "Content Protection",
+						drm_cp_enum_list,
+						ARRAY_SIZE(drm_cp_enum_list));
 	if (!prop)
 		return -ENOMEM;
 
 	drm_object_attach_property(&connector->base, prop,
 				   DRM_MODE_CONTENT_PROTECTION_UNDESIRED);
-
-	connector->content_protection_property = prop;
+	dev->mode_config.content_protection_property = prop;
 
 	return 0;
 }
include/drm/drm_connector.h +0 -6
index c8061992d6cb..bcaffd68202e 100644
@@ -1023,12 +1023,6 @@ struct drm_connector {
 	 */
 	struct drm_property *vrr_capable_property;
 
-	/**
-	 * @content_protection_property: DRM ENUM property for content
-	 * protection. See drm_connector_attach_content_protection_property().
-	 */
-	struct drm_property *content_protection_property;
-
 	/**
 	 * @colorspace_property: Connector property to set the suitable
 	 * colorspace supported by the sink.
include/drm/drm_mode_config.h +6 -0
index 7f60e8eb269a..5764ee3c7453 100644
@@ -836,6 +836,12 @@ struct drm_mode_config {
 	 */
 	struct drm_property *writeback_out_fence_ptr_property;
 
+	/**
+	 * @content_protection_property: DRM ENUM property for content
+	 * protection. See drm_connector_attach_content_protection_property().
+	 */
+	struct drm_property *content_protection_property;
+
 	/* dumb ioctl parameters */
 	uint32_t preferred_depth, prefer_shadow;
 
Signature · 6 lines
2.19.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#2 lore raw

PATCH v4 2/13 drm/i915: debugfs: HDCP2.2 capability read

In reply to Ramalingam C

Adding the HDCP2.2 capability of HDCP src and sink info into debugfs entry "i915_hdcp_sink_capability"

This helps the userspace tests to skip the HDCP2.2 test on non HDCP2.2 sinks.

---
 drivers/gpu/drm/i915/i915_debugfs.c | 13 +++++++++++--
 drivers/gpu/drm/i915/intel_drv.h    |  1 +
 drivers/gpu/drm/i915/intel_hdcp.c   |  2 +-
 3 files changed, 13 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/i915_debugfs.c +11 -2
index 08683dca7775..912f30e8e01a 100644
@@ -4751,6 +4751,7 @@ static int i915_hdcp_sink_capability_show(struct seq_file *m, void *data)
 {
 	struct drm_connector *connector = m->private;
 	struct intel_connector *intel_connector = to_intel_connector(connector);
+	bool hdcp_cap, hdcp2_cap;
 
 	if (connector->status != connector_status_connected)
 		return -ENODEV;
@@ -4761,8 +4762,16 @@ static int i915_hdcp_sink_capability_show(struct seq_file *m, void *data)
 
 	seq_printf(m, "%s:%d HDCP version: ", connector->name,
 		   connector->base.id);
-	seq_printf(m, "%s ", !intel_hdcp_capable(intel_connector) ?
-		   "None" : "HDCP1.4");
+	hdcp_cap = intel_hdcp_capable(intel_connector);
+	hdcp2_cap = intel_hdcp2_capable(intel_connector);
+
+	if (hdcp_cap)
+		seq_puts(m, "HDCP1.4 ");
+	if (hdcp2_cap)
+		seq_puts(m, "HDCP2.2 ");
+
+	if (!hdcp_cap && !hdcp2_cap)
+		seq_puts(m, "None");
 	seq_puts(m, "\n");
 
 	return 0;
drivers/gpu/drm/i915/intel_drv.h +1 -0
index 4d7ae579fc92..a37a4477994c 100644
@@ -2182,6 +2182,7 @@ int intel_hdcp_enable(struct intel_connector *connector);
 int intel_hdcp_disable(struct intel_connector *connector);
 bool is_hdcp_supported(struct drm_i915_private *dev_priv, enum port port);
 bool intel_hdcp_capable(struct intel_connector *connector);
+bool intel_hdcp2_capable(struct intel_connector *connector);
 void intel_hdcp_component_init(struct drm_i915_private *dev_priv);
 void intel_hdcp_component_fini(struct drm_i915_private *dev_priv);
 void intel_hdcp_cleanup(struct intel_connector *connector);
drivers/gpu/drm/i915/intel_hdcp.c +1 -1
index 9ce09f67776d..ff9497e5c591 100644
@@ -76,7 +76,7 @@ bool intel_hdcp_capable(struct intel_connector *connector)
 }
 
 /* Is HDCP2.2 capable on Platform and Sink */
-static bool intel_hdcp2_capable(struct intel_connector *connector)
+bool intel_hdcp2_capable(struct intel_connector *connector)
 {
 	struct drm_i915_private *dev_priv = to_i915(connector->base.dev);
 	struct intel_digital_port *intel_dig_port = conn_to_dig_port(connector);
Signature · 6 lines
2.19.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#3 lore raw

PATCH v4 3/13 drm: Add Content protection type property

In reply to Ramalingam C

This patch adds a DRM ENUM property to the selected connectors. This property is used for mentioning the protected content's type from userspace to kernel HDCP authentication.

Type of the stream is decided by the protected content providers. Type 0 content can be rendered on any HDCP protected display wires. But Type 1 content can be rendered only on HDCP2.2 protected paths.

So when a userspace sets this property to Type 1 and starts the HDCP enable, kernel will honour it only if HDCP2.2 authentication is through for type 1. Else HDCP enable will be failed.

v2:
cp_content_type is replaced with content_protection_type [daniel] check at atomic_set_property is removed [Maarten]
v3:
%s/content_protection_type/hdcp_content_type [Pekka]
v4:
property is created for the first requested connector and then reused.
[Danvet]

---
 drivers/gpu/drm/drm_atomic_uapi.c |  4 +++
 drivers/gpu/drm/drm_connector.c   | 53 ++++++++++++++++++++++++++++++-
 drivers/gpu/drm/i915/intel_hdcp.c |  4 ++-
 include/drm/drm_connector.h       |  9 +++++-
 include/drm/drm_mode_config.h     |  6 ++++
 include/uapi/drm/drm_mode.h       |  4 +++
 6 files changed, 77 insertions(+), 3 deletions(-)
drivers/gpu/drm/drm_atomic_uapi.c +4 -0
index e52acad9005f..fa50fac2e952 100644
@@ -746,6 +746,8 @@ static int drm_atomic_connector_set_property(struct drm_connector *connector,
 			return -EINVAL;
 		}
 		state->content_protection = val;
+	} else if (property == config->hdcp_content_type_property) {
+		state->hdcp_content_type = val;
 	} else if (property == connector->colorspace_property) {
 		state->colorspace = val;
 	} else if (property == config->writeback_fb_id_property) {
@@ -822,6 +824,8 @@ drm_atomic_connector_get_property(struct drm_connector *connector,
 		*val = state->scaling_mode;
 	} else if (property == config->content_protection_property) {
 		*val = state->content_protection;
+	} else if (property == config->hdcp_content_type_property) {
+		*val = state->hdcp_content_type;
 	} else if (property == config->writeback_fb_id_property) {
 		/* Writeback framebuffer is one-shot, write and forget */
 		*val = 0;
drivers/gpu/drm/drm_connector.c +52 -1

88 lines not on this page · raw message

drivers/gpu/drm/i915/intel_hdcp.c +3 -1
index ff9497e5c591..12b863e4ce09 100644
@@ -1795,7 +1795,9 @@ int intel_hdcp_init(struct intel_connector *connector,
 	if (!shim)
 		return -EINVAL;
 
-	ret = drm_connector_attach_content_protection_property(&connector->base);
+	ret =
+	drm_connector_attach_content_protection_property(&connector->base,
+							 false);
 	if (ret)
 		return ret;
 
include/drm/drm_connector.h +8 -1
index bcaffd68202e..bfa7e886fc93 100644
@@ -518,6 +518,12 @@ struct drm_connector_state {
 	 */
 	unsigned int content_type;
 
+	/**
+	 * @hdcp_content_type: Connector property to pass the type of
+	 * protected content. This is most commonly used for HDCP.
+	 */
+	unsigned int hdcp_content_type;
+
 	/**
 	 * @scaling_mode: Connector property to control the
 	 * upscaling, mostly used for built-in panels.
@@ -1288,6 +1294,7 @@ const char *drm_get_dvi_i_select_name(int val);
 const char *drm_get_tv_subconnector_name(int val);
 const char *drm_get_tv_select_name(int val);
 const char *drm_get_content_protection_name(int val);
+const char *drm_get_hdcp_content_type_name(int val);
 
 int drm_mode_create_dvi_i_properties(struct drm_device *dev);
 int drm_mode_create_tv_margin_properties(struct drm_device *dev);
@@ -1302,7 +1309,7 @@ int drm_connector_attach_scaling_mode_property(struct drm_connector *connector,
 int drm_connector_attach_vrr_capable_property(
 		struct drm_connector *connector);
 int drm_connector_attach_content_protection_property(
-		struct drm_connector *connector);
+		struct drm_connector *connector, bool hdcp_content_type);
 int drm_mode_create_aspect_ratio_property(struct drm_device *dev);
 int drm_mode_create_colorspace_property(struct drm_connector *connector);
 int drm_mode_create_content_type_property(struct drm_device *dev);
include/drm/drm_mode_config.h +6 -0
index 5764ee3c7453..b359b5b71eb9 100644
@@ -842,6 +842,12 @@ struct drm_mode_config {
 	 */
 	struct drm_property *content_protection_property;
 
+	/**
+	 * @hdcp_content_type_property: DRM ENUM property for type of
+	 * Protected Content.
+	 */
+	struct drm_property *hdcp_content_type_property;
+
 	/* dumb ioctl parameters */
 	uint32_t preferred_depth, prefer_shadow;
 
include/uapi/drm/drm_mode.h +4 -0
index a439c2e67896..44412e8b77cd 100644
@@ -210,6 +210,10 @@ extern "C" {
 #define DRM_MODE_CONTENT_PROTECTION_DESIRED     1
 #define DRM_MODE_CONTENT_PROTECTION_ENABLED     2
 
+/* Content Type classification for HDCP2.2 vs others */
+#define DRM_MODE_HDCP_CONTENT_TYPE0		0
+#define DRM_MODE_HDCP_CONTENT_TYPE1		1
+
 struct drm_mode_modeinfo {
 	__u32 clock;
 	__u16 hdisplay;
Signature · 6 lines
2.19.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#4 lore raw

PATCH v4 4/13 drm/i915: Attach content type property

In reply to Ramalingam C

Attaches the content type property for HDCP2.2 capable connectors.

Implements the update of content type from property and apply the restriction on HDCP version selection.

v2:
s/cp_content_type/content_protection_type [daniel] disable at hdcp_atomic_check to avoid check at atomic_set_property
[Maarten]
v3:
s/content_protection_type/hdcp_content_type [Pekka]
v4:
hdcp disable incase of type change is moved into commit [daniel].

---
 drivers/gpu/drm/i915/intel_ddi.c  | 38 ++++++++++++++++++++++++---
 drivers/gpu/drm/i915/intel_drv.h  |  2 +-
 drivers/gpu/drm/i915/intel_hdcp.c | 43 ++++++++++++++++++++-----------
 3 files changed, 63 insertions(+), 20 deletions(-)
drivers/gpu/drm/i915/intel_ddi.c +34 -4
index 933df3a57a8a..b152cd2af0b4 100644
@@ -3495,7 +3495,8 @@ static void intel_enable_ddi(struct intel_encoder *encoder,
 	/* Enable hdcp if it's desired */
 	if (conn_state->content_protection ==
 	    DRM_MODE_CONTENT_PROTECTION_DESIRED)
-		intel_hdcp_enable(to_intel_connector(conn_state->connector));
+		intel_hdcp_enable(to_intel_connector(conn_state->connector),
+				  (u8)conn_state->hdcp_content_type);
 }
 
 static void intel_disable_ddi_dp(struct intel_encoder *encoder,
@@ -3562,15 +3563,44 @@ static void intel_ddi_update_pipe(struct intel_encoder *encoder,
 				  const struct intel_crtc_state *crtc_state,
 				  const struct drm_connector_state *conn_state)
 {
+	struct intel_connector *connector =
+				to_intel_connector(conn_state->connector);
+	struct intel_hdcp *hdcp = &connector->hdcp;
+	bool  re_enable_hdcp = false;
+	int ret = -EINVAL;
+
 	if (!intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
 		intel_ddi_update_pipe_dp(encoder, crtc_state, conn_state);
 
+	/*
+	 * During the HDCP encryption session if Type change is requested,
+	 * disable the HDCP and reenable it with new TYPE value.
+	 */
 	if (conn_state->content_protection ==
-	    DRM_MODE_CONTENT_PROTECTION_DESIRED)
-		intel_hdcp_enable(to_intel_connector(conn_state->connector));
+	    DRM_MODE_CONTENT_PROTECTION_ENABLED &&
+	    conn_state->hdcp_content_type != hdcp->content_type) {
+		intel_hdcp_disable(to_intel_connector(conn_state->connector));
+		re_enable_hdcp = true;
+	}
+
+	if (conn_state->content_protection ==
+	    DRM_MODE_CONTENT_PROTECTION_DESIRED || re_enable_hdcp)
+		ret = intel_hdcp_enable(connector,
+					(u8)conn_state->hdcp_content_type);
 	else if (conn_state->content_protection ==
 		 DRM_MODE_CONTENT_PROTECTION_UNDESIRED)
-		intel_hdcp_disable(to_intel_connector(conn_state->connector));
+		intel_hdcp_disable(connector);
+
+	/*
+	 * During Type change handling re-enabling of the HDCP failed. Hence
+	 * changes state as ENABLED->DESIRED.
+	 */
+	if (ret && re_enable_hdcp) {
+		mutex_lock(&hdcp->mutex);
+		hdcp->value = DRM_MODE_CONTENT_PROTECTION_DESIRED;
+		schedule_work(&hdcp->prop_work);
+		mutex_unlock(&hdcp->mutex);
+	}
 }
 
 static void intel_ddi_set_fia_lane_count(struct intel_encoder *encoder,
drivers/gpu/drm/i915/intel_drv.h +1 -1
index a37a4477994c..e387e842f414 100644
@@ -2178,7 +2178,7 @@ void intel_hdcp_atomic_check(struct drm_connector *connector,
 			     struct drm_connector_state *new_state);
 int intel_hdcp_init(struct intel_connector *connector,
 		    const struct intel_hdcp_shim *hdcp_shim);
-int intel_hdcp_enable(struct intel_connector *connector);
+int intel_hdcp_enable(struct intel_connector *connector, u8 content_type);
 int intel_hdcp_disable(struct intel_connector *connector);
 bool is_hdcp_supported(struct drm_i915_private *dev_priv, enum port port);
 bool intel_hdcp_capable(struct intel_connector *connector);
drivers/gpu/drm/i915/intel_hdcp.c +28 -15

105 lines not on this page · raw message

Signature · 6 lines
2.19.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#5 lore raw

PATCH v4 5/13 drivers: create binary sysfs for class

In reply to Ramalingam C

Functions to create and remove the binary sysfs for class are added.

These are getting introduced as DRM wants to create the common binary sysfs across the drm subsystem to handle hdcp srm.

cc Greg Kroah-Hartman <[email protected]>
cc Daniel Vetter <[email protected]>
---
 drivers/base/class.c   | 19 +++++++++++++++++++
 include/linux/device.h |  4 ++++
 2 files changed, 23 insertions(+)
drivers/base/class.c +19 -0
index d8a6a5864c2e..b0f37de16a14 100644
@@ -83,6 +83,23 @@ static struct kobj_type class_ktype = {
 /* Hotplug events for classes go to the class subsys */
 static struct kset *class_kset;
 
+int class_create_bin_file(struct class *cls, const struct bin_attribute *attr)
+{
+	int error;
+
+	if (cls)
+		error = sysfs_create_bin_file(&cls->p->subsys.kobj, attr);
+	else
+		error = -EINVAL;
+	return error;
+}
+
+void class_remove_bin_file(struct class *cls, const struct bin_attribute *attr)
+{
+	if (cls)
+		sysfs_remove_bin_file(&cls->p->subsys.kobj, attr);
+}
+
 
 int class_create_file_ns(struct class *cls, const struct class_attribute *attr,
 			 const void *ns)
@@ -577,6 +594,8 @@ int __init classes_init(void)
 	return 0;
 }
 
+EXPORT_SYMBOL_GPL(class_create_bin_file);
+EXPORT_SYMBOL_GPL(class_remove_bin_file);
 EXPORT_SYMBOL_GPL(class_create_file_ns);
 EXPORT_SYMBOL_GPL(class_remove_file_ns);
 EXPORT_SYMBOL_GPL(class_unregister);
include/linux/device.h +4 -0
index b6c6a4634801..004c8064a78a 100644
@@ -485,6 +485,10 @@ struct class_attribute {
 #define CLASS_ATTR_WO(_name) \
 	struct class_attribute class_attr_##_name = __ATTR_WO(_name)
 
+extern int __must_check class_create_bin_file(struct class *class,
+					      const struct bin_attribute *attr);
+extern void class_remove_bin_file(struct class *class,
+				  const struct bin_attribute *attr);
 extern int __must_check class_create_file_ns(struct class *class,
 					     const struct class_attribute *attr,
 					     const void *ns);
Signature · 6 lines
2.19.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#6 lore raw

Re: [PATCH v4 05/13] drivers: create binary sysfs for class

Quoted 4 lines · Ramalingam C

Functions to create and remove the binary sysfs for class are added.

These are getting introduced as DRM wants to create the common binary sysfs across the drm subsystem to handle hdcp srm.

Why do you need individual files? That's almost always a sign that you are going to race with userspace in a bad way. Why not just use an attribute group which provides automatic support for this?

thanks,

greg k-h
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#7 lore raw

Re: [PATCH v4 05/13] drivers: create binary sysfs for class

Quoted 9 lines · Greg Kroah-Hartman
Quoted 4 lines · Ramalingam C

Functions to create and remove the binary sysfs for class are added.

These are getting introduced as DRM wants to create the common binary sysfs across the drm subsystem to handle hdcp srm.

Why do you need individual files? That's almost always a sign that you are going to race with userspace in a bad way. Why not just use an attribute group which provides automatic support for this?

Greg,

Reason behind this move is to have a common srm entry path across all drm drivers. And the data fed into this is binary blob. So I am creating a binary sysfs "hdcp_srm" at /sys/class/drm/

Thanks,
Ram.

Quoted 4 lines

thanks,

greg k-h

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw

Re: [PATCH v4 05/13] drivers: create binary sysfs for class

Quoted 7 lines · Ramalingam C
Quoted 6 lines · Greg Kroah-Hartman
Quoted 4 lines · Ramalingam C

Functions to create and remove the binary sysfs for class are added.

These are getting introduced as DRM wants to create the common binary sysfs across the drm subsystem to handle hdcp srm.

Quoted 8 lines
Quoted 3 lines

Why do you need individual files? That's almost always a sign that you are going to race with userspace in a bad way. Why not just use an attribute group which provides automatic support for this?

Greg,

Reason behind this move is to have a common srm entry path across all drm drivers. And the data fed into this is binary blob. So I am creating a binary sysfs "hdcp_srm" at /sys/class/drm/

Ah, you want to have a file in your class directory, not your class device directory.

No, please do not do that. There's a reason I got rid of those same types of apis in the past.

And "binary blobs" are horrid anyway, they are only to be used as a pass-through to the device itself, from the kernel, no touching the data at all. If you really need/want this, then put it in the device's directory as that is where the data is going to, not the kernel "class" code as it sure as heck better not be doing anything with it.

thanks,

greg k-h
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw

Re: [PATCH v4 05/13] drivers: create binary sysfs for class

Quoted 20 lines · Greg Kroah-Hartman
Quoted 7 lines · Ramalingam C
Quoted 6 lines · Greg Kroah-Hartman
Quoted 4 lines · Ramalingam C

Functions to create and remove the binary sysfs for class are added.

These are getting introduced as DRM wants to create the common binary sysfs across the drm subsystem to handle hdcp srm.

Quoted 8 lines
Quoted 3 lines

Why do you need individual files? That's almost always a sign that you are going to race with userspace in a bad way. Why not just use an attribute group which provides automatic support for this?

Greg,

Reason behind this move is to have a common srm entry path across all drm drivers. And the data fed into this is binary blob. So I am creating a binary sysfs "hdcp_srm" at /sys/class/drm/

Ah, you want to have a file in your class directory, not your class device directory.

Quoted 8 lines

No, please do not do that. There's a reason I got rid of those same types of apis in the past.

And "binary blobs" are horrid anyway, they are only to be used as a pass-through to the device itself, from the kernel, no touching the data at all. If you really need/want this, then put it in the device's directory as that is where the data is going to, not the kernel "class" code as it sure as heck better not be doing anything with it.

Greg,

But here the parsing of the received binary blob is done outside the drm device/cards. This will be generic code for all drm cardx(drivers). And this will provide the service helper functions to the drm drivers for HDCP SRM checking.

So we prefer to have the binary sysfs at /sys/class/drm/ than inside the cardx folders, so that it will be generic. Could you please suggest a way to achieve that?

-Ram

Quoted 4 lines

thanks,

greg k-h

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw

Re: [PATCH v4 05/13] drivers: create binary sysfs for class

Quoted 29 lines · Ramalingam C
Quoted 20 lines · Greg Kroah-Hartman
Quoted 7 lines · Ramalingam C
Quoted 6 lines · Greg Kroah-Hartman
Quoted 4 lines · Ramalingam C

Functions to create and remove the binary sysfs for class are added.

These are getting introduced as DRM wants to create the common binary sysfs across the drm subsystem to handle hdcp srm.

Quoted 8 lines
Quoted 3 lines

Why do you need individual files? That's almost always a sign that you are going to race with userspace in a bad way. Why not just use an attribute group which provides automatic support for this?

Greg,

Reason behind this move is to have a common srm entry path across all drm drivers. And the data fed into this is binary blob. So I am creating a binary sysfs "hdcp_srm" at /sys/class/drm/

Ah, you want to have a file in your class directory, not your class device directory.

Quoted 8 lines

No, please do not do that. There's a reason I got rid of those same types of apis in the past.

And "binary blobs" are horrid anyway, they are only to be used as a pass-through to the device itself, from the kernel, no touching the data at all. If you really need/want this, then put it in the device's directory as that is where the data is going to, not the kernel "class" code as it sure as heck better not be doing anything with it.

Quoted 5 lines

Greg,

But here the parsing of the received binary blob is done outside the drm device/cards. This will be generic code for all drm cardx(drivers). And this will provide the service helper functions to the drm drivers for HDCP SRM checking.

Again, the kernel is NOT to be parsing any binary data that comes through a sysfs file. If you need such a crazy thing, do it through your normal drm ioctl.

Quoted 2 lines

So we prefer to have the binary sysfs at /sys/class/drm/ than inside the cardx folders, so that it will be generic. Could you please suggest a way to achieve that?

What is a "cardx" driver? Why can you not do it in a device-specific location? Are suddenly _ALL_ DRM drivers going to need this information? What is the use case? Who is going to be providing this blob and where is it going? What in the kernel uses it? What on the hardware uses it? What is it actually?

I need a lot more information before being able to determine what you can do here.

thanks,

greg k-h
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#11 lore raw

Re: [PATCH v4 05/13] drivers: create binary sysfs for class

Quoted 36 lines · Greg Kroah-Hartman
Quoted 29 lines · Ramalingam C
Quoted 20 lines · Greg Kroah-Hartman
Quoted 7 lines · Ramalingam C
Quoted 6 lines · Greg Kroah-Hartman
Quoted 4 lines · Ramalingam C

Functions to create and remove the binary sysfs for class are added.

These are getting introduced as DRM wants to create the common binary sysfs across the drm subsystem to handle hdcp srm.

Quoted 8 lines
Quoted 3 lines

Why do you need individual files? That's almost always a sign that you are going to race with userspace in a bad way. Why not just use an attribute group which provides automatic support for this?

Greg,

Reason behind this move is to have a common srm entry path across all drm drivers. And the data fed into this is binary blob. So I am creating a binary sysfs "hdcp_srm" at /sys/class/drm/

Ah, you want to have a file in your class directory, not your class device directory.

Quoted 8 lines

No, please do not do that. There's a reason I got rid of those same types of apis in the past.

And "binary blobs" are horrid anyway, they are only to be used as a pass-through to the device itself, from the kernel, no touching the data at all. If you really need/want this, then put it in the device's directory as that is where the data is going to, not the kernel "class" code as it sure as heck better not be doing anything with it.

Quoted 5 lines

Greg,

But here the parsing of the received binary blob is done outside the drm device/cards. This will be generic code for all drm cardx(drivers). And this will provide the service helper functions to the drm drivers for HDCP SRM checking.

Quoted 8 lines

Again, the kernel is NOT to be parsing any binary data that comes through a sysfs file. If you need such a crazy thing, do it through your normal drm ioctl.

Quoted 2 lines

So we prefer to have the binary sysfs at /sys/class/drm/ than inside the cardx folders, so that it will be generic. Could you please suggest a way to achieve that?

What is a "cardx" driver?

Meant card0 card1 etc.. Drm drivers.

Quoted 5 lines

Why can you not do it in a device-specific
location? Are suddenly _ALL_ DRM drivers going to need this information? What is the use case? Who is going to be providing this blob and where is it going? What in the kernel uses it? What on the hardware uses it? What is it actually?

This is for HDCP usecase. List of compromised receivers' ID called system renewability Message (SRM) will be available at userspace which needs to be passed to be kernel. And this data can be parsed at kernel used across all DRM drivers to implement the HDCP authentication. Hence we want generic code to parse the SRM data and provide a helper function to all DRM drivers to validate their HDCP sink's ID.

To achieve this we want to keep the sysfs and parsing logic outside the drm drivers at the class level.

At present I915 will be using these implementation. in future other DRM drivers can use the same.

Thanks,
-Ram

Quoted 7 lines

I need a lot more information before being able to determine what you can do here.

thanks,

greg k-h

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#12 lore raw

Re: [PATCH v4 05/13] drivers: create binary sysfs for class

Quoted 59 lines · Ramalingam C
Quoted 36 lines · Greg Kroah-Hartman
Quoted 29 lines · Ramalingam C
Quoted 20 lines · Greg Kroah-Hartman
Quoted 7 lines · Ramalingam C
Quoted 6 lines · Greg Kroah-Hartman
Quoted 4 lines · Ramalingam C

Functions to create and remove the binary sysfs for class are added.

These are getting introduced as DRM wants to create the common binary sysfs across the drm subsystem to handle hdcp srm.

Quoted 8 lines
Quoted 3 lines

Why do you need individual files? That's almost always a sign that you are going to race with userspace in a bad way. Why not just use an attribute group which provides automatic support for this?

Greg,

Reason behind this move is to have a common srm entry path across all drm drivers. And the data fed into this is binary blob. So I am creating a binary sysfs "hdcp_srm" at /sys/class/drm/

Ah, you want to have a file in your class directory, not your class device directory.

Quoted 8 lines

No, please do not do that. There's a reason I got rid of those same types of apis in the past.

And "binary blobs" are horrid anyway, they are only to be used as a pass-through to the device itself, from the kernel, no touching the data at all. If you really need/want this, then put it in the device's directory as that is where the data is going to, not the kernel "class" code as it sure as heck better not be doing anything with it.

Quoted 5 lines

Greg,

But here the parsing of the received binary blob is done outside the drm device/cards. This will be generic code for all drm cardx(drivers). And this will provide the service helper functions to the drm drivers for HDCP SRM checking.

Quoted 8 lines

Again, the kernel is NOT to be parsing any binary data that comes through a sysfs file. If you need such a crazy thing, do it through your normal drm ioctl.

Quoted 2 lines

So we prefer to have the binary sysfs at /sys/class/drm/ than inside the cardx folders, so that it will be generic. Could you please suggest a way to achieve that?

What is a "cardx" driver?

Meant card0 card1 etc.. Drm drivers.

Quoted 5 lines

Why can you not do it in a device-specific
location? Are suddenly _ALL_ DRM drivers going to need this information? What is the use case? Who is going to be providing this blob and where is it going? What in the kernel uses it? What on the hardware uses it? What is it actually?

This is for HDCP usecase. List of compromised receivers' ID called system renewability Message (SRM) will be available at userspace which needs to be passed to be kernel. And this data can be parsed at kernel used across all DRM drivers to implement the HDCP authentication. Hence we want generic code to parse the SRM data and provide a helper function to all DRM drivers to validate their HDCP sink's ID.

Quoted 5 lines

To achieve this we want to keep the sysfs and parsing logic outside the drm drivers at the class level.

At present I915 will be using these implementation. in future other DRM drivers can use the same.

Again, binary sysfs files are not for any data that the kernel has to parse at all. So do not use sysfs for this.

thanks,

greg k-h
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#13 lore raw

Re: [PATCH v4 05/13] drivers: create binary sysfs for class

Quoted 60 lines · Greg Kroah-Hartman
Quoted 59 lines · Ramalingam C
Quoted 36 lines · Greg Kroah-Hartman
Quoted 29 lines · Ramalingam C
Quoted 20 lines · Greg Kroah-Hartman
Quoted 7 lines · Ramalingam C
Quoted 6 lines · Greg Kroah-Hartman
Quoted 4 lines · Ramalingam C

Functions to create and remove the binary sysfs for class are added.

These are getting introduced as DRM wants to create the common binary sysfs across the drm subsystem to handle hdcp srm.

Quoted 8 lines
Quoted 3 lines

Why do you need individual files? That's almost always a sign that you are going to race with userspace in a bad way. Why not just use an attribute group which provides automatic support for this?

Greg,

Reason behind this move is to have a common srm entry path across all drm drivers. And the data fed into this is binary blob. So I am creating a binary sysfs "hdcp_srm" at /sys/class/drm/

Ah, you want to have a file in your class directory, not your class device directory.

Quoted 8 lines

No, please do not do that. There's a reason I got rid of those same types of apis in the past.

And "binary blobs" are horrid anyway, they are only to be used as a pass-through to the device itself, from the kernel, no touching the data at all. If you really need/want this, then put it in the device's directory as that is where the data is going to, not the kernel "class" code as it sure as heck better not be doing anything with it.

Quoted 5 lines

Greg,

But here the parsing of the received binary blob is done outside the drm device/cards. This will be generic code for all drm cardx(drivers). And this will provide the service helper functions to the drm drivers for HDCP SRM checking.

Quoted 8 lines

Again, the kernel is NOT to be parsing any binary data that comes through a sysfs file. If you need such a crazy thing, do it through your normal drm ioctl.

Quoted 2 lines

So we prefer to have the binary sysfs at /sys/class/drm/ than inside the cardx folders, so that it will be generic. Could you please suggest a way to achieve that?

What is a "cardx" driver?

Meant card0 card1 etc.. Drm drivers.

Quoted 5 lines

Why can you not do it in a device-specific
location? Are suddenly _ALL_ DRM drivers going to need this information? What is the use case? Who is going to be providing this blob and where is it going? What in the kernel uses it? What on the hardware uses it? What is it actually?

This is for HDCP usecase. List of compromised receivers' ID called system renewability Message (SRM) will be available at userspace which needs to be passed to be kernel. And this data can be parsed at kernel used across all DRM drivers to implement the HDCP authentication. Hence we want generic code to parse the SRM data and provide a helper function to all DRM drivers to validate their HDCP sink's ID.

Quoted 8 lines
Quoted 5 lines

To achieve this we want to keep the sysfs and parsing logic outside the drm drivers at the class level.

At present I915 will be using these implementation. in future other DRM drivers can use the same.

Again, binary sysfs files are not for any data that the kernel has to parse at all. So do not use sysfs for this.

So what's the recommend thing then?
- requrest_firmware blob could work, aside that the blob might change (the point of this to allow updates). For some hw you can even stuff the SRM into some eprom iirc, so not entirely misfit. Plus kernel parses it, so not sure request_firmware is really the right thing.
- configfs? I never used that one, but the transactional config stuff this provides feels like silly amounts of overkill
- procfs :-)
- ioctl it definitely isn't, there's no need to open a drm device node first and require a special binary to upload the srm if cat > $kernfs/srm is all that's needed
- drmfs ... that's some serious amounts of overkill, so nope.
- per-device sysfs binary blob, silly because it's not per-device, but wouldn't need your ack since we could sneak this one in :-) For reasonable semantics we could just alias them all to the same storage, so that userspace can do a cat > /sys/class/drm/card0/srm instead of /sys/class/drm/srm for same effects (for multi gpu systems).

That's roughly why we ended up with the class sysfs file, but that seems uncool too.
-Daniel

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#14 lore raw

Re: [PATCH v4 05/13] drivers: create binary sysfs for class

Quoted 68 lines · Daniel Vetter
Quoted 66 lines · Greg Kroah-Hartman
Quoted 64 lines · Ramalingam C
Quoted 36 lines · Greg Kroah-Hartman
Quoted 29 lines · Ramalingam C
Quoted 20 lines · Greg Kroah-Hartman
Quoted 7 lines · Ramalingam C
Quoted 6 lines · Greg Kroah-Hartman
Quoted 4 lines · Ramalingam C

Functions to create and remove the binary sysfs for class are added.

These are getting introduced as DRM wants to create the common binary sysfs across the drm subsystem to handle hdcp srm.

Quoted 8 lines
Quoted 3 lines

Why do you need individual files? That's almost always a sign that you are going to race with userspace in a bad way. Why not just use an attribute group which provides automatic support for this?

Greg,

Reason behind this move is to have a common srm entry path across all drm drivers. And the data fed into this is binary blob. So I am creating a binary sysfs "hdcp_srm" at /sys/class/drm/

Ah, you want to have a file in your class directory, not your class device directory.

Quoted 8 lines

No, please do not do that. There's a reason I got rid of those same types of apis in the past.

And "binary blobs" are horrid anyway, they are only to be used as a pass-through to the device itself, from the kernel, no touching the data at all. If you really need/want this, then put it in the device's directory as that is where the data is going to, not the kernel "class" code as it sure as heck better not be doing anything with it.

Quoted 5 lines

Greg,

But here the parsing of the received binary blob is done outside the drm device/cards. This will be generic code for all drm cardx(drivers). And this will provide the service helper functions to the drm drivers for HDCP SRM checking.

Quoted 8 lines

Again, the kernel is NOT to be parsing any binary data that comes through a sysfs file. If you need such a crazy thing, do it through your normal drm ioctl.

Quoted 2 lines

So we prefer to have the binary sysfs at /sys/class/drm/ than inside the cardx folders, so that it will be generic. Could you please suggest a way to achieve that?

What is a "cardx" driver?

Meant card0 card1 etc.. Drm drivers.

Quoted 5 lines

Why can you not do it in a device-specific
location? Are suddenly _ALL_ DRM drivers going to need this information? What is the use case? Who is going to be providing this blob and where is it going? What in the kernel uses it? What on the hardware uses it? What is it actually?

This is for HDCP usecase. List of compromised receivers' ID called system renewability Message (SRM) will be available at userspace which needs to be passed to be kernel. And this data can be parsed at kernel used across all DRM drivers to implement the HDCP authentication. Hence we want generic code to parse the SRM data and provide a helper function to all DRM drivers to validate their HDCP sink's ID.

To achieve this we want to keep the sysfs and parsing logic outside the drm drivers at the class level.

At present I915 will be using these implementation. in future other DRM drivers can use the same.

Quoted 8 lines
Quoted 2 lines

Again, binary sysfs files are not for any data that the kernel has to parse at all. So do not use sysfs for this.

So what's the recommend thing then?
- requrest_firmware blob could work, aside that the blob might change (the point of this to allow updates). For some hw you can even stuff the SRM into some eprom iirc, so not entirely misfit. Plus kernel parses it, so not sure request_firmware is really the right thing.

I think it is, as this really looks like "firmware" to me as you are wanting to do something with the buffer and pass it on.

Quoted 2 lines

- configfs? I never used that one, but the transactional config stuff this provides feels like silly amounts of overkill

Maybe, but why do you want to stuf binary data in your kernel in the first place? It is configuration, right, why not have it in a format that you can easily handle it in? Or is that the binary format you have?

Quoted 1 line

- procfs :-)

Hah, no.

Quoted 3 lines

- ioctl it definitely isn't, there's no need to open a drm device node first and require a special binary to upload the srm if cat > $kernfs/srm is all that's needed

But you want this associtated with a specific drm device, right? So what's wrong with this?

Quoted 1 line

- drmfs ... that's some serious amounts of overkill, so nope.

300 lines of kernel code for a fs isn't that much :)

Quoted 5 lines

- per-device sysfs binary blob, silly because it's not per-device, but wouldn't need your ack since we could sneak this one in :-) For reasonable semantics we could just alias them all to the same storage, so that userspace can do a cat > /sys/class/drm/card0/srm instead of /sys/class/drm/srm for same effects (for multi gpu systems).

Again, no, you do not use binary sysfs files for data you want to touch. Yes, you can try to get away with it, but please do not.

thanks,

greg k-h
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#15 lore raw

Re: [PATCH v4 05/13] drivers: create binary sysfs for class

Quoted 81 lines · Greg Kroah-Hartman
Quoted 68 lines · Daniel Vetter
Quoted 66 lines · Greg Kroah-Hartman
Quoted 64 lines · Ramalingam C
Quoted 36 lines · Greg Kroah-Hartman
Quoted 29 lines · Ramalingam C
Quoted 20 lines · Greg Kroah-Hartman
Quoted 7 lines · Ramalingam C
Quoted 6 lines · Greg Kroah-Hartman
Quoted 4 lines · Ramalingam C

Functions to create and remove the binary sysfs for class are added.

These are getting introduced as DRM wants to create the common binary sysfs across the drm subsystem to handle hdcp srm.

Quoted 8 lines
Quoted 3 lines

Why do you need individual files? That's almost always a sign that you are going to race with userspace in a bad way. Why not just use an attribute group which provides automatic support for this?

Greg,

Reason behind this move is to have a common srm entry path across all drm drivers. And the data fed into this is binary blob. So I am creating a binary sysfs "hdcp_srm" at /sys/class/drm/

Ah, you want to have a file in your class directory, not your class device directory.

Quoted 8 lines

No, please do not do that. There's a reason I got rid of those same types of apis in the past.

And "binary blobs" are horrid anyway, they are only to be used as a pass-through to the device itself, from the kernel, no touching the data at all. If you really need/want this, then put it in the device's directory as that is where the data is going to, not the kernel "class" code as it sure as heck better not be doing anything with it.

Quoted 5 lines

Greg,

But here the parsing of the received binary blob is done outside the drm device/cards. This will be generic code for all drm cardx(drivers). And this will provide the service helper functions to the drm drivers for HDCP SRM checking.

Quoted 8 lines

Again, the kernel is NOT to be parsing any binary data that comes through a sysfs file. If you need such a crazy thing, do it through your normal drm ioctl.

Quoted 2 lines

So we prefer to have the binary sysfs at /sys/class/drm/ than inside the cardx folders, so that it will be generic. Could you please suggest a way to achieve that?

What is a "cardx" driver?

Meant card0 card1 etc.. Drm drivers.

Quoted 5 lines

Why can you not do it in a device-specific
location? Are suddenly _ALL_ DRM drivers going to need this information? What is the use case? Who is going to be providing this blob and where is it going? What in the kernel uses it? What on the hardware uses it? What is it actually?

This is for HDCP usecase. List of compromised receivers' ID called system renewability Message (SRM) will be available at userspace which needs to be passed to be kernel. And this data can be parsed at kernel used across all DRM drivers to implement the HDCP authentication. Hence we want generic code to parse the SRM data and provide a helper function to all DRM drivers to validate their HDCP sink's ID.

To achieve this we want to keep the sysfs and parsing logic outside the drm drivers at the class level.

At present I915 will be using these implementation. in future other DRM drivers can use the same.

Quoted 8 lines
Quoted 2 lines

Again, binary sysfs files are not for any data that the kernel has to parse at all. So do not use sysfs for this.

So what's the recommend thing then?
- requrest_firmware blob could work, aside that the blob might change (the point of this to allow updates). For some hw you can even stuff the SRM into some eprom iirc, so not entirely misfit. Plus kernel parses it, so not sure request_firmware is really the right thing.

I think it is, as this really looks like "firmware" to me as you are wanting to do something with the buffer and pass it on.

Quoted 7 lines
Quoted 2 lines

- configfs? I never used that one, but the transactional config stuff this provides feels like silly amounts of overkill

Maybe, but why do you want to stuf binary data in your kernel in the first place? It is configuration, right, why not have it in a format that you can easily handle it in? Or is that the binary format you have?

Hm, maybe that's the disconnect. It's a blob because that's what the relevant standards body defined it as such.

Quoted 10 lines
Quoted 1 line

- procfs :-)

Hah, no.

Quoted 3 lines

- ioctl it definitely isn't, there's no need to open a drm device node first and require a special binary to upload the srm if cat > $kernfs/srm is all that's needed

But you want this associtated with a specific drm device, right? So what's wrong with this?

ioctl are generally for the unpriviledged stuff in drm, where multiple client share (mediated by the driver) the single device. So per-client configuration data and stuff like that. Anything that's device-wide (clocks, hw config settings, other stuff like that) we generally stuff into sysfs. Plus some dedicated low-level dev nodes (i2c, dp aux).

Also, the "ioctl to configure the device globally" is how dri1 worked, and that stuff is serious nightmare fuel, so we try really hard to avoid that design pattern because history :-)

Quoted 3 lines
Quoted 1 line

- drmfs ... that's some serious amounts of overkill, so nope.

300 lines of kernel code for a fs isn't that much :)

That's not the problem, it's the "you need to mount this and then cat the file into it and then maybe unmount it again" which doesn't make for the most awesome uapi.

Quoted 8 lines
Quoted 5 lines

- per-device sysfs binary blob, silly because it's not per-device, but wouldn't need your ack since we could sneak this one in :-) For reasonable semantics we could just alias them all to the same storage, so that userspace can do a cat > /sys/class/drm/card0/srm instead of /sys/class/drm/srm for same effects (for multi gpu systems).

Again, no, you do not use binary sysfs files for data you want to touch. Yes, you can try to get away with it, but please do not.

See above, that's the canonical format of this things. Of course we could split it up, and let the kernel reassemble it all again (for the case where we need to push it unchanged into hw), but that's somewhat silly. Plus iirc it's also signed, which is somewhat ... hard to fake :-)

Anyway I guess request_firmware it is then. We might end up doing a new request_firmware for each modeset, but without the legacy compat cruft (aka usermode helper) request_firmware should be plenty fast enough to not matter I think. And also feels like reasonable uapi. -Daniel

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#16 lore raw

PATCH v4 6/13 drm: HDCP SRM binary sysfs for subsystem

In reply to Ramalingam C

A common binary sysfs called "hdcp_srm" is created at /sys/class/drm with only write permission.

SRM table is parsed and stored at drm_hdcp.c, with functions exported for the services for revocation check from drivers (which implements the HDCP authentication)

This patch handles the HDCP1.4 and 2.2 versions of SRM table.

---
 drivers/gpu/drm/Makefile       |   2 +-
 drivers/gpu/drm/drm_hdcp.c     | 351 +++++++++++++++++++++++++++++++++
 drivers/gpu/drm/drm_internal.h |   4 +
 drivers/gpu/drm/drm_sysfs.c    |   2 +
 include/drm/drm_hdcp.h         |  35 ++++
 5 files changed, 393 insertions(+), 1 deletion(-)
 create mode 100644 drivers/gpu/drm/drm_hdcp.c
drivers/gpu/drm/Makefile +1 -1
index e630eccb951c..ef6e484c964b 100644
@@ -19,7 +19,7 @@ drm-y       :=	drm_auth.o drm_bufs.o drm_cache.o \
 		drm_plane.o drm_color_mgmt.o drm_print.o \
 		drm_dumb_buffers.o drm_mode_config.o drm_vblank.o \
 		drm_syncobj.o drm_lease.o drm_writeback.o drm_client.o \
-		drm_atomic_uapi.o
+		drm_atomic_uapi.o drm_hdcp.o
 
 drm-$(CONFIG_DRM_LIB_RANDOM) += lib/drm_random.o
 drm-$(CONFIG_DRM_VM) += drm_vm.o
drivers/gpu/drm/drm_hdcp.c new file +351 -0

351 lines not on this page · raw message

drivers/gpu/drm/drm_internal.h +4 -0
index 251d67e04c2d..15d6bfc764da 100644
@@ -191,3 +191,7 @@ int drm_syncobj_signal_ioctl(struct drm_device *dev, void *data,
 void drm_framebuffer_print_info(struct drm_printer *p, unsigned int indent,
 				const struct drm_framebuffer *fb);
 int drm_framebuffer_debugfs_init(struct drm_minor *minor);
+
+/* drm_hdcp.c */
+int drm_setup_hdcp_srm(struct class *drm_class);
+void drm_teardown_hdcp_srm(struct class *drm_class);
drivers/gpu/drm/drm_sysfs.c +2 -0
index ecb7b33002bb..18b1ac442997 100644
@@ -78,6 +78,7 @@ int drm_sysfs_init(void)
 	}
 
 	drm_class->devnode = drm_devnode;
+	drm_setup_hdcp_srm(drm_class);
 	return 0;
 }
 
@@ -90,6 +91,7 @@ void drm_sysfs_destroy(void)
 {
 	if (IS_ERR_OR_NULL(drm_class))
 		return;
+	drm_teardown_hdcp_srm(drm_class);
 	class_remove_file(drm_class, &class_attr_version.attr);
 	class_destroy(drm_class);
 	drm_class = NULL;
include/drm/drm_hdcp.h +35 -0
index f243408ecf26..5cb21dd6797b 100644
@@ -265,4 +265,39 @@ void drm_hdcp2_u32_to_seq_num(u8 seq_num[HDCP_2_2_SEQ_NUM_LEN], u32 val)
 	seq_num[2] = val;
 }
 
+#define DRM_HDCP_SRM_GEN1_MAX_BYTES		(5 * 1024)
+#define DRM_HDCP_1_4_SRM_ID			0x8
+#define DRM_HDCP_1_4_VRL_LENGTH_SIZE		3
+#define DRM_HDCP_1_4_DCP_SIG_SIZE		40
+
+struct hdcp_srm_header {
+	struct {
+		u8 reserved_hi:4;
+		u8 srm_id:4;
+		u8 reserved_lo;
+	} spec_indicator;
+	u16 srm_version;
+	u8 srm_gen_no;
+} __packed;
+
+#define DRM_HDCP_2_SRM_ID			0x9
+#define DRM_HDCP_2_INDICATOR			0x1
+#define DRM_HDCP_2_VRL_LENGTH_SIZE		3
+#define DRM_HDCP_2_DCP_SIG_SIZE			384
+#define DRM_HDCP_2_NO_OF_DEV_PLUS_RESERVED_SZ	4
+
+#define DRM_HDCP_2_KSV_COUNT_2_LSBITS(byte)	(((byte) & 0xC) >> 6)
+
+struct hdcp2_srm_header {
+	struct {
+		u8 hdcp2_indicator:4;
+		u8 srm_id:4;
+		u8 reserved;
+	} spec_indicator;
+	u16 srm_version;
+	u8 srm_gen_no;
+} __packed;
+
+bool drm_hdcp_ksvs_revocated(u8 *ksvs, u32 ksv_count);
+
 #endif
Signature · 6 lines
2.19.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#17 lore raw

PATCH v4 7/13 drm/i915: SRM revocation check for HDCP1.4 and 2.2

In reply to Ramalingam C

DRM HDCP SRM revocation check services are used from I915 for HDCP1.4 and 2.2 revocation check during the respective authentication flow.

---
 drivers/gpu/drm/i915/intel_hdcp.c | 25 ++++++++++++++++++++++++-
 1 file changed, 24 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_hdcp.c +24 -1
index 19130f9b970d..6982a2e6cf9a 100644
@@ -531,6 +531,11 @@ int intel_hdcp_auth_downstream(struct intel_digital_port *intel_dig_port,
 	if (ret)
 		goto err;
 
+	if (drm_hdcp_ksvs_revocated(ksv_fifo, num_downstream)) {
+		DRM_ERROR("Revocated Ksv(s) in ksv_fifo\n");
+		return -EPERM;
+	}
+
 	/*
 	 * When V prime mismatches, DP Spec mandates re-read of
 	 * V prime atleast twice.
@@ -625,6 +630,11 @@ static int intel_hdcp_auth(struct intel_digital_port *intel_dig_port,
 	if (ret < 0)
 		return ret;
 
+	if (drm_hdcp_ksvs_revocated(bksv.shim, 1)) {
+		DRM_ERROR("BKSV is revocated\n");
+		return -EPERM;
+	}
+
 	I915_WRITE(PORT_HDCP_BKSVLO(port), bksv.reg[0]);
 	I915_WRITE(PORT_HDCP_BKSVHI(port), bksv.reg[1]);
 
@@ -1193,6 +1203,11 @@ static int hdcp2_authentication_key_exchange(struct intel_connector *connector)
 
 	hdcp->is_repeater = HDCP_2_2_RX_REPEATER(msgs.send_cert.rx_caps[2]);
 
+	if (drm_hdcp_ksvs_revocated(msgs.send_cert.cert_rx.receiver_id, 1)) {
+		DRM_ERROR("Receiver ID is revocated\n");
+		return -EPERM;
+	}
+
 	/*
 	 * Here msgs.no_stored_km will hold msgs corresponding to the km
 	 * stored also.
@@ -1350,8 +1365,8 @@ int hdcp2_authenticate_repeater_topology(struct intel_connector *connector)
 		struct hdcp2_rep_send_ack rep_ack;
 	} msgs;
 	const struct intel_hdcp_shim *shim = hdcp->shim;
+	u32 seq_num_v, device_cnt;
 	u8 *rx_info;
-	u32 seq_num_v;
 	int ret;
 
 	ret = shim->read_2_2_msg(intel_dig_port, HDCP_2_2_REP_SEND_RECVID_LIST,
@@ -1376,6 +1391,14 @@ int hdcp2_authenticate_repeater_topology(struct intel_connector *connector)
 		return -EINVAL;
 	}
 
+	device_cnt = HDCP_2_2_DEV_COUNT_HI(rx_info[0]) << 4 ||
+			HDCP_2_2_DEV_COUNT_LO(rx_info[1]);
+	if (drm_hdcp_ksvs_revocated(msgs.recvid_list.receiver_ids,
+				    device_cnt)) {
+		DRM_ERROR("Revoked receiver ID(s) is in list\n");
+		return -EPERM;
+	}
+
 	ret = hdcp2_verify_rep_topology_prepare_ack(connector,
 						    &msgs.recvid_list,
 						    &msgs.rep_ack);
Signature · 6 lines
2.19.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#18 lore raw

PATCH v4 8/13 drm/hdcp: gathering hdcp related code into drm_hdcp.c

In reply to Ramalingam C

Considering the significant size of hdcp related code in drm, all hdcp related codes are moved into separate file called drm_hdcp.c.

---
 drivers/gpu/drm/drm_connector.c | 78 -------------------------------
 drivers/gpu/drm/drm_hdcp.c      | 82 +++++++++++++++++++++++++++++++++
 include/drm/drm_connector.h     |  2 -
 include/drm/drm_hdcp.h          |  4 ++
 4 files changed, 86 insertions(+), 80 deletions(-)
drivers/gpu/drm/drm_connector.c +0 -78
index 03907d13ef66..436cf8e764cc 100644
@@ -823,13 +823,6 @@ static const struct drm_prop_enum_list drm_tv_subconnector_enum_list[] = {
 DRM_ENUM_NAME_FN(drm_get_tv_subconnector_name,
 		 drm_tv_subconnector_enum_list)
 
-static struct drm_prop_enum_list drm_cp_enum_list[] = {
-	{ DRM_MODE_CONTENT_PROTECTION_UNDESIRED, "Undesired" },
-	{ DRM_MODE_CONTENT_PROTECTION_DESIRED, "Desired" },
-	{ DRM_MODE_CONTENT_PROTECTION_ENABLED, "Enabled" },
-};
-DRM_ENUM_NAME_FN(drm_get_content_protection_name, drm_cp_enum_list)
-
 static const struct drm_prop_enum_list hdmi_colorspaces[] = {
 	/* For Default case, driver will set the colorspace */
 	{ DRM_MODE_COLORIMETRY_DEFAULT, "Default" },
@@ -857,13 +850,6 @@ static const struct drm_prop_enum_list hdmi_colorspaces[] = {
 	{ DRM_MODE_COLORIMETRY_DCI_P3_RGB_THEATER, "DCI-P3_RGB_Theater" },
 };
 
-static struct drm_prop_enum_list drm_hdcp_content_type_enum_list[] = {
-	{ DRM_MODE_HDCP_CONTENT_TYPE0, "HDCP Type0" },
-	{ DRM_MODE_HDCP_CONTENT_TYPE1, "HDCP Type1" },
-};
-DRM_ENUM_NAME_FN(drm_get_hdcp_content_type_name,
-		 drm_hdcp_content_type_enum_list)
-
 /**
  * DOC: standard connector properties
  *
@@ -1539,70 +1525,6 @@ int drm_connector_attach_scaling_mode_property(struct drm_connector *connector,
 }
 EXPORT_SYMBOL(drm_connector_attach_scaling_mode_property);
 
-/**
- * drm_connector_attach_content_protection_property - attach content protection
- * property
- *
- * @connector: connector to attach CP property on.
- * @hdcp_content_type: is HDCP Content Type property needed for connector
- *
- * This is used to add support for content protection on select connectors.
- * Content Protection is intentionally vague to allow for different underlying
- * technologies, however it is most implemented by HDCP.
- *
- * When hdcp_content_type is true enum property called HDCP Content Type is
- * created (if it is not already) and attached to the connector.
- *
- * This property is used for sending the protected content's stream type
- * from userspace to kernel on selected connectors. Protected content provider
- * will decide their type of their content and declare the same to kernel.
- *
- * Content type will be used during the HDCP 2.2 authentication.
- * Content type will be set to &drm_connector_state.hdcp_content_type.
- *
- * The content protection will be set to &drm_connector_state.content_protection
- *
- * Returns:
- * Zero on success, negative errno on failure.
- */
-int drm_connector_attach_content_protection_property(
-		struct drm_connector *connector, bool hdcp_content_type)
-{
-	struct drm_device *dev = connector->dev;
-	struct drm_property *prop =
-			dev->mode_config.content_protection_property;
-
-	if (!prop)
-		prop = drm_property_create_enum(dev, 0, "Content Protection",
-						drm_cp_enum_list,
-						ARRAY_SIZE(drm_cp_enum_list));
-	if (!prop)
-		return -ENOMEM;
-
-	drm_object_attach_property(&connector->base, prop,
-				   DRM_MODE_CONTENT_PROTECTION_UNDESIRED);
-	dev->mode_config.content_protection_property = prop;
-
-	if (!hdcp_content_type)
-		return 0;
-
-	prop = dev->mode_config.hdcp_content_type_property;
-	if (!prop)
-		prop = drm_property_create_enum(dev, 0, "HDCP Content Type",
-					drm_hdcp_content_type_enum_list,
-					ARRAY_SIZE(
-					drm_hdcp_content_type_enum_list));
-	if (!prop)
-		return -ENOMEM;
-
-	drm_object_attach_property(&connector->base, prop,
-				   DRM_MODE_HDCP_CONTENT_TYPE0);
-	dev->mode_config.hdcp_content_type_property = prop;
-
-	return 0;
-}
-EXPORT_SYMBOL(drm_connector_attach_content_protection_property);
-
 /**
  * drm_mode_create_aspect_ratio_property - create aspect ratio property
  * @dev: DRM device
drivers/gpu/drm/drm_hdcp.c +82 -0

91 lines not on this page · raw message

include/drm/drm_connector.h +0 -2
index bfa7e886fc93..ed68af1a3f8f 100644
@@ -1308,8 +1308,6 @@ int drm_connector_attach_scaling_mode_property(struct drm_connector *connector,
 					       u32 scaling_mode_mask);
 int drm_connector_attach_vrr_capable_property(
 		struct drm_connector *connector);
-int drm_connector_attach_content_protection_property(
-		struct drm_connector *connector, bool hdcp_content_type);
 int drm_mode_create_aspect_ratio_property(struct drm_device *dev);
 int drm_mode_create_colorspace_property(struct drm_connector *connector);
 int drm_mode_create_content_type_property(struct drm_device *dev);
include/drm/drm_hdcp.h +4 -0
index 5cb21dd6797b..ba0dbb45deaa 100644
@@ -298,6 +298,10 @@ struct hdcp2_srm_header {
 	u8 srm_gen_no;
 } __packed;
 
+struct drm_connector;
+
 bool drm_hdcp_ksvs_revocated(u8 *ksvs, u32 ksv_count);
+int drm_connector_attach_content_protection_property(
+		struct drm_connector *connector, bool hdcp_content_type);
 
 #endif
Signature · 6 lines
2.19.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#19 lore raw

PATCH v4 9/13 drm: uevent for connector status change

In reply to Ramalingam C

DRM API for generating uevent for a status changes of connector's property.

This uevent will have following details related to the status change:

HOTPLUG=1, CONNECTOR=<connector_id> and PROPERTY=<property_id>
v2:
Minor fixes at KDoc comments [Daniel]

---
 drivers/gpu/drm/drm_sysfs.c | 31 +++++++++++++++++++++++++++++++
 include/drm/drm_sysfs.h     |  5 ++++-
 2 files changed, 35 insertions(+), 1 deletion(-)
drivers/gpu/drm/drm_sysfs.c +31 -0
index 18b1ac442997..e8f1fd73677f 100644
@@ -320,6 +320,9 @@ void drm_sysfs_lease_event(struct drm_device *dev)
  * Send a uevent for the DRM device specified by @dev.  Currently we only
  * set HOTPLUG=1 in the uevent environment, but this could be expanded to
  * deal with other types of events.
+ *
+ * Any new uapi should be using the drm_sysfs_connector_status_event()
+ * for uevents on connector status change.
  */
 void drm_sysfs_hotplug_event(struct drm_device *dev)
 {
@@ -332,6 +335,34 @@ void drm_sysfs_hotplug_event(struct drm_device *dev)
 }
 EXPORT_SYMBOL(drm_sysfs_hotplug_event);
 
+/**
+ * drm_sysfs_connector_status_event - generate a DRM uevent for connector
+ * property status change
+ * @connector: connector on which property status changed
+ * @property: connector property whoes status changed.
+ *
+ * Send a uevent for the DRM device specified by @dev.  Currently we
+ * set HOTPLUG=1 and connector id along with the attached property id
+ * related to the status change.
+ */
+void drm_sysfs_connector_status_event(struct drm_connector *connector,
+				      struct drm_property *property)
+{
+	struct drm_device *dev = connector->dev;
+	char hotplug_str[] = "HOTPLUG=1", conn_id[30], prop_id[30];
+	char *envp[4] = { hotplug_str, conn_id, prop_id, NULL };
+
+	snprintf(conn_id, ARRAY_SIZE(conn_id),
+		 "CONNECTOR=%u", connector->base.id);
+	snprintf(prop_id, ARRAY_SIZE(prop_id),
+		 "PROPERTY=%u", property->base.id);
+
+	DRM_DEBUG("generating connector status event\n");
+
+	kobject_uevent_env(&dev->primary->kdev->kobj, KOBJ_CHANGE, envp);
+}
+EXPORT_SYMBOL(drm_sysfs_connector_status_event);
+
 static void drm_sysfs_release(struct device *dev)
 {
 	kfree(dev);
include/drm/drm_sysfs.h +4 -1
index 4f311e836cdc..d454ef617b2c 100644
@@ -4,10 +4,13 @@
 
 struct drm_device;
 struct device;
+struct drm_connector;
+struct drm_property;
 
 int drm_class_device_register(struct device *dev);
 void drm_class_device_unregister(struct device *dev);
 
 void drm_sysfs_hotplug_event(struct drm_device *dev);
-
+void drm_sysfs_connector_status_event(struct drm_connector *connector,
+				      struct drm_property *property);
 #endif
Signature · 6 lines
2.19.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#20 lore raw

PATCH v4 10/13 drm/hdcp: update content protection property with uevent

In reply to Ramalingam C

drm function is defined and exported to update a connector's content protection property state and to generate a uevent along with it.

---
 drivers/gpu/drm/drm_hdcp.c | 13 +++++++++++++
 include/drm/drm_hdcp.h     |  2 ++
 2 files changed, 15 insertions(+)
drivers/gpu/drm/drm_hdcp.c +13 -0
index c1483862c87c..38c90c053cdd 100644
@@ -431,3 +431,16 @@ int drm_connector_attach_content_protection_property(
 	return 0;
 }
 EXPORT_SYMBOL(drm_connector_attach_content_protection_property);
+
+void drm_hdcp_update_content_protection(struct drm_connector *connector,
+					u64 val)
+{
+	struct drm_device *dev = connector->dev;
+	struct drm_connector_state *state = connector->state;
+
+	WARN_ON(!drm_modeset_is_locked(&dev->mode_config.connection_mutex));
+	state->content_protection = val;
+	drm_sysfs_connector_status_event(connector,
+				 dev->mode_config.content_protection_property);
+}
+EXPORT_SYMBOL(drm_hdcp_update_content_protection);
include/drm/drm_hdcp.h +2 -0
index ba0dbb45deaa..f0ef42247f2c 100644
@@ -303,5 +303,7 @@ struct drm_connector;
 bool drm_hdcp_ksvs_revocated(u8 *ksvs, u32 ksv_count);
 int drm_connector_attach_content_protection_property(
 		struct drm_connector *connector, bool hdcp_content_type);
+void drm_hdcp_update_content_protection(struct drm_connector *connector,
+					u64 val);
 
 #endif
Signature · 6 lines
2.19.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#21 lore raw

PATCH v4 11/13 drm/i915: update the hdcp state with uevent

In reply to Ramalingam C

drm function to update the content protection property state and to generate a uevent is invoked from the intel hdcp property work.

Hence whenever kernel changes the property state, userspace will be updated with a uevent.

v2:
state update is moved into drm function [daniel]

---
 drivers/gpu/drm/i915/intel_hdcp.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
drivers/gpu/drm/i915/intel_hdcp.c +3 -5
index 6982a2e6cf9a..f70f1e98e4ae 100644
@@ -858,7 +858,6 @@ static void intel_hdcp_prop_work(struct work_struct *work)
 					       prop_work);
 	struct intel_connector *connector = intel_hdcp_to_connector(hdcp);
 	struct drm_device *dev = connector->base.dev;
-	struct drm_connector_state *state;
 
 	drm_modeset_lock(&dev->mode_config.connection_mutex, NULL);
 	mutex_lock(&hdcp->mutex);
@@ -868,10 +867,9 @@ static void intel_hdcp_prop_work(struct work_struct *work)
 	 * those to UNDESIRED is handled by core. If value == UNDESIRED,
 	 * we're running just after hdcp has been disabled, so just exit
 	 */
-	if (hdcp->value != DRM_MODE_CONTENT_PROTECTION_UNDESIRED) {
-		state = connector->base.state;
-		state->content_protection = hdcp->value;
-	}
+	if (hdcp->value != DRM_MODE_CONTENT_PROTECTION_UNDESIRED)
+		drm_hdcp_update_content_protection(&connector->base,
+						   hdcp->value);
 
 	mutex_unlock(&hdcp->mutex);
 	drm_modeset_unlock(&dev->mode_config.connection_mutex);
Signature · 6 lines
2.19.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#22 lore raw

PATCH v4 12/13 drm: Add CP downstream_info property

In reply to Ramalingam C

This patch adds a optional CP downstream info blob property to the connectors. This enables the Userspace to read the information of HDCP authenticated downstream topology.

Driver will update this blob with all downstream information at the end of the authentication.

In case userspace configures this platform as repeater, then this information is needed for the authentication with upstream HDCP transmitter.

v2:
s/cp_downstream/content_protection_downstream [daniel]
v3:
s/content_protection_downstream/hdcp_topology [daniel]
v4:
hdcp_topology_info struct is added with explicit padding [Daniel]

---
 drivers/gpu/drm/drm_atomic_uapi.c |  3 ++
 drivers/gpu/drm/drm_connector.c   | 20 ++++++++++
 drivers/gpu/drm/drm_hdcp.c        | 65 +++++++++++++++++++++++++++++++
 include/drm/drm_connector.h       |  6 +++
 include/drm/drm_hdcp.h            |  6 +++
 include/drm/drm_mode_config.h     |  6 +++
 include/uapi/drm/drm_mode.h       | 37 ++++++++++++++++++
 7 files changed, 143 insertions(+)
drivers/gpu/drm/drm_atomic_uapi.c +3 -0
index fa50fac2e952..3a1858d5730c 100644
@@ -826,6 +826,9 @@ drm_atomic_connector_get_property(struct drm_connector *connector,
 		*val = state->content_protection;
 	} else if (property == config->hdcp_content_type_property) {
 		*val = state->hdcp_content_type;
+	} else if (property == config->hdcp_topology_property) {
+		*val = connector->hdcp_topology_blob_ptr ?
+			connector->hdcp_topology_blob_ptr->base.id : 0;
 	} else if (property == config->writeback_fb_id_property) {
 		/* Writeback framebuffer is one-shot, write and forget */
 		*val = 0;
drivers/gpu/drm/drm_connector.c +20 -0
index 436cf8e764cc..033ced774d37 100644
@@ -246,6 +246,7 @@ int drm_connector_init(struct drm_device *dev,
 	mutex_init(&connector->mutex);
 	connector->edid_blob_ptr = NULL;
 	connector->tile_blob_ptr = NULL;
+	connector->hdcp_topology_blob_ptr = NULL;
 	connector->status = connector_status_unknown;
 	connector->display_info.panel_orientation =
 		DRM_MODE_PANEL_ORIENTATION_UNKNOWN;
@@ -972,6 +973,25 @@ static const struct drm_prop_enum_list hdmi_colorspaces[] = {
  *	authentication process. If content type is changed when
  *	content_protection is not UNDESIRED, then kernel will disable the HDCP
  *	and re-enable with new type in the same atomic commit
+ * HDCP Topology:
+ *	This blob property is used to pass the HDCP downstream topology details
+ *	of a HDCP encrypted connector, from kernel to userspace.
+ *	This provides all required information to userspace, so that userspace
+ *	can implement the HDCP repeater using the kernel as downstream ports of
+ *	the repeater. as illustrated below:
+ *
+ *                          HDCP Repeaters
+ * +--------------------------------------------------------------+
+ * |                                                              |
+ * |                               |                              |
+ * |   Userspace HDCP Receiver  +----->    KMD HDCP transmitters  |
+ * |      (Upstream Port)      <------+     (Downstream Ports)    |
+ * |                               |                              |
+ * |                                                              |
+ * +--------------------------------------------------------------+
+ *
+ *	Kernel will populate this blob only when the HDCP authentication is
+ *	successful.
  *
  * max bpc:
  *	This range property is used by userspace to limit the bit depth. When
drivers/gpu/drm/drm_hdcp.c +65 -0

68 lines not on this page · raw message

include/drm/drm_connector.h +6 -0
index ed68af1a3f8f..66229a4bee35 100644
@@ -1012,6 +1012,12 @@ struct drm_connector {
 	/** @properties: property tracking for this connector */
 	struct drm_object_properties properties;
 
+	/**
+	 * @hdcp_topology_blob_ptr: DRM BLOB pointer for hdcp downstream
+	 * topology information.
+	 */
+	struct drm_property_blob *hdcp_topology_blob_ptr;
+
 	/**
 	 * @scaling_mode_property: Optional atomic property to control the
 	 * upscaling. See drm_connector_attach_content_protection_property().
include/drm/drm_hdcp.h +6 -0
index f0ef42247f2c..fdd65a14f4db 100644
@@ -299,11 +299,17 @@ struct hdcp2_srm_header {
 } __packed;
 
 struct drm_connector;
+struct hdcp_topology_info;
 
 bool drm_hdcp_ksvs_revocated(u8 *ksvs, u32 ksv_count);
 int drm_connector_attach_content_protection_property(
 		struct drm_connector *connector, bool hdcp_content_type);
 void drm_hdcp_update_content_protection(struct drm_connector *connector,
 					u64 val);
+int drm_connector_attach_hdcp_topology_property(
+				struct drm_connector *connector);
+int drm_connector_update_hdcp_topology_property(
+				struct drm_connector *connector,
+				const struct hdcp_topology_info *info);
 
 #endif
include/drm/drm_mode_config.h +6 -0
index b359b5b71eb9..4349b614fa15 100644
@@ -848,6 +848,12 @@ struct drm_mode_config {
 	 */
 	struct drm_property *hdcp_content_type_property;
 
+	/**
+	 * @hdcp_topology_property: DRM BLOB property for hdcp downstream
+	 * topology information.
+	 */
+	struct drm_property *hdcp_topology_property;
+
 	/* dumb ioctl parameters */
 	uint32_t preferred_depth, prefer_shadow;
 
include/uapi/drm/drm_mode.h +37 -0
index 44412e8b77cd..251865679dfc 100644
@@ -214,6 +214,43 @@ extern "C" {
 #define DRM_MODE_HDCP_CONTENT_TYPE0		0
 #define DRM_MODE_HDCP_CONTENT_TYPE1		1
 
+#define DRM_MODE_HDCP_KSV_LEN			5
+#define DRM_MODE_HDCP_MAX_DEVICE_CNT		127
+#define DRM_MODE_HDCP14_IN_FORCE		(1 << 0)
+#define DRM_MODE_HDCP22_IN_FORCE		(1 << 1)
+
+struct hdcp_topology_info {
+	/* Version of HDCP authenticated (1.4/2.2) */
+	__u32 ver_in_force;
+
+	/* Applicable only for HDCP2.2 */
+	__u32 content_type;
+
+	/* KSV of immediate HDCP Sink. In Little-Endian Format. */
+	__u8 bksv[DRM_MODE_HDCP_KSV_LEN];
+
+	/* Whether Immediate HDCP sink is a repeater? */
+	__u8 is_repeater;
+
+	/* Depth received from immediate downstream repeater */
+	__u8 depth;
+	__u8 pad1;
+
+	/* Device count received from immediate downstream repeater */
+	__u32 device_count;
+
+	/*
+	 * Max buffer required to hold ksv list received from immediate
+	 * repeater. In this array first device_count * DRM_MODE_HDCP_KSV_LEN
+	 * will hold the valid ksv bytes.
+	 * If authentication specification is
+	 *	HDCP1.4 - each KSV's Bytes will be in Little-Endian format.
+	 *	HDCP2.2 - each KSV's Bytes will be in Big-Endian format.
+	 */
+	__u8 ksv_list[DRM_MODE_HDCP_KSV_LEN * DRM_MODE_HDCP_MAX_DEVICE_CNT];
+	__u8 pad2[5];
+} __packed;
+
 struct drm_mode_modeinfo {
 	__u32 clock;
 	__u16 hdisplay;
Signature · 6 lines
2.19.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#23 lore raw

PATCH v4 13/13 drm/i915: Populate downstream info for HDCP

In reply to Ramalingam C

Implements drm blob property content_protection_downstream_info property on HDCP capable connectors.

Downstream topology info is gathered across authentication stages and stored in intel_hdcp. When HDCP authentication is complete, new blob with latest downstream topology information is updated to content_protection_downstream_info property.

v2:
%s/cp_downstream/content_protection_downstream [daniel]
v3:
%s/content_protection_downstream/hdcp_topology [daniel]
v4:
Rebased.

---
 drivers/gpu/drm/i915/intel_drv.h  |  2 +
 drivers/gpu/drm/i915/intel_hdcp.c | 87 ++++++++++++++++++++++++++-----
 include/drm/drm_hdcp.h            |  1 +
 3 files changed, 76 insertions(+), 14 deletions(-)
drivers/gpu/drm/i915/intel_drv.h +2 -0
index e387e842f414..6a321a56ce42 100644
@@ -482,6 +482,8 @@ struct intel_hdcp {
 	wait_queue_head_t cp_irq_queue;
 	atomic_t cp_irq_count;
 	int cp_irq_count_cached;
+
+	struct hdcp_topology_info *topology_info;
 };
 
 struct intel_connector {
drivers/gpu/drm/i915/intel_hdcp.c +73 -14

201 lines not on this page · raw message

include/drm/drm_hdcp.h +1 -0
index fdd65a14f4db..330e34715aa4 100644
@@ -23,6 +23,7 @@
 #define DRM_HDCP_V_PRIME_PART_LEN		4
 #define DRM_HDCP_V_PRIME_NUM_PARTS		5
 #define DRM_HDCP_NUM_DOWNSTREAM(x)		(x & 0x7f)
+#define DRM_HDCP_DEPTH(x)			((x) & 0x7)
 #define DRM_HDCP_MAX_CASCADE_EXCEEDED(x)	(x & BIT(3))
 #define DRM_HDCP_MAX_DEVICE_EXCEEDED(x)		(x & BIT(7))
 
Signature · 6 lines
2.19.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#24 lore raw

Re: [PATCH v4 13/13] drm/i915: Populate downstream info for HDCP

Quoted 8 lines · Ramalingam C

Implements drm blob property content_protection_downstream_info property on HDCP capable connectors.

Downstream topology info is gathered across authentication stages and stored in intel_hdcp. When HDCP authentication is complete, new blob with latest downstream topology information is updated to content_protection_downstream_info property.

Quoted 6 lines

v2:
%s/cp_downstream/content_protection_downstream [daniel]
v3:
%s/content_protection_downstream/hdcp_topology [daniel]
v4:
Rebased.

Daniel,

Hope I have done enough explicit padding struct hdcp_topology_info. Please correct me if i am still missing something.

For populating the structure for the blob, as you sugegsted this patch is not using the separate functions. IMHO I feel usage is very minimal, separate functions might not be justified here. Hope you are fine with that.

-Ram

Quoted 256 lines
---
 drivers/gpu/drm/i915/intel_drv.h  |  2 +
 drivers/gpu/drm/i915/intel_hdcp.c | 87 ++++++++++++++++++++++++++-----
 include/drm/drm_hdcp.h            |  1 +
 3 files changed, 76 insertions(+), 14 deletions(-)
drivers/gpu/drm/i915/intel_drv.h +2 -0
index e387e842f414..6a321a56ce42 100644
@@ -482,6 +482,8 @@ struct intel_hdcp {
 	wait_queue_head_t cp_irq_queue;
 	atomic_t cp_irq_count;
 	int cp_irq_count_cached;
+
+	struct hdcp_topology_info *topology_info;
 };
 
 struct intel_connector {
drivers/gpu/drm/i915/intel_hdcp.c +73 -14
index f70f1e98e4ae..6993bb9ecd0b 100644
@@ -490,9 +490,10 @@ int intel_hdcp_validate_v_prime(struct intel_digital_port *intel_dig_port,
 
 /* Implements Part 2 of the HDCP authorization procedure */
 static
-int intel_hdcp_auth_downstream(struct intel_digital_port *intel_dig_port,
-			       const struct intel_hdcp_shim *shim)
+int intel_hdcp_auth_downstream(struct intel_hdcp *hdcp,
+			       struct intel_digital_port *intel_dig_port)
 {
+	const struct intel_hdcp_shim *shim = hdcp->shim;
 	u8 bstatus[2], num_downstream, *ksv_fifo;
 	int ret, i, tries = 3;
 
@@ -523,6 +524,9 @@ int intel_hdcp_auth_downstream(struct intel_digital_port *intel_dig_port,
 	if (num_downstream == 0)
 		return -EINVAL;
 
+	hdcp->topology_info->device_count = num_downstream;
+	hdcp->topology_info->depth = DRM_HDCP_DEPTH(bstatus[1]);
+
 	ksv_fifo = kcalloc(DRM_HDCP_KSV_LEN, num_downstream, GFP_KERNEL);
 	if (!ksv_fifo)
 		return -ENOMEM;
@@ -536,6 +540,8 @@ int intel_hdcp_auth_downstream(struct intel_digital_port *intel_dig_port,
 		return -EPERM;
 	}
 
+	memcpy(hdcp->topology_info->ksv_list, ksv_fifo,
+	       num_downstream * DRM_HDCP_KSV_LEN);
 	/*
 	 * When V prime mismatches, DP Spec mandates re-read of
 	 * V prime atleast twice.
@@ -562,9 +568,11 @@ int intel_hdcp_auth_downstream(struct intel_digital_port *intel_dig_port,
 }
 
 /* Implements Part 1 of the HDCP authorization procedure */
-static int intel_hdcp_auth(struct intel_digital_port *intel_dig_port,
-			   const struct intel_hdcp_shim *shim)
+static int intel_hdcp_auth(struct intel_connector *connector)
 {
+	struct intel_digital_port *intel_dig_port = conn_to_dig_port(connector);
+	struct intel_hdcp *hdcp = &connector->hdcp;
+	const struct intel_hdcp_shim *shim = hdcp->shim;
 	struct drm_i915_private *dev_priv;
 	enum port port;
 	unsigned long r0_prime_gen_start;
@@ -635,15 +643,20 @@ static int intel_hdcp_auth(struct intel_digital_port *intel_dig_port,
 		return -EPERM;
 	}
 
+	hdcp->topology_info->ver_in_force = DRM_MODE_HDCP14_IN_FORCE;
+	memcpy(hdcp->topology_info->bksv, bksv.shim, DRM_MODE_HDCP_KSV_LEN);
+
 	I915_WRITE(PORT_HDCP_BKSVLO(port), bksv.reg[0]);
 	I915_WRITE(PORT_HDCP_BKSVHI(port), bksv.reg[1]);
 
 	ret = shim->repeater_present(intel_dig_port, &repeater_present);
 	if (ret)
 		return ret;
-	if (repeater_present)
+	if (repeater_present) {
 		I915_WRITE(HDCP_REP_CTL,
 			   intel_hdcp_get_repeater_ctl(intel_dig_port));
+		hdcp->topology_info->is_repeater = true;
+	}
 
 	ret = shim->toggle_signalling(intel_dig_port, true);
 	if (ret)
@@ -708,7 +721,7 @@ static int intel_hdcp_auth(struct intel_digital_port *intel_dig_port,
 	 */
 
 	if (repeater_present)
-		return intel_hdcp_auth_downstream(intel_dig_port, shim);
+		return intel_hdcp_auth_downstream(hdcp, intel_dig_port);
 
 	DRM_DEBUG_KMS("HDCP is enabled (no repeater present)\n");
 	return 0;
@@ -739,13 +752,18 @@ static int _intel_hdcp_disable(struct intel_connector *connector)
 		return ret;
 	}
 
+	memset(hdcp->topology_info, 0, sizeof(struct hdcp_topology_info));
+
+	if (drm_connector_update_hdcp_topology_property(&connector->base,
+						connector->hdcp.topology_info))
+		DRM_ERROR("Downstream_info update failed.\n");
+
 	DRM_DEBUG_KMS("HDCP is disabled\n");
 	return 0;
 }
 
 static int _intel_hdcp_enable(struct intel_connector *connector)
 {
-	struct intel_hdcp *hdcp = &connector->hdcp;
 	struct drm_i915_private *dev_priv = connector->base.dev->dev_private;
 	int i, ret, tries = 3;
 
@@ -770,9 +788,13 @@ static int _intel_hdcp_enable(struct intel_connector *connector)
 
 	/* Incase of authentication failures, HDCP spec expects reauth. */
 	for (i = 0; i < tries; i++) {
-		ret = intel_hdcp_auth(conn_to_dig_port(connector), hdcp->shim);
+		ret = intel_hdcp_auth(connector);
 		if (!ret) {
-			hdcp->hdcp_encrypted = true;
+			connector->hdcp.hdcp_encrypted = true;
+			if (drm_connector_update_hdcp_topology_property(
+					&connector->base,
+					connector->hdcp.topology_info))
+				DRM_ERROR("Downstream_info update failed.\n");
 			return 0;
 		}
 
@@ -1206,6 +1228,12 @@ static int hdcp2_authentication_key_exchange(struct intel_connector *connector)
 		return -EPERM;
 	}
 
+	hdcp->topology_info->ver_in_force = DRM_MODE_HDCP22_IN_FORCE;
+	hdcp->topology_info->content_type = hdcp->content_type;
+	memcpy(hdcp->topology_info->bksv, msgs.send_cert.cert_rx.receiver_id,
+	       HDCP_2_2_RECEIVER_ID_LEN);
+	hdcp->topology_info->is_repeater = hdcp->is_repeater;
+
 	/*
 	 * Here msgs.no_stored_km will hold msgs corresponding to the km
 	 * stored also.
@@ -1397,6 +1425,11 @@ int hdcp2_authenticate_repeater_topology(struct intel_connector *connector)
 		return -EPERM;
 	}
 
+	hdcp->topology_info->device_count = device_cnt;
+	hdcp->topology_info->depth = HDCP_2_2_DEPTH(rx_info[0]);
+	memcpy(hdcp->topology_info->ksv_list, msgs.recvid_list.receiver_ids,
+	       device_cnt * HDCP_2_2_RECEIVER_ID_LEN);
+
 	ret = hdcp2_verify_rep_topology_prepare_ack(connector,
 						    &msgs.recvid_list,
 						    &msgs.rep_ack);
@@ -1583,6 +1616,12 @@ static int _intel_hdcp2_enable(struct intel_connector *connector)
 	if (ret) {
 		DRM_DEBUG_KMS("HDCP2 Type%d  Enabling Failed. (%d)\n",
 			      hdcp->content_type, ret);
+
+		memset(hdcp->topology_info, 0,
+		       sizeof(struct hdcp_topology_info));
+		drm_connector_update_hdcp_topology_property(&connector->base,
+							  hdcp->topology_info);
+
 		return ret;
 	}
 
@@ -1590,12 +1629,16 @@ static int _intel_hdcp2_enable(struct intel_connector *connector)
 		      connector->base.name, connector->base.base.id,
 		      hdcp->content_type);
 
+	drm_connector_update_hdcp_topology_property(&connector->base,
+						    hdcp->topology_info);
 	hdcp->hdcp2_encrypted = true;
+
 	return 0;
 }
 
 static int _intel_hdcp2_disable(struct intel_connector *connector)
 {
+	struct intel_hdcp *hdcp = &connector->hdcp;
 	int ret;
 
 	DRM_DEBUG_KMS("[%s:%d] HDCP2.2 is being Disabled\n",
@@ -1606,8 +1649,11 @@ static int _intel_hdcp2_disable(struct intel_connector *connector)
 	if (hdcp2_deauthenticate_port(connector) < 0)
 		DRM_DEBUG_KMS("Port deauth failed.\n");
 
-	connector->hdcp.hdcp2_encrypted = false;
+	hdcp->hdcp2_encrypted = false;
 
+	memset(hdcp->topology_info, 0, sizeof(struct hdcp_topology_info));
+	drm_connector_update_hdcp_topology_property(&connector->base,
+						    hdcp->topology_info);
 	return ret;
 }
 
@@ -1824,10 +1870,17 @@ int intel_hdcp_init(struct intel_connector *connector,
 	ret =
 	drm_connector_attach_content_protection_property(&connector->base,
 							 hdcp->hdcp2_supported);
-	if (ret) {
-		hdcp->hdcp2_supported = false;
-		kfree(hdcp->port_data.streams);
-		return ret;
+	if (ret)
+		goto err_exit;
+
+	ret = drm_connector_attach_hdcp_topology_property(&connector->base);
+	if (ret)
+		goto err_exit;
+
+	hdcp->topology_info = kzalloc(sizeof(*hdcp->topology_info), GFP_KERNEL);
+	if (!hdcp->topology_info) {
+		ret = -ENOMEM;
+		goto err_exit;
 	}
 
 	hdcp->shim = shim;
@@ -1837,6 +1890,12 @@ int intel_hdcp_init(struct intel_connector *connector,
 	init_waitqueue_head(&hdcp->cp_irq_queue);
 
 	return 0;
+
+err_exit:
+	hdcp->hdcp2_supported = false;
+	kfree(hdcp->port_data.streams);
+
+	return ret;
 }
 
 int intel_hdcp_enable(struct intel_connector *connector, u8 content_type)
include/drm/drm_hdcp.h +1 -0
index fdd65a14f4db..330e34715aa4 100644
@@ -23,6 +23,7 @@
 #define DRM_HDCP_V_PRIME_PART_LEN		4
 #define DRM_HDCP_V_PRIME_NUM_PARTS		5
 #define DRM_HDCP_NUM_DOWNSTREAM(x)		(x & 0x7f)
+#define DRM_HDCP_DEPTH(x)			((x) & 0x7)
 #define DRM_HDCP_MAX_CASCADE_EXCEEDED(x)	(x & BIT(3))
 #define DRM_HDCP_MAX_DEVICE_EXCEEDED(x)		(x & BIT(7))
 
Signature · 1 line
2.19.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#25 lore raw

✗ Fi.CI.CHECKPATCH: warning for HDCP2.2 Phase II (rev5)

In reply to Ramalingam C
== Series Details ==

== Series Details ==

Series: HDCP2.2 Phase II (rev5)
URL : https://patchwork.freedesktop.org/series/57232/
State : warning

== Summary ==

$ dim checkpatch origin/drm-tip
932360ca743e drm: move content protection property to mode_config
1e7b8941c421 drm/i915: debugfs: HDCP2.2 capability read
6d5f2d176b2e drm: Add Content protection type property
-:63: CHECK:LINE_SPACING: Please use a blank line after function/struct/union/enum declarations
#63: FILE: drivers/gpu/drm/drm_connector.c:864:
+};
+DRM_ENUM_NAME_FN(drm_get_hdcp_content_type_name,

-:134: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #134: FILE: drivers/gpu/drm/drm_connector.c:1592:
+ prop = drm_property_create_enum(dev, 0, "HDCP Content Type",
+ drm_hdcp_content_type_enum_list,

-:135: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #135: FILE: drivers/gpu/drm/drm_connector.c:1593:
+ ARRAY_SIZE(

total: 0 errors, 0 warnings, 3 checks, 163 lines checked
624b5157e8a7 drm/i915: Attach content type property
7b179fdbc338 drivers: create binary sysfs for class
-:47: WARNING:EXPORT_SYMBOL: EXPORT_SYMBOL(foo); should immediately follow its function/variable #47: FILE: drivers/base/class.c:597:
+EXPORT_SYMBOL_GPL(class_create_bin_file);

-:60: CHECK:AVOID_EXTERNS: extern prototypes should be avoided in .h files #60: FILE: include/linux/device.h:486:
+extern int __must_check class_create_bin_file(struct class *class,

-:62: CHECK:AVOID_EXTERNS: extern prototypes should be avoided in .h files #62: FILE: include/linux/device.h:488:
+extern void class_remove_bin_file(struct class *class,

total: 0 errors, 1 warnings, 2 checks, 41 lines checked
f3829f4402a1 drm: HDCP SRM binary sysfs for subsystem
-:32: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #32:
new file mode 100644

-:346: WARNING:SYMBOLIC_PERMS: Symbolic permissions 'S_IWUSR' are not preferred. Consider using octal permissions '0200'. #346: FILE: drivers/gpu/drm/drm_hdcp.c:310:
+ .attr = {.name = "hdcp_srm", .mode = S_IWUSR},

total: 0 errors, 2 warnings, 0 checks, 419 lines checked
a58112309f8b drm/i915: SRM revocation check for HDCP1.4 and 2.2
4a5a59c2d7bb drm/hdcp: gathering hdcp related code into drm_hdcp.c
-:140: CHECK:LINE_SPACING: Please use a blank line after function/struct/union/enum declarations #140: FILE: drivers/gpu/drm/drm_hdcp.c:362:
+};
+DRM_ENUM_NAME_FN(drm_get_content_protection_name, drm_cp_enum_list)

-:146: CHECK:LINE_SPACING: Please use a blank line after function/struct/union/enum declarations #146: FILE: drivers/gpu/drm/drm_hdcp.c:368:
+};
+DRM_ENUM_NAME_FN(drm_get_hdcp_content_type_name,

-:175: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #175: FILE: drivers/gpu/drm/drm_hdcp.c:397:
+int drm_connector_attach_content_protection_property(

-:199: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #199: FILE: drivers/gpu/drm/drm_hdcp.c:421:
+ prop = drm_property_create_enum(dev, 0, "HDCP Content Type",
+ drm_hdcp_content_type_enum_list,

-:200: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #200: FILE: drivers/gpu/drm/drm_hdcp.c:422:
+ ARRAY_SIZE(

-:236: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #236: FILE: include/drm/drm_hdcp.h:304:
+int drm_connector_attach_content_protection_property(

total: 0 errors, 0 warnings, 6 checks, 205 lines checked 752b736e5c40 drm: uevent for connector status change dee5ccc79e99 drm/hdcp: update content protection property with uevent -:30: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #30: FILE: drivers/gpu/drm/drm_hdcp.c:444:
+ drm_sysfs_connector_status_event(connector,
+ dev->mode_config.content_protection_property);

total: 0 errors, 0 warnings, 1 checks, 23 lines checked aa7b21ddf909 drm/i915: update the hdcp state with uevent a3da0ea7bc24 drm: Add CP downstream_info property
-:135: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #135: FILE: drivers/gpu/drm/drm_hdcp.c:496:
+drm_connector_update_hdcp_topology_property(struct drm_connector *connector,
+ const struct hdcp_topology_info *info)

-:144: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #144: FILE: drivers/gpu/drm/drm_hdcp.c:505:
+ ret = drm_property_replace_global_blob(dev,
+ &connector->hdcp_topology_blob_ptr,

-:183: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #183: FILE: include/drm/drm_hdcp.h:309:
+int drm_connector_attach_hdcp_topology_property(

-:185: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #185: FILE: include/drm/drm_hdcp.h:311:
+int drm_connector_update_hdcp_topology_property(

total: 0 errors, 0 warnings, 4 checks, 193 lines checked 6a462ed58c3b drm/i915: Populate downstream info for HDCP
-:124: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #124: FILE: drivers/gpu/drm/i915/intel_hdcp.c:759:
+ if (drm_connector_update_hdcp_topology_property(&connector->base,
+ connector->hdcp.topology_info))

-:146: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #146: FILE: drivers/gpu/drm/i915/intel_hdcp.c:795:
+ if (drm_connector_update_hdcp_topology_property(

-:186: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #186: FILE: drivers/gpu/drm/i915/intel_hdcp.c:1624:
+ drm_connector_update_hdcp_topology_property(&connector->base,
+ hdcp->topology_info);

total: 0 errors, 0 warnings, 3 checks, 216 lines checked

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#26 lore raw

✗ Fi.CI.SPARSE: warning for HDCP2.2 Phase II (rev5)

In reply to Ramalingam C
== Series Details ==

== Series Details ==

Series: HDCP2.2 Phase II (rev5)
URL : https://patchwork.freedesktop.org/series/57232/
State : warning

== Summary ==

$ dim sparse origin/drm-tip
Sparse version: v0.5.2
Commit: drm: move content protection property to mode_config
Okay!

Commit: drm/i915: debugfs: HDCP2.2 capability read Okay!

Commit: drm: Add Content protection type property
Okay!

Commit: drm/i915: Attach content type property
Okay!

Commit: drivers: create binary sysfs for class
Okay!

Commit: drm: HDCP SRM binary sysfs for subsystem
+drivers/gpu/drm/drm_hdcp.c:27:3: warning: symbol 'srm_data' was not declared. Should it be static? +drivers/gpu/drm/drm_hdcp.c:342:6: warning: symbol 'drm_teardown_hdcp_srm' was not declared. Should it be static? +./include/linux/slab.h:666:13: error: undefined identifier '__builtin_mul_overflow' +./include/linux/slab.h:666:13: warning: call with no type!

Commit: drm/i915: SRM revocation check for HDCP1.4 and 2.2 Okay!

Commit: drm/hdcp: gathering hdcp related code into drm_hdcp.c Okay!

Commit: drm: uevent for connector status change
Okay!

Commit: drm/hdcp: update content protection property with uevent Okay!

Commit: drm/i915: update the hdcp state with uevent Okay!

Commit: drm: Add CP downstream_info property
Okay!

Commit: drm/i915: Populate downstream info for HDCP Okay!

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#27 lore raw

✓ Fi.CI.BAT: success for HDCP2.2 Phase II (rev5)

In reply to Ramalingam C
== Series Details ==

== Series Details ==

Series: HDCP2.2 Phase II (rev5)
URL : https://patchwork.freedesktop.org/series/57232/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_5878 -> Patchwork_12693
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://patchwork.freedesktop.org/api/1.0/series/57232/revisions/5/mbox/

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

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

### IGT changes ###

#### Possible regressions ####

* {igt@kms_content_protection@srm} (NEW):

    - fi-icl-y:           NOTRUN -> SKIP
    - {fi-icl-u3}:        NOTRUN -> SKIP
    - fi-icl-u2:          NOTRUN -> SKIP

New tests
---------

New tests have been introduced between CI_DRM_5878 and Patchwork_12693:

### New IGT tests (1) ###

* igt@kms_content_protection@srm:
- Statuses : 41 skip(s)
- Exec time: [0.0, 0.00] s

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

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

### IGT changes ###

#### Issues hit ####

* igt@gem_ctx_create@basic-files:
- fi-gdg-551: NOTRUN -> SKIP [fdo#109271] +109

* igt@i915_module_load@reload-with-fault-injection:
- fi-skl-6770hq: PASS -> DMESG-WARN [fdo#108529] +2

* igt@i915_selftest@live_contexts:
- fi-skl-gvtdvm: PASS -> DMESG-FAIL [fdo#110235 ]

* igt@i915_selftest@live_uncore:
- fi-kbl-8809g: PASS -> DMESG-FAIL [fdo#110210]

* igt@kms_busy@basic-flip-a:
- fi-bsw-n3050: NOTRUN -> SKIP [fdo#109271] / [fdo#109278] +1

* igt@kms_busy@basic-flip-c:
- fi-gdg-551: NOTRUN -> SKIP [fdo#109271] / [fdo#109278]

* igt@kms_chamelium@hdmi-crc-fast:
- fi-bsw-n3050: NOTRUN -> SKIP [fdo#109271] +65

* igt@kms_chamelium@vga-edid-read:
- fi-hsw-4770r: NOTRUN -> SKIP [fdo#109271] +48

* igt@kms_content_protection@atomic:

    - fi-skl-gvtdvm:      NOTRUN -> FAIL [fdo#108739] / [fdo#110325] +1
    - fi-skl-iommu:       NOTRUN -> SKIP [fdo#109271] +2
    - fi-elk-e7500:       NOTRUN -> SKIP [fdo#109271] +2
    - fi-whl-u:           NOTRUN -> SKIP [fdo#109271] +2
    - fi-cfl-8700k:       NOTRUN -> SKIP [fdo#109271] +2
    - fi-pnv-d510:        NOTRUN -> SKIP [fdo#109271] +2
    - fi-snb-2520m:       NOTRUN -> SKIP [fdo#109271] +2
    - fi-skl-guc:         NOTRUN -> SKIP [fdo#109271] +2
    - fi-hsw-peppy:       NOTRUN -> SKIP [fdo#109271] +2
    - fi-skl-lmem:        NOTRUN -> FAIL [fdo#108739] +1
    - fi-apl-guc:         NOTRUN -> FAIL [fdo#108739] / [fdo#110321] +1

* igt@kms_content_protection@legacy:

    - fi-cfl-guc:         NOTRUN -> SKIP [fdo#109271] +2
    - fi-snb-2600:        NOTRUN -> SKIP [fdo#109271] +2
    - fi-skl-6770hq:      NOTRUN -> FAIL [fdo#108739]
    - fi-bxt-j4205:       NOTRUN -> SKIP [fdo#109271] +2
    - fi-kbl-r:           NOTRUN -> SKIP [fdo#109271] +2
    - fi-cfl-8109u:       NOTRUN -> FAIL [fdo#108739] +1
    - fi-kbl-guc:         NOTRUN -> SKIP [fdo#109271] +2
    - fi-bdw-gvtdvm:      NOTRUN -> SKIP [fdo#109271] +2
    - fi-bwr-2160:        NOTRUN -> SKIP [fdo#109271] +2
    - fi-hsw-4770:        NOTRUN -> SKIP [fdo#109271] +2
    - fi-ivb-3770:        NOTRUN -> SKIP [fdo#109271] +2
    - fi-kbl-8809g:       NOTRUN -> SKIP [fdo#109271] +2
    - fi-icl-y:           NOTRUN -> SKIP [fdo#109300] +1

* {igt@kms_content_protection@srm} (NEW):

    - fi-ilk-650:         NOTRUN -> SKIP [fdo#109271] +2
    - fi-bsw-kefka:       NOTRUN -> SKIP [fdo#109271] +2
    - fi-byt-clapper:     NOTRUN -> SKIP [fdo#109271] +2
    - fi-cfl-8109u:       NOTRUN -> SKIP [fdo#109271]
    - fi-blb-e6850:       NOTRUN -> SKIP [fdo#109271] +2
    - fi-bdw-5557u:       NOTRUN -> SKIP [fdo#109271] +2
    - {fi-kbl-7567u}:     NOTRUN -> SKIP [fdo#109271]
    - fi-skl-6600u:       NOTRUN -> SKIP [fdo#109271] +2
    - fi-byt-j1900:       NOTRUN -> SKIP [fdo#109271] +2
    - fi-skl-lmem:        NOTRUN -> SKIP [fdo#109271]
    - fi-apl-guc:         NOTRUN -> SKIP [fdo#109271]
    - fi-byt-n2820:       NOTRUN -> SKIP [fdo#109271] +2
    - fi-skl-6770hq:      NOTRUN -> SKIP [fdo#109271] +1
    - fi-skl-6700k2:      NOTRUN -> SKIP [fdo#109271]
    - fi-skl-6260u:       NOTRUN -> SKIP [fdo#109271]
    - fi-skl-gvtdvm:      NOTRUN -> SKIP [fdo#109271]
    - fi-kbl-x1275:       NOTRUN -> SKIP [fdo#109271]

* igt@kms_flip@basic-flip-vs-dpms:
- fi-skl-6770hq: PASS -> SKIP [fdo#109271] +33

* igt@kms_pipe_crc_basic@bad-source:
- fi-skl-6770hq: PASS -> DMESG-WARN [fdo#108833]

#### Possible fixes ####

* igt@gem_mmap@basic-small-bo:
- {fi-icl-u3}: DMESG-WARN [fdo#107724] -> PASS

* igt@i915_selftest@live_uncore:
- fi-ivb-3770: DMESG-FAIL [fdo#110210] -> PASS

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

[fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
[fdo#108529]: https://bugs.freedesktop.org/show_bug.cgi?id=108529
[fdo#108739]: https://bugs.freedesktop.org/show_bug.cgi?id=108739
[fdo#108833]: https://bugs.freedesktop.org/show_bug.cgi?id=108833
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#109300]: https://bugs.freedesktop.org/show_bug.cgi?id=109300
[fdo#110210]: https://bugs.freedesktop.org/show_bug.cgi?id=110210
[fdo#110235 ]: https://bugs.freedesktop.org/show_bug.cgi?id=110235
[fdo#110321]: https://bugs.freedesktop.org/show_bug.cgi?id=110321
[fdo#110322]: https://bugs.freedesktop.org/show_bug.cgi?id=110322
[fdo#110325]: https://bugs.freedesktop.org/show_bug.cgi?id=110325

Participating hosts (46 -> 45)
------------------------------

Additional (3): fi-hsw-4770r fi-gdg-551 fi-bsw-n3050
Missing (4): fi-kbl-soraka fi-ilk-m540 fi-byt-squawks fi-bsw-cyan

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

* IGT: IGT_4931 -> IGTPW_2794
* Linux: CI_DRM_5878 -> Patchwork_12693

CI_DRM_5878: ae3367460fdf5e6f5a47038c1281b502817184e1 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_2794: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2794/
IGT_4931: 019f892e5d1a0a9643cb726c47ce2d99c14b444f @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_12693: 6a462ed58c3b97c76fd4966cfc076d89bccf0e96 @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

6a462ed58c3b drm/i915: Populate downstream info for HDCP a3da0ea7bc24 drm: Add CP downstream_info property aa7b21ddf909 drm/i915: update the hdcp state with uevent dee5ccc79e99 drm/hdcp: update content protection property with uevent 752b736e5c40 drm: uevent for connector status change 4a5a59c2d7bb drm/hdcp: gathering hdcp related code into drm_hdcp.c a58112309f8b drm/i915: SRM revocation check for HDCP1.4 and 2.2 f3829f4402a1 drm: HDCP SRM binary sysfs for subsystem 7b179fdbc338 drivers: create binary sysfs for class 624b5157e8a7 drm/i915: Attach content type property 6d5f2d176b2e drm: Add Content protection type property 1e7b8941c421 drm/i915: debugfs: HDCP2.2 capability read 932360ca743e drm: move content protection property to mode_config

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_12693/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#28 lore raw

✓ Fi.CI.IGT: success for HDCP2.2 Phase II (rev5)

In reply to Ramalingam C
== Series Details ==

== Series Details ==

Series: HDCP2.2 Phase II (rev5)
URL : https://patchwork.freedesktop.org/series/57232/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_5878_full -> Patchwork_12693_full
====================================================

Summary
-------

**SUCCESS**

No regressions found.

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

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

### IGT changes ###

#### Possible regressions ####

* {igt@kms_content_protection@type1} (NEW):
- shard-iclb: NOTRUN -> SKIP +3

New tests
---------

New tests have been introduced between CI_DRM_5878_full and Patchwork_12693_full:

### New IGT tests (4) ###

* igt@kms_content_protection@content_type_change:
- Statuses : 6 skip(s)
- Exec time: [0.0, 0.01] s

* igt@kms_content_protection@srm:
- Statuses : 6 skip(s)
- Exec time: [0.0, 0.01] s

* igt@kms_content_protection@type1:
- Statuses : 5 skip(s)
- Exec time: [0.0, 0.01] s

* igt@kms_content_protection@type1_mei_interface:
- Statuses : 6 skip(s)
- Exec time: [0.00, 0.01] s

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

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

### IGT changes ###

#### Issues hit ####

* igt@gem_ctx_isolation@vcs1-nonpriv:
- shard-glk: NOTRUN -> SKIP [fdo#109271] +44

* igt@gem_exec_schedule@pi-ringfull-bsd2:
- shard-iclb: NOTRUN -> SKIP [fdo#109276] +2

* igt@gem_mmap_gtt@hang:
- shard-iclb: PASS -> FAIL [fdo#109677]

* igt@gem_pwrite@huge-cpu-fbr:
- shard-iclb: NOTRUN -> SKIP [fdo#109290]

* igt@gem_tiled_fence_blits@normal:
- shard-iclb: PASS -> TIMEOUT [fdo#109673]

* igt@gem_tiled_pread_pwrite:
- shard-iclb: PASS -> INCOMPLETE [fdo#109100]

* igt@i915_pm_rpm@fences-dpms:
- shard-skl: PASS -> INCOMPLETE [fdo#107807]

* igt@i915_pm_rps@min-max-config-loaded:
- shard-iclb: NOTRUN -> FAIL [fdo#108059]

* igt@kms_busy@basic-modeset-f:
- shard-glk: NOTRUN -> SKIP [fdo#109271] / [fdo#109278] +3

* igt@kms_busy@extended-modeset-hang-newfb-render-a:
- shard-kbl: PASS -> DMESG-WARN [fdo#110222]

* igt@kms_busy@extended-modeset-hang-newfb-with-reset-render-a:

    - shard-iclb:         PASS -> DMESG-WARN [fdo#110222]
    - shard-glk:          NOTRUN -> DMESG-WARN [fdo#110222]
    - shard-kbl:          NOTRUN -> DMESG-WARN [fdo#110222]

* igt@kms_busy@extended-modeset-hang-newfb-with-reset-render-b:
- shard-snb: PASS -> DMESG-WARN [fdo#110222] +1

* igt@kms_busy@extended-modeset-hang-newfb-with-reset-render-c:
- shard-skl: NOTRUN -> DMESG-WARN [fdo#110222]

* igt@kms_chamelium@dp-hpd-storm-disable:
- shard-iclb: NOTRUN -> SKIP [fdo#109284]

* igt@kms_cursor_crc@cursor-128x42-offscreen:
- shard-skl: PASS -> FAIL [fdo#103232]

* igt@kms_cursor_crc@cursor-64x64-onscreen:
- shard-glk: NOTRUN -> FAIL [fdo#103232]

* igt@kms_cursor_legacy@2x-long-cursor-vs-flip-legacy:
- shard-kbl: NOTRUN -> SKIP [fdo#109271] +40

* igt@kms_cursor_legacy@cursor-vs-flip-atomic-transitions-varying-size:
- shard-iclb: PASS -> FAIL [fdo#103355]

* igt@kms_flip@2x-flip-vs-panning-vs-hang-interruptible:
- shard-iclb: NOTRUN -> SKIP [fdo#109274] +1

* igt@kms_flip@2x-plain-flip-fb-recreate-interruptible:
- shard-glk: PASS -> FAIL [fdo#100368]

* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-render:
- shard-iclb: PASS -> FAIL [fdo#103167] +3

* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-cur-indfb-draw-render:
- shard-glk: PASS -> FAIL [fdo#103167]

* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-shrfb-draw-mmap-cpu:
- shard-apl: NOTRUN -> SKIP [fdo#109271] +26

* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-shrfb-msflip-blt:
- shard-snb: NOTRUN -> SKIP [fdo#109271] +40

* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-cur-indfb-draw-blt:
- shard-iclb: NOTRUN -> SKIP [fdo#109280] +2

* igt@kms_frontbuffer_tracking@fbcpsr-rgb101010-draw-mmap-wc:
- shard-iclb: PASS -> FAIL [fdo#105682] / [fdo#109247] +1

* igt@kms_frontbuffer_tracking@psr-1p-primscrn-shrfb-plflip-blt:
- shard-skl: NOTRUN -> FAIL [fdo#103167]

* igt@kms_frontbuffer_tracking@psr-rgb101010-draw-blt:
- shard-iclb: PASS -> FAIL [fdo#109247] +22

* igt@kms_pipe_crc_basic@hang-read-crc-pipe-d:
- shard-kbl: NOTRUN -> SKIP [fdo#109271] / [fdo#109278] +3

* igt@kms_pipe_crc_basic@nonblocking-crc-pipe-b:
- shard-skl: PASS -> FAIL [fdo#107362]

* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-d:
- shard-skl: NOTRUN -> SKIP [fdo#109271] / [fdo#109278] +13

* igt@kms_plane@pixel-format-pipe-b-planes-source-clamping:
- shard-glk: PASS -> SKIP [fdo#109271] +1

* igt@kms_plane_alpha_blend@pipe-a-alpha-transparant-fb:
- shard-kbl: NOTRUN -> FAIL [fdo#108145]

* igt@kms_plane_alpha_blend@pipe-a-constant-alpha-max:
- shard-skl: NOTRUN -> FAIL [fdo#108145] +2

* igt@kms_plane_alpha_blend@pipe-c-constant-alpha-max:
- shard-glk: NOTRUN -> FAIL [fdo#108145] +1

* igt@kms_plane_alpha_blend@pipe-c-coverage-7efc:
- shard-snb: NOTRUN -> SKIP [fdo#109271] / [fdo#109278] +2

* igt@kms_plane_scaling@pipe-c-scaler-with-clipping-clamping:
- shard-apl: NOTRUN -> SKIP [fdo#109271] / [fdo#109278] +2

* igt@kms_psr@cursor_blt:
- shard-iclb: PASS -> FAIL [fdo#107383] / [fdo#110215] +4

* igt@kms_psr@psr2_cursor_plane_onoff:
- shard-iclb: PASS -> SKIP [fdo#109441] +2

* igt@kms_rotation_crc@multiplane-rotation-cropping-bottom:
- shard-kbl: PASS -> DMESG-FAIL [fdo#105763]

* igt@kms_rotation_crc@multiplane-rotation-cropping-top:
- shard-kbl: PASS -> FAIL [fdo#109016]

* igt@kms_vblank@pipe-a-ts-continuation-dpms-rpm:
- shard-apl: PASS -> FAIL [fdo#104894] +1

* igt@perf_pmu@busy-accuracy-50-vcs1:
- shard-skl: NOTRUN -> SKIP [fdo#109271] +181

#### Possible fixes ####

* igt@gem_linear_blits@normal:
- shard-iclb: TIMEOUT [fdo#109673] -> PASS

* igt@i915_pm_rpm@cursor-dpms:
- shard-glk: DMESG-WARN -> PASS +1

* igt@i915_pm_rpm@debugfs-forcewake-user:
- shard-skl: INCOMPLETE [fdo#107807] -> PASS

* igt@i915_pm_rpm@i2c:
- shard-iclb: DMESG-WARN [fdo#109982] -> PASS

* igt@kms_atomic_transition@1x-modeset-transitions-nonblocking-fencing:
- shard-apl: FAIL [fdo#109660] -> PASS

* igt@kms_atomic_transition@plane-toggle-modeset-transition:
- shard-apl: INCOMPLETE [fdo#103927] -> PASS

* igt@kms_busy@extended-modeset-hang-newfb-render-b:
- shard-kbl: DMESG-WARN [fdo#110222] -> PASS
- shard-snb: DMESG-WARN [fdo#110222] -> PASS

* igt@kms_busy@extended-pageflip-modeset-hang-oldfb-render-c:
- shard-iclb: DMESG-WARN [fdo#110222] -> PASS

* igt@kms_cursor_legacy@cursor-vs-flip-varying-size:
- shard-iclb: FAIL [fdo#103355] -> PASS +1

* igt@kms_flip@modeset-vs-vblank-race:
- shard-kbl: FAIL [fdo#103060] -> PASS

* igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-indfb-draw-blt:
- shard-iclb: FAIL [fdo#109247] -> PASS +16

* igt@kms_frontbuffer_tracking@fbcpsr-1p-pri-indfb-multidraw:
- shard-iclb: FAIL [fdo#103167] -> PASS +1

* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-render:
- shard-skl: FAIL [fdo#105682] -> PASS

* igt@kms_frontbuffer_tracking@fbcpsr-rgb101010-draw-pwrite:
- shard-iclb: FAIL [fdo#105682] / [fdo#109247] -> PASS

* igt@kms_plane@plane-panning-bottom-right-suspend-pipe-c-planes:
- shard-kbl: INCOMPLETE [fdo#103665] -> PASS +1

* igt@kms_plane_scaling@pipe-b-scaler-with-rotation:
- shard-glk: SKIP [fdo#109271] / [fdo#109278] -> PASS

* igt@kms_psr@cursor_render:
- shard-iclb: FAIL [fdo#107383] / [fdo#110215] -> PASS +1

* igt@kms_psr@psr2_no_drrs:
- shard-iclb: SKIP [fdo#109441] -> PASS +2

* igt@kms_setmode@basic:
- shard-kbl: FAIL [fdo#99912] -> PASS

* igt@kms_vblank@pipe-a-ts-continuation-modeset-rpm:
- shard-apl: FAIL [fdo#104894] -> PASS +1

* igt@perf@polling:
- shard-iclb: FAIL [fdo#108587] -> PASS

#### Warnings ####

* igt@i915_pm_rpm@dpms-mode-unset-non-lpsp:
- shard-skl: SKIP [fdo#109271] -> INCOMPLETE [fdo#107807]

* igt@runner@aborted:
- shard-glk: ( 3 FAIL ) [fdo#109373] / [k.org#202321] -> FAIL [fdo#109373] / [k.org#202321]

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

[fdo#100368]: https://bugs.freedesktop.org/show_bug.cgi?id=100368
[fdo#103060]: https://bugs.freedesktop.org/show_bug.cgi?id=103060
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103232]: https://bugs.freedesktop.org/show_bug.cgi?id=103232
[fdo#103355]: https://bugs.freedesktop.org/show_bug.cgi?id=103355
[fdo#103665]: https://bugs.freedesktop.org/show_bug.cgi?id=103665
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#104894]: https://bugs.freedesktop.org/show_bug.cgi?id=104894
[fdo#105682]: https://bugs.freedesktop.org/show_bug.cgi?id=105682
[fdo#105763]: https://bugs.freedesktop.org/show_bug.cgi?id=105763
[fdo#107362]: https://bugs.freedesktop.org/show_bug.cgi?id=107362
[fdo#107383]: https://bugs.freedesktop.org/show_bug.cgi?id=107383
[fdo#107807]: https://bugs.freedesktop.org/show_bug.cgi?id=107807
[fdo#108059]: https://bugs.freedesktop.org/show_bug.cgi?id=108059
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#108587]: https://bugs.freedesktop.org/show_bug.cgi?id=108587
[fdo#109016]: https://bugs.freedesktop.org/show_bug.cgi?id=109016
[fdo#109100]: https://bugs.freedesktop.org/show_bug.cgi?id=109100
[fdo#109247]: https://bugs.freedesktop.org/show_bug.cgi?id=109247
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109274]: https://bugs.freedesktop.org/show_bug.cgi?id=109274
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#109280]: https://bugs.freedesktop.org/show_bug.cgi?id=109280
[fdo#109284]: https://bugs.freedesktop.org/show_bug.cgi?id=109284
[fdo#109290]: https://bugs.freedesktop.org/show_bug.cgi?id=109290
[fdo#109373]: https://bugs.freedesktop.org/show_bug.cgi?id=109373
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#109660]: https://bugs.freedesktop.org/show_bug.cgi?id=109660
[fdo#109673]: https://bugs.freedesktop.org/show_bug.cgi?id=109673
[fdo#109677]: https://bugs.freedesktop.org/show_bug.cgi?id=109677
[fdo#109982]: https://bugs.freedesktop.org/show_bug.cgi?id=109982
[fdo#110215]: https://bugs.freedesktop.org/show_bug.cgi?id=110215
[fdo#110222]: https://bugs.freedesktop.org/show_bug.cgi?id=110222
[fdo#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912
[k.org#202321]: https://bugzilla.kernel.org/show_bug.cgi?id=202321

Participating hosts (10 -> 9)
------------------------------

Missing (1): shard-hsw

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

* IGT: IGT_4931 -> IGTPW_2794
* Linux: CI_DRM_5878 -> Patchwork_12693

CI_DRM_5878: ae3367460fdf5e6f5a47038c1281b502817184e1 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_2794: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2794/
IGT_4931: 019f892e5d1a0a9643cb726c47ce2d99c14b444f @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_12693: 6a462ed58c3b97c76fd4966cfc076d89bccf0e96 @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_12693/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx