Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp399127rdb; Mon, 15 Jan 2024 00:20:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IHZGe6Fz6xj7PJQEQ2blDigzhWvJ1COjbD+2T3tYpFs3t4qYYSLRJvfUoxqoUoBzfUO42tX X-Received: by 2002:a05:6808:191c:b0:3bd:5617:32eb with SMTP id bf28-20020a056808191c00b003bd561732ebmr5027147oib.53.1705306849676; Mon, 15 Jan 2024 00:20:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705306849; cv=none; d=google.com; s=arc-20160816; b=yOakpkkTP3c1zYVru/7A+S44pjKZqtzqyAqLtYlfjt3BP2gg2ZMMy3Yx2aCQ80mApr 9nN8OBxIc5ccljg6l1QjGeQd0ai8VpaaORTv2RU8i8JIRZ/6ou2fkBBdx7LF0W2oPwBP FzU5dJ0vrRiVeLxyaKYBpZ9wvTNZ7cIL52vyxOk1z9Fe8YS8fa3M9NBhNX42uqBdU5H1 Vqai3NFcrQM/Pe9odhO6oKJFwBcUmaJqxWT9e+NfAGO78nji1+1ObSHpP++X67cQ1Zd+ 1jDEpCEUYBwkZRgZjeo3VG3lTX3Qnjb1RfmSklryEp8o+EtUrggakvAwF+5mFTywVeuW 0T3g== ARC-Message-Signature: i=1; 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=DMTHNbVkTtN9hhF/cjUDPIMEMvULV4A17j5oaAQIcrV2cFQdGC8JN0uA/1VA0aJifC CPBiWyBgcSbL63lxB+w6x8a1fkOCCMu6vJZZZt14+UmbFcMLVoT9gbJADAuk09XYKhE4 n1GrBo1JXHY8zIWUDK6qT+ZiFkOetwsRpHXZIu+JYCAyHsu+xa9hs0fwu8O0BKSY05He Bh0LtjfuIaoMy481LsXSZDAyS2payt7j+o49PMJYszz/pspKj+zSIArcTUkjAArPd1Pt xrgax69jTgE6Kyp41ORiOa+7z3AfbbKh62oej6/vV9VB/suHToBkIt18f3N77huweJ14 AoGA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-25715-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25715-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l71-20020a633e4a000000b005cec854edacsi8366650pga.371.2024.01.15.00.20.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 00:20:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25715-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-25715-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25715-linux.lists.archive=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 485E8280F10 for ; Mon, 15 Jan 2024 08:20:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4347879CB; Mon, 15 Jan 2024 08:20:12 +0000 (UTC) Received: from invmail4.hynix.com (exvmail4.hynix.com [166.125.252.92]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 182A063BA for ; Mon, 15 Jan 2024 08:20:09 +0000 (UTC) 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-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: H4sIAAAAAAAAA+NgFvrALMWRmVeSWpSXmKPExsXC9ZZnke6WV0tSDR4tELWYs34Nm8XnDf/Y LF5saGe0+Lr+F7PF0099LBaXd81hs7i35j+rxflda1ktdizdx2Rx6cACJovrux4yWhzvPcBk Mf/eZzaLzZumMlscnzKV0eL3D6COk7MmszgIenxv7WPx2DnrLrvHgk2lHptXaHks3vOSyWPT qk42j02fJrF7vDt3jt3jxIzfLB7zTgZ6vN93lc1j6y87j8ap19g8Pm+S83g3/y1bAH8Ul01K ak5mWWqRvl0CV8aevofsBbO5Kja9b2drYNzL0cXIySEhYCLx5+sEFhj75OkWZhCbTUBd4saN n2C2iICZxMHWP+xdjFwczAIfmSRWf+8AauDgEBYIkTi2WQakhkVAVeLX5nZGEJsXaM62nu/M EDPlJVZvOABmcwqYSrz7eJwdxBYCqmm5u44VZKaEQDu7xIfZh1khGiQlDq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H7jOyq7KrUvI3dHUXCDGbrxK493BEyV+31+r9PnnrFbtqm 8vy9wEtFk49lh7YY3D/cwmyzpcJqW7DV6YL3DqrOnJsThROWbFuyaX5VlIHa9dzNPy7VKmk3 qRTUzK1xP554/fWf+iVHym57bFZiKc5INNRiLipOBACps5EaagIAAA== X-CFilter-Loop: Reflected Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.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. -- 2.17.1