[Intel-gfx] [PATCH i-g-t] gitlab-ci: add tests for MIPS

2019-06-27 Thread Guillaume Tucker
Use the libatomic1:mips package only in the Debian Stretch Docker image for MIPS and add Gitlab CI step to run tests on MIPS. Signed-off-by: Guillaume Tucker --- .gitlab-ci.yml | 14 ++ Dockerfile.debian-mips | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff

Re: [Intel-gfx] [PATCH i-g-t v3 1/1] gitlab-ci: add build and tests for MIPS

2019-06-27 Thread Guillaume Tucker
On 27/06/2019 08:02, Ser, Simon wrote: > On Tue, 2019-06-25 at 14:08 +0100, Guillaume Tucker wrote: >> On 18/06/2019 13:42, Guillaume Tucker wrote: >>> Add Docker image and Gitlab CI steps to run builds and tests for >>> the >>> MIPS architecture using Debian St

Re: [Intel-gfx] [PATCH i-g-t v3 1/1] gitlab-ci: add build and tests for MIPS

2019-06-25 Thread Guillaume Tucker
On 18/06/2019 13:42, Guillaume Tucker wrote: > Add Docker image and Gitlab CI steps to run builds and tests for the > MIPS architecture using Debian Stretch with backports. > > Signed-off-by: Guillaume Tucker > --- > > Notes: > v2: use stretch-backports and require

Re: [Intel-gfx] [PATCH i-g-t v4 0/4] Use C11 atomics

2019-06-25 Thread Guillaume Tucker
On 25/06/2019 11:54, Ser, Simon wrote: > On Mon, 2019-06-24 at 17:22 +0100, Guillaume Tucker wrote: >> This series replaces calls to the __sync_* functions with the more >> recent atomic_* ones defined in stdatomic.h in gem_create and >> sw_sync. It also adds dependency on li

[Intel-gfx] [PATCH i-g-t v4 2/4] gitlab-ci: add libatomic to docker images

2019-06-24 Thread Guillaume Tucker
Add libatomic to the Fedora docker image so it can link binaries that use __atomic_* functions. Also explicitly add libatomic1 to Debian docker images as it is needed in particular on non-x86 architectures for run-time linkage. Signed-off-by: Guillaume Tucker --- Notes: v2: add libatomic1

[Intel-gfx] [PATCH i-g-t v4 1/4] meson: add libatomic dependency

2019-06-24 Thread Guillaume Tucker
atomic operations available on a wider number of architectures including MIPS. Signed-off-by: Guillaume Tucker Reviewed-by: Simon Ser --- Notes: v2: add linker test for libatomic v3: use null_dep v4: fix sentence in commit message meson.build | 14 ++ 1 file changed, 14

[Intel-gfx] [PATCH i-g-t v4 4/4] tests/sw_sync: use atomic_* instead of __sync_*

2019-06-24 Thread Guillaume Tucker
Replace calls to the older __sync_* functions with the new atomic_* standard ones to be consistent with other tests and improve portability across CPU architectures. Add dependency of sw_sync on libatomic. Signed-off-by: Guillaume Tucker Reviewed-by: Simon Ser --- Notes: v2: use atomic_

[Intel-gfx] [PATCH i-g-t v4 3/4] i915/gem_create: use atomic_* instead of __sync_*

2019-06-24 Thread Guillaume Tucker
with stdatomic.h functions * add dependency for gem_create on libatomic Signed-off-by: Guillaume Tucker Reviewed-by: Simon Ser --- Notes: v2: use atomic_* and only link libatomic with gem_create tests/Makefile.am | 2 +- tests/i915/gem_create.c | 16 tests

[Intel-gfx] [PATCH i-g-t v4 0/4] Use C11 atomics

2019-06-24 Thread Guillaume Tucker
libatomic in all Docker images v3: - use sub-arch libatomic1 in Debian docker images - use null_dep in meson.build v4: - rebase with changes in Dockerfile.debian-minimal Guillaume Tucker (4): meson: add libatomic dependency gitlab-ci: add libatomic to docker images i915/gem_create: use

Re: [Intel-gfx] [PATCH i-g-t v3 2/4] gitlab-ci: add libatomic to docker images

2019-06-19 Thread Guillaume Tucker
On 19/06/2019 07:50, Ser, Simon wrote: > On Tue, 2019-06-18 at 13:27 +0100, Guillaume Tucker wrote: >> Add libatomic to the Fedora docker image so it can link binaries that >> use __atomic_* functions. Also explicitly add libatomic1 to Debian >> docker images as it is needed

Re: [Intel-gfx] [PATCH i-g-t v3 1/4] meson: add libatomic dependency

