Received: by 10.213.65.68 with SMTP id h4csp3240926imn; Tue, 3 Apr 2018 01:04:01 -0700 (PDT) X-Google-Smtp-Source: AIpwx49w8K340ZssfNFq+qtd4NasU0kcPMsJ4syke5oK4BikFcX17aKVOgBrrHZ+jxU5PG9SL529 X-Received: by 2002:a17:902:8548:: with SMTP id d8-v6mr13374372plo.241.1522742641043; Tue, 03 Apr 2018 01:04:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522742641; cv=none; d=google.com; s=arc-20160816; b=QETeNX27Pq3hbs0KMDr0/O/6IsYHxwXjS4O0ZkZXATXlG+pfd+/tqMJA8B5yoQsSBK 6bVNMPAbwasE94rrN+zNSWAwLapFgVrQML60q4cq9RbXmj2DCKvsXOxS3/7OpwwRQOXT 6Xvix0rVJfnbeOQqGKuItOsODeykm+zOhZ51g8WjX6e7tje/DPLcUtIcNvi/J9vTLVEk TUiYIbQIaJtoTEqUvc2yYwjpIBjSmy0kkrxl/fp9nmMEHG0AkJbyzptqJlIDdaEraYka 7TcyLMEmFKQBMp6rElPgyGsxc9nip7oTF/OBXyHrie4cgSzbGRBxkqZUw/KhNAwXXmlw 53nA== 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=OfihvFKJolWQ85Vtx8K3RKJkyi6SwxowHuvy5Ccuazg=; b=UKGrYm5W8/CYsvwmbSUqaeiLJwNtz29/TxoTA1z6m6OzAtPsO2re2pIvB5TwnLeaDe 5vHnhT8jQsFnEXTSNcCewlhd/mFQFThrLO3wz0Qe9ADrXcOK2eE2G1Ovw4LmoZkDZXip NIr+5SjD7gUMJOF4+93uNy51caqEl8Fz1/tAYCCBG3mkg0v3mKTKTiyrbTQQzUoFteF3 R8NhcKB13ZXJg/BQBvhmgJO6gMOa9SuiZ88fOFTJSqzu6udp05q5E7hZm6YN945V/jq6 2YWjzlbQkZ9GjaeIB1nYOIQ+8LS1TKO/33U0Bmmb34EAsJ2XL8tQJDPIqEHwGsqVikjH JI4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=JFV7FCcH; dkim=pass header.i=@codeaurora.org header.s=default header.b=JFV7FCcH; 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 32-v6si2355844pla.348.2018.04.03.01.03.47; Tue, 03 Apr 2018 01:04:01 -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=JFV7FCcH; dkim=pass header.i=@codeaurora.org header.s=default header.b=JFV7FCcH; 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 S1755036AbeDCICQ (ORCPT + 99 others); Tue, 3 Apr 2018 04:02:16 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:42442 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755004AbeDCICM (ORCPT ); Tue, 3 Apr 2018 04:02:12 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id D70D360850; Tue, 3 Apr 2018 08:02:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522742531; bh=p3VMDEi+nWZtPR1AIhhogO9TSzwLytx58Zuc8C3IGkI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JFV7FCcHikwKrH1mP84WZdouOtq2uD/GVtcRtceT9hB/9CF6KylMDmp3lYptN1ApS eaB2HnSdjjUojCOC/obF/5vSBLhodraPskfvs92BlvtXweyvlocjYpzacM20quKLqx DlhrM0qXF5PU7/CSWTBDb43ZG7zaXgXUjd+IzNfA= 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 2CA7760C65; Tue, 3 Apr 2018 08:02:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522742531; bh=p3VMDEi+nWZtPR1AIhhogO9TSzwLytx58Zuc8C3IGkI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JFV7FCcHikwKrH1mP84WZdouOtq2uD/GVtcRtceT9hB/9CF6KylMDmp3lYptN1ApS eaB2HnSdjjUojCOC/obF/5vSBLhodraPskfvs92BlvtXweyvlocjYpzacM20quKLqx DlhrM0qXF5PU7/CSWTBDb43ZG7zaXgXUjd+IzNfA= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 2CA7760C65 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: catalin.marinas@arm.com, will.deacon@arm.com, mark.rutland@arm.com, toshi.kani@hpe.com Cc: arnd@arndb.de, ard.biesheuvel@linaro.org, marc.zyngier@arm.com, james.morse@arm.com, kristina.martsenko@arm.com, takahiro.akashi@linaro.org, gregkh@linuxfoundation.org, tglx@linutronix.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, akpm@linux-foundation.org, Chintan Pandya Subject: [PATCH v8 2/4] arm64: tlbflush: Introduce __flush_tlb_kernel_pgtable Date: Tue, 3 Apr 2018 13:30:44 +0530 Message-Id: <1522742446-5084-3-git-send-email-cpandya@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1522742446-5084-1-git-send-email-cpandya@codeaurora.org> References: <1522742446-5084-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 | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc., is a member of Code Aurora Forum, a Linux Foundation Collaborative Project