Message ID | 1527258489-30473-3-git-send-email-cpandya@codeaurora.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 993FE6025B for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 25 May 2018 14:34:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 86B0828C6D for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 25 May 2018 14:34:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7AC5528DCB; Fri, 25 May 2018 14:34:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B09B828C6D for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 25 May 2018 14:34:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=K+uLle5fLKFYD/wWwb4HLPEmAHNorwDkUI2VKCb+so0=; b=jXVrl1IPoFNm5kD7RnHcAs9EmP UWd8ktDOTKoL5umpwRmT08XKvUTgpr5WhYZPoeihLiBSvyQ9caFqrlLpJOQ0/APIHqIMx921hQh0z QzTVaKc0KnbXxiCjG9zr0HmPE4uYu7GNEYl6zc3aocAG8SDEMiB8Kgh2UjglDO/GSQzIMQZdgQnvI WiJg8PC8SNMnM5ykCKl601LEbMK+bMPzUXLHyEmUUQQ29D54ZFBD5OJ5yRU0haQ9ejTTgPyywfnGg 6Jt5F5nOhXsuClUoo3fEB+PgJVPlWRPuQ3iT0eOk498ZSf6KQVxCB+BuzWefiuYPf1LFqBVVRE01W /pOD7i/A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fMDnW-0004Rz-SX; Fri, 25 May 2018 14:34:26 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fMDiH-0001kn-BN for linux-arm-kernel@lists.infradead.org; Fri, 25 May 2018 14:29:10 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 81DB060B23; Fri, 25 May 2018 14:28:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527258530; bh=/aHwZ/uqbLnb3M+q55cvGM7jbTc9D8hO2GSNyXFVsIA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jm2fZZYZBs2187AZVJCW2ZRL1iF2mp3gNEZJ9jePns92GpD9sTymyB0kamYqRUt3j 3EEPmORdyFGUeU/iV3iR4mhPvW4QJF8YR5+xLxUmeZYBNhqDE0bZ4Hj2nsnTW9bPP/ iYu3sueBQKCBZrDqqwTP3ggRP5xqeNVbTm/N1o2E= 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 <cpandya@codeaurora.org> To: will.deacon@arm.com, catalin.marinas@arm.com, mark.rutland@arm.com, labbott@redhat.com, akpm@linux-foundation.org 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180525_072901_442416_D923B80B X-CRM114-Status: UNSURE ( 9.97 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Chintan Pandya <cpandya@codeaurora.org>, linux-arm-kernel@lists.infradead.org, toshi.kani@hpe.com, linux-kernel@vger.kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
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
Add an interface to invalidate intermediate page tables from TLB for kernel. Signed-off-by: Chintan Pandya <cpandya@codeaurora.org> --- arch/arm64/include/asm/tlbflush.h | 7 +++++++ 1 file changed, 7 insertions(+)