Received: by 10.213.65.68 with SMTP id h4csp1641779imn; Thu, 15 Mar 2018 05:46:49 -0700 (PDT) X-Google-Smtp-Source: AG47ELsQ5W7fEXkJuCyCY09KQneYVUnYWLK0nkhtbI4QMXt0ZIn+I6pf9pF1xsJxjA3rwbZDzvVZ X-Received: by 10.99.166.10 with SMTP id t10mr6660416pge.198.1521118009429; Thu, 15 Mar 2018 05:46:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521118009; cv=none; d=google.com; s=arc-20160816; b=v6/TH6aPcBz4eCbcPbG+BVdOmuJ67u8xDEg+VNeVv6mYJl9QqYmQLAFRJsKbl7OgZg Uthe9jlxQkiFTZrw5Lw+FTzmaHFdekBGfaIGgMGx5YkBMJq7a3kCIYSb25iWsIgERfVG FJLFWdilDBz3qAQlDetkUJTxreFINMdPWK43EqerBE3YG/byTduvkWFHFwMpMKOk+344 v8AGOILihl6LVifctUpL/BC/u5yKYcvzd4ThfxXLKD9S9esmCHYt4EYiyKODeKXqVIT1 eN2l46hApsZpH5gbPCrNMBtRQleCrcf4jl3RQw5maE0ZuyNXobyzvdg5VE7SSG28DRCK gtMA== 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=Co9F+KioBoatCy947UHZVmFoVPuHhrCd48Z0+KiQ+Xg=; b=KSumN+fJdfwfO+J1x/vYjfjaQhX/2A3Gip0NGAjM/wMRC24r8S1p3ebB8QODMfgrm9 Rr4LAobbDZ27S3YTtefMmnGSUver6l2jCtQHp4QArT9iRqjDdzFRyZiMpYSD6aW454Cv NLH48Jwy7iGAdWHJQEfz1722BzNpg4esr2eCV7VulXQzvGENFGpa3L4oY4gxDJLj8Nb7 ygciPJNFEaa6jk4Toq8mA0iM08lXZ+6fYX2K1uYJaCw3OtpUrsRkoCHmG1CKQHuB0F5c /E19D10t0NdceExCEBbrr8tLbmp/8ILBYRkbQ43nHbhEWMB8KNAjnVikb7obvYVc4bXt b6fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Kl+SxKNv; dkim=pass header.i=@codeaurora.org header.s=default header.b=X6z9UOtm; 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 b68si3742655pfg.249.2018.03.15.05.46.35; Thu, 15 Mar 2018 05:46: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=Kl+SxKNv; dkim=pass header.i=@codeaurora.org header.s=default header.b=X6z9UOtm; 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 S1751914AbeCOMpc (ORCPT + 99 others); Thu, 15 Mar 2018 08:45:32 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:54636 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751603AbeCOMp3 (ORCPT ); Thu, 15 Mar 2018 08:45:29 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 39BAE60C54; Thu, 15 Mar 2018 12:45:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521117929; bh=JTd75sWy4cdy0rvDy8u7PbV05IOPC51PAUZ57AZZEfA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Kl+SxKNvvMXFNzhKSaH4LoOTZ2fjuSPzVQF026ZGJuYV7ob51VqDI+mWmYn0bE+jy ZKZHvujIoqakUfFqMECI69WriGg26Drur2gTNYjlwUkX7wBHp9elTHMjh63KZr9Jpm eSIf9X6sUPMtBGkB4FxBFToSlHTBxi2IdUhcbXH8= 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 73F7760BFA; Thu, 15 Mar 2018 12:45:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521117928; bh=JTd75sWy4cdy0rvDy8u7PbV05IOPC51PAUZ57AZZEfA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X6z9UOtmuAFnsFvyP9jAd8FjGHJODoO8Ro+FgN6JvwNZg1gLmvV3uhdS3ImYa2V1U xUY2EAeapSM+eTXstFWF/w8bygD/hgyP1HJH05Bg9H/15SJP+5dlZ4/SITytbWAyBF cFmUP188MSmDh9gMJ3wHvOwaqZ+gxg/wqUj6OX1g= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 73F7760BFA 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, arnd@arndb.de Cc: mark.rutland@arm.com, 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, toshi.kani@hpe.com, Chintan Pandya Subject: [PATCH v2 1/4] asm/tlbflush: Add flush_tlb_pgtable() for ARM64 Date: Thu, 15 Mar 2018 18:15:03 +0530 Message-Id: <1521117906-20107-2-git-send-email-cpandya@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1521117906-20107-1-git-send-email-cpandya@codeaurora.org> References: <1521117906-20107-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 ARM64 MMU implements invalidation of TLB for intermediate page tables for perticular VA. This may or may not be available for other arch. So, provide this API hook only for ARM64, for now. Signed-off-by: Chintan Pandya --- arch/arm64/include/asm/tlbflush.h | 5 +++++ include/asm-generic/tlb.h | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/arch/arm64/include/asm/tlbflush.h b/arch/arm64/include/asm/tlbflush.h index 9e82dd7..5f656f0 100644 --- a/arch/arm64/include/asm/tlbflush.h +++ b/arch/arm64/include/asm/tlbflush.h @@ -209,6 +209,11 @@ static inline void __flush_tlb_pgtable(struct mm_struct *mm, dsb(ish); } +static inline void flush_tlb_pgtable(struct mm_struct *mm, + unsigned long uaddr) +{ + __flush_tlb_pgtable(mm, uaddr); +} #endif #endif diff --git a/include/asm-generic/tlb.h b/include/asm-generic/tlb.h index faddde4..7832c0a 100644 --- a/include/asm-generic/tlb.h +++ b/include/asm-generic/tlb.h @@ -295,4 +295,10 @@ static inline void tlb_remove_check_page_size_change(struct mmu_gather *tlb, #define tlb_migrate_finish(mm) do {} while (0) +#ifndef CONFIG_ARM64 +static inline void flush_tlb_pgtable(struct mm_struct *mm, + unsigned long uaddr) +{ +} +#endif #endif /* _ASM_GENERIC__TLB_H */ -- Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc., is a member of Code Aurora Forum, a Linux Foundation Collaborative Project