Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t v1] tests/kms_async_flips: Skip Async flips on joiner output
@ 2024-10-23  3:16 Santhosh Reddy Guddati
  2024-10-23  4:00 ` ✓ CI.xeBAT: success for " Patchwork
                   ` (13 more replies)
  0 siblings, 14 replies; 18+ messages in thread
From: Santhosh Reddy Guddati @ 2024-10-23  3:16 UTC (permalink / raw)
  To: igt-dev; +Cc: karthik.b.s, kunal1.joshi, Santhosh Reddy Guddati

Async flips are disallowed with joiner, but the test commit still
goes through and causes failures. Update the tests to skip on
joiner outputs.

Signed-off-by: Santhosh Reddy Guddati <santhosh.reddy.guddati@intel.com>
---
 tests/kms_async_flips.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/tests/kms_async_flips.c b/tests/kms_async_flips.c
index 5dec71291..37075bb4a 100644
--- a/tests/kms_async_flips.c
+++ b/tests/kms_async_flips.c
@@ -686,18 +686,32 @@ static data_t data;
 igt_main
 {
 	int i;
+	int max_dotclock = 0;
+	drmModeModeInfo mode;
 
 	igt_fixture {
 		data.drm_fd = drm_open_driver_master(DRIVER_ANY);
 		kmstest_set_vt_graphics_mode();
 		igt_display_require(&data.display, data.drm_fd);
 		igt_display_require_output(&data.display);
+		max_dotclock = igt_get_max_dotclock(data.drm_fd);
 
 		igt_require_f(igt_has_drm_cap(data.drm_fd, DRM_CAP_ASYNC_PAGE_FLIP),
 			      "Async Flip is not supported\n");
 
 		if (is_intel_device(data.drm_fd))
 			data.bops = buf_ops_create(data.drm_fd);
+		for_each_connected_output(&data.display, data.output) {
+			drmModeConnector *connector = data.output->config.connector;
+
+			igt_skip_on_f(
+			    bigjoiner_mode_found(data.drm_fd, connector, max_dotclock, &mode) ||
+			    ultrajoiner_mode_found(data.drm_fd, connector, max_dotclock, &mode) ||
+			    igt_has_force_joiner_debugfs(data.drm_fd, data.output->name),
+			    "Skipping test on output %s as async flip disallowed with joiner mode\n",
+			    data.output->name
+			);
+		}
 	}
 
 	igt_describe("Verify the async flip functionality and the fps during async flips");
-- 
2.34.1


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

end of thread, other threads:[~2024-11-14  6:22 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-23  3:16 [PATCH i-g-t v1] tests/kms_async_flips: Skip Async flips on joiner output Santhosh Reddy Guddati
2024-10-23  4:00 ` ✓ CI.xeBAT: success for " Patchwork
2024-10-23  4:05 ` ✓ Fi.CI.BAT: " Patchwork
2024-10-23  6:23 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-10-23  8:08 ` ✗ CI.xeFULL: " Patchwork
2024-10-24  9:34 ` [i-g-t,v1] " Joshi, Kunal1
2024-10-24 11:11 ` [PATCH i-g-t v2] " Santhosh Reddy Guddati
2024-10-30  6:34   ` [i-g-t,v2] " Joshi, Kunal1
2024-11-14  6:04   ` [PATCH i-g-t v2] " Sharma, Swati2
2024-11-14  6:22   ` Sharma, Swati2
2024-10-24 12:18 ` ✓ Fi.CI.BAT: success for tests/kms_async_flips: Skip Async flips on joiner output (rev2) Patchwork
2024-10-24 12:51 ` ✓ CI.xeBAT: " Patchwork
2024-10-24 15:55 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-10-25 11:23 ` ✗ CI.xeFULL: " Patchwork
2024-11-13 12:20 ` [PATCH i-g-t v3 1/1] tests/kms_async_flips: Skip Async flips on joiner output Santhosh Reddy Guddati
2024-11-13 15:58 ` ✓ CI.xeBAT: success for tests/kms_async_flips: Skip Async flips on joiner output (rev3) Patchwork
2024-11-13 15:59 ` ✗ Fi.CI.BAT: failure " Patchwork
2024-11-13 22:49 ` ✗ CI.xeFULL: " Patchwork

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