From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by gabe.freedesktop.org (Postfix) with ESMTPS id D648C10E2EC for ; Thu, 2 Feb 2023 05:09:32 +0000 (UTC) From: Nidhi Gupta To: igt-dev@lists.freedesktop.org Date: Thu, 2 Feb 2023 10:45:07 +0530 Message-Id: <20230202051509.28983-6-nidhi1.gupta@intel.com> In-Reply-To: <20230202051509.28983-1-nidhi1.gupta@intel.com> References: <20230202051509.28983-1-nidhi1.gupta@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH v4 5/7] tests/kms_plane_cursor: Limit the execution to two pipes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nidhi Gupta Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: From: Bhanuprakash Modem 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 Signed-off-by: Nidhi Gupta --- 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