Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp545263imm; Fri, 1 Jun 2018 05:41:35 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJIpUtHltU6Z/xCRstiRiRUZT5VD5YTw0ze7/iF+guUP/f0KwzJqxGK5ZsHjbawvgZIiKVZ X-Received: by 2002:a63:18c:: with SMTP id 134-v6mr8749588pgb.138.1527856895524; Fri, 01 Jun 2018 05:41:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527856895; cv=none; d=google.com; s=arc-20160816; b=oZnp2JNfDDm/YvL8Ooy5VjFNHM/pfgVJOqxvFWWeWdF+R8ZQ9yAZp6wqHdZwgy5NBI 2qmNJNQj8svQhbtvDTgOfrVdpsdft1oCsph+Ii+5tbcdjfQvuo6c4zxUZoKNdhDpi3C6 au8HfMjqmVQCLeeImieeXNMVuxktWRvl/Tx2dCrAVp3zPaUdiXlv6+7gAQ5SNGtuo4DL vXskbid9u47drQ3AReiyX0i7dlDn9jMPuWPtOVF4cmWSgV83kk0M34N17uE8XKs+mepc 9pOAO9EMMN/zUKt42XxW2TFVHqYajftDuQp1w63UmPRR4Hb6Xc85boWyApPnitQUCu/6 hJGg== 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=KXRVDePprzGV0A7YKwsOupjcH2+vS9W2H/NZPngSiPrlm1vHD4EbqA5B/C0kb8MoQw 76SNdAC1BRoCW4Dk2dsum7d4jevWZERUSRX0rlKlbQzxE5XKUcc4f4MaJAOpZkbF8xEV EZOvs2aX623jgHP7mMl8C7eH+AfWwdDdiubDPJoJR+TuWuLJ46ns9QNijOIVZmJG+i1k Cf/UEvi9iuJFv8VWfAsAViySWH2oqkGGCu4VvWPEt+GF0ZPfaM0PhhlGjPxctMuUnD5I JX1zSnFbOx5xCFBShDev3B3SJwjT0JdoGL3EnPNRkshA7TO9ZupiFPWXU+oHfsGBTkf4 gjXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=AhgDlZ/w; dkim=pass header.i=@codeaurora.org header.s=default header.b=hL+I5boa; 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 f11-v6si21200429plt.9.2018.06.01.05.41.21; Fri, 01 Jun 2018 05:41:35 -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=AhgDlZ/w; dkim=pass header.i=@codeaurora.org header.s=default header.b=hL+I5boa; 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 S1751988AbeFAMjt (ORCPT + 99 others); Fri, 1 Jun 2018 08:39:49 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:49984 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751854AbeFAMjp (ORCPT ); Fri, 1 Jun 2018 08:39:45 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id A1AB460764; Fri, 1 Jun 2018 12:39:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527856784; bh=/aHwZ/uqbLnb3M+q55cvGM7jbTc9D8hO2GSNyXFVsIA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AhgDlZ/wVbRkJwD7e11ASGXPwo6+m8vm3/cnZQwmFORCQvAiVt5Pz+PD/1bFGLQ3q wX4xx7w0Fux/ccIY73KjzQoviYxDyjw1xMCHZEkDyEdNdk1F6hS2B7J3giSLmtoDUl vxFpX6uDTBQ22spQSVm162vxmf6zUd11tpmG8bRQ= 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 D5A4D6074C; Fri, 1 Jun 2018 12:39:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527856782; bh=/aHwZ/uqbLnb3M+q55cvGM7jbTc9D8hO2GSNyXFVsIA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hL+I5boamWwa2bkDYAEV0vwE1vryDGcp6FPUuFrB2UW/qzlq7Fg6K62daFHCOXFno aJGWpVNnKzUexNAMXvDANntmWuCwKPiMMNpYo5Xq7bTGiq+3l9Do9a15crlceBTNj3 s0NvhSXPykd9YOLMRZzV19M249O4BeUWd7OY8z1U= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org D5A4D6074C 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, akpm@linux-foundation.org Cc: toshi.kani@hpe.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Chintan Pandya Subject: [PATCH v12 2/5] arm64: tlbflush: Introduce __flush_tlb_kernel_pgtable Date: Fri, 1 Jun 2018 18:09:15 +0530 Message-Id: <1527856758-27169-3-git-send-email-cpandya@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1527856758-27169-1-git-send-email-cpandya@codeaurora.org> References: <1527856758-27169-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