[Intel-gfx] [PATCH i-g-t v3 00/13] Implement sw_sync test
robert.foss at collabora.com
robert.foss at collabora.com
Tue Sep 13 18:22:45 UTC 2016
From: Robert Foss <robert.foss at collabora.com>
This series implements the sw_sync test and the lib/sw_sync helper functions
for said test.
Gustavo Padovans sw_sync series was just de-staged in
gregkh-staging/staging-next [1], and this test is targeted at verifying the
functionality implemented in that series.
The sw_sync subtests range from very basic tests of the sw_sync functionality,
to stress testing and randomized tests.
[1] http://git.kernel.org/cgit/linux/kernel/git/gregkh/staging.git/
Changes since v1:
Added "Reviewed-by: Eric Engestrom <eric at engestrom.ch>" tag
lib/sw_sync:
- Fixed fd value checking
- Fixed fd validity check in sw_sync_fd_close()
- Moved sw_sync related paths to define
- Switched from malloc+memset to calloc in sync_file_info()
- Switched sizeof to dereferenced ptr
tests/sw_sync:
- Moved lib/sw_sync related code to lib/sw_sync commit
- Replaced memset with assignment in loop
Changes since v2:
lib/sw_sync:
- Replaced fd validity check in sw_sync_timeline_create()
- Replace sw_sync_XXX_destroy() functions with close()
- Simplified sw_sync_timeline_inc() comparison
- Changed sw_sync_merge() return value to -errno
- Changed name of sw_sync_fence_size() to sw_sync_fence_count()
- Reworked implementation of sw_sync_fence_count()
- Reworked implementation of sw_sync_fence_count_status()
tests/sw_sync:
- Replace sw_sync_XXX_destroy() functions with close()
Robert Foss (13):
lib/sw_sync: Add helper functions for managing synchronization
primitives
tests/sw_sync: Add sw_sync test
tests/sw_sync: Add subtest test_alloc_fence
tests/sw_sync: Add subtest test_alloc_fence_invalid_timeline
tests/sw_sync: Add subtest test_alloc_merge_fence
tests/sw_sync: Add subtest test_sync_wait
tests/sw_sync: Add subtest test_sync_merge
tests/sw_sync: Add subtest test_sync_merge_same
tests/sw_sync: Add subtest test_sync_multi_consumer
tests/sw_sync: Add subtest test_sync_multi_consumer_producer
tests/sw_sync: Add subtest test_sync_random_merge
tests/sw_sync: Add subtest test_sync_multi_timeline_wait
tests/sw_sync: Add subtest test_sync_multi_producer_single_consumer
lib/Makefile.sources | 2 +
lib/sw_sync.c | 183 +++++++++++++
lib/sw_sync.h | 47 ++++
tests/Makefile.sources | 1 +
tests/sw_sync.c | 694 +++++++++++++++++++++++++++++++++++++++++++++++++
5 files changed, 927 insertions(+)
create mode 100644 lib/sw_sync.c
create mode 100644 lib/sw_sync.h
create mode 100644 tests/sw_sync.c
--
2.9.3
More information about the Intel-gfx
mailing list