All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] igt: Disable igt_clflush_range() implementation on ARM builds.
@ 2016-01-25 18:40 Eric Anholt
  2016-01-25 18:40 ` [PATCH 2/2] configure.ac: Add a configure arg for the overlay Eric Anholt
  2016-01-25 19:30 ` [PATCH 1/2] igt: Disable igt_clflush_range() implementation on ARM builds Daniel Stone
  0 siblings, 2 replies; 5+ messages in thread
From: Eric Anholt @ 2016-01-25 18:40 UTC (permalink / raw)
  To: intel-gfx; +Cc: Eric Anholt

Daniel has suggested that I put vc4 testing into igt, since it's got
the piglit integration and KMS coverage already.  This gets the ccore
building so that I can start writing tests.
---
 lib/igt_gt.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/igt_gt.c b/lib/igt_gt.c
index 149435c..b2c2273 100644
--- a/lib/igt_gt.c
+++ b/lib/igt_gt.c
@@ -491,6 +491,7 @@ int igt_setup_clflush(void)
 
 void igt_clflush_range(void *addr, int size)
 {
+#if !defined(__arm__)
 	char *p, *end;
 
 	end = (char *)addr + size;
@@ -500,6 +501,9 @@ void igt_clflush_range(void *addr, int size)
 	for (; p < end; p += clflush_size)
 		asm volatile("clflush %0" : "+m" (*(volatile char *)p));
 	asm volatile("mfence" ::: "memory");
+#else
+	fprintf(stderr, "igt_clflush_range() unsupported\n");
+#endif
 }
 
 /**
-- 
2.6.4

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

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

* [PATCH 2/2] configure.ac: Add a configure arg for the overlay.
  2016-01-25 18:40 [PATCH 1/2] igt: Disable igt_clflush_range() implementation on ARM builds Eric Anholt
@ 2016-01-25 18:40 ` Eric Anholt
  2016-01-25 19:44   ` Daniel Stone
  2016-01-25 19:30 ` [PATCH 1/2] igt: Disable igt_clflush_range() implementation on ARM builds Daniel Stone
  1 sibling, 1 reply; 5+ messages in thread
From: Eric Anholt @ 2016-01-25 18:40 UTC (permalink / raw)
  To: intel-gfx; +Cc: Eric Anholt

It's autodetected if its dependencies are present, but it doesn't
build for ARM, nor am I interested in it for now.

Signed-off-by: Eric Anholt <eric@anholt.net>
---
 configure.ac | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index ddfe696..41bf20d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -87,12 +87,21 @@ AC_SUBST(ASSEMBLER_WARN_CFLAGS)
 
 PKG_CHECK_MODULES(DRM, [libdrm_intel >= 2.4.64 libdrm])
 PKG_CHECK_MODULES(PCIACCESS, [pciaccess >= 0.10])
-PKG_CHECK_MODULES(OVERLAY_XVLIB, [xv x11 xext dri2proto >= 2.6], enable_overlay_xvlib=yes, enable_overlay_xvlib=no)
-PKG_CHECK_MODULES(OVERLAY_XLIB, [cairo-xlib dri2proto >= 2.6], enable_overlay_xlib=yes, enable_overlay_xlib=no)
+
+AC_ARG_ENABLE(overlay, AS_HELP_STRING([--disable-overlay],
+	      [Disable the SNA GPU activity overlay (default: auto)]),
+	      [OVERLAY=$enableval], [OVERLAY=auto])
+if test x$OVERLAY = xno; then
+	enable_overlay_xvlib=no
+	enable_overlay_xlib=no
+else
+	PKG_CHECK_MODULES(OVERLAY_XVLIB, [xv x11 xext dri2proto >= 2.6], enable_overlay_xvlib=yes, enable_overlay_xvlib=no)
+	PKG_CHECK_MODULES(OVERLAY_XLIB, [cairo-xlib dri2proto >= 2.6], enable_overlay_xlib=yes, enable_overlay_xlib=no)
+fi
 
 AM_CONDITIONAL(BUILD_OVERLAY_XVLIB, [test "x$enable_overlay_xvlib" = xyes])
 AM_CONDITIONAL(BUILD_OVERLAY_XLIB, [test "x$enable_overlay_xlib" = xyes])
-AM_CONDITIONAL(BUILD_OVERLAY, [test "x$enable_overlay_xlib" = xyes -o "x$enable_overlay_xvlib"])
+AM_CONDITIONAL(BUILD_OVERLAY, [test "x$enable_overlay_xlib" = xyes -o "x$enable_overlay_xvlib" = xyes])
 if test x$enable_overlay_xvlib = xyes; then
 	AC_DEFINE(HAVE_OVERLAY_XVLIB, 1, [Enable XV backend])
 fi
-- 
2.6.4

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

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

* Re: [PATCH 1/2] igt: Disable igt_clflush_range() implementation on ARM builds.
  2016-01-25 18:40 [PATCH 1/2] igt: Disable igt_clflush_range() implementation on ARM builds Eric Anholt
  2016-01-25 18:40 ` [PATCH 2/2] configure.ac: Add a configure arg for the overlay Eric Anholt
@ 2016-01-25 19:30 ` Daniel Stone
  2016-01-25 19:31   ` Daniel Stone
  1 sibling, 1 reply; 5+ messages in thread
From: Daniel Stone @ 2016-01-25 19:30 UTC (permalink / raw)
  To: Eric Anholt; +Cc: intel-gfx

Hi,

On 25 January 2016 at 18:40, Eric Anholt <eric@anholt.net> wrote:
> Daniel has suggested that I put vc4 testing into igt, since it's got
> the piglit integration and KMS coverage already.  This gets the ccore
> building so that I can start writing tests.

Works for me.

Reviewed-by: Daniel Stone <daniels@collabora.com>

Cheers,
Daniel
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* Re: [PATCH 1/2] igt: Disable igt_clflush_range() implementation on ARM builds.
  2016-01-25 19:30 ` [PATCH 1/2] igt: Disable igt_clflush_range() implementation on ARM builds Daniel Stone
@ 2016-01-25 19:31   ` Daniel Stone
  0 siblings, 0 replies; 5+ messages in thread
From: Daniel Stone @ 2016-01-25 19:31 UTC (permalink / raw)
  To: Eric Anholt; +Cc: intel-gfx

Wait, no, thought of a bikeshed:
#if defined(__i386__) || defined(__x86_64__)

On 25 January 2016 at 19:30, Daniel Stone <daniel@fooishbar.org> wrote:
> Hi,
>
> On 25 January 2016 at 18:40, Eric Anholt <eric@anholt.net> wrote:
>> Daniel has suggested that I put vc4 testing into igt, since it's got
>> the piglit integration and KMS coverage already.  This gets the ccore
>> building so that I can start writing tests.
>
> Works for me.
>
> Reviewed-by: Daniel Stone <daniels@collabora.com>
>
> Cheers,
> Daniel
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* Re: [PATCH 2/2] configure.ac: Add a configure arg for the overlay.
  2016-01-25 18:40 ` [PATCH 2/2] configure.ac: Add a configure arg for the overlay Eric Anholt
@ 2016-01-25 19:44   ` Daniel Stone
  0 siblings, 0 replies; 5+ messages in thread
From: Daniel Stone @ 2016-01-25 19:44 UTC (permalink / raw)
  To: Eric Anholt; +Cc: intel-gfx

Hi,

On 25 January 2016 at 18:40, Eric Anholt <eric@anholt.net> wrote:
> It's autodetected if its dependencies are present, but it doesn't
> build for ARM, nor am I interested in it for now.

The one I just sent auto-disables it when not building on x86.

Cheers,
Daniel
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

end of thread, other threads:[~2016-01-25 19:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-25 18:40 [PATCH 1/2] igt: Disable igt_clflush_range() implementation on ARM builds Eric Anholt
2016-01-25 18:40 ` [PATCH 2/2] configure.ac: Add a configure arg for the overlay Eric Anholt
2016-01-25 19:44   ` Daniel Stone
2016-01-25 19:30 ` [PATCH 1/2] igt: Disable igt_clflush_range() implementation on ARM builds Daniel Stone
2016-01-25 19:31   ` Daniel Stone

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