From patchwork Thu Jan 11 06:07:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Byungchul Park X-Patchwork-Id: 13516788 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4EB02C47077 for ; Thu, 11 Jan 2024 06:08:35 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DB85D6B009C; Thu, 11 Jan 2024 01:08:34 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id D68D16B009D; Thu, 11 Jan 2024 01:08:34 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C09736B009E; Thu, 11 Jan 2024 01:08:34 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id AD9C36B009C for ; Thu, 11 Jan 2024 01:08:34 -0500 (EST) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 2B43D1A078B for ; Thu, 11 Jan 2024 06:08:14 +0000 (UTC) X-FDA: 81666000108.30.F278229 Received: from invmail4.hynix.com (exvmail4.skhynix.com [166.125.252.92]) by imf16.hostedemail.com (Postfix) with ESMTP id 486B3180020 for ; Thu, 11 Jan 2024 06:08:11 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf16.hostedemail.com: domain of byungchul@sk.com designates 166.125.252.92 as permitted sender) smtp.mailfrom=byungchul@sk.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1704953292; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=23+JjFD9uRPbyMWGqJTLiQYjg6Gkh8EQ/TB1jpahIpQ=; b=DWiqc4WgDv9yDe9m097rOHkjsxhZY62q53plS4PED1l3fTuXZtsSfIM+a8BFomPLfzJM1c 4DHKOPeyr92/Qw8vyae+1IcUHEkshU4VDTbJfftozJr8WFYQe88AoWoYgOhI1yCclIaNnK BcNUOP/lURJTuktybby7jbQmg2ItZPE= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf16.hostedemail.com: domain of byungchul@sk.com designates 166.125.252.92 as permitted sender) smtp.mailfrom=byungchul@sk.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1704953292; a=rsa-sha256; cv=none; b=sB7LsGp4ZOv+ofiLpHdR96wOI2Y+x88SxMcrm8rqwp6g3vANvuC4LRV1RE2HBVbFuyCFzF Yb1FAsNLZdjjKotB/QqxYYfXjbHx/hQdVPPNpyMm7GeoPPQMeJZK5TJN4NvT7ZHU5Hia4O aQRGjYYEl2sMRE7kbZ42QbVXbScvb80= X-AuditID: a67dfc5b-d6dff70000001748-e3-659f85c87bb7 From: Byungchul Park 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, xhao@linux.alibaba.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 Subject: [v5 2/7] arm64: tlbflush: Add APIs manipulating tlb batch's arch data Date: Thu, 11 Jan 2024 15:07:52 +0900 Message-Id: <20240111060757.13563-3-byungchul@sk.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240111060757.13563-1-byungchul@sk.com> References: <20240111060757.13563-1-byungchul@sk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnr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4v+8qm8fiFx+YPLb+svP4vEnO4938t2wB/FFcNimpOZll qUX6dglcGXv6HrIXzOaq2PS+na2BcS9HFyMnh4SAicTP8+fZQGw2AXWJGzd+MoPYIgJmEgdb /7B3MXJxMAs8YJKY+3YFI0hCWMBP4kTnPbAGFgFVic2d/4DiHBy8AqYS++5yQ8yUl1i94QDY HE6gORcOzwIrEQIqedRWN4GRawEjwypGkcy8stzEzBxTveLsjMq8zAq95PzcTYzAAF5W+2fi DsYvl90PMQpwMCrx8Bq8nJcqxJpYVlyZe4hRgoNZSYRX4fOcVCHelMTKqtSi/Pii0pzU4kOM 0hwsSuK8XuGpCUIC6YklqdmpqQWpRTBZJg5OqQbG1p2sx89pmE9wTEpPNe97IPWpeA07l8Pv 0PNuPVd6hcpuHZgy0bn+/5QNm3vWRJXKLVDb+E4i2EFNxN6OSVhhUTLH50UlpYJt676FXTw1 h8f16YFrYftv5wipMm8zWXg3I5Z72gnxuU92sc2o+RTO36m6v9dt5gGz9Icfju++af+VL8Ta ea6VEktxRqKhFnNRcSIAq273dFwCAAA= X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: 486B3180020 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: 7tyyj1wi7fnfmaeuw4kscmxrgxfr3qu6 X-HE-Tag: 1704953291-352964 X-HE-Meta: U2FsdGVkX195fcpi0PptyQOjXnWEyPg+NN5yDnbNRBqSCO++VplpnIA6ev6FS7IrtPUM9CBWSipDZuH2VNZkG9o65etrYR9NqmQRnMGjcZtzGs+vh9DdHZnr7cpNDLkOPf73lgWTOFeqG4Vo45xif1GDGwGk1dyURXxOK/j7yYw5PGd1atNYLt7tz7Z4LJRiCd0lQOF0DZLsstKUYD5RARFCy3DlTUW2svFkyQNtvd5YmE4eO0zY7vaVlMZc9JEjTxmjX/09VaF9QRb3JFMBq6Yhyrd5olsNIrHKYxXMbkNBChXuRUPTLfMopYs+ce2vLAaI4Hdq1UoIsiZE+o8wmD3xSFBRKFfDIEAge4XXicEE3AjDpa8A3xylO/0eIxGkUEXNbnD2/IaBKNadCLbGmHY1bt0D78bkozsCPeb3002hfucr3gs+tKLXYTN1TlgsYqSUrB+iBioY1uo76K9Rd5JFpG0xt4KzvVmrofi2dLQ1dHGI2YzZGQacOSwluTqsNXpu5fAnVICraKoyhw+lqnu38cM1GxsbsRh2lXVD1X1RwUMsR50zOTxJ+9NW6rVM5BBN6ZRHi/VNbgkJuGTQ0A/J4b77yMAzAE/VMygSYoYG2uLIbFIHTQJuuCyezheVOQPCezexK+gdUcT6LPGS7uJ1MLt/LQE02BgEAZ2RfejLe4q1FtKdd1uST1do4dHUR+1K4OMZcTO9I8Fiw/lXKIn+bmP3htlEI9+PbMTxTMzSRgQ2RNXyKw4+ODGgR+xV6PEXA82MgpE3kH9mZvfG0bcVa/QEtWFArG1tk2eMgQHpgyWgo2XuyH1nkWUZkE1MvAtjuiY1dlxRSBbgtOpehlxiLebjFOyhSeyqWP7saO8DCSlei7Y/4h+49L5tCvEusY7q4uTgWzVVT/atEurycok/9YjnlELp0R09tEN/P81t4nqiBg8aSETGrmFnjQJqyyfa0UJkQ3suN058dzi ZQA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: 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 --- 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.