Message ID | 20231017131456.2053396-9-cleger@rivosinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp4127210vqb; Tue, 17 Oct 2023 06:17:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGr0IK6pjGcCBfad6eV6Gpwyuw5kSjZZqlE1mkox8ITS8XWLj957Y4kdriyU+0sTj3bix8o X-Received: by 2002:a05:6a21:8cc5:b0:14e:2c56:7b02 with SMTP id ta5-20020a056a218cc500b0014e2c567b02mr1899428pzb.0.1697548631247; Tue, 17 Oct 2023 06:17:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697548631; cv=none; d=google.com; s=arc-20160816; b=dUUi/B3iMxmPriNuF9N1Du3LJokGNOknKtZJmOTUVzuyN0nsf6tGDiYxxTMlxYDj0u ZbvjQyxlmex9t30wEYx9q05JvKRroFsx/pDPxDpAclvyZEOonGlojHTFg02j9qR68zCt Fqu9bQCcRRKJhppHW9xc3RiTm21Pv5nW7MUGOQz4yOYwErYvPPcVZnCTOHIGWedXEvr5 0KfGLFi7qE21GndMexSnm09IzrGGhL8t30mYfZ3U5u+HTNOLbHK8cMhTyc3jbnxRTnTK 3HIEjhsjUoYNXghWRfn29T5+NZvVc9SkqfO6yEBbneWpp8gL/RKWpc3AYO/8HXwaZUy0 iQ9Q== 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 :dkim-signature; bh=bR5zOKPIIXQcPWK7Zwi8IMehempNxAt19rgFARaEstc=; fh=lvGFqwUxN+Dx1jonz8cRGrvjuKDcjMXylffmtrJGOYA=; b=m2j3WiCeoM53mhLjF1jMG0SczoIBvO9jxjnJ0HR+V8Zg3wnhwI1GXP0Dv8S2YhOIWA 99054VVb0rY1WeQuQIQsW4XXUmkMEkjlGHKbtcpYGCwj2mZIEgEPEaA9P2r47tg3oIuK OQ8ieR0LqSDJdV57XVJcxrZOLUkHsAnaY/NxldaQjgPCTsf0IVOgibj/f7fIhz5L8Asz pKE9HB50lr5mT6tnrDfaAqyVoBrsMYBJzj1XR6t4SKLrZgsSd1AYy8nAkI7HIPF/mtUr +nMYP9+RwvXvOgvi7lh3IOEQhoCpLCPSBdThPNj2zRlX/s0y0RwsRSc/y7f7wrhBA821 wIMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=GteNGw0R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id j5-20020a17090aeb0500b0026822221502si1641787pjz.163.2023.10.17.06.17.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 06:17:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=GteNGw0R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 6EFEC80C4D83; Tue, 17 Oct 2023 06:17:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343906AbjJQNQF (ORCPT <rfc822;hjfbswb@gmail.com> + 19 others); Tue, 17 Oct 2023 09:16:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343827AbjJQNPh (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 17 Oct 2023 09:15:37 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39FF7F7 for <linux-kernel@vger.kernel.org>; Tue, 17 Oct 2023 06:15:36 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-4053e6e8ca7so18306115e9.1 for <linux-kernel@vger.kernel.org>; Tue, 17 Oct 2023 06:15:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1697548534; x=1698153334; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bR5zOKPIIXQcPWK7Zwi8IMehempNxAt19rgFARaEstc=; b=GteNGw0RyWD1HuywyBU6lGdXgWwjSMmPz29vOwc5ZrGHlIXHkjILVC4xB2YK0ClVvk lisCpEVBhIBS9usDRQI4TYmIKjfIp7nJTp91u01Ign+hpxpgxcJrTHfshw1jRQ8MAxPL NTL2eV7XIqX7rZJS4Jm23Uer25LMLMBQsIiqqvOOqdSnVFB4TdtUETT7TI2hOAqlGzkm MwWR5/Rzuw2Wnq5i+z303MLPuibrZ5LVyRBbJlYh/PyHOwVk9Pi/NEenW2RQ4Af/t8hI diinzbTnqdxI7pz3KtcaRXr3/d4BkOx1qQzZ8TIfF/5SqkIuos21CpcRYxwaNB4x7HW5 jV+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697548534; x=1698153334; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bR5zOKPIIXQcPWK7Zwi8IMehempNxAt19rgFARaEstc=; b=Dsevra3yd0oVyMk5otdboJdxpv3AjQyMm5tiw68zmRYWz9d3yiNhdChdxib/d3OqbY ekcqe+D0RLlRmqQPuX+07qyqtgBkSC+aBK9WXhCOhF5mqDlniFPZAh/kJj8rTOlYnNAa ssRn5atCBL8eL0a/EgnNmK95mG9KyNi5f49UigUCT9uCSNt7+m0T7iOzmhjekqSusBmz jRw3KUiLlqIwLQX8MwDW0cUSG+87RSyi6x5y358tpVrCygEyNkdoGjZyfQpzPFBHxS8M IGzmR46tLWpY+0I3k28UCy5r8JBQM2i0eejbN/13eOucDC4Pi1iuzw/Lla+EbS+QDM3K M9Ig== X-Gm-Message-State: AOJu0Yy+LZnb5SlgepEGtEQjL6KvvtKChkdG+fEd3jSpiJYyadmVuX1h 20WHKxww/Trj2d3PjSBV3+POIw== X-Received: by 2002:a05:600c:2145:b0:406:513d:738f with SMTP id v5-20020a05600c214500b00406513d738fmr1640332wml.2.1697548534165; Tue, 17 Oct 2023 06:15:34 -0700 (PDT) Received: from carbon-x1.. ([2a01:e0a:999:a3a0:96:820c:ecf7:a817]) by smtp.gmail.com with ESMTPSA id fj7-20020a05600c0c8700b0040772138bb7sm9873393wmb.2.2023.10.17.06.15.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 06:15:33 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= <cleger@rivosinc.com> To: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Cc: =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= <cleger@rivosinc.com>, Palmer Dabbelt <palmer@rivosinc.com>, Paul Walmsley <paul.walmsley@sifive.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Albert Ou <aou@eecs.berkeley.edu>, Jonathan Corbet <corbet@lwn.net>, Andrew Jones <ajones@ventanamicro.com>, Evan Green <evan@rivosinc.com>, Conor Dooley <conor@kernel.org>, Samuel Ortiz <sameo@rivosinc.com> Subject: [PATCH v2 08/19] riscv: add ISA extension parsing for Zfh/Zfhmin Date: Tue, 17 Oct 2023 15:14:45 +0200 Message-ID: <20231017131456.2053396-9-cleger@rivosinc.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231017131456.2053396-1-cleger@rivosinc.com> References: <20231017131456.2053396-1-cleger@rivosinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 17 Oct 2023 06:17:04 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780008753412913203 X-GMAIL-MSGID: 1780008753412913203 |
Series |
riscv: report more ISA extensions through hwprobe
|
|
Commit Message
Clément Léger
Oct. 17, 2023, 1:14 p.m. UTC
Add parsing for Zvfh/Zfhmin ISA extensions[1].
Link: https://drive.google.com/file/d/1z3tQQLm5ALsAD77PM0l0CHnapxWCeVzP/view [1]
Signed-off-by: Clément Léger <cleger@rivosinc.com>
---
arch/riscv/include/asm/hwcap.h | 4 +++-
arch/riscv/kernel/cpufeature.c | 2 ++
2 files changed, 5 insertions(+), 1 deletion(-)
Comments
On Tue, Oct 17, 2023 at 6:15 AM Clément Léger <cleger@rivosinc.com> wrote: > > Add parsing for Zvfh/Zfhmin ISA extensions[1]. Typo: s/Zvfh/Zfh/. Other than that: Reviewed-by: Evan Green <evan@rivosinc.com>
diff --git a/arch/riscv/include/asm/hwcap.h b/arch/riscv/include/asm/hwcap.h index a2fac23b0cc0..bead05cb0df2 100644 --- a/arch/riscv/include/asm/hwcap.h +++ b/arch/riscv/include/asm/hwcap.h @@ -79,8 +79,10 @@ #define RISCV_ISA_EXT_ZVKSED 61 #define RISCV_ISA_EXT_ZVKSH 62 #define RISCV_ISA_EXT_ZVKT 63 +#define RISCV_ISA_EXT_ZFH 64 +#define RISCV_ISA_EXT_ZFHMIN 65 -#define RISCV_ISA_EXT_MAX 64 +#define RISCV_ISA_EXT_MAX 128 #ifdef CONFIG_RISCV_M_MODE #define RISCV_ISA_EXT_SxAIA RISCV_ISA_EXT_SMAIA diff --git a/arch/riscv/kernel/cpufeature.c b/arch/riscv/kernel/cpufeature.c index 8cf0b8b442ae..68914b5e2df9 100644 --- a/arch/riscv/kernel/cpufeature.c +++ b/arch/riscv/kernel/cpufeature.c @@ -244,6 +244,8 @@ const struct riscv_isa_ext_data riscv_isa_ext[] = { __RISCV_ISA_EXT_DATA(zifencei, RISCV_ISA_EXT_ZIFENCEI), __RISCV_ISA_EXT_DATA(zihintpause, RISCV_ISA_EXT_ZIHINTPAUSE), __RISCV_ISA_EXT_DATA(zihpm, RISCV_ISA_EXT_ZIHPM), + __RISCV_ISA_EXT_DATA(zfh, RISCV_ISA_EXT_ZFH), + __RISCV_ISA_EXT_DATA(zfhmin, RISCV_ISA_EXT_ZFHMIN), __RISCV_ISA_EXT_DATA(zba, RISCV_ISA_EXT_ZBA), __RISCV_ISA_EXT_DATA(zbb, RISCV_ISA_EXT_ZBB), __RISCV_ISA_EXT_DATA(zbc, RISCV_ISA_EXT_ZBC),