From patchwork Thu Sep 17 12:50:18 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 53799 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by patches.linaro.org (Postfix) with ESMTPS id 0656222E57 for ; Thu, 17 Sep 2015 12:55:08 +0000 (UTC) Received: by lamp12 with SMTP id p12sf6168066lam.2 for ; Thu, 17 Sep 2015 05:55:06 -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:subject:date:message-id :in-reply-to:references:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:cc:mime-version :content-type:content-transfer-encoding:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list; bh=+OGVneu2h2lC/T86SFquKCpQBVsVkun71OqRtpDgbm4=; b=EEuNwd0/UWXDiXcsaEH0BE/ikW3jgbTZd5wUHSOpW0ItNGQx9b5QB5w5La+VlFe4tK mRMLBpT+v24XcEJUqAM6+HDazXL+xh4LndcrJpj8/NWDnIzMlis/w8z3/jiejTyDrYGA NgQeXfvHdwfTQ6RhYo033S1nX3jALHkhOYL5hnH36BN/10JKvgtlstPJKYYNHIGxTaLz BcVTELH/aqgnE8VFhEDbEoTWI1Z5qKbLYdPvZQgdWpDUxzos63JO9dKsywuaWFIe4wcu 7wCsRtxnRphfqHG3YPZuk6KKs6dd3OA/ENMvzhWzWF01i+INxa21NzbhH9AonAjP75ce j90g== X-Gm-Message-State: ALoCoQlA0R1yyQe5Qdq+CMePqR0I0tfUTvcHY8XiUtJilPa9fZR5y8Rgkmzqb0bTLcA4bDZ2nqCe X-Received: by 10.112.172.70 with SMTP id ba6mr6490561lbc.1.1442494506967; Thu, 17 Sep 2015 05:55:06 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.180.201 with SMTP id dq9ls96848lac.53.gmail; Thu, 17 Sep 2015 05:55:06 -0700 (PDT) X-Received: by 10.112.53.131 with SMTP id b3mr36548388lbp.55.1442494506696; Thu, 17 Sep 2015 05:55:06 -0700 (PDT) Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com. [209.85.217.179]) by mx.google.com with ESMTPS id w8si2032793lbb.172.2015.09.17.05.55.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Sep 2015 05:55:06 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.179 as permitted sender) client-ip=209.85.217.179; Received: by lbpo4 with SMTP id o4so8700207lbp.2 for ; Thu, 17 Sep 2015 05:55:06 -0700 (PDT) X-Received: by 10.112.180.230 with SMTP id dr6mr25176410lbc.72.1442494506539; Thu, 17 Sep 2015 05:55:06 -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.112.59.35 with SMTP id w3csp3053058lbq; Thu, 17 Sep 2015 05:55:05 -0700 (PDT) X-Received: by 10.50.117.9 with SMTP id ka9mr25484302igb.8.1442494505125; Thu, 17 Sep 2015 05:55:05 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id n2si2329819ige.66.2015.09.17.05.55.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Sep 2015 05:55:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZcYhG-0001NZ-GR; Thu, 17 Sep 2015 12:53:54 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZcYfH-0007Zu-Lu for linux-arm-kernel@bombadil.infradead.org; Thu, 17 Sep 2015 12:51:51 +0000 Received: from cam-admin0.cambridge.arm.com ([217.140.96.50]) by merlin.infradead.org with esmtp (Exim 4.85 #2 (Red Hat Linux)) id 1ZcYfG-0002yA-CZ for linux-arm-kernel@lists.infradead.org; Thu, 17 Sep 2015 12:51:50 +0000 Received: from edgewater-inn.cambridge.arm.com (edgewater-inn.cambridge.arm.com [10.1.203.139]) by cam-admin0.cambridge.arm.com (8.12.6/8.12.6) with ESMTP id t8HCp6wo025753; Thu, 17 Sep 2015 13:51:06 +0100 (BST) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 440771AE3244; Thu, 17 Sep 2015 13:51:12 +0100 (BST) From: Will Deacon To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 09/10] arm64: tlb: remove redundant barrier from __flush_tlb_pgtable Date: Thu, 17 Sep 2015 13:50:18 +0100 Message-Id: <1442494219-6133-10-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1442494219-6133-1-git-send-email-will.deacon@arm.com> References: <1442494219-6133-1-git-send-email-will.deacon@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150917_085150_653681_C502C969 X-CRM114-Status: GOOD ( 10.51 ) X-Spam-Score: -6.9 (------) X-Spam-Report: SpamAssassin version 3.4.1 on merlin.infradead.org summary: Content analysis details: (-6.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [217.140.96.50 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Cc: catalin.marinas@arm.com, Will Deacon MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: will.deacon@arm.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.179 as permitted sender) smtp.mailfrom=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 __flush_tlb_pgtable is used to invalidate intermediate page table entries after they have been cleared and are about to be freed. Since pXd_clear imply memory barriers, we don't need the extra one here. Signed-off-by: Will Deacon --- arch/arm64/include/asm/tlbflush.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/include/asm/tlbflush.h b/arch/arm64/include/asm/tlbflush.h index 93e9f964805c..b460ae28e346 100644 --- a/arch/arm64/include/asm/tlbflush.h +++ b/arch/arm64/include/asm/tlbflush.h @@ -163,7 +163,6 @@ static inline void __flush_tlb_pgtable(struct mm_struct *mm, { unsigned long addr = uaddr >> 12 | (ASID(mm) << 48); - dsb(ishst); asm("tlbi vae1is, %0" : : "r" (addr)); dsb(ish); }