Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp497847lqb; Wed, 29 May 2024 01:55:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWzdI3k65TLtyY/DSPb7b28QoxvLsOARvA1gR9Hvil+23Hwt/EzPz1AwtrzuqnGTzcFVCsXiLEarQZ+VIHqewWYdBC7YoWC4H+fUA8jOw== X-Google-Smtp-Source: AGHT+IF0EcgkXEbxEf6bwHQBH7DBUy2JjDNaecZN1QNqg7Xo9+/exjJrF2qDMjanWO0J+CzehSVR X-Received: by 2002:a67:b346:0:b0:47f:17e7:ead3 with SMTP id ada2fe7eead31-48a38549235mr14286129137.12.1716972905666; Wed, 29 May 2024 01:55:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716972905; cv=pass; d=google.com; s=arc-20160816; b=atcItHpzGmX0evPme47xvB0oLKSHmjsQ2TsaZ32jZdz6Wxl4n7iH3oEqYJVHfvhxiA w+/2q8EiHb7sz3KEs7SOObi6lXL7STpTpc6ew3a1NcMB0wcAU49BJsaPrsTd2C9tI/XM zuvEgvtPi233xjGdgLLC9b2lBUiKBGqQe8g87en7eiHfdmIu/mMlWlxrgToBlZdpQErC LsNV/Ozimnc6k6jU5zL6DntbKXQdeU7ISs4n4eb4boWfO7B2CqIwLnXnGqlkSgw/wz0Q VpWG8crA+/Qmf+6V5vrNXRd71LZCHcAoltd3dFPl2/qYSVxz6kDwHPTJM8sV8djdk1hQ Tryg== 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=p2ajOWEfiObEYrQgF1oJtFwiB+uv7WtCZITKiAAkDio=; fh=c4I8SvJs0JGgJlpv5mOB4zun4/tfhA7uUlbvOqJTzjs=; b=PKmVbufPxyZIfnUPVTIWf2tGdUuvlTZtvfz4NTSN6/9nO43w/XRTyxK/8QuNUTsrbD uffCfyQ+L/DK1CHVqRBRm1KLMrjU7I5jKIM9g8kLyfLKPZwPF0aWb5NWVG+oBxe4nunf b61YOiKPjDQnHPLnqceXILh7BhoPDAfRbQEVf7Pl/M6Xn5rQdrcWL9zEr8JGkNmvL0uW AhqqTKgdaJao6TNCVja3tcRVGuXrTJ3wpm3+ZhKbi3eAy62GS7f8wsbJIlSaQ5Rrd4Fp 5VEBCGTkUPpCEPJi+1CeQyvQP3LQvzgeKUfRaS5sjJ9N5C00d3JfUWBPv4U1uPQAlsEQ BmVA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=Sd5pEFp8; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-193803-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193803-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microchip.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43fdd1f8c77si27884511cf.259.2024.05.29.01.55.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 01:55:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193803-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=Sd5pEFp8; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-193803-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193803-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microchip.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 9117B1C2284A for ; Wed, 29 May 2024 08:55:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6AAA4167DAB; Wed, 29 May 2024 08:55:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="Sd5pEFp8" Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (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 0F5B9167264 for ; Wed, 29 May 2024 08:54:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.154.123 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716972899; cv=none; b=p8x6V8s3Z1d4HqtCHP8+Tvk2co6jm1845vRYsMHtUrwp0fYR/tj3jx3tUiMtoHIYJ2PUX8Ga14Bnj7iibWe0to6zONPSruC+QpaWrEZzCmquKA0XRs5PiEAWompGxVwCAonk7m2Sfp4OVphrh+mAz8rLMnpj9vxs6lUJpFxnoOw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716972899; c=relaxed/simple; bh=stmi+KjKYwhxeArkzsaF8RjOW0BjWcjWKiALUZ9OGuI=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=k7prFDQGNMNyrQidPkm6vguXrtI6Xrmd7F8bBjE39Zj6b19hbaHsOjkQD9tinAQeriZenZWjHY82/gwmYdnJ+l0RhDTJsvc3mtKkbKIhE6AF4aHiOReNjvvBcTbJiF7qOaHQT0vXuIQfw/eASV+e+bIxX9RQ1ir7dirown2jnHY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=Sd5pEFp8; arc=none smtp.client-ip=68.232.154.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1716972897; x=1748508897; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=stmi+KjKYwhxeArkzsaF8RjOW0BjWcjWKiALUZ9OGuI=; b=Sd5pEFp8Jm3jUcLmHKtrGbE8U0i9ItAJ7XCYT3utqbV3Uyl4xTZdREi3 AF7/jtL2i1Kdm3hG+UWWa+kwBczNHuL/RvjDlX9DFeeiux2iPCM5zRH9O 5Eo84x6bC4TVs2xPA2ijroH2MzD+J4xpgNzd4kj9GB9oLYqZQMA1ZDrVz EaXVvJkL1T/nIGz0ha1zqzvDWWvf/aRJl8NnBLKPtP4841zOE4vaSeH8a v1mkjwcld691Hd/QPsM9FA5xX7q5/209YNBXpVvNE/Ak0yPu1FzvFwi62 WVvu1dIkjVc4Kf1+zkmN2cn4Bxlm9+uIbOdzYKnqf6/CFV4pGJi2XADfO w==; X-CSE-ConnectionGUID: 7aj2rH0ESMaOikeNKY2vOw== X-CSE-MsgGUID: xF5tUv5VR9WfS0JhHj6+6g== X-IronPort-AV: E=Sophos;i="6.08,197,1712646000"; d="asc'?scan'208";a="194084660" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 29 May 2024 01:54:56 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 29 May 2024 01:54:48 -0700 Received: from wendy (10.10.85.11) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Wed, 29 May 2024 01:54:46 -0700 Date: Wed, 29 May 2024 09:54:30 +0100 From: Conor Dooley To: Alexandre Ghiti CC: Conor Dooley , , , Andrew Jones , , Charlie Jenkins , Paul Walmsley , Palmer Dabbelt , , Samuel Holland , Pu Lehui , =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= Subject: Re: [PATCH v3 1/2] RISC-V: clarify what some RISCV_ISA* config options do Message-ID: <20240529-riveter-spectacle-e5ab2f45065f@wendy> References: <20240528-applaud-violin-facef8d9d846@spud> <20240528-varnish-status-9c22973093a0@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="ufpfARkzjihwFYJ8" Content-Disposition: inline In-Reply-To: --ufpfARkzjihwFYJ8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 29, 2024 at 10:47:40AM +0200, Alexandre Ghiti wrote: > Hi Conor, >=20 > On 28/05/2024 13:11, Conor Dooley wrote: > > From: Conor Dooley > >=20 > > During some discussion on IRC yesterday and on Pu's bpf patch [1] > > I noticed that these RISCV_ISA* Kconfig options are not really clear > > about their implications. Many of these options have no impact on what > > userspace is allowed to do, for example an application can use Zbb > > regardless of whether or not the kernel does. Change the help text to > > try and clarify whether or not an option affects just the kernel, or > > also userspace. None of these options actually control whether or not an > > extension is detected dynamically as that's done regardless of Kconfig > > options, so drop any text that implies the option is required for > > dynamic detection, rewording them as "do x when y is detected". > >=20 > > Link: https://lore.kernel.org/linux-riscv/20240328-ferocity-repose-c554= f75a676c@spud/ [1] > > Reviewed-by: Andrew Jones > > Signed-off-by: Conor Dooley > > --- > > arch/riscv/Kconfig | 36 +++++++++++++++++++----------------- > > 1 file changed, 19 insertions(+), 17 deletions(-) > >=20 > > diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig > > index b94176e25be1..3b702e6cc051 100644 > > --- a/arch/riscv/Kconfig > > +++ b/arch/riscv/Kconfig > > @@ -501,7 +501,8 @@ config RISCV_ISA_C > > help > > Adds "C" to the ISA subsets that the toolchain is allowed to emit > > when building Linux, which results in compressed instructions in t= he > > - Linux binary. > > + Linux binary. This option produces a kernel that will not run on > > + systems that do not support compressed instructions. > > If you don't know what to do here, say Y. > > @@ -511,8 +512,8 @@ config RISCV_ISA_SVNAPOT > > depends on RISCV_ALTERNATIVE > > default y > > help > > - Allow kernel to detect the Svnapot ISA-extension dynamically at boot > > - time and enable its usage. > > + Add support for the Svnapot ISA-extension in the kernel when it > > + is detected at boot. >=20 >=20 > To me, the new version makes things even more confusing: svnapot mappings > will indeed be handled by the kernel (since only the kernel sets up the p= age > tables) but it will only be used (for now) for HugeTLB mappings in > userspace. How would you suggest that I word it? "Enable the use of the Svnapot ISA-extension when it is detected at boot"? The current text implies that these options control detection of extensions (which they do not) and that is what I am looking to remove as it has caused confusion. --ufpfARkzjihwFYJ8 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZlbtRgAKCRB4tDGHoIJi 0qRDAQCWy/SRBWv+pbbkpLOchCFKbDcNZQYKkbilBF83QCBRgQEAsLJNQ3h2WnQO MVK+RXQe2Hmh41W45EEunlXhnJeWqQI= =3yN1 -----END PGP SIGNATURE----- --ufpfARkzjihwFYJ8--