Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2718059rwb; Fri, 20 Jan 2023 06:36:40 -0800 (PST) X-Google-Smtp-Source: AMrXdXsWzVANMg58zjSEVwe5iSie68JH/ZGKEIfPVUe9Wgao/PwTV4L8JsZcZVU0eSRAWze26f+5 X-Received: by 2002:a05:6a20:8e03:b0:b8:a19f:4f6c with SMTP id y3-20020a056a208e0300b000b8a19f4f6cmr21423228pzj.62.1674225400523; Fri, 20 Jan 2023 06:36:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674225400; cv=none; d=google.com; s=arc-20160816; b=gokDzb9V/778VkGLCcQ3mIBXcMvoT6Mq+b6T4mMcoQyvEsmTiu9Vvoj/S9grTOXNT8 ICDxdLklEHSNyShXinj+PHGJawcf4iInR9eRAl1t+2BlvrmWoJCRhbuSTXJZD+Ct+/Ly Pd75LiVYpefEm+38EpQqKNk7eg7rRFI+2sUWcsL9XIxV+JjN8EKk3CZMcwdtXrsH5fht QhbDXUCl/bALD340uOOt6DLO0KyVwJp0X0OcIj8c4xnJaVAmLj6ywRCDKit0Sn6STwxU XxKUq7kYZtY0cHE3Xqz1T3e8thZfwR4r+KraJAedF5FLqgvGe/4GN/g5xmv44kyqYKOy L8Lw== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OsN59sNDd5avSmctxxYyCsAFLawX5NI/KRyrPO5ONNI=; b=oe4iwsyCbDODDy4jSQ8SnsQodROENP2AJDgidnizo8ohd14Yye1EaO8sfGjWTENfqx p+M2y4KohsLRxcKVTb9VKAx2q3gxrUVRMqQODr4mCfSh0FJSqeByGnTitIVc0djQYPwc xdvdtAqWHGh6IU4Kjn26KH7rdJ/3vX/Qgj/tjYKtRlslg9NaDBTGRD253Zis3CbJktH0 xcYH7KBxHbuYE9LYIsTX4Mkq7tVIbfSWHJjuyNou81oRKZj7kYZG3oyZIFmF7W4tSgXp t3zWHGqxUEf+QFysR8gAc51eq3bwpfFaZpXb7mJ+EWAYG0XsZGO7T3HE39MzNlJkjTk/ TWTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=eT6MtJZ7; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n1-20020a63e041000000b00477cd382329si43950983pgj.56.2023.01.20.06.36.34; Fri, 20 Jan 2023 06:36: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; dkim=pass header.i=@microchip.com header.s=mchp header.b=eT6MtJZ7; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230470AbjATOUY (ORCPT + 49 others); Fri, 20 Jan 2023 09:20:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231152AbjATOTa (ORCPT ); Fri, 20 Jan 2023 09:19:30 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2340E1EFEF; Fri, 20 Jan 2023 06:18:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1674224344; x=1705760344; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=8wOj9+QwCLtyXBCLcRQBXGg6eCl/vXY57DMzFXi9tbY=; b=eT6MtJZ78i7mb0PYUvlIZLeldnd+xq0R8qCjgQ6TfEj6U0E/2Fu2ufn8 8MhvHJhLyuHE7kCwTgl6nP0W6hkXPuFzLg/Yyif6scTjLsvLJU2+BzQQK Xco+9pCZUve+6YLMEFQK6XkE7x/NB+pETk81gjgbM/EwE36NPlRfrVNS/ tPXn8OqR0qApERsJvOSDbp/zaydbBviFqZMZfhh4b6seez9GzD65SZU1N Pxfk1s0s2+GH6CWg9epLvccgQ9reXWIzlHGvl0NJxaYA9c8IYmbXVPDET qygcCTZwgpnNuk/EcgQI2veU2OcKv0hunmDkarG6GDZKiuHDHx+074oEx g==; X-IronPort-AV: E=Sophos;i="5.97,232,1669100400"; d="asc'?scan'208";a="196710524" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 20 Jan 2023 07:17:16 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Fri, 20 Jan 2023 07:17:13 -0700 Received: from wendy (10.10.115.15) 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.16 via Frontend Transport; Fri, 20 Jan 2023 07:17:11 -0700 Date: Fri, 20 Jan 2023 14:16:48 +0000 From: Conor Dooley To: Andrew Jones CC: , Palmer Dabbelt , , , , , , , , , Heiko Stuebner Subject: Re: [PATCH v2 2/3] RISC-V: resort all extensions in consistent orders Message-ID: References: <20221205144525.2148448-1-conor.dooley@microchip.com> <20221205144525.2148448-3-conor.dooley@microchip.com> <20230120135632.vb7ncvoapnaixluu@orel> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="8B9vR+0VfvRQQXio" Content-Disposition: inline In-Reply-To: <20230120135632.vb7ncvoapnaixluu@orel> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 --8B9vR+0VfvRQQXio Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 20, 2023 at 02:56:32PM +0100, Andrew Jones wrote: > Hi Conor, >=20 > I'm digging this back up because I'm basing Zicboz on it. >=20 > If we take "riscv: improve boot time isa extensions handling", then this > becomes a bunch of manually enumerated defines >=20 > #define RISCV_ISA_EXT_SSCOFPMF 26 > #define RISCV_ISA_EXT_SVPBMT 27 > #define RISCV_ISA_EXT_ZICBOM 28 > #define RISCV_ISA_EXT_ZIHINTPAUSE 29 > #define RISCV_ISA_EXT_SSTC 30 > #define RISCV_ISA_EXT_SVINVAL 31 >=20 > Keeping those in alphabetical order would either require manually > reenumerating them or to allow the numbers to be out of order as > we add more extensions. I think I'd prefer we just add new > extensions at the bottom and keep the numbers in order. Yes. I mentioned that on one of the earlier versions of Jisheng's patchset - initially I blindly said "alphabetical please". I quickly realised that that was a really stupid idea as it is would just be an _invitiation_ for bugs if we did, since names are far more easily searchable than figuring out the max in the manual enumeration. Since Jisheng's patchset just deleted what I had resorted, I left this change as-was. Just need to make sure any comment about ordering also gets removed when the enum goes away. I'll keep an eye on for-next to make sure that it does. TL;DR I agree! Thanks, Conor. --8B9vR+0VfvRQQXio Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCY8qiUAAKCRB4tDGHoIJi 0oSKAP9zqiy1G7Sw0cg7bsoy8fmPLJPzS1bNJZ4BX4E8lRk5wAD9Enm99HDzo50d wtYphmEGxPoxpyWwxNwDASSWnlStzQk= =C1Iw -----END PGP SIGNATURE----- --8B9vR+0VfvRQQXio--