• Home
  • Raw
  • Download

Lines Matching full:wait

35 IGT_TEST_DESCRIPTION("Tests for the drm sync object wait API");
144 struct local_syncobj_wait wait = { 0 }; in test_wait_bad_flags() local
145 wait.flags = 0xdeadbeef; in test_wait_bad_flags()
146 igt_assert_eq(__syncobj_wait(fd, &wait), -EINVAL); in test_wait_bad_flags()
152 struct local_syncobj_wait wait = { 0 }; in test_wait_zero_handles() local
153 igt_assert_eq(__syncobj_wait(fd, &wait), -EINVAL); in test_wait_zero_handles()
159 struct local_syncobj_wait wait = { 0 }; in test_wait_illegal_handle() local
162 wait.count_handles = 1; in test_wait_illegal_handle()
163 wait.handles = to_user_pointer(&handle); in test_wait_illegal_handle()
164 igt_assert_eq(__syncobj_wait(fd, &wait), -ENOENT); in test_wait_illegal_handle()
444 /* A reset should be a no-op even if we're in the middle of a wait */ in test_reset_during_wait_for_submit()
515 struct local_syncobj_wait wait; member
521 struct wait_thread_data *wait = data; in wait_thread_func() local
522 igt_assert_eq(__syncobj_wait(wait->fd, &wait->wait), 0); in wait_thread_func()
529 struct wait_thread_data wait = { 0 }; in test_wait_snapshot() local
542 wait.fd = fd; in test_wait_snapshot()
543 wait.wait.handles = to_user_pointer(syncobjs); in test_wait_snapshot()
544 wait.wait.count_handles = 2; in test_wait_snapshot()
545 wait.wait.timeout_nsec = short_timeout(); in test_wait_snapshot()
546 wait.wait.flags = flags_for_test_flags(test_flags); in test_wait_snapshot()
548 igt_assert_eq(pthread_create(&thread, NULL, wait_thread_func, &wait), 0); in test_wait_snapshot()
580 /* Now trigger the second fence to complete the wait */ in test_wait_snapshot()
590 igt_assert_eq(wait.wait.first_signaled, 1); in test_wait_snapshot()
616 struct wait_thread_data wait = { 0 }; in test_wait_complex() local
636 wait.fd = fd; in test_wait_complex()
637 wait.wait.handles = to_user_pointer(syncobjs); in test_wait_complex()
638 wait.wait.count_handles = 2; in test_wait_complex()
639 wait.wait.timeout_nsec = gettime_ns() + NSECS_PER_SEC; in test_wait_complex()
640 wait.wait.flags = flags_for_test_flags(test_flags); in test_wait_complex()
642 igt_assert_eq(pthread_create(&thread, NULL, wait_thread_func, &wait), 0); in test_wait_complex()
705 igt_assert_eq(wait.wait.first_signaled, first_signaled); in test_wait_complex()
717 struct local_syncobj_wait wait = { 0 }; in test_wait_interrupted() local
721 wait.handles = to_user_pointer(&syncobj); in test_wait_interrupted()
722 wait.count_handles = 1; in test_wait_interrupted()
723 wait.flags = flags_for_test_flags(test_flags); in test_wait_interrupted()
726 wait.timeout_nsec = short_timeout(); in test_wait_interrupted()
728 igt_assert_eq(__syncobj_wait(fd, &wait), -ETIME); in test_wait_interrupted()
733 wait.timeout_nsec = short_timeout(); in test_wait_interrupted()
735 igt_assert_eq(__syncobj_wait(fd, &wait), -ETIME); in test_wait_interrupted()
744 struct local_syncobj_wait wait = { 0 }; in has_syncobj_wait() local
755 wait.count_handles = 1; in has_syncobj_wait()
756 wait.handles = to_user_pointer(&handle); in has_syncobj_wait()
757 ret = drmIoctl(fd, LOCAL_IOCTL_SYNCOBJ_WAIT, &wait); in has_syncobj_wait()
771 igt_subtest("invalid-wait-bad-flags")
774 igt_subtest("invalid-wait-zero-handles")
777 igt_subtest("invalid-wait-illegal-handle")
807 /* Only one wait mode for single-wait tests */
820 igt_subtest_f("%ssingle-wait%s%s%s%s%s",
830 igt_subtest("wait-delayed-signal")
833 igt_subtest("wait-for-submit-delayed-submit")
836 igt_subtest("wait-all-delayed-signal")
839 igt_subtest("wait-all-for-submit-delayed-submit")
851 igt_subtest("reset-during-wait-for-submit")
860 /* At least one wait mode for multi-wait tests */
877 igt_subtest_f("%smulti-wait%s%s%s%s%s",
887 igt_subtest("wait-any-snapshot")
890 igt_subtest("wait-all-snapshot")
893 igt_subtest("wait-for-submit-snapshot")
896 igt_subtest("wait-all-for-submit-snapshot")
899 igt_subtest("wait-any-complex")
902 igt_subtest("wait-all-complex")
905 igt_subtest("wait-for-submit-complex")
908 igt_subtest("wait-all-for-submit-complex")
911 igt_subtest("wait-any-interrupted")
914 igt_subtest("wait-all-interrupted")