Received: by 10.213.65.68 with SMTP id h4csp301512imn; Wed, 28 Mar 2018 04:00:49 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+GlHM8GyCdoGG17OXLQM8RkGLfTKXsJAOxeoaec/Wtz3KznOANVj4wMCQ66WXsmQhQL2f1 X-Received: by 10.99.0.2 with SMTP id 2mr2177779pga.395.1522234849231; Wed, 28 Mar 2018 04:00:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522234849; cv=none; d=google.com; s=arc-20160816; b=C9iT4FxQ+MLgSguJfhAm/NFooAM1OcfUVUysDzHS3w2SOn0mAvuqm547GTZNYW3Zax n/QONrvelYnwPoi/7z8RIUiE7Yc3AqXs/RO40NcVQe1G69SZSmDFsnp6ki/t5xvbEsI3 yRtheaNtqG9RLbt6hh1ZbL5O9jHMJNB2rxolqEDS7DYZ2bCLi0vQ+0oO2EsTa+b9qq3g KG7MxYIAghya+ksl2Ptq7jSingWMhDskSDIVsPOLWZquq6C6GLZ6aftHwpZl/qq+sGgg AehSy/N7YFC/+faaXOW9GE06y98Hqcaq31T+2+zG621gSpoXBjizFO+RZlqAu0eWt40b Xz6g== 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=VhYPyw4Nkqe6iBRV9IccST49vWm0sIBvlGFmqhaaKlk=; b=E7APMiwspbBTXhQWb5TuhyTDBR25s/qIXwmjk7I5Go19zd4o5Mk2xwtVqiFuJI043g 491GBIr5VakOBpF97D0zXrsUm1kAynu+GJTLoX19CopWu4YpLubEpkgumR+Mx+wZdi+Q DYijQUgzrYu092tfyj7LPFMlIpwir1oHLgMLxYhViflbxSnEWOnDBrJQs462oZ1/Wtqt ZtKY0HwwqgmyfGDh1QKLFBlF/1qV3vyEqFfjjBfFWnCPfrd3ZO46XrFI270zCWknIVqY J5wyY+OTE2nkpdr9eyR9MTjB5UiPwc4sVfGAUfXQ+8s2MUqQVRu4uIF/VVrplTtj2VTP m/TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=X5opztE+; dkim=pass header.i=@codeaurora.org header.s=default header.b=D0J4iV3k; 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 c3si2527123pfa.255.2018.03.28.04.00.34; Wed, 28 Mar 2018 04:00:49 -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=X5opztE+; dkim=pass header.i=@codeaurora.org header.s=default header.b=D0J4iV3k; 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 S1752694AbeC1K7V (ORCPT + 99 others); Wed, 28 Mar 2018 06:59:21 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:34764 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751903AbeC1K7T (ORCPT ); Wed, 28 Mar 2018 06:59:19 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 6509960591; Wed, 28 Mar 2018 10:59:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522234759; bh=GGo2AJ1AoEmfnG4lqxqctTwCnqhtOJAX94y0MDqEo98=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X5opztE++nDuOnsjcbE9O19oRPjoi/XwVrQQE8/fy21YldGRoNDNZcITPHkyvVta2 g+afgV0O27j+b9F5zGZ5Ije+3u+Nu/UQ72Q3fWcToYfyZY4Ve5MwOvyhFSn6FZK+9g JBu9wEqZ1wYWs7u3Blq6I02AMFxB9C02BVYFWP80= 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 1E59360C67; Wed, 28 Mar 2018 10:59:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522234758; bh=GGo2AJ1AoEmfnG4lqxqctTwCnqhtOJAX94y0MDqEo98=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D0J4iV3kW7Hz2EuxK0Q0Q2pdWlRgJF9HHHYXL1CrNK3kEdgi1rv5e/kpwdXDxSYH/ 4mm6iyJBuGAnHoi1nzRRVS6tX7iLYy5jvFeVARabjCYHEvTyc9Ofo6JfZq+e0rKG9Q r9UsbglLFTRMRUe6/oWK5OeNJnS64pRgyNH/KNEw= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 1E59360C67 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 v6 2/4] arm64: tlbflush: Introduce __flush_tlb_kernel_pgtable Date: Wed, 28 Mar 2018 16:28:49 +0530 Message-Id: <1522234731-27397-3-git-send-email-cpandya@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1522234731-27397-1-git-send-email-cpandya@codeaurora.org> References: <1522234731-27397-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 --- From: V5->V6: - No change 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