From patchwork Sat Jul 11 20:25:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Daney X-Patchwork-Id: 6771361 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 06792C05AC for ; Sat, 11 Jul 2015 20:29:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 33BD620620 for ; Sat, 11 Jul 2015 20:29:10 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 44E6C2067D for ; Sat, 11 Jul 2015 20:29:09 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZE1LT-0006SO-AH; Sat, 11 Jul 2015 20:25:59 +0000 Received: from mail-ig0-x22e.google.com ([2607:f8b0:4001:c05::22e]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZE1LL-0006JM-1K for linux-arm-kernel@lists.infradead.org; Sat, 11 Jul 2015 20:25:52 +0000 Received: by igcqs7 with SMTP id qs7so33894541igc.0 for ; Sat, 11 Jul 2015 13:25:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=GbopduYhfRp/1uvjdJAB/zTdRQD5LjztKAhfhnHbOew=; b=uSlqMwXahz8QUf2YPDsQVsL68GzGLGCJjtE2mlyfAvR5bB7lE6+T9y3zpOj4YXMmGK xeOHGgZi6BCmv7EyRwRh+RHs/1QNXboIHIlq09cWGvCxySyDY6NzMufN+xqVgOWi81oC B5oUIxyendID4Sx8qp8wKjdHi7COn9Jl+MeI03yW8ChkAagqkBq09K0pEHz5EqPR3Xq7 /W74DmPSqMmqxIlW9QM/CsXvXgW80vAs1GdXw/iTeNSmXX4zRv4Fm6I6r5SryuKui7Up rej20AXqxACJAg6ysoRG8TWqD6wihofzJKyefN4s3PfmNmaobd70gUV1N8E2XYnvcqa+ zmYg== X-Received: by 10.50.20.135 with SMTP id n7mr5194066ige.58.1436646329132; Sat, 11 Jul 2015 13:25:29 -0700 (PDT) Received: from dl.caveonetworks.com (64.2.3.194.ptr.us.xo.net. [64.2.3.194]) by smtp.gmail.com with ESMTPSA id lr1sm2302917igb.10.2015.07.11.13.25.27 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 11 Jul 2015 13:25:27 -0700 (PDT) Received: from dl.caveonetworks.com (localhost.localdomain [127.0.0.1]) by dl.caveonetworks.com (8.14.5/8.14.5) with ESMTP id t6BKPPDY010567; Sat, 11 Jul 2015 13:25:25 -0700 Received: (from ddaney@localhost) by dl.caveonetworks.com (8.14.5/8.14.5/Submit) id t6BKPPGc010566; Sat, 11 Jul 2015 13:25:25 -0700 From: David Daney To: linux-arm-kernel@lists.infradead.org, Catalin Marinas , Will Deacon Subject: [PATCH 1/3] arm64, mm: Add flush_tlb_all_local() function. Date: Sat, 11 Jul 2015 13:25:21 -0700 Message-Id: <1436646323-10527-2-git-send-email-ddaney.cavm@gmail.com> X-Mailer: git-send-email 1.7.11.7 In-Reply-To: <1436646323-10527-1-git-send-email-ddaney.cavm@gmail.com> References: <1436646323-10527-1-git-send-email-ddaney.cavm@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150711_132551_126197_3451FD9C X-CRM114-Status: UNSURE ( 9.40 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Robert Richter , Andrew Morton , linux-kernel@vger.kernel.org, David Daney MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: David Daney To be used in follow-on patch. Signed-off-by: David Daney --- 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 934815d..42c09ec 100644 --- a/arch/arm64/include/asm/tlbflush.h +++ b/arch/arm64/include/asm/tlbflush.h @@ -105,6 +105,13 @@ static inline void __flush_tlb_range(struct vm_area_struct *vma, dsb(ish); } +static inline void flush_tlb_all_local(void) +{ + dsb(ishst); + asm("tlbi vmalle1"); + isb(); +} + static inline void __flush_tlb_kernel_range(unsigned long start, unsigned long end) { unsigned long addr;