Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
Subject: [i-g-t V4 7/7] HAX: Test force joiner on BAT
Date: Tue, 23 Apr 2024 17:56:36 +0530	[thread overview]
Message-ID: <20240423122636.1241111-8-bhanuprakash.modem@intel.com> (raw)
In-Reply-To: <20240423122636.1241111-1-bhanuprakash.modem@intel.com>

Expectation: All pipe-D tests should skip.

Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
---
 tests/kms_flip.c           | 9 ++++++++-
 tests/kms_pipe_crc_basic.c | 6 ++++++
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/tests/kms_flip.c b/tests/kms_flip.c
index 57f6cff7a..b30a89715 100755
--- a/tests/kms_flip.c
+++ b/tests/kms_flip.c
@@ -1748,12 +1748,17 @@ static void run_test_on_crtc_set(struct test_output *o, int *crtc_idxs,
 			 "%s-%d",
 			 kmstest_connector_type_str(o->kconnector[i]->connector_type),
 			 o->kconnector[i]->connector_type_id);
+		if (igt_has_force_joiner_debugfs(drm_fd, conn_name))
+			kmstest_force_connector_bigjoiner(drm_fd, o->kconnector[i]);
 
-		if (i > 0)
+		if (i > 0) {
 			snprintf(prev_conn_name, sizeof(prev_conn_name),
 				 "%s-%d",
 				 kmstest_connector_type_str(o->kconnector[i - 1]->connector_type),
 				 o->kconnector[i - 1]->connector_type_id);
+			if (igt_has_force_joiner_debugfs(drm_fd, prev_conn_name))
+				kmstest_force_connector_bigjoiner(drm_fd, o->kconnector[i - 1]);
+		}
 
 		if (((igt_check_force_joiner_status(drm_fd, conn_name) ||
 		      igt_bigjoiner_possible(&o->kmode[i], max_dotclock)) &&
@@ -2124,6 +2129,8 @@ igt_main_args("e", NULL, help_str, opt_handler, NULL)
 	igt_stop_signal_helper();
 
 	igt_fixture {
+		igt_reset_connectors();
+
 		igt_display_fini(&display);
 		drm_close_driver(drm_fd);
 	}
diff --git a/tests/kms_pipe_crc_basic.c b/tests/kms_pipe_crc_basic.c
index 0c19745bc..e5e5264b5 100644
--- a/tests/kms_pipe_crc_basic.c
+++ b/tests/kms_pipe_crc_basic.c
@@ -411,6 +411,11 @@ igt_main_args("e", NULL, help_str, opt_handler, NULL)
 
 		data.debugfs = igt_debugfs_dir(data.drm_fd);
 
+		for_each_connected_output(&data.display, output) {
+			if (igt_has_force_joiner_debugfs(data.drm_fd, output->name))
+				kmstest_force_connector_bigjoiner(data.drm_fd, output->config.connector);
+		}
+
 		/* Get active pipes. */
 		for_each_pipe(&data.display, pipe)
 			active_pipes[last_pipe++] = pipe;
@@ -499,6 +504,7 @@ igt_main_args("e", NULL, help_str, opt_handler, NULL)
 	}
 
 	igt_fixture {
+		igt_reset_connectors();
 		igt_display_fini(&data.display);
 		drm_close_driver(data.drm_fd);
 	}
-- 
2.43.2


  parent reply	other threads:[~2024-04-23 12:33 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-23 12:26 [i-g-t V4 0/7] Force joiner support in bigjoiner checks Bhanuprakash Modem
2024-04-23 12:26 ` [i-g-t V4 1/7] lib/igt_kms: Update force joiner debugfs check Bhanuprakash Modem
2024-04-23 12:26 ` [i-g-t V4 2/7] lib/igt_kms: New helper to check force joiner status Bhanuprakash Modem
2024-04-23 12:26 ` [i-g-t V4 3/7] lib/igt_kms: Force joiner support in bigjoiner checks Bhanuprakash Modem
2024-04-23 12:26 ` [i-g-t V4 4/7] tests/intel/kms_pm_lpsp: " Bhanuprakash Modem
2024-04-23 12:26 ` [i-g-t V4 5/7] tests/kms_flip: " Bhanuprakash Modem
2024-04-23 12:26 ` [i-g-t V4 6/7] tests/kms_setmode: " Bhanuprakash Modem
2024-04-23 12:26 ` Bhanuprakash Modem [this message]
2024-04-23 13:14 ` ✓ CI.xeBAT: success for Force joiner support in bigjoiner checks (rev5) Patchwork
2024-04-23 13:18 ` ✗ Fi.CI.BAT: failure " Patchwork
2024-04-23 20:02 ` ✗ CI.xeFULL: " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240423122636.1241111-8-bhanuprakash.modem@intel.com \
    --to=bhanuprakash.modem@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox