Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t v2] tests/intel/kms_big_fb: Introducing this restriction to optimize the test execution time on simulation
@ 2024-05-16 10:28 Pranay Samala
  2024-05-16 10:58 ` ✓ CI.xeBAT: success for tests/intel/kms_big_fb: Introducing this restriction to optimize the test execution time on simulation (rev2) Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Pranay Samala @ 2024-05-16 10:28 UTC (permalink / raw)
  To: igt-dev; +Cc: karthik.b.s, jeevan.b, sameer.lattannavar, pranay.samala

This test executes on only one pipe and all the availble planes with
set of 6 coordinates. Due to this, test takes long duration to execute
on simulation and gets timeout.

Restricting the test to execute only on primary plane with one of the
coordinates for simulation.

v2:
- Breaking the loop instead of using variable m to test only one
  coordinate for simulation (Kamil)
- Removed the variable m (Kamil)
- By default the test is running on only one pipe (Kamil)
- Testing on (0,0) coordinate (Kamil)

Signed-off-by: Pranay Samala <pranay.samala@intel.com>
---
 tests/intel/kms_big_fb.c | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

diff --git a/tests/intel/kms_big_fb.c b/tests/intel/kms_big_fb.c
index 1e45d8e42..f1207e21f 100644
--- a/tests/intel/kms_big_fb.c
+++ b/tests/intel/kms_big_fb.c
@@ -455,6 +455,11 @@ static bool test_plane(data_t *data)
 		{ w, h, },
 	};
 
+	if (igt_run_in_simulation()) {
+		plane = igt_output_get_plane_type(data->output, DRM_PLANE_TYPE_PRIMARY);
+		igt_plane_set_fb(plane, NULL);
+	}
+
 	if (!igt_plane_has_format_mod(plane, data->format, data->modifier))
 		return false;
 
@@ -529,6 +534,9 @@ static bool test_plane(data_t *data)
 
 		igt_assert_crc_equal(&big_crc, &small_crc);
 		igt_pipe_crc_stop(data->pipe_crc);
+
+		if (igt_run_in_simulation())
+			break;
 	}
 
 	return true;
@@ -595,10 +603,14 @@ static bool test_pipe(data_t *data)
 	data->pipe_crc = igt_pipe_crc_new(data->drm_fd, data->pipe,
 					  IGT_PIPE_CRC_SOURCE_AUTO);
 
-	for_each_plane_on_pipe(&data->display, data->pipe, data->plane) {
+	if (igt_run_in_simulation())
 		ret = test_plane(data);
-		if (ret)
-			break;
+	else {
+		for_each_plane_on_pipe(&data->display, data->pipe, data->plane) {
+			ret = test_plane(data);
+			if (ret)
+				break;
+		}
 	}
 
 	if (data->format == DRM_FORMAT_C8)
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-05-17 15:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-16 10:28 [PATCH i-g-t v2] tests/intel/kms_big_fb: Introducing this restriction to optimize the test execution time on simulation Pranay Samala
2024-05-16 10:58 ` ✓ CI.xeBAT: success for tests/intel/kms_big_fb: Introducing this restriction to optimize the test execution time on simulation (rev2) Patchwork
2024-05-16 12:08 ` ✗ CI.xeFULL: failure " Patchwork
2024-05-17 15:31   ` Kamil Konieczny
2024-05-16 17:02 ` ✓ Fi.CI.BAT: success " Patchwork
2024-05-16 21:22 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-05-17 15:30   ` Kamil Konieczny
2024-05-17 15:27 ` [PATCH i-g-t v2] tests/intel/kms_big_fb: Introducing this restriction to optimize the test execution time on simulation Kamil Konieczny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox