lib: Add some syncobj helpers (v2)
PATCH 1/4 lib: Add some syncobj helpers (v2)
--- lib/Makefile.sources | 2 + lib/igt_syncobj.c | 207 +++++++++++++++++++++++++++++++++++++++++++++++++++ lib/igt_syncobj.h | 71 ++++++++++++++++++ 3 files changed, 280 insertions(+) create mode 100644 lib/igt_syncobj.c create mode 100644 lib/igt_syncobj.h
lib/Makefile.sources +2 -0
@@ -83,6 +83,8 @@ lib_source_list = \ uwildmat/uwildmat.c \ igt_kmod.c \ igt_kmod.h \ + igt_syncobj.c \ + igt_syncobj.h \ $(NULL) .PHONY: version.h.tmp
lib/igt_syncobj.c new file +207 -0
207 lines not on this page · raw message
lib/igt_syncobj.h new file +71 -0
71 lines not on this page · raw message
Signature · 6 lines
2.5.0.400.gff86faf _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/4 tests/syncobj: Convert the basic test over to the helpers
--- tests/syncobj_basic.c | 77 +++++++++++++-------------------------------------- 1 file changed, 19 insertions(+), 58 deletions(-)
tests/syncobj_basic.c +19 -58
@@ -22,6 +22,7 @@*/ #include "igt.h" +#include "igt_syncobj.h" #include <unistd.h> #include <sys/ioctl.h> #include "drm.h"
@@ -48,14 +49,11 @@ static void test_bad_handle_to_fd(int fd) {struct drm_syncobj_handle handle; -int ret; handle.handle =0xdeadbeef ; handle.flags =0 ; - ret =ioctl (fd,DRM_IOCTL_SYNCOBJ_HANDLE_TO_FD , &handle); - -igt_assert (ret ==-1 && errno ==EINVAL ); +igt_assert_eq (__syncobj_handle_to_fd (fd, &handle), -EINVAL ); }/* fd to handle a bad fd */
@@ -63,14 +61,11 @@ static void test_bad_fd_to_handle(int fd) {struct drm_syncobj_handle handle; -int ret; handle.fd =-1 ; handle.flags =0 ; - ret =ioctl (fd,DRM_IOCTL_SYNCOBJ_FD_TO_HANDLE , &handle); - -igt_assert (ret ==-1 && errno ==EINVAL ); +igt_assert_eq (__syncobj_fd_to_handle (fd, &handle), -EINVAL ); }/* fd to handle an fd but not a sync file one */
@@ -78,58 +73,47 @@ static void test_illegal_fd_to_handle(int fd) {struct drm_syncobj_handle handle; -int ret; handle.fd = fd; handle.flags =0 ; - ret =ioctl (fd,DRM_IOCTL_SYNCOBJ_FD_TO_HANDLE , &handle); - -igt_assert (ret ==-1 && errno ==EINVAL ); +igt_assert_eq (__syncobj_fd_to_handle (fd, &handle), -EINVAL ); }static void test_bad_flags_fd_to_handle (int fd) {struct drm_syncobj_handle handle = {0 }; -int ret; handle.flags =0xdeadbeef ; - ret =ioctl (fd,DRM_IOCTL_SYNCOBJ_FD_TO_HANDLE , &handle); -igt_assert (ret ==-1 && errno ==EINVAL ); +igt_assert_eq (__syncobj_fd_to_handle (fd, &handle), -EINVAL ); }static void test_bad_flags_handle_to_fd (int fd) {struct drm_syncobj_handle handle = {0 }; -int ret; handle.flags =0xdeadbeef ; - ret =ioctl (fd,DRM_IOCTL_SYNCOBJ_HANDLE_TO_FD , &handle); -igt_assert (ret ==-1 && errno ==EINVAL ); +igt_assert_eq (__syncobj_handle_to_fd (fd, &handle), -EINVAL ); }static void test_bad_pad_handle_to_fd (int fd) {struct drm_syncobj_handle handle = {0 }; -int ret; handle.pad =0xdeadbeef ; - ret =ioctl (fd,DRM_IOCTL_SYNCOBJ_HANDLE_TO_FD , &handle); -igt_assert (ret ==-1 && errno ==EINVAL ); +igt_assert_eq (__syncobj_handle_to_fd (fd, &handle), -EINVAL ); }static void test_bad_pad_fd_to_handle (int fd) {struct drm_syncobj_handle handle = {0 }; -int ret; handle.pad =0xdeadbeef ; - ret =ioctl (fd,DRM_IOCTL_SYNCOBJ_FD_TO_HANDLE , &handle); -igt_assert (ret ==-1 && errno ==EINVAL ); +igt_assert_eq (__syncobj_fd_to_handle (fd, &handle), -EINVAL ); }
@@ -138,24 +122,17 @@ test_bad_pad_fd_to_handle(int fd)static void test_bad_destroy_pad (int fd) { -struct drm_syncobj_create create = {0 };struct drm_syncobj_destroy destroy;int ret; - ret =ioctl (fd,DRM_IOCTL_SYNCOBJ_CREATE , &create); - - destroy.handle = create.handle; + destroy.handle =syncobj_create (fd,0 ); destroy.pad =0xdeadbeef ; ret =ioctl (fd,DRM_IOCTL_SYNCOBJ_DESTROY , &destroy);igt_assert (ret ==-1 && errno ==EINVAL ); - destroy.handle = create.handle; - destroy.pad =0 ; - - ret =ioctl (fd,DRM_IOCTL_SYNCOBJ_DESTROY , &destroy); -igt_assert (ret ==0 ); +syncobj_destroy (fd, destroy.handle); } static void
@@ -176,34 +153,18 @@ test_bad_create_flags(int fd)static void test_valid_cycle (int fd) { -int ret; -struct drm_syncobj_create create = {0 }; -struct drm_syncobj_handle handle = {0 }; -struct drm_syncobj_destroy destroy = {0 }; -uint32_t first_handle; - - ret =ioctl (fd,DRM_IOCTL_SYNCOBJ_CREATE , &create); -igt_assert (ret ==0 ); +uint32_t first_handle, second_handle; +int syncobj_fd; - first_handle = create.handle; + first_handle =syncobj_create (fd,0 ); + syncobj_fd =syncobj_handle_to_fd (fd, first_handle,0 ); + second_handle =syncobj_fd_to_handle (fd, syncobj_fd,0 ); +close (syncobj_fd); - handle.handle = create.handle; - ret =ioctl (fd,DRM_IOCTL_SYNCOBJ_HANDLE_TO_FD , &handle); -igt_assert (ret ==0 ); - handle.handle =0 ; - ret =ioctl (fd,DRM_IOCTL_SYNCOBJ_FD_TO_HANDLE , &handle); -close (handle.fd); -igt_assert (ret ==0 ); +igt_assert (first_handle != second_handle); -igt_assert (handle.handle != first_handle); - - destroy.handle = handle.handle; - ret =ioctl (fd,DRM_IOCTL_SYNCOBJ_DESTROY , &destroy); -igt_assert (ret ==0 ); - - destroy.handle = first_handle; - ret =ioctl (fd,DRM_IOCTL_SYNCOBJ_DESTROY , &destroy); -igt_assert (ret ==0 ); +syncobj_destroy (fd, first_handle); +syncobj_destroy (fd, second_handle); }static bool has_syncobj (int fd)
Signature · 6 lines
2.5.0.400.gff86faf _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 3/4 tests/syncobj: Add some wait and reset tests (v7)
In reply to Jason EkstrandThis adds both trivial error-checking tests as well as more complex tests which actually test whether or not waits do what they're supposed to do. They only currently work on i915 but it should be simple to hook them up for other drivers by simply implementing the little function pointer hook provided at the top for triggering a syncobj.
v2:
- Actually add the reset tests.
v3:
- Only do one execbuf for trigger
- Use do_ioctl and do_ioctl_err
- Better check for syncobj support
- Add local_/LOCAL_ defines of things
- Use a timer instead of a pthread
v4:
- Use ioctl wrappers
- Use VGEM instead of i915
- Combine a bunch of the simple tests into one function
v5:
- Combinatorially generate basic tests
- Use sw_sync instead of using vgem directly
- Add even more tests
v6:
- Rebase on the new SYNCOBJ_RESET API
- Add tests for SYNCOBJ_SIGNAL
v7:
- Improve the signal and reset bad pad tests
stuff
--- tests/Makefile.sources | 1 + tests/syncobj_wait.c | 915 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 916 insertions(+) create mode 100644 tests/syncobj_wait.c
tests/Makefile.sources +1 -0
@@ -230,6 +230,7 @@ TESTS_progs = \ prime_vgem \ sw_sync \ syncobj_basic \ + syncobj_wait \ template \ tools_test \ vgem_basic \
tests/syncobj_wait.c new file +915 -0
915 lines not on this page · raw message
Signature · 6 lines
2.5.0.400.gff86faf _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 4/4 syncobj: Add a test for SYNCOBJ_CREATE_SIGNALED
In reply to Jason Ekstrand--- tests/syncobj_basic.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)
tests/syncobj_basic.c +13 -0
@@ -146,6 +146,16 @@ test_bad_create_flags(int fd)igt_assert (ret ==-1 && errno ==EINVAL ); } +static void +test_create_signaled (int fd) +{ +uint32_t syncobj =syncobj_create (fd,LOCAL_SYNCOBJ_CREATE_SIGNALED ); + +igt_assert_eq (syncobj_wait_err (fd, &syncobj,1 ,0 ,0 ),0 ); + +syncobj_destroy (fd, syncobj); +} +/* * currently don't do handle deduplication * test we get a different handle back.
@@ -215,6 +225,9 @@ igt_main igt_subtest("bad-destroy-pad")test_bad_destroy_pad (fd); + igt_subtest("create-signaled") +test_create_signaled (fd); + igt_subtest("test-valid-cycle")test_valid_cycle (fd);
Signature · 6 lines
2.5.0.400.gff86faf _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for series starting with [1/4] lib: Add some syncobj helpers (v2)
In reply to Jason Ekstrand== Series Details ==
== Series Details ==
Series: series starting with [1/4] lib: Add some syncobj helpers (v2)
URL : https://patchwork.freedesktop.org/series/29439/
State : success
== Summary ==
IGT patchset tested on top of latest successful build d937dd7997059bc2801095ffb0c50f646da1ab01 docs: Add user documentation about audio support
with latest DRM-Tip kernel build CI_DRM_3012ee53909d971d drm-tip: 2017y-08m-28d-15h-03m-59s UTC integration manifest
Test kms_cursor_legacy:
Subgroup basic-busy-flip-before-cursor-atomic:
fail -> PASS (fi-snb-2600) fdo#100215
Subgroup basic-flip-after-cursor-varying-size:
fail -> PASS (fi-hsw-4770) fdo#102402 +1
Test kms_flip:
Subgroup basic-flip-vs-modeset:
skip -> PASS (fi-skl-x1585l) fdo#101781fdo#100215 https://bugs.freedesktop.org/show_bug.cgi?id=100215
fdo#102402 https://bugs.freedesktop.org/show_bug.cgi?id=102402
fdo#101781 https://bugs.freedesktop.org/show_bug.cgi?id=101781
fi-bdw-5557u total:279 pass:268 dwarn:0 dfail:0 fail:0 skip:11 time:460s fi-bdw-gvtdvm total:279 pass:265 dwarn:0 dfail:0 fail:0 skip:14 time:449s fi-blb-e6850 total:279 pass:224 dwarn:1 dfail:0 fail:0 skip:54 time:362s fi-bsw-n3050 total:279 pass:243 dwarn:0 dfail:0 fail:0 skip:36 time:557s fi-bwr-2160 total:279 pass:184 dwarn:0 dfail:0 fail:0 skip:95 time:251s fi-bxt-j4205 total:279 pass:260 dwarn:0 dfail:0 fail:0 skip:19 time:530s fi-byt-j1900 total:279 pass:254 dwarn:1 dfail:0 fail:0 skip:24 time:525s fi-byt-n2820 total:279 pass:250 dwarn:1 dfail:0 fail:0 skip:28 time:521s fi-elk-e7500 total:279 pass:230 dwarn:0 dfail:0 fail:0 skip:49 time:442s fi-glk-2a total:279 pass:260 dwarn:0 dfail:0 fail:0 skip:19 time:617s fi-hsw-4770 total:279 pass:263 dwarn:0 dfail:0 fail:0 skip:16 time:446s fi-hsw-4770r total:279 pass:263 dwarn:0 dfail:0 fail:0 skip:16 time:425s fi-ilk-650 total:279 pass:229 dwarn:0 dfail:0 fail:0 skip:50 time:428s fi-ivb-3520m total:279 pass:261 dwarn:0 dfail:0 fail:0 skip:18 time:512s fi-ivb-3770 total:279 pass:261 dwarn:0 dfail:0 fail:0 skip:18 time:476s fi-kbl-7500u total:279 pass:261 dwarn:0 dfail:0 fail:0 skip:18 time:483s fi-kbl-7560u total:279 pass:269 dwarn:0 dfail:0 fail:0 skip:10 time:598s fi-kbl-r total:279 pass:261 dwarn:0 dfail:0 fail:0 skip:18 time:599s fi-pnv-d510 total:279 pass:223 dwarn:1 dfail:0 fail:0 skip:55 time:531s fi-skl-6260u total:279 pass:269 dwarn:0 dfail:0 fail:0 skip:10 time:475s fi-skl-6700k total:279 pass:261 dwarn:0 dfail:0 fail:0 skip:18 time:480s fi-skl-6770hq total:279 pass:269 dwarn:0 dfail:0 fail:0 skip:10 time:491s fi-skl-gvtdvm total:279 pass:266 dwarn:0 dfail:0 fail:0 skip:13 time:447s fi-skl-x1585l total:279 pass:269 dwarn:0 dfail:0 fail:0 skip:10 time:518s fi-snb-2520m total:279 pass:251 dwarn:0 dfail:0 fail:0 skip:28 time:548s fi-snb-2600 total:279 pass:249 dwarn:0 dfail:0 fail:1 skip:29 time:413s
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_113/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 1 line · Jason Ekstrand
Signed-off-by Jason Ekstrand <[email protected]>
gtkdocs would be lovely for this, if I can motivate you ...
Thanks, Daniel
Quoted 318 lines
--- lib/Makefile.sources | 2 + lib/igt_syncobj.c | 207 +++++++++++++++++++++++++++++++++++++++++++++++++++ lib/igt_syncobj.h | 71 ++++++++++++++++++ 3 files changed, 280 insertions(+) create mode 100644 lib/igt_syncobj.c create mode 100644 lib/igt_syncobj.hlib/Makefile.sources +2
-0@@ -83,6 +83,8 @@ lib_source_list = \ uwildmat/uwildmat.c \ igt_kmod.c \ igt_kmod.h \ + igt_syncobj.c \ + igt_syncobj.h \ $(NULL) .PHONY: version.h.tmplib/igt_syncobj.c new file +207
-0@@ -0,0 +1,207 @@ +/* +* Copyright © 2017 Intel Corporation +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +* IN THE SOFTWARE. +*/ + +#include <errno.h> +#include <xf86drm.h> + +#include "igt.h" +#include "igt_syncobj.h" + +static int +__syncobj_create (int fd,uint32_t *handle,uint32_t flags) +{ +struct drm_syncobj_create create = {0 }; +int err =0 ; + + create.flags = flags; +if (drmIoctl (fd,DRM_IOCTL_SYNCOBJ_CREATE , &create)) + err = -errno; + *handle = create.handle; +return err; +} + +uint32_t +syncobj_create (int fd,uint32_t flags) +{ +uint32_t handle; +igt_assert_eq (__syncobj_create (fd, &handle, flags),0 ); +igt_assert (handle); +return handle; +} + +static int +__syncobj_destroy (int fd,uint32_t handle) +{ +struct drm_syncobj_destroy destroy = {0 }; +int err =0 ; + + destroy.handle = handle; +if (drmIoctl (fd,DRM_IOCTL_SYNCOBJ_DESTROY , &destroy)) + err = -errno; +return err; +} + +void +syncobj_destroy (int fd,uint32_t handle) +{ +igt_assert_eq (__syncobj_destroy (fd, handle),0 ); +} + +int +__syncobj_handle_to_fd (int fd,struct drm_syncobj_handle *args) +{ +int err =0 ; +if (drmIoctl (fd,DRM_IOCTL_SYNCOBJ_HANDLE_TO_FD , args)) + err = -errno; +return err; +} + +int +syncobj_handle_to_fd (int fd,uint32_t handle,uint32_t flags) +{ +struct drm_syncobj_handle args = {0 }; + args.handle = handle; + args.flags = flags; +igt_assert_eq (__syncobj_handle_to_fd (fd, &args),0 ); +igt_assert (args.fd >=0 ); +return args.fd; +} + +int +__syncobj_fd_to_handle (int fd,struct drm_syncobj_handle *args) +{ +int err =0 ; +if (drmIoctl (fd,DRM_IOCTL_SYNCOBJ_FD_TO_HANDLE , args)) + err = -errno; +return err; +} + +uint32_t +syncobj_fd_to_handle (int fd,int syncobj_fd,uint32_t flags) +{ +struct drm_syncobj_handle args = {0 }; + args.fd = syncobj_fd; + args.flags = flags; +igt_assert_eq (__syncobj_fd_to_handle (fd, &args),0 ); +igt_assert (args.handle >0 ); +return args.handle; +} + +void +syncobj_import_sync_file (int fd,uint32_t handle,int sync_file) +{ +struct drm_syncobj_handle args = {0 }; + args.handle = handle; + args.fd = sync_file; + args.flags =DRM_SYNCOBJ_FD_TO_HANDLE_FLAGS_IMPORT_SYNC_FILE ; +igt_assert_eq (__syncobj_fd_to_handle (fd, &args),0 ); +} + +int +__syncobj_wait (int fd,struct local_syncobj_wait *args) +{ +int err =0 ; +if (drmIoctl (fd,LOCAL_IOCTL_SYNCOBJ_WAIT , args)) + err = -errno; +return err; +} + +int +syncobj_wait_err (int fd,uint32_t *handles,uint32_t count, +uint64_t abs_timeout_nsec,uint32_t flags) +{ +struct local_syncobj_wait wait; + + wait.handles =to_user_pointer (handles); + wait.timeout_nsec = abs_timeout_nsec; + wait.count_handles = count; + wait.flags = flags; + wait.first_signaled =0 ; + wait.pad =0 ; + +return __syncobj_wait (fd, &wait); +} + +bool +syncobj_wait (int fd,uint32_t *handles,uint32_t count, +uint64_t abs_timeout_nsec,uint32_t flags, +uint32_t *first_signaled) +{ +struct local_syncobj_wait wait; +int ret; + + wait.handles =to_user_pointer (handles); + wait.timeout_nsec = abs_timeout_nsec; + wait.count_handles = count; + wait.flags = flags; + wait.first_signaled =0 ; + wait.pad =0 ; + + ret =__syncobj_wait (fd, &wait); +if (ret ==ETIME ) +return false; + +igt_assert_eq (ret,0 ); +if (first_signaled) + *first_signaled = wait.first_signaled; + +return true; +} + +static int +__syncobj_reset (int fd,uint32_t *handles,uint32_t count) +{ +struct local_syncobj_array array = {0 }; +int err =0 ; + + array.handles =to_user_pointer (handles); + array.count_handles = count; +if (drmIoctl (fd,LOCAL_IOCTL_SYNCOBJ_RESET , &array)) + err = -errno; +return err; +} + +void +syncobj_reset (int fd,uint32_t *handles,uint32_t count) +{ +igt_assert_eq (__syncobj_reset (fd, handles, count),0 ); +} + +static int +__syncobj_signal (int fd,uint32_t *handles,uint32_t count) +{ +struct local_syncobj_array array = {0 }; +int err =0 ; + + array.handles =to_user_pointer (handles); + array.count_handles = count; +if (drmIoctl (fd,LOCAL_IOCTL_SYNCOBJ_SIGNAL , &array)) + err = -errno; +return err; +} + +void +syncobj_signal (int fd,uint32_t *handles,uint32_t count) +{ +igt_assert_eq (__syncobj_signal (fd, handles, count),0 ); +}lib/igt_syncobj.h new file +71
-0@@ -0,0 +1,71 @@ +/* +* Copyright © 2017 Intel Corporation +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +* IN THE SOFTWARE. +*/ + +#ifndef IGT_SYNCOBJ_H +#define IGT_SYNCOBJ_H + +#include <stdint.h> +#include <stdbool.h> +#include <drm.h> + +#define LOCAL_SYNCOBJ_CREATE_SIGNALED (1 << 0) + +#define LOCAL_SYNCOBJ_WAIT_FLAGS_WAIT_ALL (1 << 0) +#define LOCAL_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT (1 << 1) +struct local_syncobj_wait { +__u64 handles; +/* absolute timeout */ +__s64 timeout_nsec; +__u32 count_handles; +__u32 flags; +__u32 first_signaled;/* only valid when not waiting all */ +__u32 pad; +}; + +struct local_syncobj_array { +__u64 handles; +__u32 count_handles; +__u32 pad; +}; + +#define LOCAL_IOCTL_SYNCOBJ_WAIT DRM_IOWR(0xC3, struct local_syncobj_wait) +#define LOCAL_IOCTL_SYNCOBJ_RESET DRM_IOWR(0xC4, struct local_syncobj_array) +#define LOCAL_IOCTL_SYNCOBJ_SIGNAL DRM_IOWR(0xC5, struct local_syncobj_array) + +uint32_t syncobj_create (int fd,uint32_t flags); +void syncobj_destroy (int fd,uint32_t handle); +int __syncobj_handle_to_fd (int fd,struct drm_syncobj_handle *args); +int __syncobj_fd_to_handle (int fd,struct drm_syncobj_handle *args); +int syncobj_handle_to_fd (int fd,uint32_t handle,uint32_t flags); +uint32_t syncobj_fd_to_handle (int fd,int syncobj_fd,uint32_t flags); +void syncobj_import_sync_file (int fd,uint32_t handle,int sync_file); +int __syncobj_wait (int fd,struct local_syncobj_wait *args); +int syncobj_wait_err (int fd,uint32_t *handles,uint32_t count, +uint64_t abs_timeout_nsec,uint32_t flags); +bool syncobj_wait (int fd,uint32_t *handles,uint32_t count, +uint64_t abs_timeout_nsec,uint32_t flags, +uint32_t *first_signaled); +void syncobj_reset (int fd,uint32_t *handles,uint32_t count); +void syncobj_signal (int fd,uint32_t *handles,uint32_t count); + +#endif /* IGT_SYNCOBJ_H */ Signature · 6 lines
2.5.0.400.gff86faf _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.IGT: success for series starting with [1/4] lib: Add some syncobj helpers (v2)
In reply to Jason Ekstrand== Series Details ==
== Series Details ==
Series: series starting with [1/4] lib: Add some syncobj helpers (v2)
URL : https://patchwork.freedesktop.org/series/29439/
State : success
== Summary ==
Test kms_flip:
Subgroup plain-flip-ts-check:
fail -> PASS (shard-hsw)
Test vgem_basic:
Subgroup unload:
skip -> PASS (shard-hsw) fdo#102453fdo#102453 https://bugs.freedesktop.org/show_bug.cgi?id=102453
shard-hsw total:2300 pass:1232 dwarn:0 dfail:0 fail:18 skip:1050 time:9674s
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_113/shards.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx