Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp957715rdb; Sun, 18 Feb 2024 22:05:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW0vRGjkj3EwtZkt0LbcAdbaHgQNlW1XaoGF0XHn17720XoNttoqHb/1nnfwYHRzhWR+FMonnU0Dr1zyMoNU+vpWRlh1f3QNu79/vSLXw== X-Google-Smtp-Source: AGHT+IESjH5QVnfxsVqUZygYWx8LcxZVxTeOzjsnJMtvysGaOOIOO+aDEVnpfiSojcys6+5jfVry X-Received: by 2002:aa7:8ed2:0:b0:6e3:40b4:1cd8 with SMTP id b18-20020aa78ed2000000b006e340b41cd8mr3888652pfr.22.1708322712134; Sun, 18 Feb 2024 22:05:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708322712; cv=pass; d=google.com; s=arc-20160816; b=ioOOJqHk52LoF2YydWIVpaN84oDd9IyaOV0S2uJhy4n3k6vZA/+DLs6wANTFNXy89/ vVqLZhZ0T+5cHdm4Uhi0qJlEFWPtQwASztGWyQad/+1ivSqFLChFU2YMAqdhYX+hql/u SVnleZPtM5rj5JoT49y3b5L2qgefzTUm6gyC3qYsC839Yhw78YCxJrUWeFW5SEFN0/nN mDJK0iBNlSjttuMWQWnZ5W/QQTcxn3VBGo60vRZiUKG/TtI4cAbwzEz5Nm0BycwU3xpZ A22apqAWKnZrF4ks+A+aRicHpDdq7vywVcF06zmrifvz9LA3PoeFfinj9sMEoZSBHmYe b0Pg== ARC-Message-Signature: i=2; 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=q+CIBdBbo0MG6FLaIEy4ca4fvjnRVmilcKgrrzD8KGd/N5SUpfBPMSf1WytZe8P1Wr CRmQaXXI1uQjBQkkdKolZzTbFf6m1fVpFJivJR4HfgV0LO0+7X/eBYNNa/Touj7gDOP3 NpNN0YcZbuAYTS0sYe07YO1EjZ4B/k+GQo0fh6vtAN8PHdsooht0JxSkb5lASXD0faLD X1maj07znlQm6BRyWb8vLvjnTAt6p3atlGTAwnz0NhaBdlMuywv9FZqQ4s20h9TBcSbn CpYy/mdyUecLe+WHpwOpjgAEOUlsOksc8x5jhqd+4lxW4a3/OLmwMua7C1i2QaLKmnl7 3EvA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sk.com); spf=pass (google.com: domain of linux-kernel+bounces-70748-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70748-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id fc32-20020a056a002e2000b006e0f046c994si4041743pfb.182.2024.02.18.22.05.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 22:05:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70748-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sk.com); spf=pass (google.com: domain of linux-kernel+bounces-70748-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70748-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 3C7D3B213B1 for ; Mon, 19 Feb 2024 06:04:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B16DC20320; Mon, 19 Feb 2024 06:04:28 +0000 (UTC) Received: from invmail4.hynix.com (exvmail4.hynix.com [166.125.252.92]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4D4D8200AA for ; Mon, 19 Feb 2024 06:04:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=166.125.252.92 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708322666; cv=none; b=HD8P4n+G5YoXTx/CujnkNvnoJYCHbSb+KcpVhwDDRahpyGK5HHK26OGHsy6ckmHvZwdm2u6dx9tcTydS/ILlhGoZoIQ6xy91Zfd/sC/nlta9NyFJl2XUBGMWSZfnHuSAsPp0hnHEseq9RZeG60Oa1mfxeIhRBfAsQRTfzA0tllQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708322666; c=relaxed/simple; bh=uWSWIWkD3opthclWyKeivuFFBZgLyDaadr0FCXFpy+I=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=Br4HMSObp2CE7G1sotOuPOWx9UQHis0QNGhpJ6YmImet3U9vfqGAQKH3R1Uk8rsSXsaQj5g8tRKj8pkNGS6paCmH6H/8FSyy7eXUBcisLPEuR9nJ8AWSY1iwlcCjWqElS+9JvPdrw3Q3jtC5yP/wrULBKhFeHMWosHHb4Y46KlY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sk.com; spf=pass smtp.mailfrom=sk.com; arc=none smtp.client-ip=166.125.252.92 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-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: H4sIAAAAAAAAA+NgFnrPLMWRmVeSWpSXmKPExsXC9ZZnkW7i+0upBhuf6lnMWb+GzeLzhn9s Fi82tDNafF3/i9ni6ac+FovLu+awWdxb85/V4vyutawWO5buY7K4dGABk8X1XQ8ZLY73HmCy mH/vM5vF5k1TmS2OT5nKaPH7B1DHyVmTWRwEPb639rF47Jx1l91jwaZSj80rtDwW73nJ5LFp VSebx6ZPk9g93p07x+5xYsZvFo95JwM93u+7yuax9ZedR+PUa2wenzfJebyb/5YtgD+KyyYl NSezLLVI3y6BK2NP30P2gtlcFZvet7M1MO7l6GLk5JAQMJH4dPspK4y95ORdJhCbTUBd4saN n8wgtoiAmcTB1j/sXYxcHMwCH5kkVn/vYAFJCAuESPT/PMUGYrMIqErMfbwHLM4rYCqxdhdE s4SAvMTqDQeAbA4OTqBBuw8KgYSFgEpOXJ3MBFHSzC7xZ3I2hC0pcXDFDZYJjLwLGBlWMQpl 5pXlJmbmmOhlVOZlVugl5+duYgRGw7LaP9E7GD9dCD7EKMDBqMTDmyFyKVWINbGsuDL3EKME B7OSCK9704VUId6UxMqq1KL8+KLSnNTiQ4zSHCxK4rxG38pThATSE0tSs1NTC1KLYLJM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op: 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