Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp127051rdb; Sun, 28 Jan 2024 17:29:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IFTwerpxRmhhWOZGvf93KdZoCYs4tf8HFb0Jzc8OgB6BrYk37oOF4MNrbU/DrTmpyUs1y7t X-Received: by 2002:a05:6a20:369e:b0:19a:5257:9828 with SMTP id s30-20020a056a20369e00b0019a52579828mr3205291pze.22.1706491778044; Sun, 28 Jan 2024 17:29:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706491778; cv=pass; d=google.com; s=arc-20160816; b=N7+g2WA/41XQy5+a+IdwVKSCNaAuygKodkK0x7TXObhPzuOn5PUCNcrVrAMry/DXT+ /0SPEZfJpQH7TYlrkOoCh26tUoKyu2sseIww20ib9APP1P668n7CB/NpmdnJ6DYTE2Le x+d/5qaBj/C+hS4MzAenpZYKEiFmMMbej1FLMz7RqxGoH4uetWueRjYxMmw2StQOK9Co Lb63fL2eBCg7fGYGOSOAEfDtEf6NQtKYdoIwz9xdcxzg+ah2xj5c+vzGIfAcHH8HHACw XrvU7fEKV790ImaP2QYBV/fZIlDA1eqyDGd2N7sOMF6a6fLNn0UqHQgQXMyNXel5NHjJ dmAw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=7ADClRzg4AS1tsrl/EnTtXjRsNE1syTriY+hJ47tGK8=; fh=J/KcjOOWvsWVZ3h9iTfZxpZIv8+yQgMu5QL9Rqqiz8M=; b=dXrp4UxGbrQVNcP9DHST61d9RaMExkVN5VV6+tBwDfXNwmqXORJ+NKIRjHRVvmYSmm j+WTF+E3M3lgWaMiHVreu4fUPednS86uOQ593cXt+iFL4Vuym5e1NWlTbs43spawtmkQ yF1+EhZle3aZUjPE3aECXlcuf6MZXVvalTlpS8NdJ/7g4WL0J9dOxx4t/Rb9k9PvMpDn mVHwOAmWkNsVIpV8KhF2KxzWrhbiR9Ja7w6wKhxWq88AO69FXr0Hqh15UwA29Ft4RBEU SrwsZ6pjs8l8o/ciR6uz0dGmXsoV2eZMvDVavnryO+Rbq3TeHt3nIkxAdLigG9ay83Z/ a2Mw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=cKHSSQOV; arc=pass (i=1 spf=pass spfdomain=bytedance.com dkim=pass dkdomain=bytedance.com dmarc=pass fromdomain=bytedance.com); spf=pass (google.com: domain of linux-kernel+bounces-42061-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42061-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x20-20020a056a00189400b006daf914dc76si4886984pfh.203.2024.01.28.17.29.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 17:29:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42061-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=cKHSSQOV; arc=pass (i=1 spf=pass spfdomain=bytedance.com dkim=pass dkdomain=bytedance.com dmarc=pass fromdomain=bytedance.com); spf=pass (google.com: domain of linux-kernel+bounces-42061-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42061-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id AC31E282ADD for ; Mon, 29 Jan 2024 01:29:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1FE31F4E2; Mon, 29 Jan 2024 01:29:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b="cKHSSQOV" Received: from mail-oa1-f50.google.com (mail-oa1-f50.google.com [209.85.160.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 05388EED7 for ; Mon, 29 Jan 2024 01:29:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706491766; cv=none; b=gkqNLmKkE/TpIIE4SpXIua2NpTldjHpE0sXVIjA0FNI1u6KtoGvVLl0/5pKM8Bm4u3I+TU0fUXygCtDJXSFjharvWrtnuYTh2bQFTL0dDAE8gj04d0wej4s7MgxAaqfzWHviO50ECHo/S3gyHiPwUGxID8hcdRKAjJwSjcjOgGE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706491766; c=relaxed/simple; bh=2dFH18+csQIh0arehY0/drrQNQ3PySdwHK9WAS30SWo=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=ATBm+eXIdRQDlXwWfrr7JYHKDFo7ZL6Y0YNGB2BbDuEqsEAIYqsYgz5aSE5O+V4XTltEvDZ27NmBrhz8AeEmW+WqFnNrrwUjeQvZLneFXb0GepQloJ+QmEO5yxPUykQQwXLqpW9gCLZLJT7WTKkfZR2EdaRVTNZ6a/dakoe45U0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com; spf=pass smtp.mailfrom=bytedance.com; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b=cKHSSQOV; arc=none smtp.client-ip=209.85.160.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bytedance.com Received: by mail-oa1-f50.google.com with SMTP id 586e51a60fabf-2183afd4103so896017fac.1 for ; Sun, 28 Jan 2024 17:29:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1706491763; x=1707096563; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=7ADClRzg4AS1tsrl/EnTtXjRsNE1syTriY+hJ47tGK8=; b=cKHSSQOVDZNrGm3yR7tx1xuo0ncJE6tVsFRZWffrLQ+tZesGsN+H9Th7CfoN67a6fd 7J1FQBXX/Nj2img4jamp/1siPCn24gXOXR8FJZ1b+XgBtNE6TbQyJL1yaCXubtCDVqLd g0KVE3a9kcbBVY1ctq+OmD9YiKAMm/fixHxYOlnSqN2mHZpdhOnfN1y4sO0Rl5h8o9+8 G8IiOxcBnuiQgoPF2hGIoHevFYVHrLGya70ThR50kZ/CHWR6ZYV1VOVKnoMRvgHP2r3v cfg6Kowe996xw6rzOj8LRV9zNxF20Y5Dc5bkM8fndr0dM8pj/WltWYG+l1LP8iF3FRNt 9x4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706491763; x=1707096563; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7ADClRzg4AS1tsrl/EnTtXjRsNE1syTriY+hJ47tGK8=; b=o27aT079+1HHt85NbmoESAuL1OXC/ZyTLgWmS2C+tX5yp6aujE6TruWWJQlHK/aUAn nHam+Lp8ecJ1917W0O4rDzkZJWvj2KD7c9SdlIypyo+N+4DdZWE65YJYdMJXf1k6oGbR 6CLQ02p6I1ZM9iOEza1CkrHh546wpzEMP/2+aB0ctveOFr0SlpGdtCEHf0aNX8kGQcVV YFFAllDmE5WrsEByp8/2bv2FrJsXIGZ0n7l2yS4Mi03dgEpbVH4N2HOAFJ8rZKdZv28e ODY+SlvRaV4GmySSUJ0Sbgn+F6C/x05w/oGpMjQfK7anUuvt7xyuec1xs5+J80G+d6zO sUmg== X-Gm-Message-State: AOJu0YykagDQ/agT7RagYWSHoSgsESlg8AjPbsk7RZXnJI6nW49BI6EN hxRdSuoq6nnCcl6kQ/IhQZqNdFRo+L6IYhCc50QR2JDPX1bsjfv8C18NrftaPuBu0pNVaesIpwY 39v15zcfP4F+isq2siXYnpggzCsiX1+57b0k+jg== X-Received: by 2002:a05:6871:6ac:b0:206:6110:ff59 with SMTP id l44-20020a05687106ac00b002066110ff59mr1659533oao.27.1706491763016; Sun, 28 Jan 2024 17:29:23 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240125062044.63344-1-cuiyunhui@bytedance.com> In-Reply-To: From: yunhui cui Date: Mon, 29 Jan 2024 09:29:12 +0800 Message-ID: Subject: Re: [External] Re: [PATCH] RISC-V: add uniprocessor flush_tlb_range() support To: "Lad, Prabhakar" Cc: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, alexghiti@rivosinc.com, samuel.holland@sifive.com, ajones@ventanamicro.com, mchitale@ventanamicro.com, dylan@andestech.com, sergey.matyukevich@syntacore.com, prabhakar.mahadev-lad.rj@bp.renesas.com, jszhang@kernel.org, apatel@ventanamicro.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Prabhakar, On Sat, Jan 27, 2024 at 1:42=E2=80=AFAM Lad, Prabhakar wrote: > > On Thu, Jan 25, 2024 at 6:23=E2=80=AFAM Yunhui Cui wrote: > > > > Add support for flush_tlb_range() to improve TLB performance for > > UP systems. In order to avoid the mutual inclusion of tlbflush.h > > and hugetlb.h, the UP part is also implemented in tlbflush.c. > > > > Signed-off-by: Yunhui Cui > > --- > > arch/riscv/include/asm/tlbflush.h | 61 ++++++---- > > arch/riscv/mm/Makefile | 2 +- > > arch/riscv/mm/tlbflush.c | 195 ++++++++++++++++++------------ > > 3 files changed, 156 insertions(+), 102 deletions(-) > > > Boot tested with defconfig + rz/five enabled, no issues seen on > RZ/Five SMARC EVK. > > Tested-by: Lad Prabhakar > Thank you for testing ! Thanks=EF=BC=8C Yunhui