From patchwork Mon Mar 17 14:53:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Campbell X-Patchwork-Id: 26379 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f199.google.com (mail-ob0-f199.google.com [209.85.214.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8CBDA20143 for ; Mon, 17 Mar 2014 14:54:36 +0000 (UTC) Received: by mail-ob0-f199.google.com with SMTP id wo20sf22618490obc.2 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=o+uYczGcUmvN7pr/kaiacD4ufGdc/Ms+TUPkwhVdawI=; b=NrSuXu3kKZyLaF5P2v50JAX1bcg2vI2zB1o2+k2aXEJgtHIZoHaEdLrPbgCOHjbpfN 2k/eI/gNMnxps7cPGAzDtncsqfMKOw3nJozfm1s5Y++FOZwukastRxOg0gUX7KEY9SNo xgF7lsVsiIJfaccmUrr0iEMiIygJpMDSQN7W182iZ9Lvb2e1Us830L9GbWSGjG48z4gp YVHF4vxKktgZ4/HVjsmf4mremwkLzls/qrPKZL/hDQ3brvyKdlxw4g4pPD498HY4+ybx yk0VPTktvDW3LD3I7XgJZDJiiJCZ3tuUQRNdhapSgyO03qRNk2zcaigSN/6g+/S3fnKB PJ4g== X-Gm-Message-State: ALoCoQkMddAN36RoTgLr0DS4xS7t0Foz2xs0llrVy99+2oVnbX/cgVRvyZbvXdegQ6tmSTU2FQnq X-Received: by 10.50.114.134 with SMTP id jg6mr5539613igb.2.1395068076045; Mon, 17 Mar 2014 07:54:36 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.96.75 with SMTP id j69ls1581991qge.96.gmail; Mon, 17 Mar 2014 07:54:35 -0700 (PDT) X-Received: by 10.58.123.70 with SMTP id ly6mr1563785veb.26.1395068075893; Mon, 17 Mar 2014 07:54:35 -0700 (PDT) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by mx.google.com with ESMTPS id rq10si5327040vcb.99.2014.03.17.07.54.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Mar 2014 07:54:35 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.181 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.181; Received: by mail-vc0-f181.google.com with SMTP id id10so5763796vcb.40 for ; Mon, 17 Mar 2014 07:54:35 -0700 (PDT) X-Received: by 10.221.22.71 with SMTP id qv7mr447178vcb.34.1395068075799; Mon, 17 Mar 2014 07:54:35 -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 i9csp133059vck; Mon, 17 Mar 2014 07:54:35 -0700 (PDT) X-Received: by 10.42.232.206 with SMTP id jv14mr1912768icb.52.1395068075034; 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 v9si17454754igs.17.2014.03.17.07.54.34 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 1WPYv4-00020T-St; Mon, 17 Mar 2014 14:53:38 +0000 Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WPYv1-0001wb-En for xen-devel@lists.xen.org; Mon, 17 Mar 2014 14:53:35 +0000 Received: from [85.158.143.35:34973] by server-2.bemta-4.messagelabs.com id 47/D8-06539-E6C07235; Mon, 17 Mar 2014 14:53:34 +0000 X-Env-Sender: Ian.Campbell@citrix.com X-Msg-Ref: server-9.tower-21.messagelabs.com!1395068011!2629860!2 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n X-StarScan-Received: X-StarScan-Version: 6.11.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 22095 invoked from network); 17 Mar 2014 14:53:33 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-9.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 17 Mar 2014 14:53:33 -0000 X-IronPort-AV: E=Sophos;i="4.97,670,1389744000"; d="scan'208";a="112135716" Received: from accessns.citrite.net (HELO FTLPEX01CL02.citrite.net) ([10.9.154.239]) by FTLPIPO01.CITRIX.COM with ESMTP; 17 Mar 2014 14:53:32 +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-VN; Mon, 17 Mar 2014 14:53:30 +0000 From: Ian Campbell To: Date: Mon, 17 Mar 2014 14:53:29 +0000 Message-ID: <1395068010-23344-7-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 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.220.181 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))))