[PATCH v2 1/7] selftest: sync: basic tests for sw_sync framework

2016-10-19 Thread Emilio López
These tests are based on the libsync test suite from Android. This commit lays the ground for future tests, as well as includes tests for a variety of basic allocation commands. Signed-off-by: Emilio López --- tools/testing/selftests/Makefile | 1 + tools/testing/selftests/sync/.giti

[PATCH v2 4/7] selftest: sync: wait tests for sw_sync framework

2016-10-19 Thread Emilio López
These tests are based on the libsync test suite from Android. This commit includes tests for waiting on fences. Signed-off-by: Emilio López --- tools/testing/selftests/sync/Makefile| 1 + tools/testing/selftests/sync/sync_test.c | 1 + tools/testing/selftests/sync/sync_wait.c | 91 +++

[PATCH v2 3/7] selftest: sync: merge tests for sw_sync framework

2016-10-19 Thread Emilio López
These tests are based on the libsync test suite from Android. This commit includes tests for basic merge operations. Signed-off-by: Emilio López --- tools/testing/selftests/sync/Makefile | 1 + tools/testing/selftests/sync/sync_merge.c | 60 +++ tools/testing/se

[PATCH v2 6/7] selftest: sync: stress consumer/producer test

2016-10-19 Thread Emilio López
This test is based on the libsync test suite from Android. This commit includes a stress test that replicates a consumer/producer pattern. Signed-off-by: Emilio López --- tools/testing/selftests/sync/Makefile | 1 + .../testing/selftests/sync/sync_stress_consumer.c | 185 +++

[PATCH v2 7/7] selftest: sync: stress test for merges

2016-10-19 Thread Emilio López
This test is based on the libsync test suite from Android. This commit includes a test to stress merge operations. Signed-off-by: Emilio López --- tools/testing/selftests/sync/Makefile| 1 + tools/testing/selftests/sync/sync_stress_merge.c | 115 +++ tools/test

[PATCH v2 2/7] selftest: sync: fence tests for sw_sync framework

2016-10-19 Thread Emilio López
These tests are based on the libsync test suite from Android. This commit includes tests for basic fence creation. Signed-off-by: Emilio López --- tools/testing/selftests/sync/Makefile | 1 + tools/testing/selftests/sync/sync_fence.c | 132 ++ tools/testing/sel

[PATCH v2 0/7] Tests for sync infrastructure

2016-10-19 Thread Emilio López
Hello everyone, This is a series of tests to exercise the sync kernel infrastructure. It is meant to be a test suite for the work Gustavo has been doing to destage it. These tests were originally part of a battery of tests shipping with Android's libsync that were rewritten to use the new userspa

[PATCH v2 5/7] selftest: sync: stress test for parallelism

2016-10-19 Thread Emilio López
This test is based on the libsync test suite from Android. This commit includes a stress test that invokes operations in parallel. Signed-off-by: Emilio López --- tools/testing/selftests/sync/Makefile | 1 + .../selftests/sync/sync_stress_parallelism.c | 111 +++

[PATCH] dma-buf/sync_file: fix documentation error

2016-09-19 Thread Emilio López
The ioctl name and description on the documentation block don't match the ioctl being defined. This was probably overlooked while renaming the ioctls during the sync file destaging. This patch provides a more accurate description of what the ioctl actually does. Signed-off-by: Emilio López ---

[PATCH 0/7] Tests for sync infrastructure

2016-09-21 Thread Emilio López
Hello everyone, This is a series of tests to exercise the sync kernel infrastructure. It is meant to be a test suite for the work Gustavo has been doing to destage it. These tests were originally part of a battery of tests shipping with Android's libsync that were rewritten to use the new userspa

[PATCH 1/7] selftest: sync: basic tests for sw_sync framework

2016-09-21 Thread Emilio López
These tests are based on the libsync test suite from Android. This commit lays the ground for future tests, as well as includes tests for a variety of basic allocation commands. Signed-off-by: Emilio López --- tools/testing/selftests/Makefile | 1 + tools/testing/selftests/sync/.giti

[PATCH 3/7] selftest: sync: merge tests for sw_sync framework

