From: "B, Jeevan" <jeevan.b@intel.com>
To: "Srinivas, Vidya" <vidya.srinivas@intel.com>,
"igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Cc: "Modem, Bhanuprakash" <bhanuprakash.modem@intel.com>,
"markyacoub@google.com" <markyacoub@google.com>,
"Srinivas, Vidya" <vidya.srinivas@intel.com>
Subject: Re: [igt-dev] [PATCH i-g-t] tests/kms_psr2_sf: Skip tests if selected fetch is not available
Date: Thu, 30 Sep 2021 09:55:42 +0000 [thread overview]
Message-ID: <fa1e3d36b6a94da4bfaf33d77e6aa316@intel.com> (raw)
In-Reply-To: <20210916135955.17270-1-vidya.srinivas@intel.com>
Looks good to me.
>-----Original Message-----
>From: igt-dev <igt-dev-bounces@lists.freedesktop.org> On Behalf Of Vidya
>Srinivas
>Sent: Thursday, September 16, 2021 7:30 PM
>To: igt-dev@lists.freedesktop.org
>Cc: Modem, Bhanuprakash <bhanuprakash.modem@intel.com>;
>markyacoub@google.com; Srinivas, Vidya <vidya.srinivas@intel.com>
>Subject: [igt-dev] [PATCH i-g-t] tests/kms_psr2_sf: Skip tests if selected fetch is
>not available
>
>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.
>
>v2: Incorportated Mark Yacoub's comments.
>Changed igt_skip to igt_require_f
>
>Signed-off-by: Vidya Srinivas <vidya.srinivas@intel.com>
Reviewed-by: Jeevan B <jeevan.b@intel.com>
>---
> lib/igt_psr.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/lib/igt_psr.c b/lib/igt_psr.c index 68240f9a33b4..0af503fb796e 100644
>--- a/lib/igt_psr.c
>+++ b/lib/igt_psr.c
>@@ -167,7 +167,7 @@ static bool psr_set(int device, int debugfs_fd, int mode)
> }
>
> ret = psr_write(debugfs_fd, debug_val);
>- igt_assert(ret > 0);
>+ igt_require_f(ret == 0, "PSR2 SF feature not available\n");
> }
>
> /* Restore original value on exit */
>--
>2.33.0
next prev parent reply other threads:[~2021-09-30 9:55 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-02 15:13 [igt-dev] [PATCH] tests/kms_psr2_sf: Skip tests if selected fetch is not available Vidya Srinivas
2021-09-02 16:12 ` [igt-dev] ✓ Fi.CI.BAT: success for " 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 [this message]
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=fa1e3d36b6a94da4bfaf33d77e6aa316@intel.com \
--to=jeevan.b@intel.com \
--cc=bhanuprakash.modem@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=markyacoub@google.com \
--cc=vidya.srinivas@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