Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3168541lqo; Tue, 21 May 2024 08:41:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXzGsHnLuIhUMDLui72jWcrvnSmKOOcnx/AGTvfCbdhJMiu7RxW7szwIC19mXADJi9Ed0X1ckPAqv1dfPmxDStrkDTIrhlvjK+msojfCQ== X-Google-Smtp-Source: AGHT+IEojnA9GhYTJk/VQE7pQCBWFoVtYri4Dk0jXr0pFBIHdfh21u6O47oVnahX5wgm2cHBbN8G X-Received: by 2002:a17:903:2281:b0:1f3:37b:86ba with SMTP id d9443c01a7336-1f3037b8efemr61519165ad.68.1716306065929; Tue, 21 May 2024 08:41:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716306065; cv=pass; d=google.com; s=arc-20160816; b=qvtX56mqhOhVRiwM36hIPexP6293j7PHl/tLK7rf7p3FIRSPTc9NgfOAV7FuA0/Hgi nsbg4jN80nMrzyLUUOS6miNMiO9anYA9bFhfoy5t/3MnnmEd+GPwOqejMj1xPoIdpwzm 39sdNGnPkTb7zGWKiKm9cKMMM3fWbGxx1hbgqOgOmxS8zF/kTev/Bsq36RRNu5y7RwvL ObUTaZKL5FPiEHVkHyelpqcEIgsKUTprvQ6krx87pwX6DzoZPdIzu5pfokvgkSlZZTVt GTCIITANIOLYR4baHWULeNoBGgkE9xg+xYeG0ugfB8yHfE/M3snVMchi4OOgC11m+D9k nz3g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=0F8utKmHBsqT5aaZ1shtTgjkR7zRzQ1wD7Atj7HfE5s=; fh=neXYw+V2WSSO60m0EcKzjZ3BVn0qM5nLR1J6kLv0Svw=; b=UnXYxjOH9WepKZLIXs5MxERdA5UP6iYncDid1uuUwoVlK1V1Pua0PEyjnf+x+KskJ1 u7D9r2oXIwRu6ryz3wnSHWGs9l4TpUcszSokJwMnuan4H6HKvzTtNHaPEB9QgKkCmCER CQVdZOxTwus1jI31oecUMCfn6z9QjVKgdlZbY0LKkTWJJwd4PMQz+qUIhW7zOc34bgth L4hVVFMyYAB8WbkhT95r9uSaNN32OOJTlTjg8aeCS9eeWX3S0HDjDCd53cNsAIJZVvoV 8vWExzwdhFeSorGxxEgKEUXpTBvkeq+qjH+rK9t75PWCECMGgFg5D4BWuVPWnQdxab/A taxA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@antgroup.com header.s=default header.b=1PDxK98a; arc=pass (i=1 spf=pass spfdomain=antgroup.com dkim=pass dkdomain=antgroup.com dmarc=pass fromdomain=antgroup.com); spf=pass (google.com: domain of linux-kernel+bounces-185170-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185170-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=antgroup.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f314df1339si3449605ad.497.2024.05.21.08.41.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 08:41:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185170-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; dkim=pass header.i=@antgroup.com header.s=default header.b=1PDxK98a; arc=pass (i=1 spf=pass spfdomain=antgroup.com dkim=pass dkdomain=antgroup.com dmarc=pass fromdomain=antgroup.com); spf=pass (google.com: domain of linux-kernel+bounces-185170-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185170-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=antgroup.com 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 DDB7DB23A36 for ; Tue, 21 May 2024 15:37:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 25BF81474DA; Tue, 21 May 2024 15:37:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b="1PDxK98a" Received: from out0-217.mail.aliyun.com (out0-217.mail.aliyun.com [140.205.0.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F1C0414535F for ; Tue, 21 May 2024 15:37:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.205.0.217 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305825; cv=none; b=OgSrBi/sWwvAsMqxmzzNWWFagd/f2VmiZkczUMkkaVOGG9jTdjlaa8kjVPav0915DBDLG+eQZ+T6XXjsqMS0uPZc3AzX9fDbE7oox3TMiXpPxZ/N+kKD/bO40WBxAMfKiD/VewhfK5H+TYBu+ZkEOAog4wUCFX2ZH47x1WVUFss= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305825; c=relaxed/simple; bh=7cMYQjWrFB8NyPN7IxbC0FNw72IWwl12mZnaAWXxAHU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ToGjCm+hhNa5SR6t10U03UREMCfqNbwOmEhbMpHpotbCW1ReXGbqTnoIm/Ljattxxi4gWvk9N/iBPg+WyZHwb2tBWjyKqVPu4MbfV83AwT/SPzAnQB2klPtBX/FglL39itEYyRPtJE6EKRsrRXFN1tXBk+i8LkLnDBHTJQL299w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com; spf=pass smtp.mailfrom=antgroup.com; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b=1PDxK98a; arc=none smtp.client-ip=140.205.0.217 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=antgroup.com DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=antgroup.com; s=default; t=1716305815; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; bh=0F8utKmHBsqT5aaZ1shtTgjkR7zRzQ1wD7Atj7HfE5s=; b=1PDxK98ajQsWd/viW0gggAq08f+ifUj2FceeJqLSs6nXi9MYzV7VPNV2Xk9K12oxMUybl/GA+3vakqhG03qn7nKdVet9x3d0hHzLCDRhuWiC6UUebIWMacK+eYVsAJPFBDajnhr0FHKUcbAuLKmkt0cFS3VN1292lk/1uyNsYPU= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R201e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033038033188;MF=libang.li@antgroup.com;NM=1;PH=DS;RN=15;SR=0;TI=SMTPD_---.XjOK43f_1716305812; Received: from 30.236.49.195(mailfrom:libang.li@antgroup.com fp:SMTPD_---.XjOK43f_1716305812) by smtp.aliyun-inc.com; Tue, 21 May 2024 23:36:53 +0800 Message-ID: <7d00705a-8a6b-48a5-8aba-7e789c536e2e@antgroup.com> Date: Tue, 21 May 2024 23:36:51 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 2/3] mm: Refactor update_mmu_tlb() To: David Hildenbrand , akpm@linux-foundation.org, chenhuacai@kernel.org, tsbogend@alpha.franken.de, paul.walmsley@sifive.com, palmer@dabbelt.com, chris@zankel.net, jcmvbkbc@gmail.com Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, loongarch@lists.linux.dev, linux-riscv@lists.infradead.org, ryan.roberts@arm.com, ioworker0@gmail.com, libang.linux@gmail.com References: <20240518074914.52170-1-libang.li@antgroup.com> <20240518074914.52170-3-libang.li@antgroup.com> <4650b888-d90f-40e3-8c53-c9949e539959@redhat.com> Content-Language: en-US From: "Bang Li" In-Reply-To: <4650b888-d90f-40e3-8c53-c9949e539959@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi David, Thanks for you review! On 2024/5/21 17:36, David Hildenbrand wrote: > On 18.05.24 09:49, Bang Li wrote: >> Remove update_mmu_tlb() from those architectures and define >> generically via update_mmu_tlb_range(), removing the ability >> for arches to override it. > > I'd suggest something like > > "mm: implement update_mmu_tlb() using update_mmu_tlb_range() > > Let's make update_mmu_tlb() simply a generic wrapper around > update_mmu_tlb_range(). Only the latter can now be overridden by the > architecture. We can now remove __HAVE_ARCH_UPDATE_MMU_TLB as well. > " Agree! Thank you for your suggestion, I will modify it in the next version > > [...] > >> +#ifndef update_mmu_tlb_range >> +static inline void update_mmu_tlb_range(struct vm_area_struct *vma, >> +                unsigned long address, pte_t *ptep, unsigned int nr) >> +{ >> +} >> +#endif > > With that in patch #1 Thanks again. Bang > > Acked-by: David Hildenbrand >