Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Pranay Samala <pranay.samala@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: karthik.b.s@intel.com, kunal1.joshi@intel.com,
	sameer.lattannavar@intel.com, pranay.samala@intel.com,
	Mark Yacoub <markyacoub@chromium.org>,
	Mark Yacoub <markyacoub@google.com>,
	Louis Chauvet <louis.chauvet@bootlin.com>
Subject: [PATCH i-g-t] tests/chamelium/kms_chamelium_edid: Limit the number of EDIDs tested to prevent CI timeout.
Date: Fri, 13 Dec 2024 15:24:32 +0530	[thread overview]
Message-ID: <20241213095432.2323965-1-pranay.samala@intel.com> (raw)

This patch reduces the number of non-4K HDMI EDIDs to 25 when
the extended flag is not used, as CI does not use this flag.
DP EDID tests are not reduced due to existing limited EDIDs.
The change ensures that only HDMI non-4K EDIDs are limited,
improving test efficiency and avoiding CI timeouts.

Cc: Mark Yacoub <markyacoub@chromium.org>
Cc: Mark Yacoub <markyacoub@google.com>
Cc: Louis Chauvet <louis.chauvet@bootlin.com>

Signed-off-by: Pranay Samala <pranay.samala@intel.com>
---
 tests/chamelium/kms_chamelium_edid.c | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/tests/chamelium/kms_chamelium_edid.c b/tests/chamelium/kms_chamelium_edid.c
index 5db8204d5..e572a6468 100644
--- a/tests/chamelium/kms_chamelium_edid.c
+++ b/tests/chamelium/kms_chamelium_edid.c
@@ -267,7 +267,8 @@ static const char igt_edid_stress_resolution_desc[] =
 static void edid_stress_resolution(chamelium_data_t *data,
 				   struct chamelium_port *port,
 				   monitor_edid edids_list[],
-				   size_t edids_list_len)
+				   size_t edids_list_len,
+				   bool limit)
 {
 	int i;
 	struct chamelium *chamelium = data->chamelium;
@@ -280,7 +281,7 @@ static void edid_stress_resolution(chamelium_data_t *data,
 	 * if there is environment variable in CI when executing with igt_runner
 	 */
 
-	if (!extended && is_intel_device(data->drm_fd))
+	if (!extended && is_intel_device(data->drm_fd) && limit)
 		edids_list_len = CI_LIMIT;
 
 	for (i = 0; i < edids_list_len; ++i) {
@@ -559,13 +560,13 @@ igt_main_args("e", NULL, help_str, opt_handler, NULL)
 		igt_describe(igt_edid_stress_resolution_desc);
 		connector_subtest("dp-edid-stress-resolution-4k", DisplayPort)
 			edid_stress_resolution(&data, port, DP_EDIDS_4K,
-					       ARRAY_SIZE(DP_EDIDS_4K));
+					       ARRAY_SIZE(DP_EDIDS_4K), false);
 
 		igt_describe(igt_edid_stress_resolution_desc);
 		connector_subtest("dp-edid-stress-resolution-non-4k",
 				  DisplayPort)
 			edid_stress_resolution(&data, port, DP_EDIDS_NON_4K,
-					       ARRAY_SIZE(DP_EDIDS_NON_4K));
+					       ARRAY_SIZE(DP_EDIDS_NON_4K), false);
 
 		igt_describe(igt_edid_resolution_list_desc);
 		connector_subtest("dp-edid-resolution-list", DisplayPort)
@@ -613,12 +614,12 @@ igt_main_args("e", NULL, help_str, opt_handler, NULL)
 		igt_describe(igt_edid_stress_resolution_desc);
 		connector_subtest("hdmi-edid-stress-resolution-4k", HDMIA)
 			edid_stress_resolution(&data, port, HDMI_EDIDS_4K,
-					       ARRAY_SIZE(HDMI_EDIDS_4K));
+					       ARRAY_SIZE(HDMI_EDIDS_4K), false);
 
 		igt_describe(igt_edid_stress_resolution_desc);
 		connector_subtest("hdmi-edid-stress-resolution-non-4k", HDMIA)
 			edid_stress_resolution(&data, port, HDMI_EDIDS_NON_4K,
-					       ARRAY_SIZE(HDMI_EDIDS_NON_4K));
+					       ARRAY_SIZE(HDMI_EDIDS_NON_4K), true);
 
 		igt_describe(test_suspend_resume_edid_change_desc);
 		connector_subtest("hdmi-edid-change-during-suspend", HDMIA)
-- 
2.34.1


             reply	other threads:[~2024-12-13  9:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-13  9:54 Pranay Samala [this message]
2024-12-13 16:53 ` ✗ GitLab.Pipeline: warning for tests/chamelium/kms_chamelium_edid: Limit the number of EDIDs tested to prevent CI timeout Patchwork
2024-12-13 17:24 ` ✓ i915.CI.BAT: success " Patchwork
2024-12-13 17:46 ` ✓ Xe.CI.BAT: " Patchwork
2024-12-14  0:58 ` ✗ i915.CI.Full: failure " Patchwork
2024-12-14  6:39 ` ✗ Xe.CI.Full: " Patchwork
2024-12-16  5:57 ` [i-g-t] " Joshi, Kunal1

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=20241213095432.2323965-1-pranay.samala@intel.com \
    --to=pranay.samala@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=karthik.b.s@intel.com \
    --cc=kunal1.joshi@intel.com \
    --cc=louis.chauvet@bootlin.com \
    --cc=markyacoub@chromium.org \
    --cc=markyacoub@google.com \
    --cc=sameer.lattannavar@intel.com \
    /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