[igt-dev] [PATCH] tests/kms_psr2_sf: Skip tests if selected fetch is not available
Vidya Srinivas
vidya.srinivas at intel.com
Thu Sep 2 15:13:34 UTC 2021
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 at 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
More information about the igt-dev
mailing list