From patchwork Mon Jan 15 08:19:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Byungchul Park X-Patchwork-Id: 13519381 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 14C57C3DA79 for ; Mon, 15 Jan 2024 08:20:13 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2CFF36B0096; Mon, 15 Jan 2024 03:20:11 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 280BE6B0099; Mon, 15 Jan 2024 03:20:11 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 121376B009A; Mon, 15 Jan 2024 03:20:11 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id EF48D6B0096 for ; Mon, 15 Jan 2024 03:20:10 -0500 (EST) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id C9A3F80830 for ; Mon, 15 Jan 2024 08:20:10 +0000 (UTC) X-FDA: 81680847780.01.2E12866 Received: from invmail4.hynix.com (exvmail4.skhynix.com [166.125.252.92]) by imf10.hostedemail.com (Postfix) with ESMTP id E56EAC0026 for ; Mon, 15 Jan 2024 08:20:08 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf10.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=1705306809; a=rsa-sha256; cv=none; b=BOk0kY5cAbrEoO6C3NjsPSq4NTWkvXUWzfrTL1PGwZXbxYPliYPaalwrpEMdp/I5qJpVwg oBVF+g+D27v+Dk52j0umCCRoIEvMASmZwe4qHOFHhcuMSX4El1v0A9CxwcpT7J/yFae8v3 +zHxjEu9LXDnW9LJSux7zDIQrkHR6ek= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf10.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=1705306809; 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=wvhFMrhIhiJOYueyQLm3mx4JWsGVFXERXqNwzLiNC9XZBu8zqrnsEJ87pAupOMZog1C/xB 96OuFEbVfm3NpgOw6rM9c5DG5iWNky7RYI5DqDGGmKxb7yaJzffvo638ItBpvTdWbSCzL5 qvopp8aqDGNdjPf9QvzcbvBCzgkPE20= X-AuditID: a67dfc5b-d85ff70000001748-7a-65a4eab45555 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 v6 2/7] arm64: tlbflush: Add APIs manipulating tlb batch's arch data Date: Mon, 15 Jan 2024 17:19:48 +0900 Message-Id: <20240115081953.2521-3-byungchul@sk.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240115081953.2521-1-byungchul@sk.com> References: <20240115081953.2521-1-byungchul@sk.com> X-Brightmail-Tracker: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o9Nq/Q8li8 5yWTx6ZVnWwemz5NYvd4d+4cu8eJGb9ZPOadDPR4v+8qm8fiFx+YPLb+svNonHqNzePzJjmP d/PfsgUIRHHZpKTmZJalFunbJXBl7Ol7yF4wm6ti0/t2tgbGvRxdjJwcEgImEidPtzCD2GwC 6hI3bvwEs0UEzCQOtv5h72Lk4mAW+Mgksfp7B0sXIweHsECIxLHNMiA1LAKqEr82tzOC2LxA c7b1fGeGmCkvsXrDATCbU8BU4t3H4+wgthBQTcvddawTGLkWMDKsYhTJzCvLTczMMdUrzs6o zMus0EvOz93ECAzuZbV/Ju5g/HLZ/RCjAAejEg/vj7+LU4VYE8uKK3MPMUpwMCuJ8FbfWZIq xJuSWFmVWpQfX1Sak1p8iFGag0VJnNcrPDVBSCA9sSQ1OzW1ILUIJsvEwSnVwFj5aoFW5esc p8jDSq8/e2hqtpsb33t5OrMqRbH7jOyq7KrUvI3dHUXCDGbrxK493BEyV+31+r9PnnrFbtqm 8vy9wEtFk49lh7YY3D/cwmyzpcJqW7DV6YL3DqrOnJsThROWbFuyaX5VlIHa9dzNPy7VKmk3 qRTUzK1xP554/fWf+iVHym57bFZiKc5INNRiLipOBACps5EaagIAAA== X-CFilter-Loop: Reflected X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: E56EAC0026 X-Stat-Signature: x56stp36ohr9j133otbqhguzib39tqsm X-Rspam-User: X-HE-Tag: 1705306808-562383 X-HE-Meta: U2FsdGVkX1/+z+7rRl0AXCW+Xmktm86vDq1Hd9XtMSaUx8pNgAmkpHUNPkcc2w4aFU5db6APJYT0DwmTORksrmeFzvzhG+LLQvVxHTkvC+DciPLUkbDyJL0vixz/Ut2XXxp/yHqe/PBd6ogYH3eid6gaQsTOThHRMHaI3VlPxVUW9N1HGhgK0lzyfYPUTFp9FcBmdu4eMlOnSAufBTB2Li7k4eN/fsrqzP3SZ2lHip3C0PyX7W0UEoBkN+CRz0H38Bq83EcXK/onGUZe9Oii6ii/TG0vtQdsszOmIkddncjUCJACSSLUCJKILoojU8BzhS9QdGWzVh3M3Cj5BZxjBAR3Jn5y5lmkhn/5dlLH1AxIEW5mIVIbuBuYk9OatfsVpJ4+Dupg1NnNKbdEwUQ14dZtQwT9/56eVjAb6VpZPiAyzA7j1v+PX3y+cHR2okcEWCRGOrXQIhoJNZtLeKinSEj1TdfNnB3OYjKPczHdAGYTdClLU7dik2Cz2iNuchVPJ3gCtGcdquox4SVPYrnaAux4TxF5oevwqwm4JPAarBAjjZOvFfzeSeQKvQBm4vqnWg9z8eYYVqLJLwkQq7sGHLUNqCfNsRBvS+ggqXw1KrwvxTXx1ou460s82ubCsv/MuscC8qIUROCsOjQWfbKX3Lmgt7cN933p2lQ1cv3Yg1axpPkr8V3lXE3IA09oR+5ESjWyA0mNQlSFU/pcE3PuVFHW73y+tRJ6jsUesqeabIU9qWnB2oaypVUlr84rYqfzKoVsQTi82Gjy7M5gFV0YzvCDzE85liHptSLTF5czL1OoPUO4ze513yQcSxMiHHR7cemmxCYS+sq7JDKvhYRevT/tYReagnyYTVoAVgTrJG55Oz2JZiO6u8ptaPF1SMwkbRTo9D7pLTeUSSqG9tGD2npBZF7OgSaKE1XhhW6WOGIsm+TWZGBhdYbXX1UFn2FkMKIkMh8CAEitNY7ir3f B1Q== 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.