[Intel-gfx] [PATCH] drm/i915/dp: Fix invalid test parameter when run DP link layer compliance
Lee Shawn C
shawn.c.lee at intel.com
Thu Jun 24 14:28:56 UTC 2021
Run intel_dp_compliance would failed at video pattern related
test case sometimes. DP test applet read incorrect test type
from kernel to cause this symptom. Add "\n" (newline) in
seq_printf() then test daemon can get parameter properly.
Fixes: eb3394faeb97 ("drm/i915: Add debugfs test control
files for Displayport compliance testing")
Cc: Manasi Navare <manasi.d.navare at intel.com>
Cc: Jani Nikula <jani.nikula at linux.intel.com>
Cc: Ville Syrjala <ville.syrjala at linux.intel.com>
Cc: Cooper Chiou <cooper.chiou at intel.com>
Signed-off-by: Lee Shawn C <shawn.c.lee at intel.com>
---
drivers/gpu/drm/i915/display/intel_display_debugfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/display/intel_display_debugfs.c b/drivers/gpu/drm/i915/display/intel_display_debugfs.c
index db38891a9ef0..08b0a5c89f7e 100644
--- a/drivers/gpu/drm/i915/display/intel_display_debugfs.c
+++ b/drivers/gpu/drm/i915/display/intel_display_debugfs.c
@@ -1540,7 +1540,7 @@ static int i915_displayport_test_data_show(struct seq_file *m, void *data)
intel_dp = enc_to_intel_dp(encoder);
if (intel_dp->compliance.test_type ==
DP_TEST_LINK_EDID_READ)
- seq_printf(m, "%lx",
+ seq_printf(m, "%lx\n",
intel_dp->compliance.test_data.edid);
else if (intel_dp->compliance.test_type ==
DP_TEST_LINK_VIDEO_PATTERN) {
--
2.17.1
More information about the Intel-gfx
mailing list