[igt-dev] [PATCH v3 5/7] tests/kms_plane_cursor: Limit the execution to two pipes

Nidhi Gupta nidhi1.gupta at intel.com
Tue Jan 31 13:36:56 UTC 2023


From: Bhanuprakash Modem <bhanuprakash.modem at intel.com>

As the execution is taking more time, limit the execution to two (first
& last) pipes. This patch will ignores the cursor size of 256, since it
is causing simics crash.

Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
Signed-off-by: Nidhi Gupta <nidhi1.gupta at intel.com>
---
 tests/kms_plane_cursor.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/tests/kms_plane_cursor.c b/tests/kms_plane_cursor.c
index 9b27586c..9a94849a 100644
--- a/tests/kms_plane_cursor.c
+++ b/tests/kms_plane_cursor.c
@@ -277,6 +277,8 @@ igt_main
 		  "Tests atomic cursor positioning on primary plane and overlay plane "
 		  "with buffer larger than viewport used for display" },
 	};
+	enum pipe active_pipes[IGT_MAX_PIPES];
+	uint32_t last_pipe = 0;
 
 	igt_fixture {
 		int ret;
@@ -293,6 +295,11 @@ igt_main
 		igt_display_require(&data.display, data.drm_fd);
 		igt_require(data.display.is_atomic);
 		igt_display_require_output(&data.display);
+
+		/* Get active pipes. */
+		for_each_pipe(&data.display, pipe)
+			active_pipes[last_pipe++] = pipe;
+		last_pipe--;
 	}
 
 	for (i = 0; i < ARRAY_SIZE(tests); i++) {
@@ -304,11 +311,19 @@ igt_main
 							     DRM_PLANE_TYPE_OVERLAY))
 					continue;
 
+				if (igt_run_in_simulation() &&
+				    pipe != active_pipes[0] &&
+				    pipe != active_pipes[last_pipe])
+					continue;
+
 				test_init(&data, pipe, output);
 
 				for (j = 0; j < ARRAY_SIZE(cursor_sizes); j++) {
 					int size = cursor_sizes[j];
 
+					if (igt_run_in_simulation() && size >= 256)
+						continue;
+
 					igt_dynamic_f("pipe-%s-%s-size-%d",
 						      kmstest_pipe_name(pipe),
 						      igt_output_name(output),
-- 
2.39.0



More information about the igt-dev mailing list