Received: by 10.213.65.68 with SMTP id h4csp657258imn; Tue, 27 Mar 2018 06:29:11 -0700 (PDT) X-Google-Smtp-Source: AG47ELtg9BjYIlu8B8Naa6JN9NmUMFu0r7iPL1GVFJilYM3PvZJh143nO43lHwVqBDspSrWMi/m/ X-Received: by 10.98.8.133 with SMTP id 5mr23461477pfi.154.1522157350975; Tue, 27 Mar 2018 06:29:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522157350; cv=none; d=google.com; s=arc-20160816; b=rH/PEMAS6IvUEkA8+4SXqmDO/7QQmIfWSH+mJqvsi1Ixf+HpkIe5fOoSr3zrF8MGZ7 I0PcCSqbi37IZH8AwlZUsqDfj7WtJINgSIc5hwchtw4b7qy2pBz2Q+cqRPpwKmC940ID 8qk88aPCeHuv6hvwFzf3AOB0wkrJtHOBvQb/N9IymVUe7Kq2xt+4ejrmXdPGPHpvr+BE I1N/u4UA1X2YyOb7C8Muk7hU0gxOWwpBNcA9IW7Fijii/kMAguA7LybiWBBRlNK1RZ/u CEVumxiWvQmkm1Z3TRYvljFySjj4E57rQMS6EwDF7QDcdeAb3Sfo1Hv6pyg5Z2eSoxyV FGKw== 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=mIa32RXN+F3MI5pIaLSTOUhv5DvJwSXg8k8c43XFULk=; b=YsvWjLPzo+mVPqQgw4ASxhzZrPejJ1y+2GdWX/DsHETF5+75ZWaK/ahD/LmgU64gUC tVWRnlfhdNieznGMZKEFuSCX3HY1dyNzBpwLiGarZ4vtQIOagRHUu25gRglboNMf89SJ I6BLTQKFyHJ9zpjWpqmjlKF10NidMrz416xFhhZY1Qy5cu2+xOwPeW6GBI8xvQCn/Ru1 UpXeEb/QTaATOZu11vwkm/arkcFJ7UNDLj18bGxeJxE19K/p3RPE7pLiP/SiiakwoMST DvFLhe5RKE5cSX4z0emqUaf2XaFmb4Y/WSPPqZMqvysohnbc86o65PY15EkHPdqcooLV ClzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=CtjRilCh; dkim=pass header.i=@codeaurora.org header.s=default header.b=eOkWZUlM; 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 l2-v6si1307967pln.386.2018.03.27.06.28.56; Tue, 27 Mar 2018 06:29:10 -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=CtjRilCh; dkim=pass header.i=@codeaurora.org header.s=default header.b=eOkWZUlM; 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 S1752998AbeC0NZi (ORCPT + 99 others); Tue, 27 Mar 2018 09:25:38 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:33738 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752841AbeC0NZc (ORCPT ); Tue, 27 Mar 2018 09:25:32 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 6C88260C54; Tue, 27 Mar 2018 13:25:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522157132; bh=F+JUgEmoFdVNYz7V8PQcfxXsLZekno//Qu3kipYjMZE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CtjRilChJKuLkE4wOQooMPNwJGMZ8hkv2JRvtVq1nrSgX+fgMsNyxUhgTDVbtV6Zd wKeoPrkJTO+5m3QJjQ7y2WvTrFR+D9mxR6Ursqv7zhO6CNR/vqRZAVI89xPcmkNwcx WMsrD742Ki5n15yTxf5n8hoW+V4Ok4HhTkpRUG2E= 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 F1F0E60251; Tue, 27 Mar 2018 13:25:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522157130; bh=F+JUgEmoFdVNYz7V8PQcfxXsLZekno//Qu3kipYjMZE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eOkWZUlMsgcs6UkFPaJE6ccnSHOJTn7scsnOBhbMM7b5XrlSUcdFscipzDLpbAhJt ZRRPt/8O8bdmctYp02ML0uZLnxStk3RVsMS1ZGrnNjMAXKoqCbYTs+DhE10rA985I/ 3TjxonXTb8aFe9U5Z7vbgpA1o+QlLCkUD+nwCWRI= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org F1F0E60251 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 v5 2/4] arm64: tlbflush: Introduce __flush_tlb_kernel_pgtable Date: Tue, 27 Mar 2018 18:54:58 +0530 Message-Id: <1522157100-16879-3-git-send-email-cpandya@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1522157100-16879-1-git-send-email-cpandya@codeaurora.org> References: <1522157100-16879-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 --- Introduced in v5 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