[igt-dev] [PATCH i-g-t] tests/kms_psr2_sf: Skip tests if selected fetch is not available
Srinivas, Vidya
vidya.srinivas at intel.com
Thu Sep 30 16:07:47 UTC 2021
Apologies @B, Jeevan, previous version BAT was failing. I have changed the igt_require similar to previous igt_assert.
Could you kindly help review once again. Thank you.
Regards
Vidya
> -----Original Message-----
> From: Srinivas, Vidya <vidya.srinivas at intel.com>
> Sent: Thursday, September 30, 2021 8:53 PM
> To: igt-dev at lists.freedesktop.org
> Cc: Modem, Bhanuprakash <bhanuprakash.modem at intel.com>;
> markyacoub at google.com; B, Jeevan <jeevan.b at intel.com>; Srinivas, Vidya
> <vidya.srinivas at intel.com>
> Subject: [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
>
> v3: Changing to igt_require(ret > 0) which is equivalent to original
> igt_assert(ret > 0)
>
> Signed-off-by: Vidya Srinivas <vidya.srinivas at 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..857eb591c693
> 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
More information about the igt-dev
mailing list