From patchwork Mon Jan 25 18:40:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Anholt X-Patchwork-Id: 8114201 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C94959F818 for ; Mon, 25 Jan 2016 18:40:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EE7E620274 for ; Mon, 25 Jan 2016 18:40:45 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 0DEC520270 for ; Mon, 25 Jan 2016 18:40:45 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2FFC36E51D; Mon, 25 Jan 2016 10:40:44 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from annarchy.freedesktop.org (annarchy.freedesktop.org [131.252.210.176]) by gabe.freedesktop.org (Postfix) with ESMTP id C02456E51A; Mon, 25 Jan 2016 10:40:43 -0800 (PST) Received: from eliezer.anholt.net (annarchy.freedesktop.org [127.0.0.1]) by annarchy.freedesktop.org (Postfix) with ESMTP id B0A581816A; Mon, 25 Jan 2016 10:40:43 -0800 (PST) Received: by eliezer.anholt.net (Postfix, from userid 1000) id D1B82F002E9; Mon, 25 Jan 2016 10:40:42 -0800 (PST) From: Eric Anholt To: intel-gfx@lists.freedesktop.org Date: Mon, 25 Jan 2016 10:40:41 -0800 Message-Id: <1453747242-19964-1-git-send-email-eric@anholt.net> X-Mailer: git-send-email 2.6.4 Cc: Eric Anholt Subject: [Intel-gfx] [PATCH 1/2] igt: Disable igt_clflush_range() implementation on ARM builds. X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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. Reviewed-by: Daniel Stone --- 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 } /**