From patchwork Thu Feb 13 12:38:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Campbell X-Patchwork-Id: 24586 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f200.google.com (mail-vc0-f200.google.com [209.85.220.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 38BF2202E2 for ; Thu, 13 Feb 2014 12:39:34 +0000 (UTC) Received: by mail-vc0-f200.google.com with SMTP id le5sf22318713vcb.7 for ; Thu, 13 Feb 2014 04:39:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version:cc:subject:precedence:list-id :list-unsubscribe:list-post:list-help:list-subscribe:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:list-archive:content-type:content-transfer-encoding; bh=o+uYczGcUmvN7pr/kaiacD4ufGdc/Ms+TUPkwhVdawI=; b=acmK/I+GCa+GH0nk2b7W7osgK4T0rTzigR4Zvv7q0nKL/2nJMXI0irk7QWrAKRQvGX d7epNqYlWfh2aGvKFCwC2wXv8Ln4i7vt93GFimvfvZs0MyAdwxkPr2YwdDvcoLprObK9 gqYOMjqPsu0/86jij1zLdwc35G0kfNkpw867juWPIn8YtLOkD8DSPaYMjNTeKza+wYp+ GcHHai29aHSmhZlCxyeW4k/mYD0q9BnsazjTIPqKxY28FqououALHy1L8uPu6efdqoln d8CUNbg4SxtHWmoYICnb6e0sgwqIRJTPMPGVyNUaREzVZ3qS2cUPnZaqGZIZQtpf0InJ HZrA== X-Gm-Message-State: ALoCoQnI1G7vpjj+sQtpzYaLXPXEkGpw0i3lMtK/18vb4FolcGAxU04r60AWtbVglOEYSrwNaNkC X-Received: by 10.58.46.204 with SMTP id x12mr401522vem.19.1392295173373; Thu, 13 Feb 2014 04:39:33 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.93.71 with SMTP id c65ls3309310qge.4.gmail; Thu, 13 Feb 2014 04:39:33 -0800 (PST) X-Received: by 10.221.40.10 with SMTP id to10mr834666vcb.22.1392295173092; Thu, 13 Feb 2014 04:39:33 -0800 (PST) Received: from mail-vb0-f48.google.com (mail-vb0-f48.google.com [209.85.212.48]) by mx.google.com with ESMTPS id sx1si613723vdc.36.2014.02.13.04.39.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 13 Feb 2014 04:39:33 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.48 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.48; Received: by mail-vb0-f48.google.com with SMTP id q16so8085747vbe.35 for ; Thu, 13 Feb 2014 04:39:33 -0800 (PST) X-Received: by 10.58.132.203 with SMTP id ow11mr834546veb.1.1392295172990; Thu, 13 Feb 2014 04:39:32 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.174.196 with SMTP id u4csp22537vcz; Thu, 13 Feb 2014 04:39:32 -0800 (PST) X-Received: by 10.140.109.72 with SMTP id k66mr2006981qgf.20.1392295172373; Thu, 13 Feb 2014 04:39:32 -0800 (PST) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id j4si1022935qao.184.2014.02.13.04.39.32 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 13 Feb 2014 04:39:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xen.org designates 50.57.142.19 as permitted sender) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WDvYi-00028W-Lu; Thu, 13 Feb 2014 12:38:28 +0000 Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WDvYh-00026U-4y for xen-devel@lists.xen.org; Thu, 13 Feb 2014 12:38:27 +0000 Received: from [85.158.143.35:35603] by server-2.bemta-4.messagelabs.com id F9/12-10891-2CCBCF25; Thu, 13 Feb 2014 12:38:26 +0000 X-Env-Sender: Ian.Campbell@citrix.com X-Msg-Ref: server-9.tower-21.messagelabs.com!1392295102!5414705!3 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n X-StarScan-Received: X-StarScan-Version: 6.9.16; banners=-,-,- X-VirusChecked: Checked Received: (qmail 19494 invoked from network); 13 Feb 2014 12:38:25 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-9.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 13 Feb 2014 12:38:25 -0000 X-IronPort-AV: E=Sophos;i="4.95,838,1384300800"; d="scan'208";a="100426777" Received: from accessns.citrite.net (HELO FTLPEX01CL03.citrite.net) ([10.9.154.239]) by FTLPIPO02.CITRIX.COM with ESMTP; 13 Feb 2014 12:38:09 +0000 Received: from norwich.cam.xci-test.com (10.80.248.129) by smtprelay.citrix.com (10.13.107.80) with Microsoft SMTP Server id 14.2.342.4; Thu, 13 Feb 2014 07:38:09 -0500 Received: from drall.uk.xensource.com ([10.80.16.71] helo=drall.uk.xensource.com.) by norwich.cam.xci-test.com with esmtp (Exim 4.72) (envelope-from ) id 1WDvYP-0003Bw-9z; Thu, 13 Feb 2014 12:38:09 +0000 From: Ian Campbell To: Date: Thu, 13 Feb 2014 12:38:07 +0000 Message-ID: <1392295088-24219-7-git-send-email-ian.campbell@citrix.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1392295040.31985.7.camel@kazak.uk.xensource.com> References: <1392295040.31985.7.camel@kazak.uk.xensource.com> MIME-Version: 1.0 X-DLP: MIA1 Cc: julien.grall@linaro.org, tim@xen.org, Ian Campbell , stefano.stabellini@eu.citrix.com Subject: [Xen-devel] [PATCH for-4.5 v2 7/8] xen: arm: weaken SMP barriers to inner shareable. X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ian.campbell@citrix.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.48 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: Since all processors are in the inner-shareable domain and we map everything that way this is sufficient. The non-SMP barriers remain full system. Although in principle they could become outer shareable barriers for some hardware this would require us to know which class a given device is. Given the small number of device drivers in Xen itself its probably not worth worrying over, although maybe someone will benchmark at some point. Signed-off-by: Ian Campbell Acked-by: Stefano Stabellini Acked-by: Tim Deegan --- xen/include/asm-arm/system.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xen/include/asm-arm/system.h b/xen/include/asm-arm/system.h index e1f126a..32ed277 100644 --- a/xen/include/asm-arm/system.h +++ b/xen/include/asm-arm/system.h @@ -20,9 +20,9 @@ #define rmb() dsb(sy) #define wmb() dsb(sy) -#define smp_mb() dmb(sy) -#define smp_rmb() dmb(sy) -#define smp_wmb() dmb(sy) +#define smp_mb() dmb(ish) +#define smp_rmb() dmb(ish) +#define smp_wmb() dmb(ish) #define xchg(ptr,x) \ ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))