Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp982976imm; Wed, 6 Jun 2018 08:45:22 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIrgVGeG8qp0gI4oITcIn/QdfpNql+JWzsKgfRRnVoO0b0Jr6cc3Dt8ZYvDv7tNVe7kjtKK X-Received: by 2002:a17:902:4303:: with SMTP id i3-v6mr3838630pld.394.1528299922804; Wed, 06 Jun 2018 08:45:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528299922; cv=none; d=google.com; s=arc-20160816; b=kQICtAM9o2aVMP0mJrQzwghh63Uetj4/hw9L+U2+JXk5KUEh8VKlr6kfSHTRFLRD2F C83eCio5Xm2JmmRjL6Pzm5qPKtXwDclqGL1GXApEm71vNrJY4plWjQHiO4YAorRptY/U icN56MXcm8h/4og/17YxROz2wc9WzxkhJR0NeNRqVp3VaVPi9dmPUGp3IuRQ/LNAne6A US3DCrR2SnuqqVW7mFwmnj16/UnsqDX94OppWZCYGww0N2I+R0zIeTVn3RuFafKfjHxv tzDMquEHXm4DeqPZ+YfI/QSwoJEOJe7ce5idnYgzp35Bw108rORFIEuzpu6RZV2+UUOT QOwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=nJrPZOf1kUTQL1GUUTDTgsZhFtw4Mg1UhXPSVBJrY5A=; b=NWSKO1cUtkVwk6ESOiEwgXsFT/BhQLOraf8NOn3t66QtCSIaTPsi81yXkHHjqD2a56 0iDwbuBEcLFO29OndBU3/Vf+wcVQj9BucVL2fuPhBuIzWQv8KKL3qyBJAdu/1ydJipQC K91Wc9g3H6XWFB8M/VZIg0WSdb1L/oxsYHs0YRa+TVVW/eLdxjf2akC++EKKnV6j9XFf h6h/vM6TqbtVy7oZVMXkXE2tBO2rpn+O3UzblHdZz+juTLf2Q9WD/lsRWDIZZE45hAlQ K9an0tRJMsZIQGNkOsABXgz7XRYpLpgi441uUXmX445052tziapHwy2OFXF46GP3Nqz8 mnVQ== 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 f2-v6si8038543pgt.650.2018.06.06.08.45.08; Wed, 06 Jun 2018 08:45:22 -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 S1752758AbeFFPoN (ORCPT + 99 others); Wed, 6 Jun 2018 11:44:13 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:42236 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752067AbeFFPoL (ORCPT ); Wed, 6 Jun 2018 11:44:11 -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 330F780D; Wed, 6 Jun 2018 08:44:11 -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 052383F25D; Wed, 6 Jun 2018 08:44:11 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id F1BCA1AE53AB; Wed, 6 Jun 2018 16:44:42 +0100 (BST) Date: Wed, 6 Jun 2018 16:44:42 +0100 From: Will Deacon To: Chintan Pandya Cc: catalin.marinas@arm.com, mark.rutland@arm.com, akpm@linux-foundation.org, toshi.kani@hpe.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v13 2/3] arm64: tlbflush: Introduce __flush_tlb_kernel_pgtable Message-ID: <20180606154442.GF6631@arm.com> References: <1528268481-19299-1-git-send-email-cpandya@codeaurora.org> <1528268481-19299-3-git-send-email-cpandya@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1528268481-19299-3-git-send-email-cpandya@codeaurora.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 06, 2018 at 12:31:20PM +0530, Chintan Pandya wrote: > Add an interface to invalidate intermediate page tables > from TLB for kernel. > > Signed-off-by: Chintan Pandya > --- > arch/arm64/include/asm/tlbflush.h | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/arch/arm64/include/asm/tlbflush.h b/arch/arm64/include/asm/tlbflush.h > index dfc61d7..a4a1901 100644 > --- a/arch/arm64/include/asm/tlbflush.h > +++ b/arch/arm64/include/asm/tlbflush.h > @@ -218,6 +218,13 @@ static inline void __flush_tlb_pgtable(struct mm_struct *mm, > dsb(ish); > } > > +static inline void __flush_tlb_kernel_pgtable(unsigned long kaddr) > +{ > + unsigned long addr = __TLBI_VADDR(kaddr, 0); > + > + __tlbi(vaae1is, addr); > + dsb(ish); > +} > #endif Acked-by: Will Deacon Will