[igt-dev] [PATCH i-g-t] tests/kms_flip_scaled_crc: skip test if no requested mode and exceed cdclk limits

Juha-Pekka Heikkila juhapekka.heikkila at gmail.com
Thu Mar 25 17:12:22 UTC 2021


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



More information about the igt-dev mailing list