[Intel-gfx] [PATCH i-g-t rfc 21/29] tests/kms_properties: Add support for dynamic number of planes

2017-01-11 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t rfc 20/29] tests/kms_plane_scaling: Add support for dynamic number of planes

2017-01-11 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t rfc 27/29] tests/kms_universal_plane: Add support for dynamic number of planes

2017-01-11 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t rfc 24/29] tests/kms_rmfb: Add support for dynamic number of planes

2017-01-11 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t rfc 26/29] tests/kms_sink_crc_basic: Add support for dynamic number of planes

2017-01-11 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t rfc 28/29] tests/kms_vblank: Add support for dynamic number of planes

2017-01-11 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t rfc 16/29] tests/kms_panel_fitting: Add support for dynamic number of planes

2017-01-11 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t rfc 25/29] tests/kms_rotation_crc: Add support for dynamic number of planes

2017-01-11 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t rfc 29/29] tests/prime_mmap_kms: Add support for dynamic number of planes

2017-01-11 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t rfc 19/29] tests/kms_plane_multiple: Add support for dynamic number of planes

2017-01-11 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t rfc 14/29] tests/kms_mmap_write_crc: Add support for dynamic number of planes

2017-01-11 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t rfc 01/29] lib/igt_debugfs: Prevent buffer overflow

2017-01-11 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t rfc 18/29] tests/kms_plane: Add support for dynamic number of planes

2017-01-11 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t rfc 11/29] tests/kms_fence_pin_leak: Add support for dynamic number of planes

2017-01-11 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t rfc 22/29] tests/kms_psr_sink_crc: Add support for dynamic number of planes

2017-01-11 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t rfc 00/29] lib/igt_kms: Implement dynamic plane count support

2017-01-11 Thread Robert Foss
/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

[Intel-gfx] [PATCH i-g-t rfc 23/29] tests/kms_pwrite_crc: Add support for dynamic number of planes

2017-01-11 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t rfc 17/29] tests/kms_pipe_color: Add support for dynamic number of planes

2017-01-11 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t rfc 09/29] tests/kms_cursor_legacy: Add support for dynamic number of planes

2017-01-11 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t rfc 08/29] tests/kms_cursor_crc: Add support for dynamic number of planes

2017-01-11 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t rfc 10/29] tests/kms_fbc_crc: Add support for dynamic number of planes

2017-01-11 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t rfc 04/29] tests/kms_atomic_transition: Add support for dynamic number of planes

2017-01-11 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t rfc 12/29] tests/kms_flip_event_leak: Add support for dynamic number of planes

2017-01-11 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t rfc 03/29] lib/igt_kms: Implement dynamic plane count support

2017-01-11 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t rfc 15/29] tests/kms_mmio_vs_cs_flip: Add support for dynamic number of planes

2017-01-11 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t rfc 13/29] tests/kms_legacy_colorkey: Add support for dynamic number of planes

2017-01-11 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t rfc 02/29] lib/igt_kms: Fixed typo

2017-01-11 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t rfc 05/29] tests/kms_busy: Add support for dynamic number of planes

2017-01-11 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t rfc 06/29] tests/kms_chv_cursor_fail: Add support for dynamic number of planes

2017-01-11 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t rfc 07/29] tests/kms_crtc_background_color: Add support for dynamic number of planes

2017-01-11 Thread Robert Foss
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

Re: [Intel-gfx] [PATCH i-g-t v4 0/2] 32/64-bit ptr wrapper

2017-01-02 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v4 1/2] tests/perf: Fix pointer length compilation errors on 32-bit systems

2017-01-02 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v4 2/2] lib/ioctl_wrappers.h: Add to_user_pointer() helper

2017-01-02 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v4 0/2] 32/64-bit ptr wrapper

2017-01-02 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v3] tests/perf: Fix pointer length compilation errors on 32-bit systems

2016-12-21 Thread Robert Foss
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

