Skip to contentSkip to conversation

drm/i915/dp: Dump the LTTPR PHY descriptors

CI Imre Deak 2 participants 3 messages Sep 9, 2024

Subsystems (3)
lore
Share & tools
lore

Imre Deak

author
#0 lore raw

Dump the descriptor of the detected LTTPRs in non-transparent mode to help the debugging related to LTTPRs easier.

v2: Use drm_dp_dump_lttpr_desc() instead of the driver specific
equivalent.
v3: Add empty line between license and header section. (Ankit)

---

Resending [1] now, after the corresponding DRM core helper is merged to drm-intel-next.

[1] https://lore.kernel.org/all/[email protected]

 drivers/gpu/drm/i915/display/intel_dp_link_training.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/display/intel_dp_link_training.c +5 -1
index f45797c1a2051..b7bd8135c1138 100644
@@ -21,6 +21,8 @@
  * IN THE SOFTWARE.
  */
 
+#include <drm/display/drm_dp_helper.h>
+
 #include <linux/debugfs.h>
 
 #include <drm/display/drm_dp_helper.h>
@@ -210,8 +212,10 @@ static int intel_dp_init_lttpr(struct intel_dp *intel_dp, const u8 dpcd[DP_RECEI
 
 	lttpr_count = intel_dp_init_lttpr_phys(intel_dp, dpcd);
 
-	for (i = 0; i < lttpr_count; i++)
+	for (i = 0; i < lttpr_count; i++) {
 		intel_dp_read_lttpr_phy_caps(intel_dp, dpcd, DP_PHY_LTTPR(i));
+		drm_dp_dump_lttpr_desc(&intel_dp->aux, DP_PHY_LTTPR(i));
+	}
 
 	return lttpr_count;
 }
Signature · 1 line
2.44.2
maintainer
#1 lore raw
Quoted 25 lines · Imre Deak

Dump the descriptor of the detected LTTPRs in non-transparent mode to help the debugging related to LTTPRs easier.

v2: Use drm_dp_dump_lttpr_desc() instead of the driver specific
equivalent.
v3: Add empty line between license and header section. (Ankit)

---

Resending [1] now, after the corresponding DRM core helper is merged to drm-intel-next.

[1] https://lore.kernel.org/all/[email protected]

 drivers/gpu/drm/i915/display/intel_dp_link_training.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/display/intel_dp_link_training.c +0 -0
index f45797c1a2051..b7bd8135c1138 100644

drivers/gpu/drm/i915/display/intel_dp_link_training.c line 28

Quoted 8 lines
drivers/gpu/drm/i915/display/intel_dp_link_training.c +2 -0
@@ -21,6 +21,8 @@
  * IN THE SOFTWARE.
  */
 
+#include <drm/display/drm_dp_helper.h>
+
 #include <linux/debugfs.h>
 
 #include <drm/display/drm_dp_helper.h>

It's already here now.

BR,
Jani.

Quoted 12 lines
drivers/gpu/drm/i915/display/intel_dp_link_training.c +3 -1
@@ -210,8 +212,10 @@ static int intel_dp_init_lttpr(struct intel_dp *intel_dp, const u8 dpcd[DP_RECEI
 
 	lttpr_count = intel_dp_init_lttpr_phys(intel_dp, dpcd);
 
-	for (i = 0; i < lttpr_count; i++)
+	for (i = 0; i < lttpr_count; i++) {
 		intel_dp_read_lttpr_phy_caps(intel_dp, dpcd, DP_PHY_LTTPR(i));
+		drm_dp_dump_lttpr_desc(&intel_dp->aux, DP_PHY_LTTPR(i));
+	}
 
 	return lttpr_count;
 }
Signature · 1 line
Jani Nikula, Intel
author
#2 lore raw
Quoted 29 lines · Jani Nikula
Quoted 28 lines · Imre Deak

Dump the descriptor of the detected LTTPRs in non-transparent mode to help the debugging related to LTTPRs easier.

v2: Use drm_dp_dump_lttpr_desc() instead of the driver specific
equivalent.
v3: Add empty line between license and header section. (Ankit)

---

Resending [1] now, after the corresponding DRM core helper is merged to drm-intel-next.

[1] https://lore.kernel.org/all/[email protected]

 drivers/gpu/drm/i915/display/intel_dp_link_training.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/display/intel_dp_link_training.c +0 -0
index f45797c1a2051..b7bd8135c1138 100644
@@ -21,6 +21,8 @@
  * IN THE SOFTWARE.
  */
 
Quoted 7 lines

drivers/gpu/drm/i915/display/intel_dp_link_training.c line 28

Quoted 5 lines
drivers/gpu/drm/i915/display/intel_dp_link_training.c +2 -0
+#include <drm/display/drm_dp_helper.h>
+
 #include <linux/debugfs.h>
 
 #include <drm/display/drm_dp_helper.h>

It's already here now.

Yep, thanks for spotting it.

Quoted 18 lines

BR,
Jani.

Quoted 12 lines
drivers/gpu/drm/i915/display/intel_dp_link_training.c +3 -1
@@ -210,8 +212,10 @@ static int intel_dp_init_lttpr(struct intel_dp *intel_dp, const u8 dpcd[DP_RECEI
 
 	lttpr_count = intel_dp_init_lttpr_phys(intel_dp, dpcd);
 
-	for (i = 0; i < lttpr_count; i++)
+	for (i = 0; i < lttpr_count; i++) {
 		intel_dp_read_lttpr_phy_caps(intel_dp, dpcd, DP_PHY_LTTPR(i));
+		drm_dp_dump_lttpr_desc(&intel_dp->aux, DP_PHY_LTTPR(i));
+	}
 
 	return lttpr_count;
 }
Signature · 1 line
Jani Nikula, Intel