2019-06-19 Thread Guillaume Tucker
On 19/06/2019 07:42, Ser, Simon wrote: > On Tue, 2019-06-18 at 17:03 +0100, Guillaume Tucker wrote: >> On 18/06/2019 15:37, Ser, Simon wrote: >>> On Tue, 2019-06-18 at 14:59 +0100, Guillaume Tucker wrote: >>>> On 18/06/2019 14:20, Ser, Simon wrote: >>&

Re: [Intel-gfx] [PATCH i-g-t v3 1/4] meson: add libatomic dependency

2019-06-18 Thread Guillaume Tucker
On 18/06/2019 15:37, Ser, Simon wrote: > On Tue, 2019-06-18 at 14:59 +0100, Guillaume Tucker wrote: >> On 18/06/2019 14:20, Ser, Simon wrote: >>> On Tue, 2019-06-18 at 13:27 +0100, Guillaume Tucker wrote: >>>> Add conditional dependency on libatomic in order to be

Re: [Intel-gfx] [PATCH i-g-t v3 1/4] meson: add libatomic dependency

2019-06-18 Thread Guillaume Tucker
On 18/06/2019 14:20, Ser, Simon wrote: > On Tue, 2019-06-18 at 13:27 +0100, Guillaume Tucker wrote: >> Add conditional dependency on libatomic in order to be able to use the >> __atomic_* functions instead of the older __sync_* ones. The >> libatomic library is only needed

[Intel-gfx] [PATCH i-g-t v3 1/1] gitlab-ci: add build and tests for MIPS

2019-06-18 Thread Guillaume Tucker
Add Docker image and Gitlab CI steps to run builds and tests for the MIPS architecture using Debian Stretch with backports. Signed-off-by: Guillaume Tucker --- Notes: v2: use stretch-backports and require libatomic1 v3: add mips ci tests and require Debian libatomic1 for mips .gitlab

[Intel-gfx] [PATCH i-g-t v3 0/4] Use C11 atomics

2019-06-18 Thread Guillaume Tucker
libatomic in all Docker images v3: - use sub-arch libatomic1 in Debian docker images - use null_dep in meson.build Guillaume Tucker (4): meson: add libatomic dependency gitlab-ci: add libatomic to docker images i915/gem_create: use atomic_* instead of __sync_* tests/sw_sync: use atomic_

[Intel-gfx] [PATCH i-g-t v3 2/4] gitlab-ci: add libatomic to docker images

2019-06-18 Thread Guillaume Tucker
Add libatomic to the Fedora docker image so it can link binaries that use __atomic_* functions. Also explicitly add libatomic1 to Debian docker images as it is needed in particular on non-x86 architectures for run-time linkage. Signed-off-by: Guillaume Tucker --- Notes: v2: add libatomic1

[Intel-gfx] [PATCH i-g-t v3 1/4] meson: add libatomic dependency

2019-06-18 Thread Guillaume Tucker
operations to be on a wider number of architectures including MIPS. Signed-off-by: Guillaume Tucker --- Notes: v2: add linker test for libatomic v3: use null_dep meson.build | 14 ++ 1 file changed, 14 insertions(+) diff --git a/meson.build b/meson.build index 6268c58d3634

[Intel-gfx] [PATCH i-g-t v3 3/4] i915/gem_create: use atomic_* instead of __sync_*

2019-06-18 Thread Guillaume Tucker
with stdatomic.h functions * add dependency for gem_create on libatomic Signed-off-by: Guillaume Tucker Reviewed-by: Simon Ser --- Notes: v2: use atomic_* and only link libatomic with gem_create tests/Makefile.am | 2 +- tests/i915/gem_create.c | 16 tests

[Intel-gfx] [PATCH i-g-t v3 4/4] tests/sw_sync: use atomic_* instead of __sync_*

2019-06-18 Thread Guillaume Tucker
Replace calls to the older __sync_* functions with the new atomic_* standard ones to be consistent with other tests and improve portability across CPU architectures. Add dependency of sw_sync on libatomic. Signed-off-by: Guillaume Tucker Reviewed-by: Simon Ser --- Notes: v2: use atomic_

Re: [Intel-gfx] [PATCH i-g-t v2] gitlab-ci: add build for MIPS

2019-06-18 Thread Guillaume Tucker
On 14/06/2019 11:33, Arkadiusz Hiler wrote: > On Thu, Jun 13, 2019 at 03:01:06PM +0100, Guillaume Tucker wrote: >> Add Docker image and Gitlab CI steps to run builds for the MIPS >> architecture using Debian Stretch with backports. >> >> Signed-off-by: Guillaume Tucker

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t v2 2/4] gitlab-ci: add libatomic to docker images

