Add changes reflecting the new support for dynamic number of planes per pipe.
Signed-off-by: Robert Foss
---
tests/kms_properties.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/kms_properties.c b/tests/kms_properties.c
index 2650672d..a86371c0 100644
--- a
Add changes reflecting the new support for dynamic number of planes per pipe.
Signed-off-by: Robert Foss
---
tests/kms_plane_scaling.c | 14 +++---
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
index 368da09f
Add changes reflecting the new support for dynamic number of planes per pipe.
Signed-off-by: Robert Foss
---
tests/kms_universal_plane.c | 18 +-
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/tests/kms_universal_plane.c b/tests/kms_universal_plane.c
index
Add changes reflecting the new support for dynamic number of planes per pipe.
Signed-off-by: Robert Foss
---
tests/kms_rmfb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/kms_rmfb.c b/tests/kms_rmfb.c
index 17a3065a..5753d74c 100644
--- a/tests/kms_rmfb.c
+++ b
Add changes reflecting the new support for dynamic number of planes per pipe.
Signed-off-by: Robert Foss
---
tests/kms_sink_crc_basic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/kms_sink_crc_basic.c b/tests/kms_sink_crc_basic.c
index c332eb1e..953ead10 100644
Add changes reflecting the new support for dynamic number of planes per pipe.
Signed-off-by: Robert Foss
---
tests/kms_vblank.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/kms_vblank.c b/tests/kms_vblank.c
index 9bc49296..73b3b2ad 100644
--- a/tests
Add changes reflecting the new support for dynamic number of planes per pipe.
Signed-off-by: Robert Foss
---
tests/kms_panel_fitting.c | 16
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/tests/kms_panel_fitting.c b/tests/kms_panel_fitting.c
index 1b350762
Add changes reflecting the new support for dynamic number of planes per pipe.
Signed-off-by: Robert Foss
---
tests/kms_rotation_crc.c | 63
1 file changed, 32 insertions(+), 31 deletions(-)
diff --git a/tests/kms_rotation_crc.c b/tests
Add changes reflecting the new support for dynamic number of planes per pipe.
Signed-off-by: Robert Foss
---
tests/prime_mmap_kms.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/prime_mmap_kms.c b/tests/prime_mmap_kms.c
index 15e310fc..5ef882c3 100644
--- a/tests
Add changes reflecting the new support for dynamic number of planes per pipe.
Signed-off-by: Robert Foss
---
tests/kms_plane_multiple.c | 203 -
1 file changed, 125 insertions(+), 78 deletions(-)
diff --git a/tests/kms_plane_multiple.c b/tests
Add changes reflecting the new support for dynamic number of planes per pipe.
Signed-off-by: Robert Foss
---
tests/kms_mmap_write_crc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/kms_mmap_write_crc.c b/tests/kms_mmap_write_crc.c
index fce0471d..fcfba154 100644
buf array may overflow with when writing '\0' if
MAX_LINE_LEN bytes are read during read().
Signed-off-by: Robert Foss
---
lib/igt_debugfs.c | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/lib/igt_debugfs.c b/lib/igt_debugfs.c
index d828687a..8b8a627a 10
Add changes reflecting the new support for dynamic number of planes per pipe.
Signed-off-by: Robert Foss
---
tests/kms_plane.c | 94 ++-
1 file changed, 52 insertions(+), 42 deletions(-)
diff --git a/tests/kms_plane.c b/tests/kms_plane.c
Add changes reflecting the new support for dynamic number of planes per pipe.
Signed-off-by: Robert Foss
---
tests/kms_fence_pin_leak.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/kms_fence_pin_leak.c b/tests/kms_fence_pin_leak.c
index 7d4ffbcd..98963bbb 100644
Add changes reflecting the new support for dynamic number of planes per pipe.
Signed-off-by: Robert Foss
---
tests/kms_psr_sink_crc.c | 52 +---
1 file changed, 23 insertions(+), 29 deletions(-)
diff --git a/tests/kms_psr_sink_crc.c b/tests
/robertfoss/intel-gpu-tools.git/
Robert Foss (29):
lib/igt_debugfs: Prevent buffer overflow
lib/igt_kms: Fixed typo
lib/igt_kms: Implement dynamic plane count support
tests/kms_atomic_transition: Add support for dynamic number of planes
tests/kms_busy: Add support for dynamic number of planes
Add changes reflecting the new support for dynamic number of planes per pipe.
Signed-off-by: Robert Foss
---
tests/kms_pwrite_crc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/kms_pwrite_crc.c b/tests/kms_pwrite_crc.c
index 86292bda..587d0561 100644
--- a/tests
Add changes reflecting the new support for dynamic number of planes per pipe.
Signed-off-by: Robert Foss
---
tests/kms_pipe_color.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/kms_pipe_color.c b/tests/kms_pipe_color.c
index 98dc4038..31755690 100644
--- a/tests
Add changes reflecting the new support for dynamic number of planes per pipe.
Signed-off-by: Robert Foss
---
tests/kms_cursor_legacy.c | 30 +-
1 file changed, 17 insertions(+), 13 deletions(-)
diff --git a/tests/kms_cursor_legacy.c b/tests/kms_cursor_legacy.c
index
Add changes reflecting the new support for dynamic number of planes per pipe.
Signed-off-by: Robert Foss
---
tests/kms_cursor_crc.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_crc.c
index 926579d6..a6ba6dc4 100644
Add changes reflecting the new support for dynamic number of planes per pipe.
Signed-off-by: Robert Foss
---
tests/kms_fbc_crc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/kms_fbc_crc.c b/tests/kms_fbc_crc.c
index 2a2c93f7..f2fd88a6 100644
--- a/tests
Add changes reflecting the new support for dynamic number of planes per pipe.
Signed-off-by: Robert Foss
---
tests/kms_atomic_transition.c | 27 +--
1 file changed, 13 insertions(+), 14 deletions(-)
diff --git a/tests/kms_atomic_transition.c b/tests
Add changes reflecting the new support for dynamic number of planes per pipe.
Signed-off-by: Robert Foss
---
tests/kms_flip_event_leak.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/kms_flip_event_leak.c b/tests/kms_flip_event_leak.c
index a1389b4c..636a706e 100644
dynamic number of
planes per pipe to i-g-t.
Signed-off-by: Robert Foss
---
lib/igt_kms.c | 157 +++---
lib/igt_kms.h | 32
2 files changed, 115 insertions(+), 74 deletions(-)
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 0b8851f2
Add changes reflecting the new support for dynamic number of planes per pipe.
Signed-off-by: Robert Foss
---
tests/kms_mmio_vs_cs_flip.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/kms_mmio_vs_cs_flip.c b/tests/kms_mmio_vs_cs_flip.c
index 25854020..e24299e5
Add changes reflecting the new support for dynamic number of planes per pipe.
Signed-off-by: Robert Foss
---
tests/kms_legacy_colorkey.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/kms_legacy_colorkey.c b/tests/kms_legacy_colorkey.c
index 25f98aad..150520ce
Signed-off-by: Robert Foss
---
lib/igt_kms.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 5312f8d8..0b8851f2 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -308,7 +308,7 @@ const unsigned char* igt_kms_get_alt_edid(void
Add changes reflecting the new support for dynamic number of planes per pipe.
Signed-off-by: Robert Foss
---
tests/kms_busy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/kms_busy.c b/tests/kms_busy.c
index 1ae5d7fb..e6276927 100644
--- a/tests/kms_busy.c
+++ b
Add changes reflecting the new support for dynamic number of planes per pipe.
Signed-off-by: Robert Foss
---
tests/kms_chv_cursor_fail.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/kms_chv_cursor_fail.c b/tests/kms_chv_cursor_fail.c
index 8f878cbf..a5c648af
Add changes reflecting the new support for dynamic number of planes per pipe.
Signed-off-by: Robert Foss
---
tests/kms_crtc_background_color.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/kms_crtc_background_color.c
b/tests/kms_crtc_background_color.c
index
On 2017-01-02 05:42 AM, Chris Wilson wrote:
On Mon, Jan 02, 2017 at 05:25:53AM -0500, Robert Foss wrote:
Added and applied 32/64-bit wrapper for pointers used in ioctls.
Robert Foss (2):
tests/perf: Fix pointer length compilation errors on 32-bit systems
lib/ioctl_wrappers.h: Add
Fix pointer length compilations errors on 32-bit systems.
Signed-off-by: Robert Foss
---
tests/perf.c | 42 +-
1 file changed, 21 insertions(+), 21 deletions(-)
diff --git a/tests/perf.c b/tests/perf.c
index 87df9f00..c9c5c57e 100644
--- a/tests/perf.c
Add to_user_pointer() helper function which helps cast
pointers properly when being used with ioctls.
Signed-off-by: Robert Foss
---
lib/ioctl_wrappers.h | 11 +++
1 file changed, 11 insertions(+)
diff --git a/lib/ioctl_wrappers.h b/lib/ioctl_wrappers.h
index 26270975..2ac57f47 100644
Added and applied 32/64-bit wrapper for pointers used in ioctls.
Robert Foss (2):
tests/perf: Fix pointer length compilation errors on 32-bit systems
lib/ioctl_wrappers.h: Add to_user_pointer() helper
lib/ioctl_wrappers.h | 11 +++
tests/perf.c | 42
Fix pointer length compilations errors on 32-bit systems.
Signed-off-by: Robert Foss
---
tests/perf.c | 47 ++-
1 file changed, 26 insertions(+), 21 deletions(-)
diff --git a/tests/perf.c b/tests/perf.c
index 87df9f00..27681368 100644
--- a/tests
I didn't test v2 properly and it is lacking an include.
I will resubmit a working version in a little bit.
Rob.
On 2016-12-20 05:56 AM, Robert Foss wrote:
Fix pointer length compilations errors on 32-bit systems.
Signed-off-by: Robert Foss
---
tests/perf.c
Fix pointer length compilations errors on 32-bit systems.
Signed-off-by: Robert Foss
---
tests/perf.c | 42 +-
1 file changed, 21 insertions(+), 21 deletions(-)
diff --git a/tests/perf.c b/tests/perf.c
index 87df9f00..c9c5c57e 100644
--- a/tests/perf.c
On 2016-12-20 05:28 AM, Chris Wilson wrote:
On Tue, Dec 20, 2016 at 12:48:38AM -0500, Robert Foss wrote:
Fix pointer length compilations errors on 32-bit systems.
That's fine, but considering to_user_pointer() to wrap it up similarly
to the unwrap on the kernel side (and for everyon
Fix pointer length compilations errors on 32-bit systems.
Signed-off-by: Robert Foss
---
tests/perf.c | 42 +-
1 file changed, 21 insertions(+), 21 deletions(-)
diff --git a/tests/perf.c b/tests/perf.c
index 87df9f00..11838299 100644
--- a/tests/perf.c
Looks good to me.
Added t-b and pushed upstream.
Rob.
On 2016-12-16 03:35 PM, Lyude wrote:
Since we're not modifying these anywhere, let's make them const so as to
not break code doing comparisons against compile-time CRCs.
Signed-off-by: Lyude
_
On 2016-12-14 11:57 AM, Brian Starkey wrote:
On Wed, Dec 14, 2016 at 04:05:07AM -0500, Robert Foss wrote:
From: Gustavo Padovan
Signed-off-by: Gustavo Padovan
Signed-off-by: Robert Foss
---
lib/igt_kms.c | 22 ++
tests/kms_atomic_transition.c | 32
On 2016-12-14 11:39 AM, Brian Starkey wrote:
Hi,
On Wed, Dec 14, 2016 at 04:05:05AM -0500, Robert Foss wrote:
From: Gustavo Padovan
Signed-off-by: Gustavo Padovan
Signed-off-by: Robert Foss
---
tests/kms_atomic.c | 186
++---
1 file changed
On 2016-12-14 11:13 AM, Brian Starkey wrote:
Hi,
On Wed, Dec 14, 2016 at 04:05:04AM -0500, Robert Foss wrote:
From: Gustavo Padovan
Add support for the OUT_FENCE_PTR property to enable setting out
fences for
atomic commits.
Signed-off-by: Gustavo Padovan
Signed-off-by: Robert Foss
On 2016-12-14 11:04 AM, Brian Starkey wrote:
Hi,
On Wed, Dec 14, 2016 at 04:05:03AM -0500, Robert Foss wrote:
Add support dor the IN_FENCE_FD property to enable setting in fences
for atomic
commits.
Signed-off-by: Robert Foss
---
lib/igt_kms.c | 20
lib/igt_kms.h | 5
which was not the kernel's idea of crtc->primary,
causing plane_primary_legacy to fail; ditto for cursor.
Make find_plane try harder, by preferring to return planes which are
already on the requested CRTC.
Signed-off-by: Daniel Stone
Reported-by: Robert Foss
Cc: Eric Anholt
--
From: Gustavo Padovan
Signed-off-by: Gustavo Padovan
Signed-off-by: Robert Foss
---
tests/kms_atomic_transition.c | 22 +-
1 file changed, 17 insertions(+), 5 deletions(-)
diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c
index c2ec89d7..d7f599b4
From: Gustavo Padovan
Signed-off-by: Gustavo Padovan
Signed-off-by: Robert Foss
---
tests/kms_atomic.c | 186 ++---
1 file changed, 176 insertions(+), 10 deletions(-)
diff --git a/tests/kms_atomic.c b/tests/kms_atomic.c
index 8b648eba..a557ac60
Add support dor the IN_FENCE_FD property to enable setting in fences for atomic
commits.
Signed-off-by: Robert Foss
---
lib/igt_kms.c | 20
lib/igt_kms.h | 5 +
2 files changed, 25 insertions(+)
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 8aaff5b8..8ca49d86
From: Gustavo Padovan
Signed-off-by: Gustavo Padovan
Signed-off-by: Robert Foss
---
lib/igt_kms.c | 34 +-
1 file changed, 17 insertions(+), 17 deletions(-)
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 989704e1..aa9fd161 100644
--- a/lib/igt_kms.c
+++ b
From: Gustavo Padovan
Signed-off-by: Gustavo Padovan
Signed-off-by: Robert Foss
---
tests/kms_atomic_transition.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c
index 5575ac18..b7d99975 100644
--- a
From: Gustavo Padovan
Add support for the OUT_FENCE_PTR property to enable setting out fences for
atomic commits.
Signed-off-by: Gustavo Padovan
Signed-off-by: Robert Foss
---
lib/igt_kms.c | 21 -
lib/igt_kms.h | 3 +++
2 files changed, 23 insertions(+), 1 deletion
From: Gustavo Padovan
Signed-off-by: Gustavo Padovan
Signed-off-by: Robert Foss
---
lib/igt_kms.c | 22 ++
tests/kms_atomic_transition.c | 32 ++--
2 files changed, 52 insertions(+), 2 deletions(-)
diff --git a/lib/igt_kms.c b
From: Gustavo Padovan
Signed-off-by: Gustavo Padovan
Signed-off-by: Robert Foss
---
lib/igt_kms.c | 6 +++---
lib/igt_kms.h | 23 +++
2 files changed, 26 insertions(+), 3 deletions(-)
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index aa9fd161..8aaff5b8 100644
--- a/lib
From: Gustavo Padovan
If the event never arrives we can timeout and end the test.
Signed-off-by: Gustavo Padovan
Signed-off-by: Robert Foss
---
tests/kms_atomic_transition.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c
From: Gustavo Padovan
Signed-off-by: Gustavo Padovan
Signed-off-by: Robert Foss
---
tests/kms_atomic.c | 123 -
1 file changed, 37 insertions(+), 86 deletions(-)
diff --git a/tests/kms_atomic.c b/tests/kms_atomic.c
index 1441fdfd..8b648eba
tomic: stress possible fence settings
tests/kms_atomic_transition: add fencing parameter to
run_transition_tests
tests/kms_atomic_transition: add out_fences tests
tests/kms_atomic_transition: add in_fences tests
tests/kms_atomic_transition: set out_fence for all crtcs
Robert Foss (1):
From: Gustavo Padovan
Signed-off-by: Gustavo Padovan
Signed-off-by: Robert Foss
---
tests/kms_atomic_transition.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c
index fb8864e8..5575ac18 100644
--- a/tests
From: Gustavo Padovan
Signed-off-by: Gustavo Padovan
Signed-off-by: Robert Foss
---
tests/kms_atomic_transition.c | 95 ++-
1 file changed, 85 insertions(+), 10 deletions(-)
diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c
pick
a PRIMARY plane which was not the kernel's idea of crtc->primary,
causing plane_primary_legacy to fail; ditto for cursor.
Make find_plane try harder, by preferring to return planes which are
already on the requested CRTC.
Signed-off-by: Daniel Stone
Reported-by: Robert Foss
Cc: Eri
Make sure that this test is skipped if the sw_sync feature is missing from
the host system.
Signed-off-by: Robert Foss
Reviewed-by: Tomeu Vizoso
---
tests/sw_sync.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/sw_sync.c b/tests/sw_sync.c
index 3c47fd2d..ac17e447 100644
--- a
This subtest verifies that waiting, timing out on a wait and that counting
fences in various states works.
Signed-off-by: Robert Foss
Reviewed-by: Eric Engestrom
Reviewed-by: Tomeu Vizoso
---
tests/sw_sync.c | 66 +
1 file changed, 66
Add subtest test_sync_merge_invalid that tests merging invalid fences.
Signed-off-by: Robert Foss
Reviewed-by: Tomeu Vizoso
---
tests/sw_sync.c | 41 +
1 file changed, 41 insertions(+)
diff --git a/tests/sw_sync.c b/tests/sw_sync.c
index ac17e447
Add subtest test_sync_busy_fork which increments the timeline in a forked child
process, where the timeline fd has been sent through a UNIX socket.
Signed-off-by: Robert Foss
Reviewed-by: Tomeu Vizoso
---
tests/sw_sync.c | 103
1 file
This subtest verifies that creating many timelines and merging random fences
from each timeline with eachother results in merged fences that are fully
functional.
Signed-off-by: Robert Foss
Reviewed-by: Eric Engestrom
Reviewed-by: Tomeu Vizoso
---
tests/sw_sync.c | 73
Add igt_require_sw_sync to provide tests to skip if sw_sync support isn't
available on the host machine.
Signed-off-by: Robert Foss
Reviewed-by: Tomeu Vizoso
---
lib/sw_sync.c | 14 ++
lib/sw_sync.h | 1 +
2 files changed, 15 insertions(+)
diff --git a/lib/sw_sync.c
This test verifies that stressing the kernel by creating multiple
consumer/producer threads that wait on a single timeline to be incremented
by another conumer/producer thread does not fail.
And that the order amongst the threads is maintained.
Signed-off-by: Robert Foss
Reviewed-by: Eric
Add subtest test_timeline_closed_signaled that verifies that a signaled fence
stays signaled after its timeline has been closed.
Signed-off-by: Robert Foss
Reviewed-by: Tomeu Vizoso
---
tests/sw_sync.c | 18 ++
1 file changed, 18 insertions(+)
diff --git a/tests/sw_sync.c b
Add subtest test_sync_busy_fork which increments the timeline in a forked child
process.
Signed-off-by: Robert Foss
Reviewed-by: Tomeu Vizoso
---
tests/sw_sync.c | 39 +++
1 file changed, 39 insertions(+)
diff --git a/tests/sw_sync.c b/tests/sw_sync.c
index
This subtest runs a single consumer thread and multiple producer thread that
are synchronized using multiple timelines.
Signed-off-by: Robert Foss
Reviewed-by: Eric Engestrom
Reviewed-by: Tomeu Vizoso
---
tests/sw_sync.c | 139
1 file
This subtest verifies that waiting on fences works properly.
Signed-off-by: Robert Foss
Reviewed-by: Eric Engestrom
Reviewed-by: Tomeu Vizoso
---
tests/sw_sync.c | 51 +++
1 file changed, 51 insertions(+)
diff --git a/tests/sw_sync.c b/tests
still in
use. Usually a kernel panick will follow.
Signed-off-by: Rafael Antognolli
Signed-off-by: Robert Foss
Reviewed-by: Tomeu Vizoso
---
tests/sw_sync.c | 31 +++
1 file changed, 31 insertions(+)
diff --git a/tests/sw_sync.c b/tests/sw_sync.c
index f4d1f139
This subtest verifies that merging two fences works in the simples possible
case.
Signed-off-by: Robert Foss
Reviewed-by: Eric Engestrom
Reviewed-by: Tomeu Vizoso
---
tests/sw_sync.c | 23 +++
1 file changed, 23 insertions(+)
diff --git a/tests/sw_sync.c b/tests/sw_sync.c
_sw_sync
Rafael Antognolli (1):
tests/sw_sync: Add subtest test_sync_expired_merge
Robert Foss (20):
lib/sw_sync: Add helper functions for managing synchronization
primitives
test/sw_sync: Add sw_sync test
tests/sw_sync: Add subtest test_alloc_fence
tests/sw_sync: Add subtest test_
This subtest verifies the access ordering of multiple consumer threads.
Signed-off-by: Robert Foss
Reviewed-by: Eric Engestrom
Reviewed-by: Tomeu Vizoso
---
tests/sw_sync.c | 98 +
1 file changed, 98 insertions(+)
diff --git a/tests
This subtest verifies that the fences of a timeline are not signalled when
a timelne is closed.
Signed-off-by: Robert Foss
Reviewed-by: Tomeu Vizoso
---
tests/sw_sync.c | 17 +
1 file changed, 17 insertions(+)
diff --git a/tests/sw_sync.c b/tests/sw_sync.c
index e88ecde4
This subtest verifies merging a fence with itself does not fail.
Signed-off-by: Robert Foss
Reviewed-by: Eric Engestrom
Reviewed-by: Tomeu Vizoso
---
tests/sw_sync.c | 27 +++
1 file changed, 27 insertions(+)
diff --git a/tests/sw_sync.c b/tests/sw_sync.c
index
Add subtest test_sync_merge that tests merging fences and the validity of the
resulting merged fence.
Signed-off-by: Robert Foss
Reviewed-by: Eric Engestrom
Reviewed-by: Tomeu Vizoso
---
tests/sw_sync.c | 67 +
1 file changed, 67
Add initial tests for sw_sync.
Signed-off-by: Robert Foss
Signed-off-by: Gustavo Padovan
Reviewed-by: Eric Engestrom
Reviewed-by: Tomeu Vizoso
---
tests/Makefile.sources | 1 +
tests/sw_sync.c| 51 ++
2 files changed, 52 insertions
Add subtest alloc_fence that verifies that it's possible to allocate a fence
on a timeline.
Signed-off-by: Robert Foss
Reviewed-by: Eric Engestrom
Reviewed-by: Tomeu Vizoso
---
tests/sw_sync.c | 16
1 file changed, 16 insertions(+)
diff --git a/tests/sw_sync.c b/
This subtests tests that creating fences on negative timelines fail.
Signed-off-by: Robert Foss
Reviewed-by: Eric Engestrom
Reviewed-by: Tomeu Vizoso
---
tests/sw_sync.c | 8
1 file changed, 8 insertions(+)
diff --git a/tests/sw_sync.c b/tests/sw_sync.c
index 3db62cd0..1ec88741
Base functions to help testing the Sync File Framework (explicit fencing
mechanism ported from Android).
These functions allow you to create, use and destroy timelines and fences.
Signed-off-by: Robert Foss
Signed-off-by: Gustavo Padovan
Reviewed-by: Eric Engestrom
Reviewed-by: Tomeu Vizoso
On 2016-12-07 06:06 AM, Petri Latvala wrote:
On Tue, Dec 06, 2016 at 09:52:09PM -0500, Robert Foss wrote:
Add igt_require_sw_sync to provide tests to skip if sw_sync support isn't
available on the host machine.
Signed-off-by: Robert Foss
Reviewed-by: Tomeu Vizoso
---
lib/sw_sync.c
Add subtest test_sync_busy_fork which increments the timeline in a forked child
process, where the timeline fd has been sent through a UNIX socket.
Signed-off-by: Robert Foss
Reviewed-by: Tomeu Vizoso
---
tests/sw_sync.c | 103
1 file
Add subtest test_sync_merge_invalid that tests merging invalid fences.
Signed-off-by: Robert Foss
Reviewed-by: Tomeu Vizoso
---
tests/sw_sync.c | 41 +
1 file changed, 41 insertions(+)
diff --git a/tests/sw_sync.c b/tests/sw_sync.c
index 5bccb053
This subtest verifies that waiting on fences works properly.
Signed-off-by: Robert Foss
Reviewed-by: Eric Engestrom
Reviewed-by: Tomeu Vizoso
---
tests/sw_sync.c | 51 +++
1 file changed, 51 insertions(+)
diff --git a/tests/sw_sync.c b/tests
Make sure that this test is skipped if the sw_sync feature is missing from
the host system.
Signed-off-by: Robert Foss
Reviewed-by: Tomeu Vizoso
---
lib/sw_sync.c | 1 +
tests/sw_sync.c | 3 +++
2 files changed, 4 insertions(+)
diff --git a/lib/sw_sync.c b/lib/sw_sync.c
index d4ecc898
Add igt_require_sw_sync to provide tests to skip if sw_sync support isn't
available on the host machine.
Signed-off-by: Robert Foss
Reviewed-by: Tomeu Vizoso
---
lib/sw_sync.c | 22 ++
lib/sw_sync.h | 1 +
2 files changed, 23 insertions(+)
diff --git a/lib/sw_sync.c
This subtest verifies that the fences of a timeline are not signalled when
a timelne is closed.
Signed-off-by: Robert Foss
Reviewed-by: Tomeu Vizoso
---
tests/sw_sync.c | 17 +
1 file changed, 17 insertions(+)
diff --git a/tests/sw_sync.c b/tests/sw_sync.c
index 572efc3b
Add subtest test_sync_merge that tests merging fences and the validity of the
resulting merged fence.
Signed-off-by: Robert Foss
Reviewed-by: Eric Engestrom
Reviewed-by: Tomeu Vizoso
---
tests/sw_sync.c | 67 +
1 file changed, 67
Add subtest test_sync_busy_fork which increments the timeline in a forked child
process.
Signed-off-by: Robert Foss
Reviewed-by: Tomeu Vizoso
---
tests/sw_sync.c | 39 +++
1 file changed, 39 insertions(+)
diff --git a/tests/sw_sync.c b/tests/sw_sync.c
index
Add subtest test_timeline_closed_signaled that verifies that a signaled fence
stays signaled after its timeline has been closed.
Signed-off-by: Robert Foss
Reviewed-by: Tomeu Vizoso
---
tests/sw_sync.c | 18 ++
1 file changed, 18 insertions(+)
diff --git a/tests/sw_sync.c b
This subtest verifies merging a fence with itself does not fail.
Signed-off-by: Robert Foss
Reviewed-by: Eric Engestrom
Reviewed-by: Tomeu Vizoso
---
tests/sw_sync.c | 27 +++
1 file changed, 27 insertions(+)
diff --git a/tests/sw_sync.c b/tests/sw_sync.c
index
still in
use. Usually a kernel panick will follow.
Signed-off-by: Rafael Antognolli
Signed-off-by: Robert Foss
Reviewed-by: Tomeu Vizoso
---
tests/sw_sync.c | 31 +++
1 file changed, 31 insertions(+)
diff --git a/tests/sw_sync.c b/tests/sw_sync.c
index 13a9602f
Add subtest alloc_fence that verifies that it's possible to allocate a fence
on a timeline.
Signed-off-by: Robert Foss
Reviewed-by: Eric Engestrom
Reviewed-by: Tomeu Vizoso
---
tests/sw_sync.c | 16
1 file changed, 16 insertions(+)
diff --git a/tests/sw_sync.c b/
This subtest verifies that waiting, timing out on a wait and that counting
fences in various states works.
Signed-off-by: Robert Foss
Reviewed-by: Eric Engestrom
Reviewed-by: Tomeu Vizoso
---
tests/sw_sync.c | 66 +
1 file changed, 66
This subtest runs a single consumer thread and multiple producer thread that
are synchronized using multiple timelines.
Signed-off-by: Robert Foss
Reviewed-by: Eric Engestrom
Reviewed-by: Tomeu Vizoso
---
tests/sw_sync.c | 139
1 file
Add initial tests for sw_sync.
Signed-off-by: Robert Foss
Signed-off-by: Gustavo Padovan
Reviewed-by: Eric Engestrom
Reviewed-by: Tomeu Vizoso
---
tests/Makefile.sources | 1 +
tests/sw_sync.c| 51 ++
2 files changed, 52 insertions
This subtests tests that creating fences on negative timelines fail.
Signed-off-by: Robert Foss
Reviewed-by: Eric Engestrom
Reviewed-by: Tomeu Vizoso
---
tests/sw_sync.c | 8
1 file changed, 8 insertions(+)
diff --git a/tests/sw_sync.c b/tests/sw_sync.c
index 3db62cd0..1ec88741
This subtest verifies that creating many timelines and merging random fences
from each timeline with eachother results in merged fences that are fully
functional.
Signed-off-by: Robert Foss
Reviewed-by: Eric Engestrom
Reviewed-by: Tomeu Vizoso
---
tests/sw_sync.c | 73
to lib/sw_sync
- Remove dead sw_sync_fd_is_valid call from sync_merge
- Initialize structs at declaration instead of using memset
Rafael Antognolli (1):
tests/sw_sync: Add subtest test_sync_expired_merge
Robert Foss (20):
lib/sw_sync: Add helper functions for managing synchronization
201 - 300 of 703 matches
Mail list logo