All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t v5 00/13] Implement sw_sync test
@ 2016-09-15 18:40 robert.foss
  2016-09-15 18:40 ` [PATCH i-g-t v5 01/13] lib/sw_sync: Add helper functions for managing synchronization primitives robert.foss
                   ` (12 more replies)
  0 siblings, 13 replies; 25+ messages in thread
From: robert.foss @ 2016-09-15 18:40 UTC (permalink / raw)
  To: intel-gfx, Gustavo Padovan, Daniel Stone, Daniel Vetter,
	Marius Vlad, Eric Engestrom, Chris Wilson

From: Robert Foss <robert.foss@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@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()


Changes since v3:

  lib/sw_sync:
  - Changed sw_sync_fence_create() to take uint32_t seqno
  - Added raw __sw_sync_fence_create() and failure check sw_sync_fence_create()

  tests/sw_sync:
  - Switch to using __sw_sync_fence_create() for failure cases


Changes since v4:

  lib/sw_sync:
  - Fixed whitespace in sw_sync_fence_count()
  - Fixed whitespace and style of sw_sync_wait()
  - Fixed whitespace in __sw_sync_fence_count_status()

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          | 181 +++++++++++++
 lib/sw_sync.h          |  48 ++++
 tests/Makefile.sources |   1 +
 tests/sw_sync.c        | 694 +++++++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 926 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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2016-09-16 10:48 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-15 18:40 [PATCH i-g-t v5 00/13] Implement sw_sync test robert.foss
2016-09-15 18:40 ` [PATCH i-g-t v5 01/13] lib/sw_sync: Add helper functions for managing synchronization primitives robert.foss
2016-09-15 20:12   ` Chris Wilson
2016-09-15 18:40 ` [PATCH i-g-t v5 02/13] tests/sw_sync: Add sw_sync test robert.foss
2016-09-15 20:22   ` Chris Wilson
2016-09-15 21:05     ` Robert Foss
2016-09-16 10:47       ` Chris Wilson
2016-09-15 18:40 ` [PATCH i-g-t v5 03/13] tests/sw_sync: Add subtest test_alloc_fence robert.foss
2016-09-15 18:40 ` [PATCH i-g-t v5 04/13] tests/sw_sync: Add subtest test_alloc_fence_invalid_timeline robert.foss
2016-09-15 18:40 ` [PATCH i-g-t v5 05/13] tests/sw_sync: Add subtest test_alloc_merge_fence robert.foss
2016-09-15 18:40 ` [PATCH i-g-t v5 06/13] tests/sw_sync: Add subtest test_sync_wait robert.foss
2016-09-15 20:32   ` Chris Wilson
2016-09-15 22:25     ` Robert Foss
2016-09-16 10:36       ` Chris Wilson
2016-09-15 20:45   ` Chris Wilson
2016-09-15 18:40 ` [PATCH i-g-t v5 07/13] tests/sw_sync: Add subtest test_sync_merge robert.foss
2016-09-15 20:41   ` Chris Wilson
2016-09-16  0:27     ` Robert Foss
2016-09-16  8:21       ` Chris Wilson
2016-09-15 18:40 ` [PATCH i-g-t v5 08/13] tests/sw_sync: Add subtest test_sync_merge_same robert.foss
2016-09-15 18:40 ` [PATCH i-g-t v5 09/13] tests/sw_sync: Add subtest test_sync_multi_consumer robert.foss
2016-09-15 18:40 ` [PATCH i-g-t v5 10/13] tests/sw_sync: Add subtest test_sync_multi_consumer_producer robert.foss
2016-09-15 18:40 ` [PATCH i-g-t v5 11/13] tests/sw_sync: Add subtest test_sync_random_merge robert.foss
2016-09-15 18:40 ` [PATCH i-g-t v5 12/13] tests/sw_sync: Add subtest test_sync_multi_timeline_wait robert.foss
2016-09-15 18:40 ` [PATCH i-g-t v5 13/13] tests/sw_sync: Add subtest test_sync_multi_producer_single_consumer robert.foss

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.