From patchwork Thu Feb 8 06:26:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Byungchul Park X-Patchwork-Id: 13549354 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 001B8C4828F for ; Thu, 8 Feb 2024 06:26:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9E4D76B0098; Thu, 8 Feb 2024 01:26:26 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 96E306B009B; Thu, 8 Feb 2024 01:26:26 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 612FA6B009A; Thu, 8 Feb 2024 01:26:26 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 4B6CD6B0098 for ; Thu, 8 Feb 2024 01:26:26 -0500 (EST) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 250651209A9 for ; Thu, 8 Feb 2024 06:26:26 +0000 (UTC) X-FDA: 81767652372.28.53CE5DE Received: from invmail4.hynix.com (exvmail4.skhynix.com [166.125.252.92]) by imf08.hostedemail.com (Postfix) with ESMTP id C6536160002 for ; Thu, 8 Feb 2024 06:26:20 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf08.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=1707373584; 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=L/A6GPx/xJNa3wpfJN68tS+JkPNYMQEhJych8fWCuMRH4g6/ZzkEFF2V94QQlBdLO4/utG ltuZE3GVNpN2jZ8HUP//BGF7RxlfUXSjZkJ7Z7Wpk3UR1yYtu3x0/HUtQSsyHnso9hN1Aw WJ+pD+soldC+LFOlWhQVRfAQsaGkPrI= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf08.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=1707373584; a=rsa-sha256; cv=none; b=Rs9q1ZjZ/iPx+QS2xWR7sjrM7t3RtKEv0mEl/FVxxIBnXCt2922J4QNbOOtc4Hy5wH2iHA B1wsjoWGP2gtflGc81tijWDOziwn31CV+YFRc5V3ESp++vIfP0+fGgrGcmdnv7U2UXsKAs WQIiDVb55OmHsOHuDp/A3gD3Jm46h2U= X-AuditID: a67dfc5b-d85ff70000001748-78-65c4740bfdae 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: [RESEND PATCH v7 2/8] arm64: tlbflush: Add APIs manipulating tlb batch's arch data Date: Thu, 8 Feb 2024 15:26:02 +0900 Message-Id: <20240208062608.44351-3-byungchul@sk.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240208062608.44351-1-byungchul@sk.com> References: <20240208062608.44351-1-byungchul@sk.com> X-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B47Z91l91iwqdRj8wotj8V7 XjJ5bFrVyeax6dMkdo93586xe5yY8ZvFY97JQI/3+66yeSx+8YHJY+svO4/GqdfYPD5vkvN4 N/8tW4BAFJdNSmpOZllqkb5dAlfGnr6H7AWzuSo2vW9na2Dcy9HFyMkhIWAisbajjx3EZhNQ l7hx4ycziC0iYCZxsPUPUJyLg1ngI5PE6u8dLCAJYYFoiU+v5oM1sAioSnSvW8EGYvMKmErs vLKLDWKovMTqDQfABnECDdq57RQriC0EVPNi9mS2CYxcCxgZVjGKZOaV5SZm5pjqFWdnVOZl Vugl5+duYgSG97LaPxN3MH657H6IUYCDUYmH90T54VQh1sSy4srcQ4wSHMxKIrxmOw6kCvGm JFZWpRblxxeV5qQWH2KU5mBREuf1Ck9NEBJITyxJzU5NLUgtgskycXBKNTA+9LU/HLTn3JX+ pOi5gd9Smm6+Vpi8f+b69xP2tb+0rq9Mdc76xquX+GrCe+FWFnPlz0Ib83LcuQSYdjnmsxyQ 17bxUWM/1n84PbRs8sXXTPWpau23m4USPTZVCpcKGRsGzbxqeSFti5GukNKb5JSaR2diEifO /Rp+Y1fF+3uNZd/+v7nq9kqJpTgj0VCLuag4EQDAObukawIAAA== X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: C6536160002 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: mpc11xqnugbnatwq1mhd47o6agzzefx5 X-HE-Tag: 1707373580-295948 X-HE-Meta: U2FsdGVkX18V51RVQh6t9zPoH4qu4ZBvGFSurMJdBr5upXrcTmFXIjGQMkItZljjkZTye3Tue2DfeO4oSnV0e/eyA5Y086qgR4SXDQSyh1ZoG/1XD8sibESuv+PEDOy4NRA3bBWPVKNlKNJjCxBCzHpv6CCkPiLUYxYAI/OdQd2G/hJwe0t2KnZaFSjqp2ZRtcwPyrFi5GBnTeLhlkNUkJ+AAylbAxmiAD/YKEGC9z7tZ+iud3BLS1v/wPn5WtHF++lrRhxS6xxSVCEtRwkNWhH3Wd5rmduDy0pckydxLFj5wG7v0wUPFWDJi3UafvZIhueIuiUNo0CUAgDCLUGLhkpArFM2DO1dx4p5qe8R0AipjQUCV+lgh2D0Gpd0qMe5HsUg+w0lQ9GGvSyGpRS1//8lrAQY3Y5VQ0PiutBjXyMX4A3i5wyAw7iaNNpA8iGxTMhHfETTdeFMcwj0XsapvgUqWPzW/BfYGbQHMvsXInVhg6b8dc7GGpH4PmcWX3hZ29/AyBdGY9FLNkhyhmBuGgG7zm1u0IV57upZvlmGUYOVipoQLfJpv397M6jnNos6sAnfc7crGlD0ct/K0FfxL/GZyHrWrul69XIeyKRqvepxnxCUcKFHmoiqNX3IZcInOb76g3Sti/aH9DsbMu5VB/m6CcTKZuqyGOo3FKZegdn6FUTiPhlHfBdNZ2hD/43YeFHh12+MHd19hgHq39ON+IljNylhKFBHBO+46+ELWXr9EAkvCe/Jes67vZoVil4xBCXImNBX2dTTRq2OnH2JdksCZgFZIWKyLdFYtSaYix9AhkV06tzbW1vRbXLBCKZII0BchySLKo3yL4DjPBgwdsmwKreqRvS+mxV9legr8e6G8JZrHGkf5Eyr9tE9nHH3hJ5zWLJse7XIpreEhCCQV5G2BVvtjBWe1uj/sGJLhvA030prO34arvAlm8+MyWtNEzuYP2K6RoGfF58m4eS ajw== 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.