diff options
author | Vidya Srinivas <vidya.srinivas@intel.com> | 2021-09-30 20:52:53 +0530 |
---|---|---|
committer | Mark Yacoub <markyacoub@google.com> | 2021-10-07 15:21:51 +0000 |
commit | 64c1fe745b8c0ee48d44338da58c3554e9be64a5 (patch) | |
tree | 66c8ebbce696442918920b1851d450e098e271b8 | |
parent | 65dd7d484d5d09de196def254afebf41dfde1052 (diff) |
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)
Reviewed-by: Mark Yacoub <markyacoub@chromium.org>
Signed-off-by: Vidya Srinivas <vidya.srinivas@intel.com>
-rw-r--r-- | lib/igt_psr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/igt_psr.c b/lib/igt_psr.c index 68240f9a..857eb591 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 */ |