Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1453300lqj; Tue, 4 Jun 2024 01:52:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWfIULi6VEb6gIW2s2XWDkaG3B9wHmg4fKZjET1D6Qm15oqgx47IvjRi3Pw/xW+OBqfp3DG5cSgOOkOSH82zPBxqzW5yYavcqnA0yqI9g== X-Google-Smtp-Source: AGHT+IE2VcGj9XNKX9OBw6z/M/I0lHBvWoVB8AnktJy8E9PILPgwdyi7CYjnsJf5dLSIaEYgZaws X-Received: by 2002:a05:6358:418f:b0:19c:27a0:a116 with SMTP id e5c5f4694b2df-19c27a0a2bbmr340344855d.14.1717491133544; Tue, 04 Jun 2024 01:52:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717491133; cv=pass; d=google.com; s=arc-20160816; b=O41WeAJIg2lnPu8edSRzkQNSs3jsJKAh7N2KE4cjuL0GH7aogvOYZyUdx8lrtzOV2q KfLTPWv8WH7yFSEG+giEnzZ7Lsu7c2nUw2BQUMKzkYytnidLRiIsm24LAUmFQuPOpC+c V4GYzk+e5xv9E6VCwyG+g3jKThW+EzcawQTXCJQFghB9dvU9r0Nj7oUQ1VYbfcbY0NF1 p1uaS3+fH8MAHLaFBVoNyB/paegO153rY7OlMUX/FdpXI5JAevtxhA1cF+O2dPH8U9T9 a6qc4F8xgft32+cR09sPU2nRFxSSi7c5hY5VOVdlhfi8UwVqYOdrkX/O7eb7qxJLFKzY 9GpA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=X5VEKcXjsckL7bzsB4I2+5w7z1/yIThVP4y03Rift7Y=; fh=Cd0XHH5tTUmLP7GpdBkDySJUATWfmDuyS0mOoNd9dbo=; b=WoiJrncs5moEbvxiDXziPJMPsXgALdbZB1coE5o8AQIPDoafnP7wj/dEwHO0vvjd84 YfAdmVXxwvvUzUuT6tJ92emHecihf9qmtpyaFJ2hS7dD9PkY7wPnsAU6GtUpZRJaVZHM pV7/2QLXCKbAoM4upxcVfHtv/oIHEx6WkDyrQtE2knrKEYMhGY839ZFEFKOHQZGqFTt7 gaI+1L7aLXjpnjNAG+qmPPBn3QYH5hnBGn4tz6AasBe+mNHUjKSLnk9Pg5jLvGw79TgY ezPikJ6eLyMmd14IAPZ1ItxXbMqHRxl3XCAhrDEwjX5JaZgNKaZdP8FMoM784vVS97zG wzlw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Mh20iy/f"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-200279-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200279-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c3542e3a53si7769660a12.44.2024.06.04.01.52.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 01:52:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200279-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=@kernel.org header.s=k20201202 header.b="Mh20iy/f"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-200279-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200279-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 34E0B282A58 for ; Tue, 4 Jun 2024 08:52:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 41E12142E66; Tue, 4 Jun 2024 08:52:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Mh20iy/f" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 58CB9BA39; Tue, 4 Jun 2024 08:52:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717491122; cv=none; b=UQRz3XkgvOkPi/lrHslgsvWQwmDYheW1FlGLhwifxBxkzPh8RzP+e8Ew+cLlhBZBrLW4r/kmQQIRyyfzA/LyDESx0Veg4fSGEC3iyvOKYpvjVJ8p6FhRCLOuLLcL30Izfq1xJQKtXESfpzSVShdNArxtKepHPuCqLsav7gd+oUw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717491122; c=relaxed/simple; bh=X5VEKcXjsckL7bzsB4I2+5w7z1/yIThVP4y03Rift7Y=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=V5NQMA9jpiPPyWLFGclT7Xoaq1wGWixKTTgBXLZIQAe+WyPfTJVvcgkpbljORG4vOuPuKAOUsNmj09P/QyinjTJdAusV5iRigNnzE7KvVM8QBQ5qG5TMuntN+3sSDgottwYnSqZblxJMygfmq5XI+IYxKNHZNWlVK1ONEFXVHh0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Mh20iy/f; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02151C2BBFC; Tue, 4 Jun 2024 08:51:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717491121; bh=X5VEKcXjsckL7bzsB4I2+5w7z1/yIThVP4y03Rift7Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Mh20iy/fPgoKsPFqkHOMkSvPPs3YobSnTzSECvBMzNm1M8s6vO83AlQC6ilY4EOTy 8sOXH1quEckXBhwBGWJj3cHU+7AJwHqGK3p8fjuVfk/jjnSzsPPyPutWZjpiLaoAyt gCdMIRxqqGOm0zxE4aSYMab0Wodh06NeE+MsysKpcDwBDbIlcnfS/wkLiVdVzhzICG 4UjcQOTTx+aFwRJE1QaD8Cvt4dl3qLXOUDKmxsy7E1fx9TesQtzL9Q+NmezjMQehNS 0WMvz7jO6i8duGQNOX4hQOm+ZTVOc7wkWM1vHVgf8whVZyCCBz2ju8SWZpi8Hlqbp4 o2gZF74Dfgnvw== Date: Tue, 4 Jun 2024 09:51:55 +0100 From: Conor Dooley To: Alexandre Ghiti Cc: yunhui cui , Catalin Marinas , Will Deacon , Thomas Bogendoerfer , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Paul Walmsley , Palmer Dabbelt , Albert Ou , Andrew Morton , Ved Shanbhogue , Matt Evans , Dylan Jhong , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-mm@kvack.org Subject: Re: [External] [PATCH RFC/RFT v2 3/4] riscv: Stop emitting preventive sfence.vma for new vmalloc mappings Message-ID: <20240604-dazzling-envy-1dcf111eb2c5@spud> References: <20240131155929.169961-1-alexghiti@rivosinc.com> <20240131155929.169961-4-alexghiti@rivosinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="v+mLtQDAp6jKleQy" Content-Disposition: inline In-Reply-To: --v+mLtQDAp6jKleQy Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 04, 2024 at 09:17:26AM +0200, Alexandre Ghiti wrote: > On Tue, Jun 4, 2024 at 9:15=E2=80=AFAM Alexandre Ghiti wrote: > > On Tue, Jun 4, 2024 at 8:21=E2=80=AFAM yunhui cui wrote: > > > > > > As for the current status of the patch, there are two points that can > > > be optimized: > > > 1. Some chip hardware implementations may not cache TLB invalid > > > entries, so it doesn't matter whether svvptc is available or not. Can > > > we consider adding a CONFIG_RISCV_SVVPTC to control it? >=20 > That would produce a non-portable kernel. But I'm not opposed to that > at all, let me check how we handle other extensions. Maybe @Conor > Dooley has some feedback here? To be honest, not really sure what to give feedback on. Could you elaborate on exactly what the option is going to do? Given the portability concern, I guess you were proposing that the option would remove the preventative fences, rather than your current patch that removes them via an alternative? I don't think we have any extension related options that work like that at the moment, and making that an option will just mean that distros that look to cater for multiple platforms won't be able to turn it on. Thanks, Conor. --v+mLtQDAp6jKleQy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZl7VpwAKCRB4tDGHoIJi 0htmAP9lKpWaps7KNiXD+LLzGjaogNRPLVfDE+cLSH8OGRjL0gD/b1+iNEj7/u9+ OImeR7875AIcwdnxddUdj3oiiMB/6AA= =s00j -----END PGP SIGNATURE----- --v+mLtQDAp6jKleQy--