Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp459798imm; Wed, 6 Jun 2018 00:04:46 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKwK31e9UG0NORKsIiXSMXNoNfxz7MFEEHVVFzvsNpDb3jacaUObY8X1N6zR/F/14Cp94Tw X-Received: by 2002:a17:902:5e3:: with SMTP id f90-v6mr2064443plf.175.1528268685985; Wed, 06 Jun 2018 00:04:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528268685; cv=none; d=google.com; s=arc-20160816; b=I58ZzU1cNEM6Ly9OWNcVneEdYXakwreaRwF//FSf95R5Z8g7zpzubBZwQVRN0cfY5W nASUBjOTneHoHlC0qwWoAmJeb+C4P2//Q8p5eyNNSWW6Iw/LNEQ7Wq8ohB+xqRuIUqPy i4GnbIY3Kz3BbtIzwMTXVNnIlLjS7HauEb8o3DJGvoya8Jgx505Xq4jCzCFZ+y5+MPfV +KSbcyRXAT9KLYfW2vQNugN7kElKpZg/DMXWDLKwLTtr3SXh61yMpDXGYadfvxwoFuZN dZ2TKwzyR/bYManNyb6Qok6lT5N5cknDE5W3TnktQ2nIa/bNVpbDR/S0PzgmPg5FuRe5 wPgw== 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=PbqX5D6n5GLA9o2fLI7RhblGuZFve1pJ4Abx0H9hvlTq7BbqL+7xGAsv/51/VQRFn3 psjFCcvZ4oeIhmSJYYsB7ZiaN+a79aWQffaS/Z2WnxK1ovOXiKphLZll6n7Y/PNTj26l gHExQIFL7WhIUtmP6EH6sUgfAzrFYqEp6GHGuycwcFPyokddcn25UALH+Lm6+EWZLlvE aSejceyvAufJZhHgpel4PUNiEVMzy1SXNx9l5mKkZvsnp7d9/EwOTsLji/v7zeihw+8b 4QQahYqclkwRU8qy3Tl/3LVXbBv2UQa3HIdSdJW616YkGe7NEyuFVEapDOr1v99btAYv 2Plg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=bri4haWb; dkim=pass header.i=@codeaurora.org header.s=default header.b=hQq7ZXhY; 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 j129-v6si1731727pgc.186.2018.06.06.00.04.31; Wed, 06 Jun 2018 00:04: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=bri4haWb; dkim=pass header.i=@codeaurora.org header.s=default header.b=hQq7ZXhY; 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 S932279AbeFFHCN (ORCPT + 99 others); Wed, 6 Jun 2018 03:02:13 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:56092 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932247AbeFFHBt (ORCPT ); Wed, 6 Jun 2018 03:01:49 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 956FB6086A; Wed, 6 Jun 2018 07:01:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1528268509; bh=/aHwZ/uqbLnb3M+q55cvGM7jbTc9D8hO2GSNyXFVsIA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bri4haWbZBu7plas+sYp+K0eq47QEusl2LRO7V2F8s2Z0fEqm7ptQ6ZDn2r/1RV1J gXEh6czo7mDg5y4ihH79DnFC1se8sxeshBeJ+N7FJRMcs6qa06BNpx1GnjIKCGcmV6 gE1062XpGcCzFXa2wGXz7Mj7iLzWTGr7b5wRFigI= 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 16417605BD; Wed, 6 Jun 2018 07:01:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1528268503; bh=/aHwZ/uqbLnb3M+q55cvGM7jbTc9D8hO2GSNyXFVsIA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hQq7ZXhYqYUugY1BkswH6bZoVlkGRT6Bud5DEIxJKAQX+xatBB1zKHRnAXK0Yyxsi BxlN6NxTpgUQJ8lEoud/QFiuTGbQQIQe/fP4lz4x0zYesxlLTb97HxN1e4hYua9pgF liHMj3N9R0FtMbNtkoSUZBrQlb5FfxJGD1EUoWo0= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 16417605BD 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 v13 2/3] arm64: tlbflush: Introduce __flush_tlb_kernel_pgtable Date: Wed, 6 Jun 2018 12:31:20 +0530 Message-Id: <1528268481-19299-3-git-send-email-cpandya@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1528268481-19299-1-git-send-email-cpandya@codeaurora.org> References: <1528268481-19299-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