Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8968412rwb; Thu, 24 Nov 2022 06:31:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf58tddUBBiVoyXhvYByUqW3T95fxImLFLfptS3ZYsagx2+Y1+J+iblhVQwb73ph/LOSD1Cc X-Received: by 2002:a63:1607:0:b0:457:a1d3:48c3 with SMTP id w7-20020a631607000000b00457a1d348c3mr11604169pgl.465.1669300300830; Thu, 24 Nov 2022 06:31:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669300300; cv=none; d=google.com; s=arc-20160816; b=WDAkpU8eU/L5YYi+lsIudGP1242feQIn639KMc5sio9ik4rKMxltY8zmTRdRTY07Zc RgiO9Bto2hzikH6PTC7uQgPt5DQ5uSjeatv2PLPv5q0kBxxPUDdUqrw3s/Z97Oc6ipcW DZS2l/gBfkF3uge8fNUhWFI0H5rE9jouPCEqEMfr0wtWOsnffZJb9CYG5u8zldQffEXO nah9W4Uo3pUdvzSLDJwXq9YBm9YaIu1h2QxeAr0sW3y5ETBPnuTLD6uivXbNoZugN+FV NKoi9jCuQwkru4cPid4ralcfD9InTcFd+Lnly1zmyPp7lU7qpEwi6GAGOfy86TB1rX70 ev6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=dKtv7KdIS8TJElUnxySPu9eKZxrhcQi9BeOSWnW1zFA=; b=loecq1Nn5LSa2o8+0diRFn8QmpfMi0a9ZDI1THWh24NovxmI8Ggmil1uaG6cGigQvO uz5dFw1vwFtq8nTV/wIbtbC46wUMZIc8EnFo3dckBlHikKk4Jj72jGZFNmENgRY8pSiv vCzP0H98WRxQcx1zc19XxWvJ2EOgg2waojPs4PBV7MPVNiHUx6xBurXyoIriw1+gact8 7Vn9dXMBssKSJ7PGNLqsz4VIgZE4s06R26mXy2tCsItcKgxGQA9UTu1MrSSGalw/6Q7T J1ndQiPXGHlcPIzViNPJArOF6N5Z3RPascpR3OOF6/uGJGIR+DBmujf+BynxeI9d6TDM 8mag== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o3-20020a656a43000000b004772cf9ae7asi1936321pgu.283.2022.11.24.06.31.26; Thu, 24 Nov 2022 06:31:40 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230109AbiKXNmh (ORCPT + 86 others); Thu, 24 Nov 2022 08:42:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230102AbiKXNme (ORCPT ); Thu, 24 Nov 2022 08:42:34 -0500 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 659EFA189; Thu, 24 Nov 2022 05:42:31 -0800 (PST) Received: from ip5b412258.dynamic.kabel-deutschland.de ([91.65.34.88] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oyCUf-00061C-At; Thu, 24 Nov 2022 14:42:21 +0100 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: linux-riscv@lists.infradead.org, Conor Dooley Cc: Conor Dooley , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Andrew Jones , Guo Ren , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] dt-bindings: riscv: fix single letter canonical order Date: Thu, 24 Nov 2022 14:42:20 +0100 Message-ID: <7034611.lOV4Wx5bFT@diego> In-Reply-To: <20221124130440.306771-3-conor.dooley@microchip.com> References: <20221124130440.306771-1-conor.dooley@microchip.com> <20221124130440.306771-3-conor.dooley@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS, T_SPF_HELO_TEMPERROR 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 Am Donnerstag, 24. November 2022, 14:04:41 CET schrieb Conor Dooley: > I used the wikipedia table for ordering extensions when updating the > pattern here in foo. ^ foo? :-) > Unfortunately that table did not match canonical order, as defined by > the RISC-V ISA Manual, which defines extension ordering in (what is > currently) Table 41, "Standard ISA extension names". Fix things up by > re-sorting v (vector) and adding p (packed-simd) & j (dynamic > languages). The e (reduced integer) and g (general) extensions are still > intentionally left out. > > 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") > Signed-off-by: Conor Dooley So I have compared the new pattern to the isa manual, and it looks like the order checks out, so Reviewed-by: Heiko Stuebner > --- > 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 e80c967a4fa4..b7462ea2dbe4 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?(?:z(?:[a-z])+)?(?:_[hsxz](?:[a-z])+)*$ > + pattern: ^rv(?:64|32)imaf?d?q?c?b?k?j?p?v?h?(?:z(?:[a-z])+)?(?:_[hsxz](?:[a-z])+)*$ > > # RISC-V requires 'timebase-frequency' in /cpus, so disallow it here > timebase-frequency: false >