All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vidya Srinivas <vidya.srinivas@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Vidya Srinivas <vidya.srinivas@intel.com>
Subject: [igt-dev] [PATCH] tests/kms_psr2_sf: Skip tests if selected fetch is not available
Date: Thu,  2 Sep 2021 20:43:34 +0530	[thread overview]
Message-ID: <20210902151334.15818-1-vidya.srinivas@intel.com> (raw)

Currently the tests are failing on systems where selected
fetch feature is not availble. Kernel returns -EINVAL when
the test executes reporting "Invalid debug mask 4".
Patch skips if selected fetch feature is not available
in the kernel.

Signed-off-by: Vidya Srinivas <vidya.srinivas@intel.com>
Change-Id: I031b4f58866a45f98b1c7e6c5181f8731f5ba4b2
---
 lib/igt_psr.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/igt_psr.c b/lib/igt_psr.c
index 68240f9a33b4..6f9fb8eea0ed 100644
--- a/lib/igt_psr.c
+++ b/lib/igt_psr.c
@@ -167,6 +167,8 @@ static bool psr_set(int device, int debugfs_fd, int mode)
 		}
 
 		ret = psr_write(debugfs_fd, debug_val);
+		if (ret == -EINVAL)
+			igt_skip("PSR2 SF not available\n");
 		igt_assert(ret > 0);
 	}
 
-- 
2.26.2

             reply	other threads:[~2021-09-02 15:25 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-02 15:13 Vidya Srinivas [this message]
2021-09-02 16:12 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_psr2_sf: Skip tests if selected fetch is not available Patchwork
2021-09-02 20:09 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2021-09-16 13:59 ` [igt-dev] [PATCH i-g-t] " Vidya Srinivas
2021-09-16 15:17   ` Mark Yacoub
2021-09-30  9:55   ` B, Jeevan
2021-09-30 12:10     ` Srinivas, Vidya
2021-09-30 14:28       ` Mark Yacoub
2021-09-30 22:36         ` Vudum, Lakshminarayana
2021-10-06 16:27           ` Mark Yacoub
2021-10-06 17:24             ` Vudum, Lakshminarayana
2021-10-07  7:50               ` Srinivas, Vidya
2021-10-07 15:23                 ` Mark Yacoub
2021-10-08  4:16                   ` Srinivas, Vidya
2021-09-30 15:22   ` Vidya Srinivas
2021-09-30 16:07     ` Srinivas, Vidya
2021-09-16 16:31 ` [igt-dev] ✗ GitLab.Pipeline: warning for tests/kms_psr2_sf: Skip tests if selected fetch is not available (rev2) Patchwork
2021-09-16 16:48 ` [igt-dev] ✗ Fi.CI.BAT: failure " Patchwork
2021-09-30 14:54 ` Patchwork
2021-09-30 16:02 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2021-10-04 11:31 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_psr2_sf: Skip tests if selected fetch is not available (rev3) Patchwork
2021-10-04 13:28 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2021-10-06 17:09 ` [igt-dev] ✓ Fi.CI.IGT: success " 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=20210902151334.15818-1-vidya.srinivas@intel.com \
    --to=vidya.srinivas@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.