Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp355106lqb; Tue, 4 Jun 2024 13:29:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXrVnKGffA6o5/MszQwYfpf+SwCoiVNPsZ3VaOR/xAY0GBbI+oPKs81PQw/xZIz3sJmmhGPdk+fFVTr4/o74d9z4SKGFiWFzwgxf9rtMw== X-Google-Smtp-Source: AGHT+IGbQVn53VBICFLOjxuigpdY+tsmIYE9hv8b4xOPAElVar8wGE+2Iyd82ofE2VVW/Vs92TX9 X-Received: by 2002:a05:6870:d622:b0:24c:ac96:ac78 with SMTP id 586e51a60fabf-25121fffb3fmr785167fac.44.1717532995386; Tue, 04 Jun 2024 13:29:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717532995; cv=pass; d=google.com; s=arc-20160816; b=Jqx/bffgmIdr0H3Y5brD8Eg+bFwEMKzSrU4izYwdIhinXCj1/5LJMZUusXsRIV+Pu3 2+SjSPq/TNnokJVXOsmFOVKls3fDpVRvJ4ezkM4qqoVr+p5io6t+1J9R7xGwDaG5r/1x o4msdz7+U4BPR1razG0wXIvFzAZIwEqR7aBdzwJ8h6B0XWkOXAisFU6SbE6cqICzjdLe LY+Xz1kXDHrjuPaRQ0q3nbCn52lNzYLa008JD9mCibRznL2NnwUuEWLHQICv7jKarKU4 JEnEey4ruIIozvlmys0+Aq1w4y/pDadpTIbxZkc34JtTDGf8CI4qy4DozP+qIkCZda0a acPQ== 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=hzO5VxyNboH0UxSA8oeS3DN/P0lxl1+qVDrF4lH35fg=; fh=Cd0XHH5tTUmLP7GpdBkDySJUATWfmDuyS0mOoNd9dbo=; b=UspshsJH/3j2HpEBJJwiR/d2orZCKi3bQnAnh5FYnWSdw4tb1NpDoydkV6EcGKoLiE pEztvuaIqeaS2WhjzYub0sjJpTqoyMty6dlJuIA8oiQA2/jLhL7ObSqoX9hAnUN+/jGG lrmnR7VlrG7DJn9N0LE02D+KkLYGbpTLKAGG325fXdibbhuJm9BUAtIZOLWZLMSKrESY uCaX4iRR8ejM3lOEe3efSdfkgPr8Z5w7SxpkOTrBkLsIJoiqucaex2NTakaET6Ivs8Na Fn49RSaLUiyYvvI4VSwpSJ7QVaN5Pm4T0Yg8/0BkIb1FVcQMTdp7COT7Zd1WEx7x6ssa bmhw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YoZ0l1zC; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-201338-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201338-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c35af45659si8677367a12.451.2024.06.04.13.29.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 13:29:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201338-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YoZ0l1zC; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-201338-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201338-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 203B4B21A13 for ; Tue, 4 Jun 2024 20:18:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7B5A914B09E; Tue, 4 Jun 2024 20:18:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="YoZ0l1zC" 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 A06F283CD6; Tue, 4 Jun 2024 20:18:00 +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=1717532280; cv=none; b=KWFCB3HNrtUQAJiPqob49Yxl286SNosuvmuuVI6rjVVDdHx7xKUqZeb90HE5ZN5Wx5n5mByiI4Pi/yrxnuVO969lRJJx3NtA3gzOHlMrW+D9i7LEExyDIBBk8NQg9opJnkTnSMh6E9qQGd5TPCLfJrOD72U9pfKpD2T+DHikIIs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717532280; c=relaxed/simple; bh=hzO5VxyNboH0UxSA8oeS3DN/P0lxl1+qVDrF4lH35fg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IJvdXMnKQ3y0fCG1/wZsuar6CzM7tITqReqJZQ4Nlfz+GOcvqoSVPqDOgUEt4hbidPPe3Ea+ytG1ltIP4fJqNsQ52iUILXc/fCg6s/7QhSapD8skUyE8sSZGt8THqyD/wXWV5FWOXZ856CFXAb+1FczACvxPcpvJldNlj5AYELo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YoZ0l1zC; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50DD4C2BBFC; Tue, 4 Jun 2024 20:17:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717532280; bh=hzO5VxyNboH0UxSA8oeS3DN/P0lxl1+qVDrF4lH35fg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YoZ0l1zC3xE7XjFm6AyGqJGICJLDpBXsff7pMRSlEudgDhIe2FAqUIlZOHMrcDAr3 JFMzUTUWby1raWnTIk9qkVwqwtiz6/Z6smnBNReiuYlHT8eUSl0Z+Aqd5Gb2Mvh34S wAKOpf6ZGKyFw6YsjI3fHnZC+rpMWQawCWhKqPCdn6EmlNin9YkQkOohgJvSm0Jfdq EA1DmGUVMobN6eu67mYDQTP4RfwK6SHx4st2n6F8wStZwJn0RmP6KpiZmkZX3cYHhC s3AwyJtNeSyuaNXCJfi8TiyYPNzftuerF7VkPZyKLtWbcx/eMh95QAsbx5XROxuYBO Zsx5ZvhbZVrFA== Date: Tue, 4 Jun 2024 21:17:54 +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-finalist-screen-c9f35b5cfc56@spud> References: <20240131155929.169961-1-alexghiti@rivosinc.com> <20240131155929.169961-4-alexghiti@rivosinc.com> <20240604-dazzling-envy-1dcf111eb2c5@spud> 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="rwD0Txngxq5MBoPY" Content-Disposition: inline In-Reply-To: --rwD0Txngxq5MBoPY Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 04, 2024 at 01:44:15PM +0200, Alexandre Ghiti wrote: > On Tue, Jun 4, 2024 at 10:52=E2=80=AFAM Conor Dooley w= rote: > > > > 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? > > > > > > 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? >=20 > No no, I won't do that, we need a generic kernel for distros so that's > not even a question. What Yunhui was asking about (to me) is: can we > introduce a Kconfig option to always remove the preventive fences, > bypassing the use of alternatives altogether? >=20 > To me, it won't make a difference in terms of performance. But if we > already offer such a possibility for other extensions, well I'll do > it. Otherwise, the question is: should we start doing that? We don't do that for other extensions yet, because currently all the extensions we have options for are additive. There's like 3 alternative patchsites, and they are all just one nop? I don't see the point of having a Kconfig knob for that. --rwD0Txngxq5MBoPY Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZl92cgAKCRB4tDGHoIJi 0jejAP4q4iC1BCvHT6xTV9Sna0UEFmTHPbvuyI/Dr8hN0BftCQEA2HLRmlNNqiPJ abULfaYTpyjXRctzj8H5FL5kCUjY6gs= =929z -----END PGP SIGNATURE----- --rwD0Txngxq5MBoPY--