All of lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/kms_flip_scaled_crc: skip test if no requested mode and exceed cdclk limits
@ 2021-03-25 17:12 Juha-Pekka Heikkila
  2021-03-25 18:22 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Juha-Pekka Heikkila @ 2021-03-25 17:12 UTC (permalink / raw)
  To: igt-dev

If there was no requested 640p or 1080p mode available in connector
and flipping to scaled fb fail with einval assume cdclk limits
were exceeded and skip test instead of failing.

Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
---
 tests/kms_flip_scaled_crc.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/kms_flip_scaled_crc.c b/tests/kms_flip_scaled_crc.c
index c41709b68..35417396e 100644
--- a/tests/kms_flip_scaled_crc.c
+++ b/tests/kms_flip_scaled_crc.c
@@ -204,6 +204,9 @@ static void test_flip_to_scaled(data_t *data, uint32_t index, enum pipe pipe,
 
 	igt_require_f(ret != -ERANGE,
 		      "Platform scaling limits exceeded, skipping.\n");
+	igt_require_f(!(ret == -EINVAL && !modetoset),
+		      "No %dp and default mode too big, cdclk limits exceeded. Skipping.\n",
+		      data->attemptmodeheight);
 	igt_assert_eq(ret, 0);
 
 	igt_assert(read(data->drm_fd, &ev, sizeof(ev)) == sizeof(ev));
-- 
2.28.0

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

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

end of thread, other threads:[~2021-03-30 12:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-25 17:12 [igt-dev] [PATCH i-g-t] tests/kms_flip_scaled_crc: skip test if no requested mode and exceed cdclk limits Juha-Pekka Heikkila
2021-03-25 18:22 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2021-03-25 22:48 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2021-03-29 12:02 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_flip_scaled_crc: skip test if no requested mode and exceed cdclk limits (rev2) Patchwork
2021-03-29 13:31 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2021-03-30 12:34 ` [igt-dev] [PATCH i-g-t] tests/kms_flip_scaled_crc: skip test if no requested mode and exceed cdclk limits Kahola, Mika

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.