Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp503462lqb; Wed, 29 May 2024 02:08:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX1midpZLrIMVBpoyqevjkKFGjxLUNnJsGytgsS8qoI55HcOKr1a0fgoO/5b2hxarTLFDd9syFUo804zKOJKkpW8wTwqKesUzDx7UlWMg== X-Google-Smtp-Source: AGHT+IEjiBz6FSrh8iJJgvZN8ZveiY6an3+jiLxvE3dgIexZVqk1TCZBWQjHbh55ea71mH1ZN8df X-Received: by 2002:a50:f60b:0:b0:578:610d:b889 with SMTP id 4fb4d7f45d1cf-578610db9f0mr9028056a12.24.1716973710567; Wed, 29 May 2024 02:08:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716973710; cv=pass; d=google.com; s=arc-20160816; b=SIy3cyVHAdzhsc2zZ+0VcMuKHdNhxiorn+cPNA7RLVCjDYfiOsbLDPC6A+rqI4Ocbf Au2fzpbtuJOKRrVHC1OylwN1QN0Rx1XZW4eiaYCv1nbIryVff23ZWg0Vo7NbwndZlOxc YQmngju112xT+Xx6sRvBRmPj3hOYn/eyg4GckLQ2hEK9WGvHuQgsljOAZT6b5FWZ9gGl VEmX8Vch21AogRmsmGQ8E6pcvV+dUrwX4kEZCsVePqRLrauOJWLS0LLmbTctElt6LUqr in6QdOKqI3bLLd3UoE460fPzwrCBEw9vcDRSaBRlVV1GUhEB0zHuS3QETQKsuT3t9a6R /fPQ== 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:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=J4C5zWkOsBuBG2QKz1Gc+P605t9lpnuFsrg0CXDmzwo=; fh=AblCxpFak6qIRMkfTPchsw1Qjbbg6x4MVGLl+FNzPIg=; b=PykYPDfUFrCqS3K5/rwD+a9pHQZsLHM/9W7xenOmRiAtv0UJugAZr7PuOzSDd5IIJA BRR0/V2iBSdDqMGSi1kvPn0HtLtY76TpKX6NWjAjage+D5BUYx/Rs9pd8fL3iyd1YkWz M7+K3G/z8ul1ouZkunfXU3MSBAruGMt0JLVD6YFMSlvSDyOAVbWpW1kjGQAnFbYOYRtw FI+ydE2YFPSOhA+M2t+mMaq6VNVuGz62ibIUFv9enzeObHaIM/8BdnLanjfGZDWP1s7H kXiyDaXk8BvlaaWhRc7XTfu+CnkKM01/LKSBDnLEJmaLfKdxJXNvBLAGIG8ePp8jJfV1 /6XA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=ghiti.fr); spf=pass (google.com: domain of linux-kernel+bounces-193815-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193815-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57868a3f934si4892556a12.659.2024.05.29.02.08.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 02:08:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193815-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=ghiti.fr); spf=pass (google.com: domain of linux-kernel+bounces-193815-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193815-linux.lists.archive=gmail.com@vger.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4C6371F22C36 for ; Wed, 29 May 2024 09:08:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 916C5169363; Wed, 29 May 2024 09:08:24 +0000 (UTC) Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) (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 594E81E888 for ; Wed, 29 May 2024 09:08:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716973704; cv=none; b=YDYCzsJDI+yS9LvBJnsfpnqe4/aA1ldHqQbB9Q0xk7byi5PU+L/6nCnQLolAhIvObLeg+rPYksUYNfej+tw9NU90y1wk/o7WIlTfezjm4u5pbamt+4MEB+xI3IhMPN70IhCdnIMizYXoh9SR5uaJYKQZeCKHBijwgLQVrRo532I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716973704; c=relaxed/simple; bh=ytzmCHDBAof2zTjniBViAI+SAOG4tzv4iEyEBrfYGKo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=AUbzHTgwqSgVuf7IQIie2FqNpKWMOpCUzbG/XaaVH3WGo+BRw3uNRanlz7/JRdMZswkIaui8ZFlEC5qvWgoCnGEEWkwRft5t4uzgNrWXKI3bHZUScBzMQLPG4ip5ua0IzF7BFK2RBX9Gm3CzkDQBtt2UPyZ1IrSYnwFSipF9Ur8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ghiti.fr; spf=pass smtp.mailfrom=ghiti.fr; arc=none smtp.client-ip=217.70.183.198 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ghiti.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ghiti.fr Received: by mail.gandi.net (Postfix) with ESMTPSA id 44A37C0009; Wed, 29 May 2024 09:08:15 +0000 (UTC) Message-ID: Date: Wed, 29 May 2024 11:08:15 +0200 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 v3 1/2] RISC-V: clarify what some RISCV_ISA* config options do Content-Language: en-US To: Conor Dooley Cc: Conor Dooley , linux-riscv@lists.infradead.org, xiao.w.wang@intel.com, Andrew Jones , pulehui@huawei.com, Charlie Jenkins , Paul Walmsley , Palmer Dabbelt , linux-kernel@vger.kernel.org, Samuel Holland , Pu Lehui , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= References: <20240528-applaud-violin-facef8d9d846@spud> <20240528-varnish-status-9c22973093a0@spud> <20240529-riveter-spectacle-e5ab2f45065f@wendy> From: Alexandre Ghiti In-Reply-To: <20240529-riveter-spectacle-e5ab2f45065f@wendy> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-GND-Sasl: alex@ghiti.fr On 29/05/2024 10:54, Conor Dooley wrote: > On Wed, May 29, 2024 at 10:47:40AM +0200, Alexandre Ghiti wrote: >> Hi Conor, >> >> On 28/05/2024 13:11, Conor Dooley wrote: >>> From: Conor Dooley >>> >>> 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". >>> >>> Link: https://lore.kernel.org/linux-riscv/20240328-ferocity-repose-c554f75a676c@spud/ [1] >>> Reviewed-by: Andrew Jones >>> Signed-off-by: Conor Dooley >>> --- >>> arch/riscv/Kconfig | 36 +++++++++++++++++++----------------- >>> 1 file changed, 19 insertions(+), 17 deletions(-) >>> >>> 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 the >>> - 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. >> >> 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 page >> 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. Ok, I see what you mean. Your above suggestion looks great then :) Thanks, Alex > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv