All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Yacoub <markyacoub@chromium.org>
To: Vidya Srinivas <vidya.srinivas@intel.com>
Cc: Development mailing list for IGT GPU Tools
	<igt-dev@lists.freedesktop.org>,
	"Modem, Bhanuprakash" <Bhanuprakash.Modem@intel.com>,
	Mark Yacoub <markyacoub@google.com>
Subject: Re: [igt-dev] [PATCH i-g-t] tests/kms_psr2_sf: Skip tests if selected fetch is not available
Date: Thu, 16 Sep 2021 11:17:58 -0400	[thread overview]
Message-ID: <CAJUqKUory3b+0r9iTFiX_deX7kYXNQT3k1e1ZbEnKVtDddZP-Q@mail.gmail.com> (raw)
In-Reply-To: <20210916135955.17270-1-vidya.srinivas@intel.com>

This looks better.

On Thu, Sep 16, 2021 at 10:12 AM Vidya Srinivas
<vidya.srinivas@intel.com> wrote:
>
> 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: Mark Yacoub <markyacoub@chromium.org>
> ---
>  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
>

  reply	other threads:[~2021-09-16 15:18 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 [this message]
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=CAJUqKUory3b+0r9iTFiX_deX7kYXNQT3k1e1ZbEnKVtDddZP-Q@mail.gmail.com \
    --to=markyacoub@chromium.org \
    --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 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.