Received: by 10.192.165.148 with SMTP id m20csp3489868imm; Mon, 30 Apr 2018 00:42:45 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqBHmCX7/OHvjziDXrfZQYlxixLUQpvGOZP3k/3UxGRcPndpbRghMNs2QRprl48y9qeqCrs X-Received: by 2002:a63:84c6:: with SMTP id k189-v6mr9048869pgd.298.1525074165269; Mon, 30 Apr 2018 00:42:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525074165; cv=none; d=google.com; s=arc-20160816; b=ZyBsdnxFY1x7Ebgzf3rlMqqsHcuWJ+bjLJZsyT1l5bnZACrdh/aaWPz8mFBLUputGt f7mUQoSWhYW0JI7Qb6cqIkn8IPiFmfjuEKEBsjz5YOJ+RMvh4H96H6cVRM7EXMHX78Fc FFPMCIcOFyHGoDZETvOKXZEN+NQ+xes03QaAFjguuSerppit0AFmOceo67YjwiIxOGkR +epuPXGCtJiQgES++x6P5IsdzdXLgqyuI2VGsvscsG5eRndGZL63oc/9PDIxp/YgqTyP yoKYemS8pnq1K1O6RC9fP1vqHftTrN/WKQ/SKvTuHOEc+y7AR5YpmGz5tvUtC7fUL9Fa 7+XQ== 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=EwAr4jmmV3oWIByjxdWpGQcOSNw7bhz27DPC3jV7w85nkqEAsbZ0o9y3Y/isTPrWHF 5NHaofiQDJv+efl7X3IRigO280jbeGSJaWPumtykZgPVAky9Euih+i46KiVaQ0loqHcr NnLFbZylQR5RvVWTF4BbOpbZMxhGNYDPorsd3dwtddXMZ5dhwyaw7GclyoJMUhw5GBzu hDHBqeFZdRg6SCKDh+A6jvGlC+FaZG/hUS5kvBlreyabguNyoCSoZj0u2kpqkIC7ZJLS V5wHxQfrx9xslPkmjaBItyDQq4U3Zcc4LAXmvkE4rOFUehvl5/H1EqFZ/psu2gVmrjyc cigQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=DxJirA6f; dkim=pass header.i=@codeaurora.org header.s=default header.b=ZwS5BkKV; 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 r15-v6si5894541pgs.292.2018.04.30.00.42.31; Mon, 30 Apr 2018 00:42:45 -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=DxJirA6f; dkim=pass header.i=@codeaurora.org header.s=default header.b=ZwS5BkKV; 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 S1752775AbeD3HmQ (ORCPT + 99 others); Mon, 30 Apr 2018 03:42:16 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:46518 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751705AbeD3HmO (ORCPT ); Mon, 30 Apr 2018 03:42:14 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id A1B0860558; Mon, 30 Apr 2018 07:42:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1525074133; bh=/aHwZ/uqbLnb3M+q55cvGM7jbTc9D8hO2GSNyXFVsIA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DxJirA6f1DvVqYgRu3ey0nUHhq/1E+5yQadYf1KVAeAhEgDJTaiOCn6fqKK8Nm2hA HgV7nHxWTpg36YvGwhVgW9ZU+fIU0WCbexDZA+DTSePM+MynLzBZ0LFrdPW8qRzUvS EndcEKvB8a4lNae0URZg1VqcElTPZ3bPxAb2NXHU= 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 5694460F5C; Mon, 30 Apr 2018 07:42:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1525074130; bh=/aHwZ/uqbLnb3M+q55cvGM7jbTc9D8hO2GSNyXFVsIA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZwS5BkKV5hXWQGSYug+E8w6RQ9hNmL2+Gf1boeJOuHG0DhAbNgpQH/LxL7cb22COn a+NVo4UBI+mS5ZEAQH9lmpd7jSg/ec2aQ6i3cys0fx4rwbtUq3dYAmk88AkMZ16Mzu DMTY4YInBr8LgWpNq3twlPUWuVHhpc38oxxfXcmg= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 5694460F5C 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 , Arnd Bergmann , Mark Rutland , Ard Biesheuvel , Marc Zyngier , Andrew Morton Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Philip Elcan , James Morse , Kristina Martsenko , Toshi Kani , Dave Hansen , Vitaly Kuznetsov , Joerg Roedel , Greg Kroah-Hartman , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Chintan Pandya Subject: [PATCH v9 2/4] arm64: tlbflush: Introduce __flush_tlb_kernel_pgtable Date: Mon, 30 Apr 2018 13:11:32 +0530 Message-Id: <1525074094-25839-3-git-send-email-cpandya@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1525074094-25839-1-git-send-email-cpandya@codeaurora.org> References: <1525074094-25839-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