2016-09-21 Thread Emilio López
These tests are based on the libsync test suite from Android. This commit includes tests for basic merge operations. Signed-off-by: Emilio López --- tools/testing/selftests/sync/Makefile | 1 + tools/testing/selftests/sync/sync_merge.c | 60 +++ tools/testing/se

[PATCH 2/7] selftest: sync: fence tests for sw_sync framework

2016-09-21 Thread Emilio López
These tests are based on the libsync test suite from Android. This commit includes tests for basic fence creation. Signed-off-by: Emilio López --- tools/testing/selftests/sync/Makefile | 1 + tools/testing/selftests/sync/sync_fence.c | 132 ++ tools/testing/sel

[PATCH 4/7] selftest: sync: wait tests for sw_sync framework

2016-09-21 Thread Emilio López
These tests are based on the libsync test suite from Android. This commit includes tests for waiting on fences. Signed-off-by: Emilio López --- tools/testing/selftests/sync/Makefile| 1 + tools/testing/selftests/sync/sync_test.c | 1 + tools/testing/selftests/sync/sync_wait.c | 91 +++

[PATCH 7/7] selftest: sync: stress test for merges

2016-09-21 Thread Emilio López
This test is based on the libsync test suite from Android. This commit includes a test to stress merge operations. Signed-off-by: Emilio López --- tools/testing/selftests/sync/Makefile| 1 + tools/testing/selftests/sync/sync_stress_merge.c | 116 +++ tools/test

[PATCH 5/7] selftest: sync: stress test for parallelism

2016-09-21 Thread Emilio López
This test is based on the libsync test suite from Android. This commit includes a stress test that invokes operations in parallel. Signed-off-by: Emilio López --- tools/testing/selftests/sync/Makefile | 1 + .../selftests/sync/sync_stress_parallelism.c | 111 +++

[PATCH 1/7] selftest: sync: basic tests for sw_sync framework

2016-09-22 Thread Emilio López
Hi Michael, El 22/09/16 a las 06:43, Michael Ellerman escribió: > Emilio López writes: >> +CFLAGS += -I../../../../include/uapi/ > > Please don't include the unprocessed uapi headers, they are not meant to > be directly included in userspace programs. > > They even say so: > > include/uapi/linu

[PATCH 6/7] selftest: sync: stress consumer/producer test

2016-09-21 Thread Emilio López
This test is based on the libsync test suite from Android. This commit includes a stress test that replicates a consumer/producer pattern. Signed-off-by: Emilio López --- tools/testing/selftests/sync/Makefile | 1 + .../testing/selftests/sync/sync_stress_consumer.c | 185 +++

[PATCH] uapi: add missing install of sync_file.h

2016-09-27 Thread Emilio López
As part of the sync framework destaging, the sync_file.h header was moved, but an entry was not added on Kbuild to install it. This patch resolves this omission so that "make headers_install" installs this header. Fixes: 460bfc41fd52 ("dma-buf/sync_file: de-stage sync_file headers") Reported-by: M

[PATCH 1/7] selftest: sync: basic tests for sw_sync framework

2016-09-27 Thread Emilio López
Hi, El 27/09/16 a las 01:23, Michael Ellerman escribió: > Emilio López writes: >> El 22/09/16 a las 06:43, Michael Ellerman escribió: >>> Emilio López writes: >>> >>> Please don't include the *kernel* headers, they're really not meant to >>> be used in userspace programs :) >>> +CFLAGS

[RFC PATCH v1 0/9] Tests for sync infrastructure

2016-03-09 Thread Emilio López
Hello everyone, This is a series of tests to exercise the sync kernel infrastructure. It is meant to be a test suite for the work Gustavo has been doing to destage it, see [0] for his latest series to date. These tests were originally part of a battery of tests shipping with Android's libsync tha

[RFC PATCH v1 1/9] selftest: sync: basic tests for sw_sync framework

2016-03-09 Thread Emilio López
These tests are based on the libsync test suite from Android. This commit lays the ground for future tests, as well as includes tests for a variety of basic allocation commands. Signed-off-by: Gustavo Padovan Signed-off-by: Emilio López --- tools/testing/selftests/Makefile | 1 + t

[RFC PATCH v1 3/9] selftest: sync: merge tests for sw_sync framework

