[PATCH i-g-t v7 07/48] lib/igt_kms: Expose dump_connector_attrs

Louis Chauvet
2026-02-23T12:09:01Z

dump_connector_attrs is used by i915 DP helpers, so expose it from igt_kms
to be able to reuse them.

Signed-off-by: Louis Chauvet <louis.chauvet@bootlin.com>
Reviewed-by: Kory Maincent <kory.maincent@bootlin.com>
---
lib/igt_kms.c | 5 ++++-
lib/igt_kms.h | 1 +
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 1c03542c87d7..d76ae3cccae4 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -1766,7 +1766,10 @@ static bool connector_attr_set_debugfs(int drm_fd,
return true;
}

-static void dump_connector_attrs(void)
+/**
+ * dump_connector_attrs: Display on debug log all the connector attributes
+ */
+void dump_connector_attrs(void)
{
char name[80];

diff --git a/lib/igt_kms.h b/lib/igt_kms.h
index 86bdb4d5031c..a1da1b5a0dd7 100644
--- a/lib/igt_kms.h
+++ b/lib/igt_kms.h
@@ -258,6 +258,7 @@ enum joined_pipes {

uint64_t igt_kms_frame_time_from_vrefresh(uint32_t vrefresh);

+void dump_connector_attrs(void);
bool kmstest_force_connector(int fd, drmModeConnector *connector,
enum kmstest_force_connector_state state);
bool kmstest_force_connector_joiner(int drm_fd, drmModeConnector *connector, int joined_pipes);

--
2.52.0