Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2835020imm; Thu, 24 May 2018 17:11:50 -0700 (PDT) X-Google-Smtp-Source: AB8JxZooz0irnlkOMVaj0WW6l64kkwjcYollYyvzz8EHoyQEVT4Vfm6unrGRcBmGCfUQJtcvNBd9 X-Received: by 2002:a17:902:8a:: with SMTP id a10-v6mr153589pla.89.1527207110537; Thu, 24 May 2018 17:11:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527207110; cv=none; d=google.com; s=arc-20160816; b=WQsBoBi2KZQt2xZH87I2logqNQc16CZg/6iSlljl4Tt9640CyEdXGqTBbr0Hf8i1N8 hPWt0ZjiUGHFhIfAPWaZiEdTZ4RxPOa+pB2V9N505S7q6YfOhQxBqIqOHpL996RYSS2X aypwWp/jnLdBq6W7n8lPI5jWvxwuu/0B7mtiLfxIP+6WVC3MmZ1ZfUxgzGHJuOYTiGDe epTIEEHe7W4otzf5WRfqSOJKytdY7LnWbI5D6IwZEl2y2ee2I1X+y5ZUtj8UJAKDcFOh qDVvfyj7JJilgCMLCs0gOhCZkfllalYiaFwAD03tr1GIDw5B5Obr08G28DWEBYUF7nI3 MxcA== 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=TtZ/dp9skEUQbFwBxA++HVxZ//ix93TvF9WpouHm+a2scuR+qDVC3D4BhI/pIZgITZ jiH8AVKthRJBTb1CG43DfgaNPmGXIBzjSbt11kL26RAdA7VuPxurcuC0C9ZoFR5sqL6k qhVHpf52dckXQo6SGsP0rphUGAiVT76qZkjf3B9dAZEiu3x9ezEWzc0Pjl4ZHb+FvBoG EiKTXC4KkoEUXhWtKPgiHkCrQNmoQUh8vkEOyNeiINLh/qY1DS/dPDSzH5YQ+y7QbwRP cVVo9QJltfI/rdeh7cVmF+LTxSeFydT9/uXCID615gp9YsXJUp5zsRr+VGiY9WBE9hzR 9Y9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=nwT8CFPz; dkim=pass header.i=@codeaurora.org header.s=default header.b=nwT8CFPz; 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 f18-v6si17639208pgt.63.2018.05.24.17.11.36; Thu, 24 May 2018 17:11:50 -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=nwT8CFPz; dkim=pass header.i=@codeaurora.org header.s=default header.b=nwT8CFPz; 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 S970185AbeEXN6E (ORCPT + 99 others); Thu, 24 May 2018 09:58:04 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:38152 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S970161AbeEXN55 (ORCPT ); Thu, 24 May 2018 09:57:57 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id DBF42602BC; Thu, 24 May 2018 13:57:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527170276; bh=/aHwZ/uqbLnb3M+q55cvGM7jbTc9D8hO2GSNyXFVsIA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nwT8CFPzO8zHv05E6GB/kHELy7F+DkqHSAQMuVftBM00b278vUk/xUjapiIRf3Rym i2nh690ZEtkv+Gmk6KXjsE/ywyjK6A5qRx8CPfhE5uRa+lUW6WEnwP9zDoTkAPGuRm vPPPAlQG4V1I0ldgbQbbIReXbP5M7AWKXju33qtg= 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 510A360117; Thu, 24 May 2018 13:57:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527170276; bh=/aHwZ/uqbLnb3M+q55cvGM7jbTc9D8hO2GSNyXFVsIA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nwT8CFPzO8zHv05E6GB/kHELy7F+DkqHSAQMuVftBM00b278vUk/xUjapiIRf3Rym i2nh690ZEtkv+Gmk6KXjsE/ywyjK6A5qRx8CPfhE5uRa+lUW6WEnwP9zDoTkAPGuRm vPPPAlQG4V1I0ldgbQbbIReXbP5M7AWKXju33qtg= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 510A360117 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, labbott@redhat.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 v10 2/4] arm64: tlbflush: Introduce __flush_tlb_kernel_pgtable Date: Thu, 24 May 2018 19:27:28 +0530 Message-Id: <1527170250-5291-3-git-send-email-cpandya@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1527170250-5291-1-git-send-email-cpandya@codeaurora.org> References: <1527170250-5291-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