tools: Add a simple tool to read/write/decode dpcd registers
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
Suggested-by Dhinakaran Pandiyan <[email protected]>
Signed-off-by Tarun Vyas <[email protected]>
Signed-off-by Rodrigo Vivi <[email protected]>
--- 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
@@ -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
@@ -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