[PATCH i-g-t v4] tests/kms_tiled_display: Skip if connectors are not of same type

Pranay Samala pranay.samala at intel.com
Tue Jun 3 05:17:22 UTC 2025


Tiled display setups require all involved DP connectors to be of the
same type. This patch adds a check to skip the test when
connector types differ, preventing invalid configurations and reducing
confusing test failures.

v2: Replace igt_assert with igt_skip_on_f to skip the test.
v3: Edit port sync supported in commit message (Ankit)
    Check if connector type is DRM_MODE_CONNECTOR_Unknown (Ankit)
v4: Remove connector_type check

Signed-off-by: Pranay Samala <pranay.samala at intel.com>
---
 tests/kms_tiled_display.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/tests/kms_tiled_display.c b/tests/kms_tiled_display.c
index 1f5331408..a1b7f90d1 100644
--- a/tests/kms_tiled_display.c
+++ b/tests/kms_tiled_display.c
@@ -165,10 +165,17 @@ static void get_connectors(data_t *data)
 		}
 
 		/* Check if the connectors belong to the same tile group */
-		if (count > 0)
+		if (count > 0) {
 			igt_assert(conns[count].tile.tile_group_id ==
 				   conns[count-1].tile.tile_group_id);
 
+			igt_skip_on_f(conns[count - 1].connector->connector_type !=
+				      conns[count].connector->connector_type,
+				      "Connector type mismatch: Expected %d, but got %d\n",
+				      conns[count - 1].connector->connector_type,
+				      conns[count].connector->connector_type);
+		}
+
 		count++;
 	}
 	igt_require_f(count == data->num_h_tiles,
-- 
2.34.1



More information about the igt-dev mailing list