[igt-dev] [PATCH 2/2] tests/kms_panel_fitting: Skip atomic-fastset for non-i915

Alex Hung alex.hung at amd.com
Fri Apr 15 00:33:28 UTC 2022


In kernel function drm_atomic_check_only checks allow_modeset,
and it can return -EINVAL (-22) for non-i915 devices.

Therefore, let's skip atomic-fastset subtest for non-i915 until
specific implementation is added for each gpu driver.

Signed-off-by: Alex Hung <alex.hung at amd.com>
---
 tests/kms_panel_fitting.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/kms_panel_fitting.c b/tests/kms_panel_fitting.c
index 7ed0d196..9f607376 100644
--- a/tests/kms_panel_fitting.c
+++ b/tests/kms_panel_fitting.c
@@ -242,6 +242,7 @@ static void test_atomic_fastset(data_t *data)
 	int valid_tests = 0;
 	struct stat sb;
 
+	igt_require_f(is_i915_device(display->drm_fd), "not valid for non-i915 devices\n");
 
 	if (is_i915_device(display->drm_fd)) {
 		/* Until this is force enabled, force modeset evasion. */
-- 
2.35.1



More information about the igt-dev mailing list