From patchwork Wed Feb 8 22:53:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Heiko_St=C3=BCbner?= X-Patchwork-Id: 54631 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp3739195wrn; Wed, 8 Feb 2023 15:09:50 -0800 (PST) X-Google-Smtp-Source: AK7set/QYuQ7v3VmINAxgEA0az7yBIzxtwvIaI0MAC4t5erlgXMfquBevIuq/Dz+L5L9fC016shP X-Received: by 2002:a17:906:19b:b0:8ae:a4db:ba6e with SMTP id 27-20020a170906019b00b008aea4dbba6emr3420050ejb.2.1675897790818; Wed, 08 Feb 2023 15:09:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675897790; cv=none; d=google.com; s=arc-20160816; b=e6eaFJZZTqrAtpGG9rQfukJRvBCyJ4/UWyz3h104U6yCDao2r+LCmv+iwSlGeWwYmn vtM9+TXYx4MUC49Mt4ipXb5wNK/RfHJJCmqHRuERjlxoUALZnIYIynGqyV1REwHJLO5D qUi5+zkSSlJhDS1odGzpumEbgYwMWQfgghX6WAG+5rdRxWEYRUg86EJt+EDQMunGCR/O A/482BumM/kJPxiBEOM8tLvUg/iCFIFFm8NhTlo9OD+9YrMhdCJSWIUrOnKldhH00YOP 8xqBZc0l4+vLTtWteDhJvCBStoQdoAoeSq8oICGOESQG+6tRIrvdY2noWWmDcWt0mn3N T6UQ== 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=xIvM+90yK4zLk2/83eYeUQQzP4S2alawkYNOveBGpjg=; b=GRrmiucFow8a1q0EoWA7lU0F90+RPeP+qwa/ZWXAJrT5vPPlh/sONiQo4eDUEzDyJG drCJuOp+R0TgOp6WCPFXJchRIlf6UVpb73KjIbghayvMxaA9z3v+y3fvDbVAZ96XVZ8z Tt/63jO6yPZiP9fjsDxQJa9N2KNUF/GvRYDjyGCdUnC2PRmAaoQ8OBzKvDtCvV2YLBOA oIiDBDXGvEYP3cNEqjKf+21g+vbwerjTduWU8IONeDmE7tnmJbVv+kxac092+pwwiiXN BOVjWZkqh1EMbvJUBe7MirzwQpnM9YFtDy7rlTsyQpSvXk9oanse+Cyxxe2+na3UYV/r pSFg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id eu9-20020a170907298900b008787c8674b1si146253ejc.751.2023.02.08.15.09.27; Wed, 08 Feb 2023 15:09:50 -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 S232097AbjBHWxj (ORCPT + 99 others); Wed, 8 Feb 2023 17:53:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231370AbjBHWxg (ORCPT ); Wed, 8 Feb 2023 17:53:36 -0500 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D236274A5 for ; Wed, 8 Feb 2023 14:53:33 -0800 (PST) Received: from ip5b412258.dynamic.kabel-deutschland.de ([91.65.34.88] helo=phil.lan) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pPtJi-0003OP-Nr; Wed, 08 Feb 2023 23:53:30 +0100 From: Heiko Stuebner To: palmer@rivosinc.com Cc: conor@kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, christoph.muellner@vrull.eu, ajones@ventanamicro.com, Heiko Stuebner Subject: [PATCH 1/2] RISC-V: fix ordering of Zbb extension Date: Wed, 8 Feb 2023 23:53:27 +0100 Message-Id: <20230208225328.1636017-2-heiko@sntech.de> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230208225328.1636017-1-heiko@sntech.de> References: <20230208225328.1636017-1-heiko@sntech.de> MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757306201961731366?= X-GMAIL-MSGID: =?utf-8?q?1757306201961731366?= From: Heiko Stuebner As Andrew reported, Zb* comes after Zi* according 27.11 "Subset Naming Convention" so fix the ordering accordingly. Reported-by: Andrew Jones Signed-off-by: Heiko Stuebner Reviewed-by: Conor Dooley Reviewed-by: Andrew Jones --- arch/riscv/kernel/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/kernel/cpu.c b/arch/riscv/kernel/cpu.c index 420228e219f7..8400f0cc9704 100644 --- a/arch/riscv/kernel/cpu.c +++ b/arch/riscv/kernel/cpu.c @@ -185,9 +185,9 @@ arch_initcall(riscv_cpuinfo_init); * New entries to this struct should follow the ordering rules described above. */ static struct riscv_isa_ext_data isa_ext_arr[] = { - __RISCV_ISA_EXT_DATA(zbb, RISCV_ISA_EXT_ZBB), __RISCV_ISA_EXT_DATA(zicbom, RISCV_ISA_EXT_ZICBOM), __RISCV_ISA_EXT_DATA(zihintpause, RISCV_ISA_EXT_ZIHINTPAUSE), + __RISCV_ISA_EXT_DATA(zbb, RISCV_ISA_EXT_ZBB), __RISCV_ISA_EXT_DATA(sscofpmf, RISCV_ISA_EXT_SSCOFPMF), __RISCV_ISA_EXT_DATA(sstc, RISCV_ISA_EXT_SSTC), __RISCV_ISA_EXT_DATA(svinval, RISCV_ISA_EXT_SVINVAL),