Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp50046rdb; Sun, 21 Jan 2024 17:01:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IHR/XW2PJvUlAw3rUbOBP54uQUBeiubo+RJE49Q0GrZ9ejZxXezBTEfBTjVv+pxDsY2nx5F X-Received: by 2002:a05:6402:518d:b0:55c:22b3:e656 with SMTP id q13-20020a056402518d00b0055c22b3e656mr821361edd.75.1705885271955; Sun, 21 Jan 2024 17:01:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705885271; cv=pass; d=google.com; s=arc-20160816; b=noPfxaQ9yJ+mAmFZNKpihBJp2PRr1lGwTWaXujoiL/8Xze0P4jOTOt0p8W1Ypy2aOb NJTuMGUY9Er0RCTIBzyNJWNa9XSDfh+5+2o3VmfiV8H+PkuPmNbDblsFr09rwx5ggEvs tvInvMsiSyPdhYLxSBUwU/UBJqg6X9CIY28OJAin+deosdfWArPXrBo7GuuOv4CfrMqJ OsKp5Zp8/U32gWZYqMEt7VnOQT3GQY9Wg/TPgJ0XrQRnEjCC6H9miEAeQDirStQliFc0 8Kui+tUDbdDyGp6DhLR4RJW/EnQ7EXYhd8xMahBdxPCE2/sjEQfYXu99vIZpOkkT5SzT Nj0Q== 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=cI+b+PEG7D8mzY84UNQ0I4+vcsbS8J4u7MA4KGqvAkwMdK9bzfBk/c+a3GR0oHfxxn +nNK4iwoeAxSSQR0Mqwss+58fT0far1mernbGkjOuIigvlS/Y527BcM1T9ASCYRLoWZj v/K/pMK3L2RzF/9VFQyCvR8CZEz624g9J1EINQw+T5TZFX7lHYWAC+fpPuguaDMbgIDY Fv/5CWY+HSjdv4YI0X/wSW4LdxpAV3z2kI8gVQGI2Kf1NXqwOy0lOwAxhSnJDeJnJYGw vTz/TMwNmxjoa3WGM4VA3rHDyrhpuBrBiLhrjGrguxtZaLUZOzGpeSFPuXdhOW1WbzXB F6DA== 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-32244-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32244-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id bl2-20020a056402210200b00558a7d36950si10651018edb.129.2024.01.21.17.01.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 17:01:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32244-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sk.com); spf=pass (google.com: domain of linux-kernel+bounces-32244-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32244-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 am.mirrors.kernel.org (Postfix) with ESMTPS id B5B0D1F216B9 for ; Mon, 22 Jan 2024 01:01:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 53C8A7FE; Mon, 22 Jan 2024 01:01:04 +0000 (UTC) Received: from invmail4.hynix.com (exvmail4.hynix.com [166.125.252.92]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C49CC36C for ; Mon, 22 Jan 2024 01:00:58 +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=1705885263; cv=none; b=AEBlefmUzey3nSH7E77YeN6jar0KRKqTRG1v+PO0JyNJQjVS5Re9On/q2gE6LwID8NehNoHUnVEHDxtUt+SPsLPpl7yBjlrtO4ftQMrQLi2eA2d0UsxmDnrDoXVrpJAjNOuuNPDXvjUq57ZoprDBsjfRIIK972XOPBcTNLt5mxs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705885263; c=relaxed/simple; bh=uWSWIWkD3opthclWyKeivuFFBZgLyDaadr0FCXFpy+I=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=csPI8cbfeMBmyUphKCrFRqrnGiG0Ipk5cjoQXTdwLC61o6ogjwwg1Hr69z71vHQx8nazEovWQ3C4Zwcly+vEYMXGS3UpZuXTK7v0TpdY/fExRy0vKY6X2Obn4rOAc3KfpnN6S6lwX92GyvwckPqYkERcomn+syPYQKzJYcD+0to= 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-d85ff70000001748-73-65adbe43a43e 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 v7 2/8] arm64: tlbflush: Add APIs manipulating tlb batch's arch data Date: Mon, 22 Jan 2024 10:00:34 +0900 Message-Id: <20240122010040.74346-3-byungchul@sk.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240122010040.74346-1-byungchul@sk.com> References: <20240122010040.74346-1-byungchul@sk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrPLMWRmVeSWpSXmKPExsXC9ZZnoa7zvrWpBot+KFjMWb+GzeLzhn9s Fi82tDNafF3/i9ni6ac+FovLu+awWdxb85/V4vyutawWO5buY7K4dGABk8X1XQ8ZLY73HmCy mH/vM5vF5k1TmS2OT5nKaPH7B1DHyVmTWRwEPb639rF47Jx1l91jwaZSj80rtDwW73nJ5LFp VSebx6ZPk9g93p07x+5xYsZvFo95JwM93u+7yuax9ZedR+PUa2wenzfJebyb/5YtgD+KyyYl NSezLLVI3y6BK2NP30P2gtlcFZvet7M1MO7l6GLk5JAQMJH4/3w2UxcjB5h9oSkYJMwmoC5x 48ZPZhBbRMBM4mDrH/YuRi4OZoGPTBKrv3ewgNQLC4RIvPnoC1LDIqAqcW3zRlYQm1fAVKKp +wMLxHh5idUbDoDN4QSaM+VXFxOILQRUM/fDTkaQmRIC7ewSk8/PZ4RokJQ4uOIGywRG3gWM DKsYhTLzynITM3NM9DIq8zIr9JLzczcxAqNhWe2f6B2Mny4EH2IU4GBU4uF1YF+bKsSaWFZc mXuIUYKDWUmEl191VaoQb0piZVVqUX58UWlOavEhRmkOFiVxXqNv5SlCAumJJanZqakFqUUw WSYOTqkGRkP5TabCu9ym5C+P2iPAftegtfjbl8jiiJhDeZF60SxHv/c/DV7xW+BnZ0PtU/1o htLOvXyqUrl1d2w35GsINN601w7UmN8X5fyuXHLhB/t9S34XPqsoYf4+ccXZ5JMRL/TWv1/T /eDQ0xVib3/9dzTmUKjvDD+1/A9v44zeQNs5/6crVrRcUWIpzkg01GIuKk4EAN1FibeCAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrGLMWRmVeSWpSXmKPExsXC5WfdrOu8b22qwbvbIhZz1q9hs/i84R+b xYsN7YwWX9f/YrZ4+qmPxeLw3JOsFpd3zWGzuLfmP6vF+V1rWS12LN3HZHHpwAImi+u7HjJa HO89wGQx/95nNovNm6YyWxyfMpXR4vcPoI6TsyazOAh5fG/tY/HYOesuu8eCTaUem1doeSze 85LJY9OqTjaPTZ8msXu8O3eO3ePEjN8sHvNOBnq833eVzWPxiw9MHlt/2Xk0Tr3G5vF5k5zH u/lv2QIEorhsUlJzMstSi/TtErgy9vQ9ZC+YzVWx6X07WwPjXo4uRg4OCQETiQtNwV2MnBxs AuoSN278ZAaxRQTMJA62/mHvYuTiYBb4yCSx+nsHC0i9sECIxJuPviA1LAKqEtc2b2QFsXkF TCWauj+wgNgSAvISqzccAJvDCTRnyq8uJhBbCKhm7oedjBMYuRYwMqxiFMnMK8tNzMwx1SvO zqjMy6zQS87P3cQIDO1ltX8m7mD8ctn9EKMAB6MSD68D+9pUIdbEsuLK3EOMEhzMSiK8/Kqr UoV4UxIrq1KL8uOLSnNSiw8xSnOwKInzeoWnJggJpCeWpGanphakFsFkmTg4pRoYnW+/+v/l VELxA0WXSX94RM0VWR/O01p7U5BHK3Nv956JuY017wXyv57qFsq7JaDwR2BWZYSrVOXN7WyT EpZ+VXqQv1hvjezfJQkMMUrC/Tv07/GLTz34fdMe//VH5TjcXybdbQlOF3UyrNERs5O8Zmt2 82bz5IjK2Ya3VX/XbgiJ4r/XLJikxFKckWioxVxUnAgAreUf/GkCAAA= 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