Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp226751lqo; Thu, 9 May 2024 19:19:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWX7cUgG5/tAmeoPOOXWUSZFpz0pDzBhO6Ef2QQFjBnBqmlqcIpdLnGBfUjvV4ntM3VTLf7WN74k66sCtOXDKLILorVEXMz3/d0b0YWmA== X-Google-Smtp-Source: AGHT+IH3CKn2K0LlICplEi3rbl753WQZW5UC+Xl/zjj8Kg/05bAq1P45BWgD6un3i+dzqd30/kkO X-Received: by 2002:a05:622a:215:b0:43d:dfb3:e4a8 with SMTP id d75a77b69052e-43dfdb6aebcmr12409751cf.53.1715307546355; Thu, 09 May 2024 19:19:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715307546; cv=pass; d=google.com; s=arc-20160816; b=RzQd8a9cSYb0q5iB8B3OIHZzGpmbiI9utun9j05iu5KxdwHX3jIIAT+T1NTda3AM2I 5lLQeTpriVZvKUu7sNqM6aks0crPanYrSQ1O49hpD0NpnY8sugnQao/m+34qz7Bl+oXG 14PrasmU/Brntgna4xY4lobCxPsvBOCxvjt8AqAtu/I7Xb35D5Gi1Rcn9B+JIOLGmpzX +sl3k9lu3uml5HLNBCrshXQEph1DbyPX37I1+/n/h2fN09ZGxe6qFMPwE3z6DFbVLy7K Lf7A/Itg84INR031ENVSvwF+LT2QKMDAjsEBtPfmu13YwfzEWiHSdMek/Xu5oVVHt+Sh rvQQ== 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=z3HIGnGQLgftTdCGksj44Ar9SYsXylJNvYIUDPPEOR8=; fh=M2ncFQyE98mmcASoMzytKhT452y9c7swTq9icbz/AoI=; b=ujZdobGqp+3vf5BM8GC/RMu0A/rujK3Pn8jWMdWkd9SlX3WSUf29nztik2zYrTrFV8 Rhyd3OGNmJL0svoQHYtBZShXVCDXK/KLgfqvE8XL48fQQlkevaix52L7Z+IwnT+uD3Nx xLuDVMWlMa5VslvigK6m+AeCfgV0a5OAs5RQzJVkXkrMVThjhJJU5TDVgOXwRfLpNDys xj9ifvF1rRXrNHa9f56J9LKbdqTqZN6M7NyoLpanwu9NcAo8lZIkbKbybQfVmOGl/sSh GA1NZAjCIMis08xQJbI1svKpUAIR6rwXmlhjqXNIXom9bzqqZAPjVH7zmhN0TgEPJfuJ PM1A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@antgroup.com header.s=default header.b=1oef9RVl; 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-175209-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175209-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=antgroup.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43df566f4a8si26846881cf.330.2024.05.09.19.19.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 19:19:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175209-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@antgroup.com header.s=default header.b=1oef9RVl; 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-175209-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175209-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id EE81D1C20F83 for ; Fri, 10 May 2024 02:19:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A7E5B13B7BE; Fri, 10 May 2024 02:19:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b="1oef9RVl" Received: from out187-15.us.a.mail.aliyun.com (out187-15.us.a.mail.aliyun.com [47.90.187.15]) (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 B513633EE for ; Fri, 10 May 2024 02:18:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=47.90.187.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715307539; cv=none; b=AYyKWXtmIq4uAD03CBvr/2FJeAYbAqFg7i7MPSbiQNSngF7fxewVEuQqUf0PVpLPlcrZoUu6KoU2ZEyAciPu1mUbD/y8+hsRg968r+/SrosjM+opiR/rtVS+2SqxdAv41rRfRgrTYa3A9HZEeXpICzTQszzhIJdGzImf6NAV14Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715307539; c=relaxed/simple; bh=Bs/K1/cqrY9IU/a3teHI1MTK7lNsbQvLmxYdI6+My50=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=uAFDg64/dfGHgnTMylSPNo5KsvZqzi7NXI70b1AQqiegqfN6/33N0X0HRLPFB/XeF/DNfM3EJPWCLi+w5cmIiWqxpGaFcSniy+gSMdsITUAZP00OKd1B00yb3gyj4qPmRjLi6OD2Q690e9bo4f6dFRDtX2KQVl+qcfakV3Lz2Og= 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=1oef9RVl; arc=none smtp.client-ip=47.90.187.15 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=1715307519; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; bh=z3HIGnGQLgftTdCGksj44Ar9SYsXylJNvYIUDPPEOR8=; b=1oef9RVl4+N/ZYuO1r199a6Nq3kwuoLZIbNsqS5eAeKrUwDDaUy7KWB/Rlypbubs9gEf2XfB085njZAef06aOsTdB2EJCquUI8JP9TcOTIRQhA72BMBM6Q4qdaLZSQHihol1xFjGr2HsGIEOtzU+btyAdAE7PCEGFyRkuI7exvU= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R801e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018047209;MF=libang.li@antgroup.com;NM=1;PH=DS;RN=16;SR=0;TI=SMTPD_---.XXRy7zj_1715307516; Received: from 30.230.92.230(mailfrom:libang.li@antgroup.com fp:SMTPD_---.XXRy7zj_1715307516) by smtp.aliyun-inc.com; Fri, 10 May 2024 10:18:37 +0800 Message-ID: <282a3696-e883-49bb-9bb5-57d4762250cf@antgroup.com> Date: Fri, 10 May 2024 10:18:35 +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 v2 3/5] riscv: Add update_mmu_tlb_range() To: Alexandre Ghiti , 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, david@redhat.com, ryan.roberts@arm.com, ioworker0@gmail.com, libang.linux@gmail.com References: <20240506155120.83105-1-libang.li@antgroup.com> <20240506155120.83105-4-libang.li@antgroup.com> <5a812c84-c3bb-4874-b29c-0816494b77a8@ghiti.fr> Content-Language: en-US From: "Bang Li" In-Reply-To: <5a812c84-c3bb-4874-b29c-0816494b77a8@ghiti.fr> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Thanks, Alex! On 2024/5/7 13:35, Alexandre Ghiti wrote: > Hi Bang, > > On 06/05/2024 17:51, Bang Li wrote: >> Added update_mmu_tlb_range function, we can batch update tlb of an >> address range. >> >> Signed-off-by: Bang Li >> --- >>   arch/riscv/include/asm/pgtable.h | 4 ++++ >>   1 file changed, 4 insertions(+) >> >> diff --git a/arch/riscv/include/asm/pgtable.h >> b/arch/riscv/include/asm/pgtable.h >> index 661b2b4fe758..f784c6dd2c66 100644 >> --- a/arch/riscv/include/asm/pgtable.h >> +++ b/arch/riscv/include/asm/pgtable.h >> @@ -489,6 +489,10 @@ static inline void update_mmu_cache_range(struct >> vm_fault *vmf, >>   #define __HAVE_ARCH_UPDATE_MMU_TLB >>   #define update_mmu_tlb update_mmu_cache >> +#define __HAVE_ARCH_UPDATE_MMU_TLB_RANGE >> +#define update_mmu_tlb_range(vma, addr, ptep, nr) \ >> +    update_mmu_cache_range(NULL, vma, addr, ptep, nr) >> + >>   static inline void update_mmu_cache_pmd(struct vm_area_struct *vma, >>           unsigned long address, pmd_t *pmdp) >>   { > > > You can add: > > Reviewed-by: Alexandre Ghiti > > Thanks, > > Alex