Skip to contentSkip to conversation

tools: Add a simple tool to read/write/decode dpcd registers

PATCH New Rodrigo Vivi 1 participant 1 message Sep 1, 2018 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/6 tools: Add a simple tool to read/write/decode dpcd registers

From: Tarun Vyas <[email protected]>

This tool serves as a wrapper around the constructs provided by the drm_dpcd_aux_dev kernel module by working on the /dev/drm_dp_aux[n] devices created by the kernel module.
It supports reading and writing dpcd registers on the connected aux channels.
In the follow-up patch, support for decoding these registers will be added to facilate debugging panel related issues.

v2: (Fixes by Rodrigo but no functional changes yet):
- Indentations, Typo, Missed spaces
- Removing mentioning to decode and spec that is not implemented yet.
- Add Makefile.sources back
- Missed s/printf/igt_warn

---
 tools/Makefile.sources |   1 +
 tools/dpcd_reg.c       | 209 +++++++++++++++++++++++++++++++++++++++++
 tools/meson.build      |   1 +
 3 files changed, 211 insertions(+)
 create mode 100644 tools/dpcd_reg.c
tools/Makefile.sources +1 -0
index abd23a0f..50706f41 100644
@@ -7,6 +7,7 @@ noinst_PROGRAMS =		\
 
 tools_prog_lists =		\
 	igt_stats		\
+	dpcd_reg		\
 	intel_audio_dump	\
 	intel_reg		\
 	intel_backlight		\
tools/dpcd_reg.c new file +209 -0

209 lines not on this page · raw message

tools/meson.build +1 -0
index e4517d66..79f36aa9 100644
@@ -36,6 +36,7 @@ tools_progs = [
 	'intel_watermark',
 	'intel_gem_info',
 	'intel_gvtg_test',
+	'dpcd_reg',
 ]
 tool_deps = igt_deps
 
Signature · 6 lines
2.17.1

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