Message ID | 20240219060407.25254-3-byungchul@sk.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-70748-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp1103035dyc; Sun, 18 Feb 2024 22:04:48 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV+XOzGoBnsh/JPfGAlYDHdabDoNtdyDvmm0JWt+tR5id4S0agQKc7FAsrO1gnsvW5WFY3OEwhE0ilKT4A7zLKu7DdeiA== X-Google-Smtp-Source: AGHT+IGAFOjxZtimVMhrCgjGHMFAhgJwYAgcU9BZwQYgwoizyk4lqRrDQPgp/7sacyWZdIIys/Fz X-Received: by 2002:a17:906:b885:b0:a3e:9952:e13f with SMTP id hb5-20020a170906b88500b00a3e9952e13fmr894143ejb.13.1708322688436; Sun, 18 Feb 2024 22:04:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708322688; cv=pass; d=google.com; s=arc-20160816; b=EUjPtjrm7CCgpVxDGD3yDwgNmZ6X3elaxNPLamRzX7GMeNaJmBuoHl2Xvrks8te3Pl L8lhmpHmPoLnLL6mqnllC5Bccx+SkwVEq/p1oxBiLWIxYwSTcrAStEB5a2bsXKuIibIo qVklE0jCpZTbXbf7o9J7hglRUf/gkOQAoFPKMU2RMYdSuWUqVJiKUIAZpJWK7o8cwSop +BmujEEniXvTBMcykcMZxud4DISEssqPwAZjj6UeraaIgFv3juB8k8n5J6YYuaSEz71y JBWigOayePm6sXbfRRhq18Tnr2/gSs/Ti38ttzDY5eVMUP064gYZ6SaMgM6YdKJFbmxZ k8Bg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from; bh=23+JjFD9uRPbyMWGqJTLiQYjg6Gkh8EQ/TB1jpahIpQ=; fh=I/fJb8ryqmmGEnsMy9AhDuMN2ego/v5YAM2Gbv30rAg=; b=q+CIBdBbo0MG6FLaIEy4ca4fvjnRVmilcKgrrzD8KGd/N5SUpfBPMSf1WytZe8P1Wr CRmQaXXI1uQjBQkkdKolZzTbFf6m1fVpFJivJR4HfgV0LO0+7X/eBYNNa/Touj7gDOP3 NpNN0YcZbuAYTS0sYe07YO1EjZ4B/k+GQo0fh6vtAN8PHdsooht0JxSkb5lASXD0faLD X1maj07znlQm6BRyWb8vLvjnTAt6p3atlGTAwnz0NhaBdlMuywv9FZqQ4s20h9TBcSbn CpYy/mdyUecLe+WHpwOpjgAEOUlsOksc8x5jhqd+4lxW4a3/OLmwMua7C1i2QaLKmnl7 3EvA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sk.com); spf=pass (google.com: domain of linux-kernel+bounces-70748-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70748-ouuuleilei=gmail.com@vger.kernel.org" Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id i19-20020a170906115300b00a3d7bcfb9acsi2184966eja.841.2024.02.18.22.04.48 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 22:04:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70748-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sk.com); spf=pass (google.com: domain of linux-kernel+bounces-70748-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70748-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 0FFC11F22701 for <ouuuleilei@gmail.com>; Mon, 19 Feb 2024 06:04:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E4EBE2030D; Mon, 19 Feb 2024 06:04:30 +0000 (UTC) Received: from invmail4.hynix.com (exvmail4.hynix.com [166.125.252.92]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4D4D8200AA for <linux-kernel@vger.kernel.org>; Mon, 19 Feb 2024 06:04:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=166.125.252.92 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708322666; cv=none; b=HD8P4n+G5YoXTx/CujnkNvnoJYCHbSb+KcpVhwDDRahpyGK5HHK26OGHsy6ckmHvZwdm2u6dx9tcTydS/ILlhGoZoIQ6xy91Zfd/sC/nlta9NyFJl2XUBGMWSZfnHuSAsPp0hnHEseq9RZeG60Oa1mfxeIhRBfAsQRTfzA0tllQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708322666; c=relaxed/simple; bh=uWSWIWkD3opthclWyKeivuFFBZgLyDaadr0FCXFpy+I=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=Br4HMSObp2CE7G1sotOuPOWx9UQHis0QNGhpJ6YmImet3U9vfqGAQKH3R1Uk8rsSXsaQj5g8tRKj8pkNGS6paCmH6H/8FSyy7eXUBcisLPEuR9nJ8AWSY1iwlcCjWqElS+9JvPdrw3Q3jtC5yP/wrULBKhFeHMWosHHb4Y46KlY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sk.com; spf=pass smtp.mailfrom=sk.com; arc=none smtp.client-ip=166.125.252.92 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sk.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sk.com X-AuditID: a67dfc5b-d6dff70000001748-c2-65d2ef61c11d From: Byungchul Park <byungchul@sk.com> To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: kernel_team@skhynix.com, akpm@linux-foundation.org, ying.huang@intel.com, namit@vmware.com, vernhao@tencent.com, mgorman@techsingularity.net, hughd@google.com, willy@infradead.org, david@redhat.com, peterz@infradead.org, luto@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, rjgolo@gmail.com Subject: [PATCH v8 2/8] arm64: tlbflush: Add APIs manipulating tlb batch's arch data Date: Mon, 19 Feb 2024 15:04:01 +0900 Message-Id: <20240219060407.25254-3-byungchul@sk.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240219060407.25254-1-byungchul@sk.com> References: <20240219060407.25254-1-byungchul@sk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrPLMWRmVeSWpSXmKPExsXC9ZZnkW7i+0upBhuf6lnMWb+GzeLzhn9s Fi82tDNafF3/i9ni6ac+FovLu+awWdxb85/V4vyutawWO5buY7K4dGABk8X1XQ8ZLY73HmCy mH/vM5vF5k1TmS2OT5nKaPH7B1DHyVmTWRwEPb639rF47Jx1l91jwaZSj80rtDwW73nJ5LFp VSebx6ZPk9g93p07x+5xYsZvFo95JwM93u+7yuax9ZedR+PUa2wenzfJebyb/5YtgD+KyyYl NSezLLVI3y6BK2NP30P2gtlcFZvet7M1MO7l6GLk5JAQMJH4dPspK4y95ORdJhCbTUBd4saN n8wgtoiAmcTB1j/sXYxcHMwCH5kkVn/vYAFJCAuESPT/PMUGYrMIqErMfbwHLM4rYCqxdhdE s4SAvMTqDQeAbA4OTqBBuw8KgYSFgEpOXJ3MBFHSzC7xZ3I2hC0pcXDFDZYJjLwLGBlWMQpl 5pXlJ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ST/ Q4vy3BnzOwPWBU96bZky69A7d6fP85y05u6t6bmTsVtOcknqevGPp31u17GWnxZ+n3lN+r3x xNaTrTuVHjTyy3oGfn3E4xCoxFKckWioxVxUnAgAtvSl22oCAAA= X-CFilter-Loop: Reflected Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791306170919048039 X-GMAIL-MSGID: 1791306170919048039 |
Series |
Reduce TLB flushes by 94% by improving folio migration
|
|
Commit Message
Byungchul Park
Feb. 19, 2024, 6:04 a.m. UTC
This is a preparation for migrc mechanism that requires to manipulate
tlb batch's arch data. Even though arm64 does nothing with it, arch
with CONFIG_ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH should provide the APIs.
Signed-off-by: Byungchul Park <byungchul@sk.com>
---
arch/arm64/include/asm/tlbflush.h | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/arch/arm64/include/asm/tlbflush.h b/arch/arm64/include/asm/tlbflush.h index bb2c2833a987..4f2094843e7a 100644 --- a/arch/arm64/include/asm/tlbflush.h +++ b/arch/arm64/include/asm/tlbflush.h @@ -328,6 +328,25 @@ static inline void arch_tlbbatch_flush(struct arch_tlbflush_unmap_batch *batch) dsb(ish); } +static inline void arch_tlbbatch_clear(struct arch_tlbflush_unmap_batch *batch) +{ + /* nothing to do */ +} + +static inline void arch_tlbbatch_fold(struct arch_tlbflush_unmap_batch *bdst, + struct arch_tlbflush_unmap_batch *bsrc) +{ + /* nothing to do */ +} + +static inline bool arch_tlbbatch_done(struct arch_tlbflush_unmap_batch *bdst, + struct arch_tlbflush_unmap_batch *bsrc) +{ + /* nothing to do */ + + return false; +} + /* * This is meant to avoid soft lock-ups on large TLB flushing ranges and not * necessarily a performance improvement.