Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp358391rwo; Fri, 21 Jul 2023 13:03:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlG9tHQI2q3XavO1dt+kknWubAcB1j56/9nNkfE55Vu/Af6Rk3IY973nc33W68Oh0ALZY1Mm X-Received: by 2002:a17:906:76cd:b0:99b:4174:77f6 with SMTP id q13-20020a17090676cd00b0099b417477f6mr2317332ejn.33.1689969793695; Fri, 21 Jul 2023 13:03:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689969793; cv=none; d=google.com; s=arc-20160816; b=nOzKM8j2M/NqXqIOzRrWzvyIGF6CC4m2bqyrymuKcffj6zDcwr7w8/9bfq21omLcS1 PEE7au6svWxKGB1w9IYELYc9Bry4MBjBktIc+kEwndkfFP034CZXwA8dQKiCw7hJ/9Mz WIXexpGZaKFmLvJiHurlPTpltM5JesX3mYANhX2kUi84wAg7zGJX6f50ku/IFtTrKNzg R24KaE7fA0fC0Svndde51eTnYCHO0JnvnDXphSA2RNWf5WmXsN4ob+8+vOxKc+FDioiR vwYdSXIa3uzCdxpTQZLrpjuRmTIakFM5m+/uaOCCy6qsfPQepBjErXyVPPLHF/9mhVCE XOog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=hoo5hmkbIltrlfNwUaL8fscU2wPrBQUv/Z4w2VLQSn0=; fh=p3gIyRhXTPYAw2ftDC0TPLmHC8aURM0UFqYsBdFsu9c=; b=bI5THNxmMqqdGS7CC7k4INyI1gvYmq8WWRBBZ0oRY8War7LZprRfEiz500ZDHFtecd YsR0XTMMFGpaSuanNWcmvEct7j3C1gaRkEjmjE6P6NaGTZaXsmU6veRyh6+u9nKYsDjH vThj9S9dUcmnLNMLdUG+AY1Xxu7k85f+k5j/GGSOXfkUIUqfYQpuG9Ko9m9YNeNuOHkD Vd0ma2Zyqg3hJJM6TnIvVo5aqwDfOD/P9yUwUVOV/C3UVmPH6TUzvnim/XZDDxA2+bc9 ipebImtzY8P6bUMRg3UUWBj7miK8z/r6DvtfoKDebzs1uwoXI1Dc0TV7sntncJcdSbxp NZYQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o5-20020a170906288500b00992cd72e0b1si2541841ejd.667.2023.07.21.13.02.36; Fri, 21 Jul 2023 13:03:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230393AbjGUSY1 (ORCPT + 99 others); Fri, 21 Jul 2023 14:24:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230377AbjGUSYX (ORCPT ); Fri, 21 Jul 2023 14:24:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76F592D77; Fri, 21 Jul 2023 11:24:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1441A619FD; Fri, 21 Jul 2023 18:24:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C336DC433C8; Fri, 21 Jul 2023 18:24:06 +0000 (UTC) Date: Fri, 21 Jul 2023 11:24:05 -0700 From: Catalin Marinas To: Yicong Yang Cc: akpm@linux-foundation.org, linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, x86@kernel.org, mark.rutland@arm.com, ryan.roberts@arm.com, will@kernel.org, anshuman.khandual@arm.com, linux-doc@vger.kernel.org, corbet@lwn.net, peterz@infradead.org, arnd@arndb.de, punit.agrawal@bytedance.com, linux-kernel@vger.kernel.org, darren@os.amperecomputing.com, yangyicong@hisilicon.com, huzhanyuan@oppo.com, lipeifeng@oppo.com, zhangshiming@oppo.com, guojian@oppo.com, realmz6@gmail.com, linux-mips@vger.kernel.org, openrisc@lists.librecores.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, Barry Song <21cnbao@gmail.com>, wangkefeng.wang@huawei.com, xhao@linux.alibaba.com, prime.zeng@hisilicon.com, Jonathan.Cameron@huawei.com, Barry Song , Nadav Amit , Mel Gorman Subject: Re: [PATCH v11 2/4] mm/tlbbatch: Rename and extend some functions Message-ID: References: <20230717131004.12662-1-yangyicong@huawei.com> <20230717131004.12662-3-yangyicong@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230717131004.12662-3-yangyicong@huawei.com> X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 17, 2023 at 09:10:02PM +0800, Yicong Yang wrote: > From: Barry Song > > This patch does some preparation works to extend batched TLB flush to > arm64. Including: > - Extend set_tlb_ubc_flush_pending() and arch_tlbbatch_add_mm() > to accept an additional argument for address, architectures > like arm64 may need this for tlbi. > - Rename arch_tlbbatch_add_mm() to arch_tlbbatch_add_pending() > to match its current function since we don't need to handle > mm on architectures like arm64 and add_mm is not proper, > add_pending will make sense to both as on x86 we're pending the > TLB flush operations while on arm64 we're pending the synchronize > operations. > > This intends no functional changes on x86. > > Cc: Anshuman Khandual > Cc: Jonathan Corbet > Cc: Nadav Amit > Cc: Mel Gorman > Tested-by: Yicong Yang > Tested-by: Xin Hao > Tested-by: Punit Agrawal > Signed-off-by: Barry Song > Signed-off-by: Yicong Yang > Reviewed-by: Kefeng Wang > Reviewed-by: Xin Hao > Reviewed-by: Anshuman Khandual Reviewed-by: Catalin Marinas