From patchwork Mon Mar 17 14:53:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Campbell X-Patchwork-Id: 26381 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f69.google.com (mail-pa0-f69.google.com [209.85.220.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5FF4F20143 for ; Mon, 17 Mar 2014 14:54:37 +0000 (UTC) Received: by mail-pa0-f69.google.com with SMTP id fb1sf14679615pad.8 for ; Mon, 17 Mar 2014 07:54:36 -0700 (PDT) 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=DqU9s6lbFemYLDIdGcGfOBsB7x4QPKs0Ld8ne5IKd9Y=; b=Bnx/FpaJt4vgcfsjwl2OBWbKla4E+aEJ/6rvaXKD2iT+/3bICvno7+5lu4XEI0r9NX GKZRWPARe9yoXUPqHBYlV2h12ksVsr7Eiug0AZiQPE1M1UmUrXDQKSafrZQPyao7xwlB +5omi1E16e60T/nqd3yd3btjj1G/SGGY4y+tocf2iZCaFD//8JG4qlB/nUg82zknmhv2 T0vxt8UXJ7u/inEJWdqdYksYkyNdF6EPdfvvuckzZmewvmz046ZLfYyiGM10l3Eo9O/p AIa0koAH/NjSeyBndwFHAivYA6PL42ay6WTiwZpISSKgQnLySezt7MauLFvQfs8cZVRC sjOg== X-Gm-Message-State: ALoCoQllBgoUajkbynVstUDZRse9PXeloYCokSnqzdzD46KqfcIFjEZFo/DiPjoeJBt2yf6Yh+k0 X-Received: by 10.66.227.103 with SMTP id rz7mr8841100pac.37.1395068076556; Mon, 17 Mar 2014 07:54:36 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.49.166 with SMTP id q35ls1706267qga.89.gmail; Mon, 17 Mar 2014 07:54:36 -0700 (PDT) X-Received: by 10.220.99.72 with SMTP id t8mr20333152vcn.10.1395068076371; Mon, 17 Mar 2014 07:54:36 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id rx10si1807738vdc.114.2014.03.17.07.54.36 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Mar 2014 07:54:36 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.182 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id ks9so5962035vcb.13 for ; Mon, 17 Mar 2014 07:54:36 -0700 (PDT) X-Received: by 10.220.250.203 with SMTP id mp11mr20053893vcb.2.1395068076285; Mon, 17 Mar 2014 07:54:36 -0700 (PDT) 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.78.9 with SMTP id i9csp133060vck; Mon, 17 Mar 2014 07:54:35 -0700 (PDT) X-Received: by 10.224.72.12 with SMTP id k12mr4278659qaj.81.1395068075657; Mon, 17 Mar 2014 07:54:35 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id t76si1566830qgd.115.2014.03.17.07.54.35 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 17 Mar 2014 07:54:35 -0700 (PDT) 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 1WPYv5-00021s-Kz; Mon, 17 Mar 2014 14:53:39 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WPYv1-0001wl-PE for xen-devel@lists.xen.org; Mon, 17 Mar 2014 14:53:36 +0000 Received: from [85.158.137.68:4304] by server-4.bemta-3.messagelabs.com id 14/EA-17399-F6C07235; Mon, 17 Mar 2014 14:53:35 +0000 X-Env-Sender: Ian.Campbell@citrix.com X-Msg-Ref: server-15.tower-31.messagelabs.com!1395068012!1129074!1 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.11.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 29027 invoked from network); 17 Mar 2014 14:53:34 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-15.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 17 Mar 2014 14:53:34 -0000 X-IronPort-AV: E=Sophos;i="4.97,670,1389744000"; d="scan'208";a="110732382" Received: from accessns.citrite.net (HELO FTLPEX01CL02.citrite.net) ([10.9.154.239]) by FTLPIPO02.CITRIX.COM with ESMTP; 17 Mar 2014 14:53:31 +0000 Received: from norwich.cam.xci-test.com (10.80.248.129) by smtprelay.citrix.com (10.13.107.79) with Microsoft SMTP Server id 14.2.342.4; Mon, 17 Mar 2014 10:53:31 -0400 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 1WPYuw-00012w-QD; Mon, 17 Mar 2014 14:53:30 +0000 From: Ian Campbell To: Date: Mon, 17 Mar 2014 14:53:27 +0000 Message-ID: <1395068010-23344-5-git-send-email-ian.campbell@citrix.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1395067981.18221.35.camel@kazak.uk.xensource.com> References: <1395067981.18221.35.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=v3 5/8] xen: arm: Use dmb for smp barriers 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.220.182 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: The full power of dsb is not required in this context. Also change wmb() to be dsb() directly instead of indirectly via mb(), for clarity. Signed-off-by: Ian Campbell Acked-by: Stefano Stabellini Acked-by: Tim Deegan --- xen/include/asm-arm/system.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xen/include/asm-arm/system.h b/xen/include/asm-arm/system.h index e003624..89c61ef 100644 --- a/xen/include/asm-arm/system.h +++ b/xen/include/asm-arm/system.h @@ -18,11 +18,11 @@ #define mb() dsb() #define rmb() dsb() -#define wmb() mb() +#define wmb() dsb() -#define smp_mb() mb() -#define smp_rmb() rmb() -#define smp_wmb() wmb() +#define smp_mb() dmb() +#define smp_rmb() dmb() +#define smp_wmb() dmb() #define xchg(ptr,x) \ ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))