Message ID | 20231114141256.126749-10-cleger@rivosinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp1889397vqg; Tue, 14 Nov 2023 06:14:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IFVsGRbHfOMRMWdJgJ7lmImW40tmcqxJAyiOCS7EyvpS/Mlci6uB7KFyane/1pM85fwwjsD X-Received: by 2002:a05:6808:1482:b0:3b6:cae4:63b6 with SMTP id e2-20020a056808148200b003b6cae463b6mr12772856oiw.44.1699971253125; Tue, 14 Nov 2023 06:14:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699971252; cv=none; d=google.com; s=arc-20160816; b=dNKcLbgRFuAi2oxN2V8esA1fsSd7FtMy1EhbM453fsS9BqHLdro9DPdGXkJBluBiXJ IZI3rKO1cmQnC5OrSHrYvgFZVT/XhUeAoVsxYBCIbVDXh7wEvWq5UY1sjQSCYhZFtD2/ 09q7lzZ7FT/MpTuzxT8uNE8CVgPD7nr7+I0o9x/FcikR1Ehqlz27nehL3dcIXRfq9BYK pc7MoXqUjnK0FwkZe3QRq2gR6oPu+85cO2zcanNVHel93T3cgG64WgQAXyw7Ssu/I9o8 WyLgkrggW6jZ1KmQNjHELL9HPnqY3Uell44o4xlnLuU9cmLcsuay4JfX9NFHh2RBmdwP grtw== 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=R1n1l7La6nGZIqWqCT5nqMrjtDpsd0w2BPU1/F2EaPQ=; fh=fL+bVAQlkNPxUacOFaQ2MOsckJp5zEG7p4hgbp/lFuw=; b=xKdecX+uU3SuwgWphA6mRcz5XdT9TxA5cnntujUU5NxLpTiLNS9YLSr4lZIRhaYmrx DpKUxzlVdUNLsXbXjy7ED9q2049m9afJ5uE+tLpbFjidbyWAnE98+mXSmSlkBO0gH1VD 3t+IX57hhaqaXvt+wDdNauNaPAWxgcq3vCgGxJn3WTiP+tK/tTsfpdjJacI9EMONY8Y0 jkXKONdW60em5xmaC1H5YvwIV702SOAaCwUo7ReGZt9dW5u98h7+HUfuKWVryI5F6KnK XzZMAcQJ0QmC1YpVxTk+k8q5qxGMHC5/w5ucaCgMe6DhkiuCTGEgq2RyiVoyQ/QW24fi ZIBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=qdk9B3tC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id o38-20020a635d66000000b005b958401e4fsi8243061pgm.418.2023.11.14.06.14.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Nov 2023 06:14:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=qdk9B3tC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 545D980FDDE2; Tue, 14 Nov 2023 06:14:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233497AbjKNOOC (ORCPT <rfc822;lhua1029@gmail.com> + 29 others); Tue, 14 Nov 2023 09:14:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233394AbjKNONx (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 14 Nov 2023 09:13:53 -0500 Received: from mail-qk1-x72d.google.com (mail-qk1-x72d.google.com [IPv6:2607:f8b0:4864:20::72d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46B37D6C for <linux-kernel@vger.kernel.org>; Tue, 14 Nov 2023 06:13:45 -0800 (PST) Received: by mail-qk1-x72d.google.com with SMTP id af79cd13be357-778a25cad6dso14500885a.0 for <linux-kernel@vger.kernel.org>; Tue, 14 Nov 2023 06:13:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1699971224; x=1700576024; 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=R1n1l7La6nGZIqWqCT5nqMrjtDpsd0w2BPU1/F2EaPQ=; b=qdk9B3tCvRVp5HJczA2iqiVAC84HCdZDdYELhYBDImasDjTQJl8y3/p1R5twMAqDeH ncF5tnIXr3HWAA9yV+LGlM8uWVLNR1H5mR0E7xQYvM9v8s0boHsOYTecTd82Fa90Un6c 9SCsUesIFhXtmd8U9Al1y3JA0uLGkJLEMLMJIvgQ24AUgT5+5kcNoBxfOnIkfME8fIK2 mwAWoO8SEciFxjl7nEUXc2zjDk3T4+mmqiJbD+pMq2NVSbSjKpY9ag7LiK1Gi/vXxZCo jj1g6ME/c99lPmj8Ru6z/kykndgSXMk2YhgUwRiLxHBAV0fQfmgT9m/IkxRarzVD8cLv bmug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699971224; x=1700576024; 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=R1n1l7La6nGZIqWqCT5nqMrjtDpsd0w2BPU1/F2EaPQ=; b=aQsuUs4BqI/7OYFLjzNLhurPWfScoJzjvhVPp0PyaeLmI/m6Nh2vtQb74Rfb67ziRP flDYC/sM1QrD6e6loN6yg39Ut0qMHvx8iJ+v4R8LFlM02p58VQ/fH2hDUgWazGIiwpn0 Izb0/cEBST+c955Nw3T0c6idJWhcRHJUc+jj0oh0peif/+CUvACRxfzeCy/cljUqcGtX KBcKWsVjeONQyt1cCIMTWVtmsQMCovYwFfBHDrCGnZyJyUCnf2j5trV/5c7UC4EA0S8G wUnqBiC9flQ/P1EB5ca/3oBVuMmSIvoIBJ4QWE6sY0BLy5U2uv0gRRDzvS1baxPgnSBw dS8Q== X-Gm-Message-State: AOJu0YzM65znaXBYwtVc8VYUWF8KTQsO3qdjUy8HAPEZAbKr8nrVCDAK PitQJoThlzASdjZLX88UEmkSJw== X-Received: by 2002:a05:620a:1a03:b0:76f:1614:577d with SMTP id bk3-20020a05620a1a0300b0076f1614577dmr2495334qkb.4.1699971224044; Tue, 14 Nov 2023 06:13:44 -0800 (PST) Received: from carbon-x1.. ([12.186.190.2]) by smtp.gmail.com with ESMTPSA id m2-20020a05620a220200b00777611164c5sm2701263qkh.106.2023.11.14.06.13.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Nov 2023 06:13:43 -0800 (PST) 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>, Jerry Shih <jerry.shih@sifive.com> Subject: [PATCH v4 09/20] riscv: add ISA extension parsing for Zfh/Zfh[min] Date: Tue, 14 Nov 2023 09:12:45 -0500 Message-ID: <20231114141256.126749-10-cleger@rivosinc.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231114141256.126749-1-cleger@rivosinc.com> References: <20231114141256.126749-1-cleger@rivosinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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: <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 (snail.vger.email [0.0.0.0]); Tue, 14 Nov 2023 06:14:11 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782549055943448858 X-GMAIL-MSGID: 1782549055943448858 |
Series |
riscv: report more ISA extensions through hwprobe
|
|
Commit Message
Clément Léger
Nov. 14, 2023, 2:12 p.m. UTC
Add parsing for Zfh[min] ISA extensions[1]. Link: https://drive.google.com/file/d/1z3tQQLm5ALsAD77PM0l0CHnapxWCeVzP/view [1] Signed-off-by: Clément Léger <cleger@rivosinc.com> Reviewed-by: Evan Green <evan@rivosinc.com> --- arch/riscv/include/asm/hwcap.h | 2 ++ arch/riscv/kernel/cpufeature.c | 2 ++ 2 files changed, 4 insertions(+)
diff --git a/arch/riscv/include/asm/hwcap.h b/arch/riscv/include/asm/hwcap.h index 477254668d82..6a6ee93a3c9a 100644 --- a/arch/riscv/include/asm/hwcap.h +++ b/arch/riscv/include/asm/hwcap.h @@ -78,6 +78,8 @@ #define RISCV_ISA_EXT_ZVKSED 63 #define RISCV_ISA_EXT_ZVKSH 64 #define RISCV_ISA_EXT_ZVKT 65 +#define RISCV_ISA_EXT_ZFH 66 +#define RISCV_ISA_EXT_ZFHMIN 67 #define RISCV_ISA_EXT_MAX 128 #define RISCV_ISA_EXT_INVALID U32_MAX diff --git a/arch/riscv/kernel/cpufeature.c b/arch/riscv/kernel/cpufeature.c index c4d0f16c29b9..7182cf278b1c 100644 --- a/arch/riscv/kernel/cpufeature.c +++ b/arch/riscv/kernel/cpufeature.c @@ -258,6 +258,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),