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

Pranay Samala pranay.samala at intel.com
Mon May 12 04:45:43 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: Add supported port sync in commit message (Ankit)
    Ensure if connector type is not DRM_MODE_CONNECTOR_Unknown (Ankit)

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

diff --git a/tests/kms_tiled_display.c b/tests/kms_tiled_display.c
index 1f5331408..aa7e5ba04 100644
--- a/tests/kms_tiled_display.c
+++ b/tests/kms_tiled_display.c
@@ -159,16 +159,24 @@ static void get_connectors(data_t *data)
 		get_connector_tile_props(data, conns[count].connector,
 					 &conns[count].tile);
 
-		if (conns[count].tile.num_h_tile == 0) {
+		if (conns[count].tile.num_h_tile == 0 &&
+		    conns[count].connector->connector_type == DRM_MODE_CONNECTOR_Unknown) {
 			drmModeFreeConnector(conns[count].connector);
 			continue;
 		}
 
 		/* 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