Message ID | 1522240282-12104-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 A61E360353 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 28 Mar 2018 12:32:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B92EF28864 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 28 Mar 2018 12:32:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AD7FB288ED; Wed, 28 Mar 2018 12:32:51 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID 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 31B0028864 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 28 Mar 2018 12:32:50 +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=Jqp74XkCLObG0PNsbZ6xIzzegzxMhVeAOLM30OlMfVs=; b=toMO73gQ6HVuhL5JUUSqQZrD0u 8SPVGuhmzjN2FZ9RkIyskpdAQT0YSdr5njgIg1gQXkklKFLJ3qraiDeQmMA6XJ0EF8jp81vrQEylP yrx0PaDB37OD0NTOqk7zwVZc66CN03/8PrqvEp7NDDh09r9P1WUmRJU05EgI3IYuA/B2IWO/+ehvl LGizTtw7cJS4nng2dXDAf2iQq+jcejDriT5bzKBbIQ04oQEJ2FpKWiDDF1LiLcUbeT9Th1oe7+s+1 AfSRqaAqM/1Yn9+DI/del8J8bauPxFqCbPY/EiIQamv+7hM9WBhHTV7v+j2ahn/oSR9R8mcPTX10+ cwFldcbg==; 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 1f1AFx-0000ZY-RR; Wed, 28 Mar 2018 12:32:45 +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 1f1AFG-0008Ok-U7 for linux-arm-kernel@lists.infradead.org; Wed, 28 Mar 2018 12:32:04 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 8AA69607E4; Wed, 28 Mar 2018 12:31:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522240312; bh=p3VMDEi+nWZtPR1AIhhogO9TSzwLytx58Zuc8C3IGkI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LM9FjIPJHpqh4qg4ENJ7npixmQG6p7/rkyTujAg4OOFJMSQj4fSyfYokIGGOdmj0k +mtKf/0V/gPR0GXA3Ao0X3pIUzGdTKwQwI2gqTKEPxt4DZ2n+RZ0RwIhyN8JqkSWrq 3kvSD0DDyY77HQQiGPVpLovgjMPRmSH0Xk5zeJQc= 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 A382260C67; Wed, 28 Mar 2018 12:31:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522240312; bh=p3VMDEi+nWZtPR1AIhhogO9TSzwLytx58Zuc8C3IGkI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LM9FjIPJHpqh4qg4ENJ7npixmQG6p7/rkyTujAg4OOFJMSQj4fSyfYokIGGOdmj0k +mtKf/0V/gPR0GXA3Ao0X3pIUzGdTKwQwI2gqTKEPxt4DZ2n+RZ0RwIhyN8JqkSWrq 3kvSD0DDyY77HQQiGPVpLovgjMPRmSH0Xk5zeJQc= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org A382260C67 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: catalin.marinas@arm.com, will.deacon@arm.com, mark.rutland@arm.com, toshi.kani@hpe.com Subject: [PATCH v7 2/4] arm64: tlbflush: Introduce __flush_tlb_kernel_pgtable Date: Wed, 28 Mar 2018 18:01:20 +0530 Message-Id: <1522240282-12104-3-git-send-email-cpandya@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1522240282-12104-1-git-send-email-cpandya@codeaurora.org> References: <1522240282-12104-1-git-send-email-cpandya@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180328_053203_055143_4F4BB843 X-CRM114-Status: UNSURE ( 9.63 ) 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: linux-arch@vger.kernel.org, arnd@arndb.de, ard.biesheuvel@linaro.org, marc.zyngier@arm.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, kristina.martsenko@arm.com, takahiro.akashi@linaro.org, james.morse@arm.com, Chintan Pandya <cpandya@codeaurora.org>, tglx@linutronix.de, akpm@linux-foundation.org, linux-arm-kernel@lists.infradead.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 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
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 | 6 ++++++ 1 file changed, 6 insertions(+)