All of lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH] tests/kms_psr2_sf: Skip tests if selected fetch is not available
@ 2021-09-02 15:13 Vidya Srinivas
  2021-09-02 16:12 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (9 more replies)
  0 siblings, 10 replies; 23+ messages in thread
From: Vidya Srinivas @ 2021-09-02 15:13 UTC (permalink / raw)
  To: igt-dev; +Cc: Vidya Srinivas

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@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

^ permalink raw reply related	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2021-10-08  4:16 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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.