Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1452016rdd; Wed, 10 Jan 2024 22:23:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IHGa6mLwQJEWBsLqx79aHm2PX7CjA11qw5yGHjHfhnsMEcCBRI+kEdjKStyFCWutB+r/4Vj X-Received: by 2002:a05:6830:2016:b0:6dc:9cb:bd76 with SMTP id e22-20020a056830201600b006dc09cbbd76mr823471otp.4.1704954225109; Wed, 10 Jan 2024 22:23:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704954225; cv=none; d=google.com; s=arc-20160816; b=zLITg83gkcIYP0ogmDnaFh9pNWUYCdMyVpAE6oOR5ofv4y4JT/Mhq+gujkxFtDwew+ +vCYH73jJ6movUGv9WnsfB8aYQMKjICa/FA5OlxzwkCq9g8Grc2hlD4ri+SrpJgP5tTp v2ulbhNwlfz04ewpZ+wvXK9YGNnC9UYpTcLm+wUwB6ppe970+6LG811UWczrp4qL0pnK 9wfkDcVp+CTNG7clbhYYK+Z+2YxfpFy/y/FRyG3gapQX8C8DCg2i+LKQAs0ed1BsTBVe OeFprnj0MChWZrEZgJYTYfffQ5ohp8r8SDqI5pIREMicXCBdJMumynMNONABv/BOBDTH kadg== 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=qkutryktk1+eA6li8Kr0a/P8xPDRQ0wHxGCKWFfNW0w=; b=zsZQW27gTMenVW5ZKSTz3CfYNaX9gTNlcxl0RwJRbHFtjnrVCsXP/amHvllPg8avRw gEMfqnLlwveKwnHk2iX8eRZxZKKpCHAzc3JTOF7J6o7AYP8rF6JOgM+GovTW6olGGhHr WpIShxMgupVWU/u6cJSOyiPzhjwkfEn9iXN7oLpW7x51ydeQDVCteN8So5eZfsKt1et4 7ACBd2a47a5ax7fG70hMfp6ntpMFERzkTDd5XhifIQmESKtKhTGk8dY2l+9lJ+zt3aoi AySO/dB900vK8NbYzLLTbjMhRRBI8QsrdJMvkv1AoQN6YhMV1BiN6Zkg9Aqdw4oHipFC 2uWw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-23086-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23086-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 a12-20020a631a4c000000b005cdc5c70fd5si415375pgm.531.2024.01.10.22.23.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 22:23:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23086-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-23086-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23086-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 BAD3E2857A7 for ; Thu, 11 Jan 2024 06:23:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 224267492; Thu, 11 Jan 2024 06:23:33 +0000 (UTC) Received: from invmail4.hynix.com (exvmail4.hynix.com [166.125.252.92]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B68A26AA1 for ; Thu, 11 Jan 2024 06:23:30 +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-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+NgFnrELMWRmVeSWpSXmKPExsXC9ZZnke6J1vmpBo0XuCzmrF/DZvF5wz82 ixcb2hktvq7/xWzx9FMfi8XlXXPYLO6t+c9qcX7XWlaLHUv3MVlcOrCAyeL6roeMFsd7DzBZ bN40ldni9w+gujlTrCxOzprM4iDg8b21j8VjwaZSj80rtDwW73nJ5LFpVSebx6ZPk9g93p07 x+5xYsZvFo+dDy095p0M9Hi/7yqbx9Zfdh6fN8l5vJv/li2AL4rLJiU1J7MstUjfLoErY0/f Q/aC2VwVm963szUw7uXoYuTkkBAwkVi95T4jjP3z/Hk2EJtNQF3ixo2fzCC2iICZxMHWP+xd jFwczAIPmCTmvl0B1iAs4CdxovMeWAOLgKrE5s5/QHEODl4BU4l9d7khZspLrN5wAGwOJ9Cc C4dngZUIAZU8aquDKHnPJjHjdxaELSlxcMUNlgmMvAsYGVYxCmXmleUmZuaY6GVU5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 h8f16YFrYftv5wipMm8zWXg3I5Z72gnxuU92sc2o+RTO36m6v9dt5gGz9Icfju++af+VL8Ta ea6VEktxRqKhFnNRcSIAq273dFwCAAA= 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