Received: by 10.213.65.68 with SMTP id h4csp584068imn; Wed, 28 Mar 2018 09:00:24 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/rVBUZ43qLRB5Z+a7nKDUfo3hAS9/d6xu1coPZJatc5rmFa7LgkGj4VVKvOhOHGZYNljS4 X-Received: by 2002:a17:902:8545:: with SMTP id d5-v6mr4377287plo.20.1522252824722; Wed, 28 Mar 2018 09:00:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522252824; cv=none; d=google.com; s=arc-20160816; b=s0s29Y3jYfJ1EgRbm4uCGDBqcZAe6UA8ZDBN/rKsG/U/S+Kl68D8J23hMymCLAp4gN nnW07gliB6AXEydLDiGvbsLHLl3k2Jg/o5yfgtwxMe7AQe0FxMhz/0TX5Zsikp1idf3g yV8Lz6hQ0O2/PI77lYZYslG3cDjJtAHKnXJG38I2c0KZl2I+NS+fFzKUjI4fQAQMJbEH 8aPpt8Zd0kv5ioGPXfijEt31ilEAUdDvetsS7HJOG55UImINb/Ve93kGwVAHEuSiofb0 emof8FakbUSueTzAcGvv/jWzl1uhRaCsHcK8Kds3Cs2CFA2Mh8OVt+jsE1LEjw7OZ8S3 1a2w== 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:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=OfihvFKJolWQ85Vtx8K3RKJkyi6SwxowHuvy5Ccuazg=; b=AA2UW9rsso/thHVrG2VKKyZNIuqAznxAJ5ybjBExDiJWlHEfHTfvts1Nf4slx5J+j4 ynLGCMxFcwaG1+OHz5aZGIztoirStsS4FNbGLqm5HpY/42i225ps9bjH+yQkj5L/N04n VMYJCP1iDCnh+LKmZabPRuUsfjVeRNU4CKFM2Jd3AJdCeNOW1CigkhATfZPzpHNpIqcN /6wtdd8FrnG/37FlkT/8xVq4Y2KoJcQxow4aGfMOoxHXRdZRF011D+Nrhi8vZibAoBIG 8pwBDJD+awn8SjIx/mfd6o7ryTn58BkE3RzGbzyX2iaNwQ6ncF5cZKU8gazwDH1SSmeM bKag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=LM9FjIPJ; dkim=pass header.i=@codeaurora.org header.s=default header.b=LM9FjIPJ; 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 f9-v6si3637478pli.667.2018.03.28.09.00.08; Wed, 28 Mar 2018 09:00:24 -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; dkim=pass header.i=@codeaurora.org header.s=default header.b=LM9FjIPJ; dkim=pass header.i=@codeaurora.org header.s=default header.b=LM9FjIPJ; 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 S1752825AbeC1Mbz (ORCPT + 99 others); Wed, 28 Mar 2018 08:31:55 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:58800 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751219AbeC1Mbx (ORCPT ); Wed, 28 Mar 2018 08:31:53 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id EAA8A60C64; Wed, 28 Mar 2018 12:31:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522240312; bh=p3VMDEi+nWZtPR1AIhhogO9TSzwLytx58Zuc8C3IGkI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LM9FjIPJHpqh4qg4ENJ7npixmQG6p7/rkyTujAg4OOFJMSQj4fSyfYokIGGOdmj0k +mtKf/0V/gPR0GXA3Ao0X3pIUzGdTKwQwI2gqTKEPxt4DZ2n+RZ0RwIhyN8JqkSWrq 3kvSD0DDyY77HQQiGPVpLovgjMPRmSH0Xk5zeJQc= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from cpandya-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: cpandya@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id A382260C67; Wed, 28 Mar 2018 12:31:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522240312; bh=p3VMDEi+nWZtPR1AIhhogO9TSzwLytx58Zuc8C3IGkI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LM9FjIPJHpqh4qg4ENJ7npixmQG6p7/rkyTujAg4OOFJMSQj4fSyfYokIGGOdmj0k +mtKf/0V/gPR0GXA3Ao0X3pIUzGdTKwQwI2gqTKEPxt4DZ2n+RZ0RwIhyN8JqkSWrq 3kvSD0DDyY77HQQiGPVpLovgjMPRmSH0Xk5zeJQc= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org A382260C67 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=cpandya@codeaurora.org From: Chintan Pandya To: catalin.marinas@arm.com, will.deacon@arm.com, mark.rutland@arm.com, toshi.kani@hpe.com Cc: arnd@arndb.de, ard.biesheuvel@linaro.org, marc.zyngier@arm.com, james.morse@arm.com, kristina.martsenko@arm.com, takahiro.akashi@linaro.org, gregkh@linuxfoundation.org, tglx@linutronix.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, akpm@linux-foundation.org, Chintan Pandya Subject: [PATCH v7 2/4] arm64: tlbflush: Introduce __flush_tlb_kernel_pgtable Date: Wed, 28 Mar 2018 18:01:20 +0530 Message-Id: <1522240282-12104-3-git-send-email-cpandya@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1522240282-12104-1-git-send-email-cpandya@codeaurora.org> References: <1522240282-12104-1-git-send-email-cpandya@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add an interface to invalidate intermediate page tables from TLB for kernel. Signed-off-by: Chintan Pandya --- arch/arm64/include/asm/tlbflush.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/include/asm/tlbflush.h b/arch/arm64/include/asm/tlbflush.h index 9e82dd7..6a4816d 100644 --- a/arch/arm64/include/asm/tlbflush.h +++ b/arch/arm64/include/asm/tlbflush.h @@ -209,6 +209,12 @@ static inline void __flush_tlb_pgtable(struct mm_struct *mm, dsb(ish); } +static inline void __flush_tlb_kernel_pgtable(unsigned long addr) +{ + addr >>= 12; + __tlbi(vaae1is, addr); + dsb(ish); +} #endif #endif -- Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc., is a member of Code Aurora Forum, a Linux Foundation Collaborative Project