2016-03-09 Thread Emilio López
These tests are based on the libsync test suite from Android. This commit includes tests for basic merge operations. Signed-off-by: Emilio López --- tools/testing/selftests/sync/Makefile | 1 + tools/testing/selftests/sync/sync_merge.c | 60 +++ tools/testing/s

[RFC PATCH v1 4/9] selftest: sync: wait tests for sw_sync framework

2016-03-09 Thread Emilio López
These tests are based on the libsync test suite from Android. This commit includes tests for waiting on fences. Signed-off-by: Emilio López --- tools/testing/selftests/sync/Makefile| 1 + tools/testing/selftests/sync/sync_test.c | 1 + tools/testing/selftests/sync/sync_wait.c | 95 ++

[RFC PATCH v1 5/9] selftest: sync: destruction tests for sw_sync framework

2016-03-09 Thread Emilio López
These tests are based on the libsync test suite from Android. This commit includes tests for operations on destructed objects. Signed-off-by: Emilio López --- tools/testing/selftests/sync/Makefile | 1 + tools/testing/selftests/sync/sync_destroyed.c | 90 +++ t

[RFC PATCH v1 6/9] selftest: sync: stress test for parallelism

2016-03-09 Thread Emilio López
This test is based on the libsync test suite from Android. This commit includes a stress test that invokes operations in parallel. Signed-off-by: Emilio López --- tools/testing/selftests/sync/Makefile | 1 + .../selftests/sync/sync_stress_parallelism.c | 111 ++

[RFC PATCH v1 8/9] selftest: sync: stress test for merges

2016-03-09 Thread Emilio López
This test is based on the libsync test suite from Android. This commit includes a test to stress merge operations. Signed-off-by: Emilio López --- tools/testing/selftests/sync/Makefile| 1 + tools/testing/selftests/sync/sync_stress_merge.c | 115 +++ tools/tes

[RFC PATCH v1 2/9] selftest: sync: fence tests for sw_sync framework

2016-03-09 Thread Emilio López
These tests are based on the libsync test suite from Android. This commit includes tests for basic fence creation. Signed-off-by: Emilio López --- tools/testing/selftests/sync/Makefile | 1 + tools/testing/selftests/sync/sync_fence.c | 134 ++ tools/testing/se

[RFC PATCH v1 7/9] selftest: sync: stress consumer/producer test

2016-03-09 Thread Emilio López
This test is based on the libsync test suite from Android. This commit includes a stress test that replicates a consumer/producer pattern. Signed-off-by: Emilio López --- tools/testing/selftests/sync/Makefile | 1 + .../testing/selftests/sync/sync_stress_consumer.c | 185 ++

[RFC PATCH v1 9/9] selftest: sync: disable tests that rely on not yet defined behaviour

2016-03-09 Thread Emilio López
One of the tests rely on a behaviour only observed on the driver currently in use in Android. Disable it here until the behaviour is implemented or it is decided it should not be implemented on the driver in mainline. Signed-off-by: Emilio López --- tools/testing/selftests/sync/sync_test.c |

[RFC PATCH v1 1/9] selftest: sync: basic tests for sw_sync framework

2016-03-28 Thread Emilio López
Hi, El 28/03/16 a las 08:56, Emil Velikov escribió: > Hi Emilio, > > On 9 March 2016 at 15:28, Emilio López > wrote: >> These tests are based on the libsync test suite from Android. >> This commit lays the ground for future tests, as well as includes >> tests for a variety of basic allocation

[RFC PATCH v1 9/9] selftest: sync: disable tests that rely on not yet defined behaviour

2016-03-28 Thread Emilio López
El 09/03/16 a las 13:14, Shuah Khan escribió: > On 03/09/2016 08:29 AM, Emilio López wrote: >> One of the tests rely on a behaviour only observed on the driver currently >> in use in Android. Disable it here until the behaviour is implemented >> or it is decided it should not be implemented on th

[RFC PATCH v1 0/9] Tests for sync infrastructure

2016-03-28 Thread Emilio López
Hi, I somehow missed these emails back in the day, sorry for the delay in replying. El 09/03/16 a las 13:13, Shuah Khan escribió: > On 03/09/2016 08:28 AM, Emilio López wrote: >> Hello everyone, >> >> This is a series of tests to exercise the sync kernel infrastructure. It is >> meant to be a