From patchwork Mon Feb 19 06:04:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Byungchul Park X-Patchwork-Id: 13562181 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 99995C48260 for ; Mon, 19 Feb 2024 06:04:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B417C6B0083; Mon, 19 Feb 2024 01:04:25 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id AFD6E6B0088; Mon, 19 Feb 2024 01:04:25 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8EB046B0085; Mon, 19 Feb 2024 01:04:25 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 757A76B0083 for ; Mon, 19 Feb 2024 01:04:25 -0500 (EST) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 54AA9A024D for ; Mon, 19 Feb 2024 06:04:25 +0000 (UTC) X-FDA: 81807513690.23.8A117C5 Received: from invmail4.hynix.com (exvmail4.hynix.com [166.125.252.92]) by imf05.hostedemail.com (Postfix) with ESMTP id 570CF100014 for ; Mon, 19 Feb 2024 06:04:21 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=none; spf=pass (imf05.hostedemail.com: domain of byungchul@sk.com designates 166.125.252.92 as permitted sender) smtp.mailfrom=byungchul@sk.com; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1708322663; 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=rYonxCbZxDq2E3J/xLF1liFh4Rf26OD42gkajSWQWAyNTLbhc9FvCUecNMR1aboGwccmDm qE8ainCezQng8g6wdq2CKLcCn5zZGOnJOcH95ZkopAUmCDBM30A7SkbHXbQOpSR68aY/LE TTQ8VWPTOR6mcmGywDuOHoeDc1PQKIU= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1708322663; a=rsa-sha256; cv=none; b=vP89KTj67qvTn8zlgcZ4C4Qu68kk4EO3gLeJx2ux+pFZplrr99vXzw+sSe+QKay4Ugp6HQ a1F6MgJtgr/CYy/YjYyGuJ5Yv/iuK+CHVVseENRifFKufU/WTjVyGWRPEtcagzoe0uYVlN k3biVLgph9OSk61Mi2sm/rNgl4mY8G8= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=none; spf=pass (imf05.hostedemail.com: domain of byungchul@sk.com designates 166.125.252.92 as permitted sender) smtp.mailfrom=byungchul@sk.com; dmarc=none X-AuditID: a67dfc5b-d6dff70000001748-c2-65d2ef61c11d 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, 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: H4sIAAA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3WPBplKPzSu0PBbv ecnksWlVJ5vHpk+T2D3enTvH7nFixm8Wj3knAz3e77vK5rH4xQcmj62/7Dwap15j8/i8Sc7j 3fy3bAECUVw2Kak5mWWpRfp2CVwZe/oeshfM5qrY9L6drYFxL0cXIyeHhICJxJKTd5lAbDYB dYkbN34yg9giAmYSB1v/sHcxcnEwC3xkklj9vYMFJCEsECLR//MUG4jNIqAqMffxHrA4r4Cp xNpdEM0SAvISqzccALI5ODiBBu0+KAQSFgIqOXF1MtMERq4FjAyrGEUy88pyEzNzTPWKszMq 8zIr9JLzczcxAoN7We2fiTsYv1x2P8QowMGoxMObIXIpVYg1say4MvcQowQHs5IIr3vThVQh 3pTEyqrUovz4otKc1OJDjNIcLErivF7hqQlCAumJJanZqakFqUUwWSYOTqkGRskSc8uF23zK TO9Y9P8PCgibwjbDKcaIebG+E+vNFGGO52H7Snq22SdZCeTnTHLJUNkZE6nTt327UoeyVST/ Q4vy3BnzOwPWBU96bZky69A7d6fP85y05u6t6bmTsVtOcknqevGPp31u17GWnxZ+n3lN+r3x xNaTrTuVHjTyy3oGfn3E4xCoxFKckWioxVxUnAgAtvSl22oCAAA= X-CFilter-Loop: Reflected X-Stat-Signature: 347jmstk1wfq8hggqyiat4o4tmbztyi5 X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 570CF100014 X-Rspam-User: X-HE-Tag: 1708322661-503198 X-HE-Meta: U2FsdGVkX19lmXeK1RNxrxIFZEzPyguYVpdGmgdOy5mFr25uEQY0yT/0VkjSs63ze9hLe7s2tCqazsNlLTu17oWYohiSlE/VqTfMIbZz047zLQPkkkMtpd92f4KQ6hqrIeIhwsy9TrBeJuZoN/nTQHP8RWD7e0cOz3bmF9AmH+Z5fMGGJ1aKG4XDIn8jMFmm9VMiQXcqRTyCkIgZt6vIh8I+l+wI11HBYjsKydQ67Q8S88kEClwHlEuuo/qJY8fSMZoDS/PW8/fBuvL+LzZxTseFt84tZ7YGEDhYk6bmQf9CumKi5QzSWl1xuunxpZZHoaj0W7mpYXHHJMXPgiZcXbw7F8w4351/Sq8hGQ27k0znL3P5kM2m+FHj6qhAyBNCyZsKcKD2G8KiBwmZ7Gr9DqRGfPskLRzCjFRQI/aUW1QHLXFVMQK9umOXSH98aGLKs3BMB3+moODywqhBGyDtcrITBo6NDB8rTpfFVq6+dwTmQpCO4mJ3iKdujeSdPfwoxoTzZ0iWmdF5LZrY2D1UjUIDz5Kh6FPeP4zpNmgwiFH5N4GfPalTMbBsj0ACyixiv45JKHiIDKUryMv5hPv7IqRD2k6SlkQDLwaPpx17wjkOqg8YVoub6Xju/HaiCQ9tK63v0n0v0IJ/aT0Yj/pWyAZapPTofNC/Vy2t47RWXLOPSAx7HB5wlVAuJOC2gJF4SfVOGbhqLoctuCW8m8+CwatFHdjFF5emGTOlkuB9irkkZAEZc66WSt+r6vnPC7Fgz2/VrH2VXLfL/O29Bu/fdd2wRnqkOu9Ut5ndjH7DxpHiqXN5y4nIdzRt4LBk75Pau4iZLdhjjpb5tvd/MWvgSVSufbaWis1hIwqIM+Tvp0TxTF2COGjVoYdNe0yktzbrAgWfciwRqRy7OZRpN0AEZlZMcxYFMtTCOsvxz9rJGaaAtpuYyhatJlpy41YlPm7OGVNzG4BDVP3zSdIcIj5 TPw== 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.