Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3151030rdg; Tue, 17 Oct 2023 06:17:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFYJ/ubdmMhWuux9cf5CCzBCwPmUAbPA6dxyjynKnvnTuOdL/ju8Or7+F7315SQq4mE8XRV X-Received: by 2002:a17:902:dac6:b0:1c9:fb76:42fe with SMTP id q6-20020a170902dac600b001c9fb7642femr2587249plx.45.1697548645203; Tue, 17 Oct 2023 06:17:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697548645; cv=none; d=google.com; s=arc-20160816; b=U0UIZVMxMD5WPoflu603lGnFBsolds3U37MV4X6di6xznEZdqQlpGJOfAul5yocBfg OCQuHh1Q7vI+y/91M7z2IcllEHhBAQAAFOF4aB9lHzPzA+Doc6igk41PcTsJte8BUxvh DGwUhl7AnWm78pkB5Fd1IfiCFKJNIAFZho0KJwEXf3AhP8NruBmJLA3zjiG7GA/gyiR2 98BpUnKn6YPHtAJZwofsH3zTjeNOVh3sjXsaxnY577tsNRNEQhRjQ/+fFPWztw0RIh/b +KjBk9WotC8ZMdVMuhCX/TE8kTTMFm67Guld9rqtrVMCc9vsCkqoozynZoZhFkeMMXUX XU8Q== 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=/AFw9z9dpP/ckJjbN9Tmyf7889lk/XiWzjzseb60llw=; fh=lvGFqwUxN+Dx1jonz8cRGrvjuKDcjMXylffmtrJGOYA=; b=nmSqT7iaOgzAPQeatd5KQOF+ScFyJONrIYHEmJuMZEvcSOuiLD9BDRzCjLiu+JkysW w9H0xNQLVKGgYVCNi4vAKcHL4t9oG+LSXXxq753hSSA8PqoUNtHeo24YIwA4SqgMq7p1 gC5PX5TD99KVzyDj6CCjDgJH4ZBwUJBofu0RViY/EMsBWDClOU/RLuRbbsltu78tu2FB njG3IBs9XkWlmpz1+0bM9JtT92xTx1ksKrHk5oEvlgzFcrAkXNwSx5KEtaSptPBqZgiC SR0Z3DnYrM3Nd/Mxq3E80HICPXZO9lBh7GLyKcorRLDNl3IYTQwpz3raxKzotbQftehC 51XQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=jHVmk0FH; 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 Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id b5-20020a170902650500b001c74f2d8980si1743178plk.160.2023.10.17.06.17.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 06:17:25 -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=jHVmk0FH; 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 8A19A80C4D87; Tue, 17 Oct 2023 06:17:19 -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 S234994AbjJQNQg (ORCPT + 99 others); Tue, 17 Oct 2023 09:16:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343862AbjJQNPz (ORCPT ); Tue, 17 Oct 2023 09:15:55 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 132C5128 for ; Tue, 17 Oct 2023 06:15:45 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-40837396b1eso511565e9.1 for ; Tue, 17 Oct 2023 06:15:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1697548544; x=1698153344; 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=/AFw9z9dpP/ckJjbN9Tmyf7889lk/XiWzjzseb60llw=; b=jHVmk0FHiIh5Oh37fKBkZvvMfEpdaVj6/WkMAW9BqKeFICa1KyRaXQgSTrJLDNgN4s yxMSMgkTskVFuI+OZZRDUiJR/QeB180RHnVi+k0NuaIeGnXza6i04PrXay+ZRo6c3wSO u/8/ZFcn3hWaVjSkvj5EjcOg7g5j/plBKLsz71rYhDEB2qIwoPi5PwZUmKJ4dowpYpCp UokGFXUl9F/iyYhSOQAzyIPcd70uMg8mq4GJ/ctR93/7NvCLaJ/+T437PntroQ71u167 8i0pBIUjTswX6qGUcsRym0zCvL4zUxqDBa/g8uHen87cULnV5U9kUH2wFtt72Q3GVW+d X5eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697548544; x=1698153344; 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=/AFw9z9dpP/ckJjbN9Tmyf7889lk/XiWzjzseb60llw=; b=wJ2QJHs+hJ0jWV9KequAMuBrV+EVynIB1xdYwleZgHRM1MmLZbpIglJSUSN20/R5Oz 2KoAXwcDRiPiVAccu+rgAVY9y4ZojnYdM0lxPS1b7EiqTUclHrf8pSzhtCHjcx6jkewP odwoim0zzs2Fml8shY16FoLD0/t5ZSV2wJqj6XZiK4qWM6G10TQU2T7iXom5Iyoyfps4 tFl4/a1XIiItDzYD9ES4XIqwqL7JyMLc47Wgig7kI/LDiZWfRPFg+N/seC/WRn4InWNQ 799iI+GF1ucuAfzRdPVi/LzC0OdnZO2/UsIinHrTSXSmeP5NzmU0XVAefY8VVNYBx1MR UhVA== X-Gm-Message-State: AOJu0Yw5OdEnmtQY5QyeuPsZnSe8U6+c63vCQaOzJ+D0TxhIthf0u7fN nPjGCSH5/IjYljEQkaBhOM4WwA== X-Received: by 2002:a05:600c:150c:b0:405:38d1:621 with SMTP id b12-20020a05600c150c00b0040538d10621mr1641979wmg.3.1697548543538; Tue, 17 Oct 2023 06:15:43 -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.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 06:15:42 -0700 (PDT) From: =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= To: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Cc: =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= , Palmer Dabbelt , Paul Walmsley , Rob Herring , Krzysztof Kozlowski , Albert Ou , Jonathan Corbet , Andrew Jones , Evan Green , Conor Dooley , Samuel Ortiz Subject: [PATCH v2 17/19] riscv: add ISA extension parsing for Zfa Date: Tue, 17 Oct 2023 15:14:54 +0200 Message-ID: <20231017131456.2053396-18-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: 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:19 -0700 (PDT) Add parsing for Zfa ISA extension [1] which were ratified in commit 056b6ff467c7 ("Zfa is ratified") of riscv-isa-manual[2]. Link: https://drive.google.com/file/d/1VT6QIggpb59-8QRV266dEE4T8FZTxGq4/view [1] Link: https://github.com/riscv/riscv-isa-manual/commits/056b6ff467c7 [2] Signed-off-by: Clément Léger --- arch/riscv/include/asm/hwcap.h | 1 + arch/riscv/kernel/cpufeature.c | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/riscv/include/asm/hwcap.h b/arch/riscv/include/asm/hwcap.h index d9fb782f198d..8f324c646a73 100644 --- a/arch/riscv/include/asm/hwcap.h +++ b/arch/riscv/include/asm/hwcap.h @@ -84,6 +84,7 @@ #define RISCV_ISA_EXT_ZIHINTNTL 66 #define RISCV_ISA_EXT_ZVFH 67 #define RISCV_ISA_EXT_ZVFHMIN 68 +#define RISCV_ISA_EXT_ZFA 69 #define RISCV_ISA_EXT_MAX 128 diff --git a/arch/riscv/kernel/cpufeature.c b/arch/riscv/kernel/cpufeature.c index c70885f5014b..296cc0025734 100644 --- a/arch/riscv/kernel/cpufeature.c +++ b/arch/riscv/kernel/cpufeature.c @@ -245,6 +245,7 @@ const struct riscv_isa_ext_data riscv_isa_ext[] = { __RISCV_ISA_EXT_DATA(zihintntl, RISCV_ISA_EXT_ZIHINTNTL), __RISCV_ISA_EXT_DATA(zihintpause, RISCV_ISA_EXT_ZIHINTPAUSE), __RISCV_ISA_EXT_DATA(zihpm, RISCV_ISA_EXT_ZIHPM), + __RISCV_ISA_EXT_DATA(zfa, RISCV_ISA_EXT_ZFA), __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), -- 2.42.0