2019-06-18 Thread Guillaume Tucker
On 14/06/2019 13:53, Ser, Simon wrote: > On Fri, 2019-06-14 at 15:43 +0300, Petri Latvala wrote: >> On Fri, Jun 14, 2019 at 02:24:53PM +0300, Ser, Simon wrote: >>> On Fri, 2019-06-14 at 13:00 +0300, Petri Latvala wrote: >>>> On Thu, Jun 13, 2019 at 02:53:20PM

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t v2 1/4] meson: add libatomic dependency

2019-06-18 Thread Guillaume Tucker
On 14/06/2019 09:07, Ser, Simon wrote: > On Thu, 2019-06-13 at 14:53 +0100, Guillaume Tucker wrote: >> Add conditional dependency on libatomic in order to be able to use the >> __atomic_* functions instead of the older __sync_* ones. The >> libatomic library is only needed

[Intel-gfx] [PATCH i-g-t v2] gitlab-ci: add build for MIPS

2019-06-13 Thread Guillaume Tucker
This is to add MIPS builds to Gitlab CI. v2: - use stretch-backports rather than Buster - explicitly require libatomic Guillaume Tucker (1): gitlab-ci: add build for MIPS .gitlab-ci.yml | 28 Dockerfile.debian-mips | 39

[Intel-gfx] [PATCH i-g-t v2] gitlab-ci: add build for MIPS

2019-06-13 Thread Guillaume Tucker
Add Docker image and Gitlab CI steps to run builds for the MIPS architecture using Debian Stretch with backports. Signed-off-by: Guillaume Tucker --- .gitlab-ci.yml | 28 Dockerfile.debian-mips | 39 +++ meson-cross

[Intel-gfx] [PATCH i-g-t v2 2/4] gitlab-ci: add libatomic to docker images

2019-06-13 Thread Guillaume Tucker
Add libatomic to the Fedora docker image so it can link binaries that use __atomic_* functions. Also explicitly add libatomic1 to Debian docker images even though it's already installed as a dependency. Signed-off-by: Guillaume Tucker --- Dockerfile.debian | 1 + Dockerfile.debian-arm64

[Intel-gfx] [PATCH i-g-t v2 4/4] tests/sw_sync: use atomic_* instead of __sync_*

2019-06-13 Thread Guillaume Tucker
Replace calls to the older __sync_* functions with the new atomic_* standard ones to be consistent with other tests and improve portability across CPU architectures. Add dependency of sw_sync on libatomic. Signed-off-by: Guillaume Tucker --- tests/Makefile.am | 1 + tests/meson.build | 8

[Intel-gfx] [PATCH i-g-t v2 3/4] i915/gem_create: use atomic_* instead of __sync_*

2019-06-13 Thread Guillaume Tucker
with stdatomic.h functions * add dependency for gem_create on libatomic Signed-off-by: Guillaume Tucker --- tests/Makefile.am | 2 +- tests/i915/gem_create.c | 16 tests/meson.build | 9 - 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/tests

[Intel-gfx] [PATCH i-g-t v2 1/4] meson: add libatomic dependency

2019-06-13 Thread Guillaume Tucker
operations to be on a wider number of architectures including MIPS. Signed-off-by: Guillaume Tucker --- meson.build | 13 + 1 file changed, 13 insertions(+) diff --git a/meson.build b/meson.build index 6268c58d3634..da25a28f3268 100644 --- a/meson.build +++ b/meson.build @@ -179,6

[Intel-gfx] [PATCH i-g-t v2 0/4] Use C11 atomics

2019-06-13 Thread Guillaume Tucker
libatomic in all Docker images Guillaume Tucker (4): meson: add libatomic dependency gitlab-ci: add libatomic to docker images i915/gem_create: use atomic_* instead of __sync_* tests/sw_sync: use atomic_* instead of __sync_* Dockerfile.debian | 1 + Dockerfile.debian-arm64 | 1

Re: [Intel-gfx] [PATCH i-g-t] gitlab-ci: add build for MIPS

2019-06-13 Thread Guillaume Tucker
On 06/06/2019 14:16, Arkadiusz Hiler wrote: > On Wed, Jun 05, 2019 at 09:18:09PM +0100, Guillaume Tucker wrote: >> Add Docker image and Gitlab CI steps to run builds for the MIPS >> architecture using Debian Buster. >> >> Signed-off-by: Guillaume Tucker >> --

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 1/4] tests: add libatomic dependency

2019-06-13 Thread Guillaume Tucker
On 06/06/2019 08:18, Ser, Simon wrote: > On Mon, 2019-06-03 at 12:54 +0100, Guillaume Tucker wrote: >> Add dependency to libatomic in order to be able to use the __atomic_* >> functions instead of the older __sync_* ones. This is to enable >> atomic operations on a wider nu

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 2/4] gitlab-ci: add libatomic to Fedora docker image

