From patchwork Fri Aug 24 15:52:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 145083 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp1411193ljw; Fri, 24 Aug 2018 08:53:38 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb1xwCxcZVk6yYedrKzdTslYfKRm/JnCGVwl72JFLaXNwd+1WzyfwpPKnXQgcJA377bS8Vp X-Received: by 2002:a62:9042:: with SMTP id a63-v6mr2622426pfe.52.1535126018604; Fri, 24 Aug 2018 08:53:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535126018; cv=none; d=google.com; s=arc-20160816; b=Y/sDuQ90SM6nJa4d+5hJYe/2N1IvXZXpOmw9Wpw57KR6PzUdrn8kbtkj+8qVEZvhYR v5v2pI6mRHD74p0U15mq3sThQftEAb+jtCN43kDPkVfuy4BtguxYOKsXI5ghY+erclMY 9FuhE6zONcLh1Y/39r4Axdsric6nQ9o1xnd0XhgSBPuvv21YvZSkllHlLjE3sm35vNFV j0UJGZ+AxVkpUbDBOGYBKn6iNqb7dGu479B+/P6XjVDEAXzGzo0KwX6dCaTXz4MX5cc+ Ly8r24t0MqmLmZysI0rE3BbU6x3L9YYmHBIeNVJJnP0MyYtbUfhS91wQNyBpM68Z2O78 d90g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=Mc6pOOsmGvtQt/y+Ju/BH/GnTOxKCskvlW5ST031YVE=; b=O6vUvsZTXHsoDXO6VFm/SN23hKsvNVPiKr0Ch4g4u64/NSkByEREb9zJgxFR2TjHnW x2LRfH2D07MBakU+tgvoEwg9r3/Glj5MrPaklTSjWyxYhe5giXSvAIvMGcQuFAUTc11e Jm6qrdbbn84N1cfsEZQqgy5+Gn3fr4RdllgiWgobOKeKzZ19AB7ebW2cZCXKisUFMTZ0 nRRA5SZNbFIqDR7r6rqW8YezO9ClG/AiG+U0vKPVDj0ObreSn2ZnvY29OioDyaVYVfyA aFfEL17ioSZ1sxoqr4kj4bf4ThtNQmLqytACMuiYrzmX7o0eYsDHHgyp/LCic2JUwuwL DfUw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g34-v6si7159766pld.244.2018.08.24.08.53.38; Fri, 24 Aug 2018 08:53:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727435AbeHXT1v (ORCPT + 32 others); Fri, 24 Aug 2018 15:27:51 -0400 Received: from foss.arm.com ([217.140.101.70]:32806 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726279AbeHXT1v (ORCPT ); Fri, 24 Aug 2018 15:27:51 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E082F15A2; Fri, 24 Aug 2018 08:52:37 -0700 (PDT) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id B233F3F763; Fri, 24 Aug 2018 08:52:37 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id A76191AE321F; Fri, 24 Aug 2018 16:52:47 +0100 (BST) From: Will Deacon To: linux-kernel@vger.kernel.org Cc: peterz@infradead.org, benh@au1.ibm.com, torvalds@linux-foundation.org, npiggin@gmail.com, catalin.marinas@arm.com, linux-arm-kernel@lists.infradead.org, Will Deacon Subject: [RFC PATCH 01/11] arm64: tlb: Use last-level invalidation in flush_tlb_kernel_range() Date: Fri, 24 Aug 2018 16:52:36 +0100 Message-Id: <1535125966-7666-2-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1535125966-7666-1-git-send-email-will.deacon@arm.com> References: <1535125966-7666-1-git-send-email-will.deacon@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org flush_tlb_kernel_range() is only ever used to invalidate last-level entries, so we can restrict the scope of the TLB invalidation instruction. Signed-off-by: Will Deacon --- arch/arm64/include/asm/tlbflush.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.1.4 diff --git a/arch/arm64/include/asm/tlbflush.h b/arch/arm64/include/asm/tlbflush.h index a4a1901140ee..7e2a35424ca4 100644 --- a/arch/arm64/include/asm/tlbflush.h +++ b/arch/arm64/include/asm/tlbflush.h @@ -199,7 +199,7 @@ static inline void flush_tlb_kernel_range(unsigned long start, unsigned long end dsb(ishst); for (addr = start; addr < end; addr += 1 << (PAGE_SHIFT - 12)) - __tlbi(vaae1is, addr); + __tlbi(vaale1is, addr); dsb(ish); isb(); }