diff mbox

[1/2] igt: Disable igt_clflush_range() implementation on ARM builds.

Message ID 1453747242-19964-1-git-send-email-eric@anholt.net (mailing list archive)
State New, archived
Headers show

Commit Message

Eric Anholt Jan. 25, 2016, 6:40 p.m. UTC
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(+)

Comments

Daniel Stone Jan. 25, 2016, 7:30 p.m. UTC | #1
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
Daniel Stone Jan. 25, 2016, 7:31 p.m. UTC | #2
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
diff mbox

Patch

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
 }
 
 /**