2019-06-13 Thread Guillaume Tucker
On 06/06/2019 08:26, Ser, Simon wrote: > On Thu, 2019-06-06 at 10:21 +0300, Arkadiusz Hiler wrote: >> On Mon, Jun 03, 2019 at 12:54:48PM +0100, Guillaume Tucker wrote: >>> Add libatomic to the Fedora docker image so it can link binaries that >>> use __atomic_* fu

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 3/4] i915/gem_create: use __atomic_* instead of __sync_*

2019-06-13 Thread Guillaume Tucker
On 06/06/2019 08:20, Ser, Simon wrote: > On Mon, 2019-06-03 at 12:54 +0100, Guillaume Tucker wrote: >> Replace calls to the older __sync_* functions with the new __atomic_* >> standard ones. This fixes builds on some architectures, in particular >> MIPS which doesn't have _

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t] i915/gem_create: Do not build create-clear for MIPS

2019-06-05 Thread Guillaume Tucker
On 03/04/2019 08:25, Guillaume Tucker wrote: > On 02/04/2019 09:35, Petri Latvala wrote: >> On Mon, Apr 01, 2019 at 04:39:24PM +0200, Guillaume Tucker wrote: >>> The MIPS architecture doesn't provide the hardware atomics that are >>> required for

[Intel-gfx] [PATCH i-g-t] gitlab-ci: add build for MIPS

2019-06-05 Thread Guillaume Tucker
Add Docker image and Gitlab CI steps to run builds for the MIPS architecture using Debian Buster. Signed-off-by: Guillaume Tucker --- .gitlab-ci.yml | 28 Dockerfile.debian-mips | 38 ++ meson-cross-mips.txt | 12

[Intel-gfx] [PATCH i-g-t 3/4] i915/gem_create: use __atomic_* instead of __sync_*

2019-06-03 Thread Guillaume Tucker
Replace calls to the older __sync_* functions with the new __atomic_* standard ones. This fixes builds on some architectures, in particular MIPS which doesn't have __sync_add_and_fetch_8 and __sync_val_compare_and_swap_8 for 64-bit variable handling. Signed-off-by: Guillaume Tucker --- tests

[Intel-gfx] [PATCH i-g-t 4/4] tests/sw_sync: use __atomic_* instead of __sync_*

2019-06-03 Thread Guillaume Tucker
Replace calls to the older __sync_* functions with the new __atomic_* standard ones to be consistent with other tests and improve portability across CPU architectures. Signed-off-by: Guillaume Tucker --- tests/Makefile.am | 1 + tests/sw_sync.c | 6 +++--- 2 files changed, 4 insertions(+), 3

[Intel-gfx] [PATCH i-g-t 2/4] gitlab-ci: add libatomic to Fedora docker image

2019-06-03 Thread Guillaume Tucker
Add libatomic to the Fedora docker image so it can link binaries that use __atomic_* functions. Signed-off-by: Guillaume Tucker --- Dockerfile.fedora | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile.fedora b/Dockerfile.fedora index 6686e587613d..c84b412b0723 100644

[Intel-gfx] [PATCH i-g-t 1/4] tests: add libatomic dependency

2019-06-03 Thread Guillaume Tucker
Add dependency to libatomic in order to be able to use the __atomic_* functions instead of the older __sync_* ones. This is to enable atomic operations on a wider number of architectures including MIPS. Signed-off-by: Guillaume Tucker --- meson.build | 1 + tests/meson.build | 2 +- 2

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t] i915/gem_create: Do not build create-clear for MIPS

2019-04-03 Thread Guillaume Tucker
On 02/04/2019 09:35, Petri Latvala wrote: > On Mon, Apr 01, 2019 at 04:39:24PM +0200, Guillaume Tucker wrote: >> The MIPS architecture doesn't provide the hardware atomics that are >> required for the "create-clear" sub-test such as >> __sync_add_and_fetch(). As

[Intel-gfx] [PATCH i-g-t] i915/gem_create: Do not build create-clear for MIPS

2019-04-01 Thread Guillaume Tucker
ementation for these operations. Fixes: 6727e17c00b2 ("i915/gem_create: Verify that all new objects are clear") Signed-off-by: Guillaume Tucker --- tests/i915/gem_create.c | 4 1 file changed, 4 insertions(+) diff --git a/tests/i915/gem_create.c b/tests/i915/gem_create.c index 2a861ca8a7ec.

[Intel-gfx] [PATCH i-g-t] i915/gem_ctx_sseu: Fix 32-bit build

2019-02-13 Thread Guillaume Tucker
is by definition an unsigned integer of the same length as a pointer on a given architecture, so this should fix the problem for all architectures up to 64 bits. Signed-off-by: Guillaume Tucker --- tests/i915/gem_ctx_sseu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/i915