Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3156003rwb; Wed, 30 Nov 2022 16:25:30 -0800 (PST) X-Google-Smtp-Source: AA0mqf6OEe0JArj4+rriSo6frHwHZdTDpNuz3bpnvmDedF3mQ29P7/BtX77nBLq0bI6kJt4gUvCX X-Received: by 2002:a17:906:6d59:b0:7c0:aef1:1d93 with SMTP id a25-20020a1709066d5900b007c0aef11d93mr489869ejt.204.1669854329883; Wed, 30 Nov 2022 16:25:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669854329; cv=none; d=google.com; s=arc-20160816; b=iJIGWmuL7EXnlvIQIOf+FEPSZEWKNrDkAyXtja7DtVhVv6gqiecmjHvY+gsgk1yxV9 oxzTHvFzJ9zY9Jky2qC2tdg64RhvxQHL3nbh1IJ3CRfBqC58qDTDriFXs2eZoZh3Zomd CSWb0fhrbXcPz0BYW9+szrebgp2jqV0q1MGAU8A4d6uM0r2IC04ZO/Gmww8drYAoHtGb pZF+h2uOumWEnluTvUA7A93AScYH+v1LoRmI4546lfT6CAs6yPDucGjEJXDu8dGhk7fN yMu6Uiwy+0528tUttBcGpKKTbGrbbLW7BxtRNZ0T/CjWBttAIdcoZQuuGqNH1kJ1i0WO s/Ig== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=nV/SAo4jPz6C0xV1fSf4lx7c5L7TQPNTGvFkF8L5WwA=; b=FAPw2k/ag3gQgwc+7sCq3NE4iFapHDXjn8EWu541igG/T3uYax9LxWkzMYCt9Dgs5w AXsNgGlRcn79sKUekUd/OJZhwcj1MlxXyw4j0ZgbjVqdgm4SBQS6A8XpeeIgATGTvg8F g1tPBMByo/8p6S7eJosURQLZpa61yMbtGYFNMh5XkRJ2Dg1hI50Xo1Om6CVmc/r0qBoe RqZIbOnPgYZCEHcDvPzVITiTJ0V+zRxecvZuxzhgh0OGQJPpGgkrtiAaHugwhvDl7V32 ohe0yURQO9/GAeYGeG7jHXvzFDPrODBgavI94FGQVNe1h+APaEW4KAE/XAAgMIizsGQ0 1rPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nGGP8Alv; 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 z9-20020a05640235c900b004680dcb8900si2682600edc.213.2022.11.30.16.25.10; Wed, 30 Nov 2022 16:25:29 -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=nGGP8Alv; 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 S229818AbiK3XmD (ORCPT + 83 others); Wed, 30 Nov 2022 18:42:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229744AbiK3XmC (ORCPT ); Wed, 30 Nov 2022 18:42:02 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31AE24B761; Wed, 30 Nov 2022 15:41:59 -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 ams.source.kernel.org (Postfix) with ESMTPS id C08EDB81D75; Wed, 30 Nov 2022 23:41:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11DB1C433D7; Wed, 30 Nov 2022 23:41:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669851716; bh=eiDyEPrPFONwuiVxz0Bl5Re71qAslT/jb7BX8jhuC4E=; h=From:To:Cc:Subject:Date:From; b=nGGP8AlviNIGy6DUe4KSoJIk14WQ0lGfsC7QD87q7uSkk74mPS/lE72vj/72ZRYfV YT+6/KwXJ9HmJkBWyfBIcorfnPPGneT0mvB6CwzpkaIx98QGjsAvMU2ODOaOHHTghB bomhVG8ZIwQMpqE9rGROXa44Lcgxv/jnEB6bHywQw9lHO77qSvIjO/+/kI2fj6SgLk ZTufMqnY3Ubw7X6uZNVjRvXYEouyllsZlKb/irw2lpvVnE2LMuQ2EYZ9SwG48vDcek v8GUxsC2JMuh+IEVGwYHlsfizOdfcO6R38/bQjmXAyF6DQFxWQkIAR/8rnr68c3p1X wM2iVPWXxOT+w== From: Conor Dooley To: Palmer Dabbelt , linux-riscv@lists.infradead.org Cc: Conor Dooley , ajones@ventanamicro.com, aou@eecs.berkeley.edu, conor@kernel.org, corbet@lwn.net, guoren@kernel.org, heiko@sntech.de, paul.walmsley@sifive.com, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: [PATCH v1 0/3] Putting some basic order on isa extension lists Date: Wed, 30 Nov 2022 23:41:23 +0000 Message-Id: <20221130234125.2722364-1-conor@kernel.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 From: Conor Dooley I don't know for sure that I have not re-ordered something that is sacrosanct. It seems that all of these are internal use structs, and should be okay, barring the obvious exception of the, intentionally re-ordered, isa_ext_arr. With that caveat out of the way - all I did here was try to make things consistent so that it'd be easier to point patch submitters at a "do this order please". I never know which of these can be moved without breaking stuff - but they all seem to be internal use stuff since they're not in uapi? For v2, I added another path with some uapi docs & switched to Drew's suggested ordering of alphabetically, except in the /proc/cpuinfo array, as per the discussion today in the pw-sync call. I also added a sprinkling of comments around which things should be sorted in which way. I guess consider this an RFS, with the S being Screaming in the case of me doing something you abhor :) Thanks, Conor. CC: ajones@ventanamicro.com CC: aou@eecs.berkeley.edu CC: conor@kernel.org CC: conor.dooley@microchip.com CC: corbet@lwn.net CC: guoren@kernel.org CC: heiko@sntech.de CC: palmer@dabbelt.com CC: paul.walmsley@sifive.com CC: linux-kernel@vger.kernel.org CC: linux-riscv@lists.infradead.org CC: linux-doc@vger.kernel.org Conor Dooley (3): RISC-V: clarify ISA string ordering rules in cpu.c RISC-V: resort all extensions in consistent orders Documentation: riscv: add a section about ISA string ordering in /proc/cpuinfo Documentation/riscv/uabi.rst | 42 +++++++++++++++++++++++++++ arch/riscv/include/asm/hwcap.h | 12 ++++---- arch/riscv/kernel/cpu.c | 53 ++++++++++++++++++++++++---------- arch/riscv/kernel/cpufeature.c | 6 ++-- 4 files changed, 91 insertions(+), 22 deletions(-) -- 2.38.1