Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2817218rwb; Wed, 30 Nov 2022 11:14:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf4JHjtvhoDoTVUyOikJHbtMWcim2JPLhk7PJL8Tu6xOZs3YWIaaAht9vBC/06UQsUsiTGeR X-Received: by 2002:a17:906:381:b0:78c:b8b0:9d35 with SMTP id b1-20020a170906038100b0078cb8b09d35mr45391539eja.586.1669835668467; Wed, 30 Nov 2022 11:14:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669835668; cv=none; d=google.com; s=arc-20160816; b=qod+AKINzOVt5SJB1AD6zTB2CaIQ9Ut/YjDB7iFHFjw9HJulYTUsq732Hwnen5E2r9 bu/gQ5fNxZUsXMesbEAgCcR6dDWRj4LdhAWvzDaJHpi760U4hNjVeDhIlJrUAwYyhZ5b aiM1xtCIy0a2er71nvP0qPTooCH61e4VVfH4JNAVh5zBxfu71xoRGXhOD9Dk8+kSUk8o UDR9ah25lHzjYSCk+L0o3su902K/SHzIRycDk62SPyC+a3F/WU4P8K4lTDwodt700Vf6 ZPah5OrGvIj8sJHSgBP97c9YUk1ZISfSwvaH2nJxNHi9UBkp7oXCmPiIK6PTjU1DR2gI nlww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=v98Lctn9x0zVYKxbhsDBbDXM7GJYwUR9Bqa1v6zwFQ8=; b=wKc6Tbto+TLDOETMBE2t3NoeNlHPbZ3OE29u0RcegAxp3lGru0Yi063b+5gzFP7nOC E/S4y32XAWLzNWW65cUAoT+ysPZnKprJ6vTxmpa+8i4G0xhQMFubHv9W6h16bJxBD3tv ke4gGMwH4enHiIYEUJP+LkWEgyHqPH55RfrxQGfo7x0bEXFeriZf9rCoJKgUOs1NLKUX 5dWsOTsiZP9SLzqUckchKEMuQABOPLbwO3jwJfuAJJuqh/X738GFqfjuztQbRE+JPoL+ YH7PjV5aqgItxfxko4FY8eiZwvaoizmyNOnq0TfrDZxgkxs0klhIrU7kSES8eO2L5RhK PjTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IIzaMYtx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p2-20020a170906498200b0078dcddc1b8csi1612238eju.788.2022.11.30.11.14.07; Wed, 30 Nov 2022 11:14:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IIzaMYtx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230415AbiK3Sfo (ORCPT + 83 others); Wed, 30 Nov 2022 13:35:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230364AbiK3Sf3 (ORCPT ); Wed, 30 Nov 2022 13:35:29 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2742793A48; Wed, 30 Nov 2022 10:35:28 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 71326CE1AD7; Wed, 30 Nov 2022 18:35:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E9D66C433D7; Wed, 30 Nov 2022 18:35:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669833324; bh=m9ZbOfSOhqrV9QbDkO0wnkpV571DI07sybMViITSyfA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IIzaMYtxRDjt6r5k1t1vOIEvc1oWyXA2ZqG9SdSqoF9X65WLxO/euqmX2ZRJvxWee IdwL0374yXGXYH7bU8Bn806VTOSG/Lm6w6FMITSa/xJZCM+EGtjDyM3OZHg7j16Ea2 RyE+q+P7qmQ0NWp6zWrCiRz3DFfkV5MzZeaV0K+J367lrXFwW/44ZBu2UOM6RR4zx9 KeGnVS67fVMe9b9p8GOUpKT2iZk7xhfcQHh907w5lclBeZoW+/4Q7Yk4r1rzM6k96F OIE/msMLmRpgSsjgiH+HjS8Ia85l+ZtRxOhlCv3AnZ6U/Kf+OMKGtH3O1aMU/m1J9I vC+Gm+8ahSIKA== Date: Wed, 30 Nov 2022 18:35:19 +0000 From: Conor Dooley To: Jessica Clarke Cc: Palmer Dabbelt , linux-riscv , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Albert Ou , Heiko Stuebner , Andrew Jones , Guo Ren , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] dt-bindings: riscv: fix underscore requirement for addtional standard extensions Message-ID: References: <20221130180422.1642652-1-conor@kernel.org> <20221130180422.1642652-2-conor@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 30, 2022 at 06:29:18PM +0000, Jessica Clarke wrote: > On 30 Nov 2022, at 18:04, Conor Dooley wrote: > > > > From: Conor Dooley > > > > The RISC-V ISA Manual allows for the first Additional Standard > > Extension having no leading underscore. Only if there are multiple > > Additional Standard Extensions is it needed to have an underscore. > > > > The dt-binding does not validate that a multi-letter extension is > > canonically ordered, as that'd need an even worse regex than is here, > > but it should not fail validation for valid ISA strings. > > > > Allow the first Z multi-letter extension to appear immediately prior > > after the single-letter extensions. > > > > Link: https://github.com/riscv/riscv-isa-manual/releases/tag/riscv-unpriv-pdf-from-asciidoc-15112022 # Chapter 29.5 > > Fixes: 299824e68bd0 ("dt-bindings: riscv: add new riscv,isa strings for emulators") > > Acked-by: Guo Ren > > Signed-off-by: Conor Dooley > > --- > > Documentation/devicetree/bindings/riscv/cpus.yaml | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/Documentation/devicetree/bindings/riscv/cpus.yaml b/Documentation/devicetree/bindings/riscv/cpus.yaml > > index 90a7cabf58fe..e80c967a4fa4 100644 > > --- a/Documentation/devicetree/bindings/riscv/cpus.yaml > > +++ b/Documentation/devicetree/bindings/riscv/cpus.yaml > > @@ -80,7 +80,7 @@ properties: > > insensitive, letters in the riscv,isa string must be all > > lowercase to simplify parsing. > > $ref: "/schemas/types.yaml#/definitions/string" > > - pattern: ^rv(?:64|32)imaf?d?q?c?b?v?k?h?(?:_[hsxz](?:[a-z])+)*$ > > + pattern: ^rv(?:64|32)imaf?d?q?c?b?v?k?h?(?:z(?:[a-z])+)?(?:_[hsxz](?:[a-z])+)*$ > > Isn’t it any multi-letter extension, i.e, this should be [hsxz] again? > > It certainly used to be at least; we use rv64gcxcheri... Non-standard extensions must be listed after all standard extensions. They must be separated from other multi-letter extensions by an underscore <\quote> Nope, you're right. I realised that the other day with the non-binding series that was a response to v1. I had that itching feeling that I had forgotten to do something when I was writing my changelog but could not remember what... Thanks Jess!