From patchwork Mon Feb 26 03:06:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Byungchul Park X-Patchwork-Id: 13571185 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 50023C54798 for ; Mon, 26 Feb 2024 03:06:33 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CC03C6B0142; Sun, 25 Feb 2024 22:06:31 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C70E26B0143; Sun, 25 Feb 2024 22:06:31 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A74F46B0146; Sun, 25 Feb 2024 22:06:31 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 831C36B0142 for ; Sun, 25 Feb 2024 22:06:31 -0500 (EST) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 663DDA07BF for ; Mon, 26 Feb 2024 03:06:31 +0000 (UTC) X-FDA: 81832466982.02.9488C1A Received: from invmail4.hynix.com (exvmail4.skhynix.com [166.125.252.92]) by imf30.hostedemail.com (Postfix) with ESMTP id E1E188000E for ; Mon, 26 Feb 2024 03:06:27 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=none; spf=pass (imf30.hostedemail.com: domain of byungchul@sk.com designates 166.125.252.92 as permitted sender) smtp.mailfrom=byungchul@sk.com; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1708916789; a=rsa-sha256; cv=none; b=YR7vLweDHgf7A7whEqx3KUXGmqPVWwLQA2DCXIZzvUiAVjwlkWjLzKEc534jcbrSGcVG6d bt0HjMdE+8ZGeuzAjQP/GqK4vxjbecmYPFMH5G8YkLrIidN8Qu4J1QH67/f9yxg1hue8X2 aG6pi0WnGs5vRsdrXR42Xz1argEjWSg= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=none; spf=pass (imf30.hostedemail.com: domain of byungchul@sk.com designates 166.125.252.92 as permitted sender) smtp.mailfrom=byungchul@sk.com; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1708916789; 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=NqNl/A+FGfZb93pH6X1dslol8XoifS5LtdUBCW5WZNGeY/hFlwPlQjXAxY3O67kFfADdf6 T46ru44+YJBiB9eNfES39S9buw/LFfvuFugm/DZ7oQpdSd8dD9oESJOFph+pnwkrU5duuS OFM9MizkcaCLenRMQ0xrC9SE7WQ4N6k= X-AuditID: a67dfc5b-d6dff70000001748-2d-65dc002fe326 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, 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 v8 2/8] arm64: tlbflush: Add APIs manipulating tlb batch's arch data Date: Mon, 26 Feb 2024 12:06:07 +0900 Message-Id: <20240226030613.22366-3-byungchul@sk.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240226030613.22366-1-byungchul@sk.com> References: <20240226030613.22366-1-byungchul@sk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+Ng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Hu3Pn2D1OzPjN4jHvZKDH+31X2TwWv/jA5LH1l51H49RrbB6fN8kF8Edx2aSk 5mSWpRbp2yVwZezpe8heMJurYtP7drYGxr0cXYwcHBICJhKfJvt0MXJysAmoS9y48ZMZxBYR MJM42PqHHcRmFrjLJHGgnw3EFhaIlnh6YC+YzSKgKvFj1kQwm1fAVOLy3wOsILaEgLzE6g0H mEHGcwLNef/fECQsBFTyt/cq4wRGrgWMDKsYRTLzynITM3NM9YqzMyrzMiv0kvNzNzECg3hZ 7Z+JOxi/XHY/xCjAwajEw7vgw+1UIdbEsuLK3EOMEhzMSiK84TI3U4V4UxIrq1KL8uOLSnNS iw8xSnOwKInzeoWnJggJpCeWpGanphakFsFkmTg4pRoYbZdFV7/+3CLisHb1f6N//JvnLtg7 8fL8E5WxHUc2Xb/Vk1retuX/8+tGqjkl/moNHc/2Hn69e8evYI6NrVU8Oj+sXV7y9r0VMQo2 OqHe2u1qXuQqz/7u5OoL/wXmfNh/+pX1I6Xn7SUB8oX37i9q16jYrT3137HYE1/aNRU8LKOu Png5ZWb4ZyWW4oxEQy3mouJEALEqOqReAgAA X-CFilter-Loop: Reflected X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: E1E188000E X-Stat-Signature: pzrj57ijtzy4c5cub63g3rgadte5fpz3 X-HE-Tag: 1708916787-651838 X-HE-Meta: U2FsdGVkX18pC/cvCtTUTAP9TXTbIFd3DLvCI+911PiDynk3WoF8NDy0GNwNInJcVD+0ctRstldT8DKLRtryqM0+aUXfzGmX7XpYaaAPpZHzAUd5dCCJrXZXBQL3OSeVD0rFjoe6SMoP2jLi5lgiczheb4AgM7yCB7jycmzKvb5hrAvrGCYkEiKfDH0xL10ScUrlKTgMgRBWSd9rGmbwY2ObcH+p3rGpEHCm6cDVLZBNGk/Lg+nuDh8C0a4QL2fJ+4ts9xInbRNrznLdSDg/aqcr+/gBgWNy/VsrEqDm7DCzpytL55qV0jIT/LmCgcsWxKTO1Yb0pVm3XkMzd/q5PVzAVrl3IcgCsKzciVr7jP2ShrtSTX4x7l36sNO1+s3glZHGLwr36Y8AHM8zqCqEifslmyzUiFX3pCRU4cgpiT/bimMg5Bkl/pGpX710Dh1i4l1PS79x1wSbsFUKTew3xXvhM6WweROLdZtAB8YQFeI0WaHzV3tRmDL+U7gAcds+aSdcMsYc0yDqutKK1jc9nY9SHEFTy5iquY/vQ+V6bb+hMoo9yYRg9bs9vTifh22mUAzbXH48tLLtPjy8ypyywVlSLwF/IYRgm035k2jI8PVnojk3NTABmGSBQLzIb6Yte6dsKlKgDK3a76C2zn5AqHTny4iAaAuIm01AUnO7+1sFO32Y9YPN+ciF6WbZ3Zi7FN0lE/z5KQtxh44LPrXDIxIgOvAsocKRk7ON7QdaPTRW4ydRi66gW/qBzXm0UfBewqkP1evDUmpCiMman9Kv6DjBXatm1pdRMRRyfJNspHUk62I2himWHwdGp77s3nPhDF7I49XksnpbfqGdfuyiB6SG0o3Ly+Vw3bz6mrPyHLpo/F84HPZXsBXcX2qflAah3CM6Ic1oaRZ678vWG3mqBhOJ9xlA6vQhK+YeIjkYDhnOueN1jHbzVNiKSMIa8lRhnkf8u7hKqm8BXibmxyr pOA== 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.