summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/intel-ci/fast-feedback.testlist6
-rw-r--r--tests/kms_busy.c109
2 files changed, 56 insertions, 59 deletions
diff --git a/tests/intel-ci/fast-feedback.testlist b/tests/intel-ci/fast-feedback.testlist
index 02a222f2..79160624 100644
--- a/tests/intel-ci/fast-feedback.testlist
+++ b/tests/intel-ci/fast-feedback.testlist
@@ -196,9 +196,9 @@ igt@kms_addfb_basic@unused-handle
igt@kms_addfb_basic@unused-modifier
igt@kms_addfb_basic@unused-offsets
igt@kms_addfb_basic@unused-pitches
-igt@kms_busy@basic-flip-default-a
-igt@kms_busy@basic-flip-default-b
-igt@kms_busy@basic-flip-default-c
+igt@kms_busy@basic-flip-a
+igt@kms_busy@basic-flip-b
+igt@kms_busy@basic-flip-c
igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic
igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy
igt@kms_cursor_legacy@basic-flip-after-cursor-atomic
diff --git a/tests/kms_busy.c b/tests/kms_busy.c
index af7335db..16ab8919 100644
--- a/tests/kms_busy.c
+++ b/tests/kms_busy.c
@@ -309,7 +309,8 @@ static void test_pageflip_modeset_hang(igt_display_t *dpy,
igt_main
{
igt_display_t display = { .drm_fd = -1, .n_pipes = IGT_MAX_PIPES };
- const struct intel_execution_engine *e;
+ /* we only test on render */
+ const struct intel_execution_engine *e = &intel_execution_engines[1];
igt_skip_on_simulation();
@@ -333,82 +334,78 @@ igt_main
igt_skip_on(n >= display.n_pipes);
}
- for (e = intel_execution_engines; e->name; e++) {
- igt_subtest_f("%sflip-%s-%s",
- e->exec_id == 0 ? "basic-" : "",
- e->name, kmstest_pipe_name(n)) {
+ igt_subtest_f("basic-flip-%s",
+ kmstest_pipe_name(n)) {
+ igt_require(gem_has_ring(display.drm_fd,
+ e->exec_id | e->flags));
+
+ test_flip(&display, e->exec_id | e->flags, n, false);
+ }
+ igt_subtest_f("basic-modeset-%s",
+ e->name, kmstest_pipe_name(n)) {
+ igt_require(gem_has_ring(display.drm_fd,
+ e->exec_id | e->flags));
+
+ test_flip(&display, e->exec_id | e->flags, n, true);
+ }
+
+ igt_subtest_group {
+ igt_hang_t hang;
+
+ igt_fixture {
igt_require(gem_has_ring(display.drm_fd,
e->exec_id | e->flags));
- test_flip(&display, e->exec_id | e->flags, n, false);
+ hang = igt_allow_hang(display.drm_fd, 0, 0);
}
- igt_subtest_f("%smodeset-%s-%s",
- e->exec_id == 0 ? "basic-" : "",
+
+ igt_subtest_f("extended-pageflip-modeset-hang-oldfb-%s-%s",
e->name, kmstest_pipe_name(n)) {
igt_require(gem_has_ring(display.drm_fd,
e->exec_id | e->flags));
- test_flip(&display, e->exec_id | e->flags, n, true);
+ test_pageflip_modeset_hang(&display, e->exec_id | e->flags, n);
}
- igt_subtest_group {
- igt_hang_t hang;
-
- igt_fixture {
- igt_require(gem_has_ring(display.drm_fd,
- e->exec_id | e->flags));
+ igt_fixture
+ igt_require(display.is_atomic);
- hang = igt_allow_hang(display.drm_fd, 0, 0);
- }
+ igt_subtest_f("extended-pageflip-hang-oldfb-%s-%s",
+ e->name, kmstest_pipe_name(n))
+ test_hang(&display, e->exec_id | e->flags, n, false, false);
- igt_subtest_f("extended-pageflip-modeset-hang-oldfb-%s-%s",
- e->name, kmstest_pipe_name(n)) {
- igt_require(gem_has_ring(display.drm_fd,
- e->exec_id | e->flags));
+ igt_subtest_f("extended-pageflip-hang-newfb-%s-%s",
+ e->name, kmstest_pipe_name(n))
+ test_hang(&display, e->exec_id | e->flags, n, false, true);
- test_pageflip_modeset_hang(&display, e->exec_id | e->flags, n);
- }
+ igt_subtest_f("extended-modeset-hang-oldfb-%s-%s",
+ e->name, kmstest_pipe_name(n))
+ test_hang(&display, e->exec_id | e->flags, n, true, false);
- igt_fixture
- igt_require(display.is_atomic);
+ igt_subtest_f("extended-modeset-hang-newfb-%s-%s",
+ e->name, kmstest_pipe_name(n))
+ test_hang(&display, e->exec_id | e->flags, n, true, true);
- igt_subtest_f("extended-pageflip-hang-oldfb-%s-%s",
- e->name, kmstest_pipe_name(n))
- test_hang(&display, e->exec_id | e->flags, n, false, false);
-
- igt_subtest_f("extended-pageflip-hang-newfb-%s-%s",
- e->name, kmstest_pipe_name(n))
- test_hang(&display, e->exec_id | e->flags, n, false, true);
-
- igt_subtest_f("extended-modeset-hang-oldfb-%s-%s",
- e->name, kmstest_pipe_name(n))
- test_hang(&display, e->exec_id | e->flags, n, true, false);
-
- igt_subtest_f("extended-modeset-hang-newfb-%s-%s",
- e->name, kmstest_pipe_name(n))
- test_hang(&display, e->exec_id | e->flags, n, true, true);
-
- igt_subtest_f("extended-modeset-hang-oldfb-with-reset-%s-%s",
- e->name, kmstest_pipe_name(n)) {
- igt_set_module_param_int("force_reset_modeset_test", 1);
+ igt_subtest_f("extended-modeset-hang-oldfb-with-reset-%s-%s",
+ e->name, kmstest_pipe_name(n)) {
+ igt_set_module_param_int("force_reset_modeset_test", 1);
- test_hang(&display, e->exec_id | e->flags, n, true, false);
+ test_hang(&display, e->exec_id | e->flags, n, true, false);
- igt_set_module_param_int("force_reset_modeset_test", 0);
- }
+ igt_set_module_param_int("force_reset_modeset_test", 0);
+ }
- igt_subtest_f("extended-modeset-hang-newfb-with-reset-%s-%s",
- e->name, kmstest_pipe_name(n)) {
- igt_set_module_param_int("force_reset_modeset_test", 1);
+ igt_subtest_f("extended-modeset-hang-newfb-with-reset-%s-%s",
+ e->name, kmstest_pipe_name(n)) {
+ igt_set_module_param_int("force_reset_modeset_test", 1);
- test_hang(&display, e->exec_id | e->flags, n, true, true);
+ test_hang(&display, e->exec_id | e->flags, n, true, true);
- igt_set_module_param_int("force_reset_modeset_test", 0);
- }
+ igt_set_module_param_int("force_reset_modeset_test", 0);
+ }
- igt_fixture {
- igt_disallow_hang(display.drm_fd, hang);
- }
+ igt_fixture {
+ igt_disallow_hang(display.drm_fd, hang);
}
}
}