Skip to contentSkip to conversation

drm/i915: Add DSC/FEC support info to debugfs

PATCH [email protected] 4 participants 4 messages Apr 3, 2025 – Apr 4, 2025

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

From: Shantam Yashashvi <[email protected]>

---
 drivers/gpu/drm/i915/display/intel_display_debugfs.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
drivers/gpu/drm/i915/display/intel_display_debugfs.c +11 -0
index 057a8ce0c2c97..b8d3a438a34d9 100644
@@ -276,6 +276,7 @@ static void intel_connector_info(struct seq_file *m,
 	struct intel_encoder *encoder =
 		to_intel_encoder(conn_state->best_encoder);
 	const struct drm_display_mode *mode;
+	struct intel_dp *intel_dp;
 
 	seq_printf(m, "[CONNECTOR:%d:%s]: status: %s\n",
 		   connector->base.id, connector->name,
@@ -301,6 +302,16 @@ static void intel_connector_info(struct seq_file *m,
 			intel_dp_mst_info(m, intel_connector);
 		else
 			intel_dp_info(m, intel_connector);
+
+		/* Add DSC and FEC Support Information for DisplayPort / eDP Connectors */
+		intel_dp = intel_attached_dp(intel_connector);
+		if (intel_dp){
+			seq_printf(m, "\tDSC_Sink_Support: %s\n",
+                str_yes_no(drm_dp_sink_supports_dsc(intel_connector->dp.dsc_dpcd)));
+			if (!intel_dp_is_edp(intel_dp))
+				    seq_printf(m, "\tFEC_Sink_Support: %s\n",
+				        str_yes_no(drm_dp_sink_supports_fec(intel_connector->dp.fec_capability)));
+		}
 		break;
 	case DRM_MODE_CONNECTOR_HDMIA:
 		if (encoder->type == INTEL_OUTPUT_HDMI ||
Signature · 1 line
2.25.1
#1 lore raw

✗ Fi.CI.BUILD: failure for drm/i915: Add DSC/FEC support info to debugfs

== Series Details ==

== Series Details ==

Series: drm/i915: Add DSC/FEC support info to debugfs
URL : https://patchwork.freedesktop.org/series/147237/
State : failure

== Summary ==

Error: patch https://patchwork.freedesktop.org/api/1.0/series/147237/revisions/1/mbox/ not applied
Applying: drm/i915: Add DSC/FEC support info to debugfs
error: sha1 information is lacking or useless (drivers/gpu/drm/i915/display/intel_display_debugfs.c).
error: could not build fake ancestor
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 drm/i915: Add DSC/FEC support info to debugfs
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Build failed, no error log produced

#2 lore raw
In reply to [email protected]
Quoted 22 lines · On Fri, Apr 04, 2025 at 12:34:48AM +0530, [email protected] wrote:

From: Shantam Yashashvi <[email protected]>

---
 drivers/gpu/drm/i915/display/intel_display_debugfs.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
drivers/gpu/drm/i915/display/intel_display_debugfs.c +1 -0
index 057a8ce0c2c97..b8d3a438a34d9 100644
@@ -276,6 +276,7 @@ static void intel_connector_info(struct seq_file *m,
 	struct intel_encoder *encoder =
 		to_intel_encoder(conn_state->best_encoder);
 	const struct drm_display_mode *mode;
+	struct intel_dp *intel_dp;
 
 	seq_printf(m, "[CONNECTOR:%d:%s]: status: %s\n",
 		   connector->base.id, connector->name,
@@ -301,6 +302,16 @@ static void intel_connector_info(struct seq_file *m,
 			intel_dp_mst_info(m, intel_connector);
 		else

drivers/gpu/drm/i915/display/intel_display_debugfs.c static void intel_connector_info(struct seq_file *m, · line 313

Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +9 -0
 			intel_dp_info(m, intel_connector);
+
+		/* Add DSC and FEC Support Information for DisplayPort / eDP Connectors */
+		intel_dp = intel_attached_dp(intel_connector);
+		if (intel_dp){
+			seq_printf(m, "\tDSC_Sink_Support: %s\n",
+                str_yes_no(drm_dp_sink_supports_dsc(intel_connector->dp.dsc_dpcd)));
+			if (!intel_dp_is_edp(intel_dp))
+				    seq_printf(m, "\tFEC_Sink_Support: %s\n",
+				        str_yes_no(drm_dp_sink_supports_fec(intel_connector->dp.fec_capability)));

Both of the above info is available already in the connector's i915_dsc_fec_support debugfs entry. As I understood the aim is having each CRTC / connector show its own properties, instead of combinining all those into one debugfs entry (as this is done in i915_display_info). Based on that I don't think more (duplicated) information should be added here.

One issue with the i915_dsc_fec_support entry is that it doesn't show the sink capabilities if the output isn't enabled on the connector, I plan to follow up with a fix for that.

Quoted 7 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +1 -0
+		}
 		break;
 	case DRM_MODE_CONNECTOR_HDMIA:
 		if (encoder->type == INTEL_OUTPUT_HDMI ||
Signature · 1 line
2.25.1
maintainer
#3 lore raw
Quoted 32 lines · Imre Deak
Quoted 31 lines · On Fri, Apr 04, 2025 at 12:34:48AM +0530, [email protected] wrote:

From: Shantam Yashashvi <[email protected]>

---
 drivers/gpu/drm/i915/display/intel_display_debugfs.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
drivers/gpu/drm/i915/display/intel_display_debugfs.c +9 -0
index 057a8ce0c2c97..b8d3a438a34d9 100644
@@ -276,6 +276,7 @@ static void intel_connector_info(struct seq_file *m,
 	struct intel_encoder *encoder =
 		to_intel_encoder(conn_state->best_encoder);
 	const struct drm_display_mode *mode;
+	struct intel_dp *intel_dp;
 
 	seq_printf(m, "[CONNECTOR:%d:%s]: status: %s\n",
 		   connector->base.id, connector->name,
@@ -301,6 +302,16 @@ static void intel_connector_info(struct seq_file *m,
 			intel_dp_mst_info(m, intel_connector);
 		else
 			intel_dp_info(m, intel_connector);
+
+		/* Add DSC and FEC Support Information for DisplayPort / eDP Connectors */
+		intel_dp = intel_attached_dp(intel_connector);
+		if (intel_dp){
+			seq_printf(m, "\tDSC_Sink_Support: %s\n",
+                str_yes_no(drm_dp_sink_supports_dsc(intel_connector->dp.dsc_dpcd)));
+			if (!intel_dp_is_edp(intel_dp))
+				    seq_printf(m, "\tFEC_Sink_Support: %s\n",
Quoted 8 lines

drivers/gpu/drm/i915/display/intel_display_debugfs.c static void intel_connector_info(struct seq_file *m, · line 313

Quoted 1 line
drivers/gpu/drm/i915/display/intel_display_debugfs.c +1 -0
+				        str_yes_no(drm_dp_sink_supports_fec(intel_connector->dp.fec_capability)));

Both of the above info is available already in the connector's i915_dsc_fec_support debugfs entry. As I understood the aim is having each CRTC / connector show its own properties, instead of combinining all those into one debugfs entry (as this is done in i915_display_info). Based on that I don't think more (duplicated) information should be added here.

Agreed. I think the direction should be to reduce stuff from i915_display_info and put it into per-crtc and per-connector debugfs instead.

BR,
Jani.

Quoted 12 lines

One issue with the i915_dsc_fec_support entry is that it doesn't show the sink capabilities if the output isn't enabled on the connector, I plan to follow up with a fix for that.

Quoted 7 lines
drivers/gpu/drm/i915/display/intel_display_debugfs.c +1 -0
+		}
 		break;
 	case DRM_MODE_CONNECTOR_HDMIA:
 		if (encoder->type == INTEL_OUTPUT_HDMI ||
Signature · 1 line
2.25.1
Signature · 1 line
Jani Nikula, Intel