Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3543598imm; Fri, 25 May 2018 07:30:15 -0700 (PDT) X-Google-Smtp-Source: AB8JxZomlV+ObcAxK/Qctk/UnQBwTpClB0e0NNZwB8+jFnBxR+Q3Ltk8b2WyTdFkraEYUZo0252P X-Received: by 2002:a63:3c07:: with SMTP id j7-v6mr2198274pga.440.1527258615907; Fri, 25 May 2018 07:30:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527258615; cv=none; d=google.com; s=arc-20160816; b=JsZ2ujKJRmngiyCd+pyqnFQ7j4XzHIiuZkXN8/AGO2qDiBgYGPuWa5vAkXZQSPu8TM lACPIF4AQjx68nyHOj/muZAE6PjXUS0rebQpxP/E2enj8BbAAnPL47t+Mm6bzPRyNWKy ryEOzb6KoGbQhSsISCbyGLi+wMkFu8OGrAUclApc4YLEVvTM7UnriUjqUPWWClo1jixN WF/mUMTNTnxANLrIKIHGzB40xN7FIhHlnjYQB1sG3EEIO0P/i6pmIj9KKJRNCogACGud uQZI/1heW3Vrlwma8QRYJCa+HGFYrMtcjWPasoVbHbIeHphDdNOcsMZb2rBmCl1pErZu 4GgA== 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=Z1LksQdv5FEEr8eHpQHg9zvuqR0xq0tGWsMs4XBvbS8=; b=L/dfErfRazIYgXDCfTai0Y0mv6ZcTUnzDP/vfzr/nkxdnhZ/DMBBDT4PM1PXyAVWgv NZzFOycu8sSmtoyrxBLLWDmsAd0XDq0EgYamoodiOh5Y50RPiVJY0v7IGNeJRbBv0OuH G+C3WKxJp32RHxEUgsJSBBEAf3npQMpePdTdloV1zjLCv3U/VKFOni4ajo5X6eRJVy3J 1HBt4DcniECfoJiqVkdYQ6/KzdEOheu//EFA3qyk8K0OfKOeOOo3enUEpe24MblWz0Xe vY7/s36aWxDFLVnjNmstlRNnFLbxQivNZ2E/L8YmtDk0vVdBajYBATymTnjN+rYw2Xl2 vDbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=WAjFsgk4; dkim=pass header.i=@codeaurora.org header.s=default header.b=eW3qaKnJ; 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 65-v6si23916745pfo.229.2018.05.25.07.30.01; Fri, 25 May 2018 07:30:15 -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=WAjFsgk4; dkim=pass header.i=@codeaurora.org header.s=default header.b=eW3qaKnJ; 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 S936200AbeEYO2p (ORCPT + 99 others); Fri, 25 May 2018 10:28:45 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:54272 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935826AbeEYO2o (ORCPT ); Fri, 25 May 2018 10:28:44 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 1456960290; Fri, 25 May 2018 14:28:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527258524; bh=/aHwZ/uqbLnb3M+q55cvGM7jbTc9D8hO2GSNyXFVsIA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WAjFsgk4Eu1Jg9oCbzU2f/OkM8BKYz1YExuQvGTBj9bZ+2XLvqI7COadHh9MguoGh TOwJCxx7GAZnASoc0kYCc52nD6EBC7jGu4n/uQHLUjOi7RjZfJA+8YicWZS+gYuP91 BKrByXv5vzwnlko+xFvpvWOAf1HYB0zF+ZmPL7iM= 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 19B69605A2; Fri, 25 May 2018 14:28:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527258513; bh=/aHwZ/uqbLnb3M+q55cvGM7jbTc9D8hO2GSNyXFVsIA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eW3qaKnJuTZh+wBdZrgYcxgdb4Y3M9CI9My7pVDDsTmExKW6oYx9BHHaZNl+3oTss JqYv+J/JSpST7/c1neOXE/DSgWymiEBSK43NyGcBsk7h3M4NnCbdIshVO6f0i1cUn6 JILVKcrcbbzW+4j5+3Co/YWNntjWJnT2q5P282fg= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 19B69605A2 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: will.deacon@arm.com, catalin.marinas@arm.com, mark.rutland@arm.com, labbott@redhat.com, akpm@linux-foundation.org Cc: toshi.kani@hpe.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Chintan Pandya Subject: [PATCH v11 2/4] arm64: tlbflush: Introduce __flush_tlb_kernel_pgtable Date: Fri, 25 May 2018 19:58:07 +0530 Message-Id: <1527258489-30473-3-git-send-email-cpandya@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1527258489-30473-1-git-send-email-cpandya@codeaurora.org> References: <1527258489-30473-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 | 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 #endif -- Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc., is a member of Code Aurora Forum, a Linux Foundation Collaborative Project