Re: [Intel-gfx] [PATCH i-g-t v2] tests/perf: Fix pointer length compilation errors on 32-bit systems

2016-12-20 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v2] tests/perf: Fix pointer length compilation errors on 32-bit systems

2016-12-20 Thread Robert Foss
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

Re: [Intel-gfx] [PATCH i-g-t v1] tests/perf: Fix pointer length compilation errors on 32-bit systems

2016-12-20 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v1] tests/perf: Fix pointer length compilation errors on 32-bit systems

2016-12-19 Thread Robert Foss
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

Re: [Intel-gfx] [PATCH i-g-t] igt_kms: Use const parameters for igt_assert_crc_equal

2016-12-17 Thread Robert Foss
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 _

Re: [Intel-gfx] [PATCH i-g-t v2 10/12] tests/kms_atomic_transition: add out_fences tests

2016-12-16 Thread Robert Foss
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

Re: [Intel-gfx] [PATCH i-g-t v2 08/12] tests/kms_atomic: stress possible fence settings

2016-12-16 Thread Robert Foss
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

Re: [Intel-gfx] [PATCH i-g-t v2 07/12] lib/igt_kms: Add support for the OUT_FENCE_PTR property

2016-12-16 Thread Robert Foss
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

Re: [Intel-gfx] [PATCH i-g-t v2 06/12] lib/igt_kms: Add support for the IN_FENCE_FD property

2016-12-15 Thread 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

Re: [Intel-gfx] [PATCH igt] igt/kms_atomic: Match CRTC harder for special planes

2016-12-14 Thread Robert Foss
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 --

[Intel-gfx] [PATCH i-g-t v2 12/12] tests/kms_atomic_transition: set out_fence for all crtcs

2016-12-14 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v2 08/12] tests/kms_atomic: stress possible fence settings

2016-12-14 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v2 06/12] lib/igt_kms: Add support for the IN_FENCE_FD property

2016-12-14 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v2 03/12] lib/igt_kms: move igt_kms_get_alt_edid() to the right place

2016-12-14 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v2 09/12] tests/kms_atomic_transition: add fencing parameter to run_transition_tests

2016-12-14 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v2 07/12] lib/igt_kms: Add support for the OUT_FENCE_PTR property

2016-12-14 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v2 10/12] tests/kms_atomic_transition: add out_fences tests

2016-12-14 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v2 04/12] lib/igt_kms: export properties names

2016-12-14 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v2 01/12] tests/kms_atomic_transition: use igt timeout instead of blocking

2016-12-14 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v2 05/12] tests/kms_atomic: use global atomic properties definitions

2016-12-14 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v2 00/12] tests/kms_atomic_transition add fence testing

2016-12-14 Thread Robert Foss
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):

[Intel-gfx] [PATCH i-g-t v2 02/12] tests/kms_atomic_transition: don't assume max pipes

2016-12-14 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v2 11/12] tests/kms_atomic_transition: add in_fences tests

2016-12-14 Thread Robert Foss
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

Re: [Intel-gfx] [PATCH igt] igt/kms_atomic: Match CRTC harder for special planes

2016-12-13 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v11 18/21] tests/sw_sync: Add igt_require check for sw_sync feature

2016-12-07 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v11 12/21] tests/sw_sync: Add subtest test_sync_multi_timeline_wait

2016-12-07 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v11 19/21] tests/sw_sync: Add subtest test_sync_merge_invalid

2016-12-07 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v11 21/21] tests/sw_sync: Add subtest test_sync_busy_unixsocket

2016-12-07 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v11 11/21] tests/sw_sync: Add subtest test_sync_random_merge

2016-12-07 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v11 17/21] lib/sw_sync: Add igt_require_sw_sync to enable skipping on no sw_sync support

2016-12-07 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v11 10/21] tests/sw_sync: Add subtest test_sync_multi_consumer_producer

