From patchwork Tue Oct 6 17:46:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 54561 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by patches.linaro.org (Postfix) with ESMTPS id D12B422FC5 for ; Tue, 6 Oct 2015 18:56:27 +0000 (UTC) Received: by lbos8 with SMTP id s8sf27859602lbo.2 for ; Tue, 06 Oct 2015 11:56:26 -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=QziyT1JsFiOb1dbM8hRIoGlLtTkmX5PVKhPJZ/DQ5HM=; b=EMisw+86I4sHMFIsYAJbNLrGHdOiuDdrbvVnuRNXT860/h3j89lNfHVjQaFoqXBlSZ TyTo5oNYI94+95jVwdZntCZMoXzx73Ks4n0vtm9DSqxVEhl7cD0I7mU66AakJrLDlV9G k0IDJNA+PwmrRRZLQcvPXXmKWk7tTQ9Pu6gGWwqLPqi8uBRmiFnUGaGW4HneIvHkpJGV B7rz+hw7qluqmXWaXs8DG/3KRP5nuRjMouuTIa1kOYw2woEHBanR6Djf0kFgZQgVWg5A PjsU1iYNif0y+o8or0PKpQs69dvXAJ+Fr7SzCy3d8MQTZlHZeCCcEZSCXvFn0KjW4rLW C96A== X-Gm-Message-State: ALoCoQmkkFW49CkeIG1ejM7zEI2T1eQwQM5x3hn+URvtenunbR77+2Y/ZVYRGNINMMveTaZqHHOP X-Received: by 10.181.29.103 with SMTP id jv7mr3696759wid.0.1444157786786; Tue, 06 Oct 2015 11:56:26 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.209.80 with SMTP id i77ls648859lfg.0.gmail; Tue, 06 Oct 2015 11:56:26 -0700 (PDT) X-Received: by 10.25.38.9 with SMTP id m9mr9851685lfm.112.1444157786606; Tue, 06 Oct 2015 11:56:26 -0700 (PDT) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id 28si22027116lfy.25.2015.10.06.11.56.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Oct 2015 11:56:26 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by lbbwt4 with SMTP id wt4so44212511lbb.1 for ; Tue, 06 Oct 2015 11:56:26 -0700 (PDT) X-Received: by 10.112.17.34 with SMTP id l2mr15287181lbd.117.1444157786478; Tue, 06 Oct 2015 11:56:26 -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 w3csp2015238lbq; Tue, 6 Oct 2015 11:56:25 -0700 (PDT) X-Received: by 10.180.187.142 with SMTP id fs14mr18711663wic.6.1444157785547; Tue, 06 Oct 2015 11:56:25 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id e20si40020025wjn.147.2015.10.06.11.56.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Oct 2015 11:56:25 -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 1ZjXO0-0006k3-Rn; Tue, 06 Oct 2015 18:54:52 +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 1ZjXNs-0006hb-GM for linux-arm-kernel@bombadil.infradead.org; Tue, 06 Oct 2015 18:54:44 +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 1ZjWKF-0003Vj-Oi for linux-arm-kernel@lists.infradead.org; Tue, 06 Oct 2015 17:46:56 +0000 Received: from edgewater-inn.cambridge.arm.com (edgewater-inn.cambridge.arm.com [10.1.203.122]) by cam-admin0.cambridge.arm.com (8.12.6/8.12.6) with ESMTP id t96HkWWr001381; Tue, 6 Oct 2015 18:46:32 +0100 (BST) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id A6A8A1AE111E; Tue, 6 Oct 2015 18:46:32 +0100 (BST) From: Will Deacon To: catalin.marinas@arm.com Subject: [PATCH v2 09/10] arm64: tlb: remove redundant barrier from __flush_tlb_pgtable Date: Tue, 6 Oct 2015 18:46:29 +0100 Message-Id: <1444153590-24173-10-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1444153590-24173-1-git-send-email-will.deacon@arm.com> References: <1444153590-24173-1-git-send-email-will.deacon@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151006_134656_015897_4B104641 X-CRM114-Status: GOOD ( 11.74 ) 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: Will Deacon , linux-arm-kernel@lists.infradead.org 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.181 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. Reviewed-by: Catalin Marinas 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); }