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, karthik.b.s@intel.com
Cc: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
Subject: [PATCH i-g-t] tests/kms_bw: Fix the condition check for max pipe count
Date: Thu, 21 Mar 2024 10:54:54 +0530	[thread overview]
Message-ID: <20240321052454.377561-1-bhanuprakash.modem@intel.com> (raw)

Fix the condition check to skip the subtest if ASIC doesn't
have the requested number of pipes.

Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
---
 tests/kms_bw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/kms_bw.c b/tests/kms_bw.c
index 96b19199d..05f7e79ad 100644
--- a/tests/kms_bw.c
+++ b/tests/kms_bw.c
@@ -186,7 +186,7 @@ static void run_test_linear_tiling(data_t *data, int pipe, const drmModeModeInfo
 	 * not give the numver of valid crtcs and always return IGT_MAX_PIPES */
 	for_each_pipe(display, p) num_pipes++;
 
-	igt_skip_on_f(pipe > num_pipes,
+	igt_skip_on_f(pipe >= num_pipes,
                       "ASIC does not have %d pipes\n", pipe);
 
 	test_init(data);
-- 
2.43.2


             reply	other threads:[~2024-03-21  5:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-21  5:24 Bhanuprakash Modem [this message]
2024-03-21  6:24 ` ✓ CI.xeBAT: success for tests/kms_bw: Fix the condition check for max pipe count Patchwork
2024-03-21  6:39 ` ✓ Fi.CI.BAT: " Patchwork
2024-03-22  1:30 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-03-26  8:40 ` [PATCH i-g-t] " Karthik B S

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=20240321052454.377561-1-bhanuprakash.modem@intel.com \
    --to=bhanuprakash.modem@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=karthik.b.s@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