2016-12-07 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v11 16/21] tests/sw_sync: Add subtest test_timeline_closed_signaled

2016-12-07 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v11 20/21] tests/sw_sync: Add subtest test_sync_busy_fork

2016-12-07 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v11 13/21] tests/sw_sync: Add subtest test_sync_multi_producer_single_consumer

2016-12-07 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v11 06/21] tests/sw_sync: Add subtest test_sync_busy

2016-12-07 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v11 14/21] tests/sw_sync: Add subtest test_sync_expired_merge

2016-12-07 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v11 05/21] tests/sw_sync: Add subtest test_alloc_merge_fence

2016-12-07 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v11 00/21] Implement sw_sync test

2016-12-07 Thread Robert Foss
_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_

[Intel-gfx] [PATCH i-g-t v11 09/21] tests/sw_sync: Add subtest test_sync_multi_consumer

2016-12-07 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v11 15/21] tests/sw_sync: Add subtest test_timeline_closed

2016-12-07 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v11 08/21] tests/sw_sync: Add subtest test_sync_merge_same

2016-12-07 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v11 07/21] tests/sw_sync: Add subtest test_sync_merge

2016-12-07 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v11 02/21] test/sw_sync: Add sw_sync test

2016-12-07 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v11 03/21] tests/sw_sync: Add subtest test_alloc_fence

2016-12-07 Thread Robert Foss
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/

[Intel-gfx] [PATCH i-g-t v11 04/21] tests/sw_sync: Add subtest test_alloc_fence_invalid_timeline

2016-12-07 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v11 01/21] lib/sw_sync: Add helper functions for managing synchronization primitives

2016-12-07 Thread Robert Foss
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

Re: [Intel-gfx] [PATCH i-g-t v10 17/21] lib/sw_sync: Add igt_require_sw_sync to enable skipping on no sw_sync support

2016-12-07 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v10 21/21] tests/sw_sync: Add subtest test_sync_busy_unixsocket

2016-12-06 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v10 19/21] tests/sw_sync: Add subtest test_sync_merge_invalid

2016-12-06 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v10 06/21] tests/sw_sync: Add subtest test_sync_busy

2016-12-06 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v10 18/21] tests/sw_sync: Add igt_require check for sw_sync feature

2016-12-06 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v10 17/21] lib/sw_sync: Add igt_require_sw_sync to enable skipping on no sw_sync support

2016-12-06 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v10 15/21] tests/sw_sync: Add subtest test_timeline_closed

2016-12-06 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v10 07/21] tests/sw_sync: Add subtest test_sync_merge

2016-12-06 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v10 20/21] tests/sw_sync: Add subtest test_sync_busy_fork

2016-12-06 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v10 16/21] tests/sw_sync: Add subtest test_timeline_closed_signaled

2016-12-06 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v10 08/21] tests/sw_sync: Add subtest test_sync_merge_same

2016-12-06 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v10 14/21] tests/sw_sync: Add subtest test_sync_expired_merge

2016-12-06 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v10 03/21] tests/sw_sync: Add subtest test_alloc_fence

2016-12-06 Thread Robert Foss
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/

[Intel-gfx] [PATCH i-g-t v10 12/21] tests/sw_sync: Add subtest test_sync_multi_timeline_wait

2016-12-06 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v10 13/21] tests/sw_sync: Add subtest test_sync_multi_producer_single_consumer

2016-12-06 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v10 02/21] test/sw_sync: Add sw_sync test

2016-12-06 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v10 04/21] tests/sw_sync: Add subtest test_alloc_fence_invalid_timeline

2016-12-06 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v10 11/21] tests/sw_sync: Add subtest test_sync_random_merge

2016-12-06 Thread Robert Foss
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

[Intel-gfx] [PATCH i-g-t v10 00/21] Implement sw_sync test

2016-12-06 Thread Robert Foss
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

<    1   2   3   4   5   6   7   8   >