Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3516541rdg; Tue, 17 Oct 2023 18:45:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEAg43ZZC8YjD+lj8LnRTpOaYND2UbZbTrh70OPkmqY2u6AXd1OdYO0h5k6Z5N0sj55EHJ5 X-Received: by 2002:a05:6a21:789b:b0:138:68b9:138e with SMTP id bf27-20020a056a21789b00b0013868b9138emr5481561pzc.8.1697593556944; Tue, 17 Oct 2023 18:45:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697593556; cv=none; d=google.com; s=arc-20160816; b=EGxZ/+oeYxRP3voZSVGO+RhOppd3p+8136VfGZzvW+2wcn+GbqGRgy+fCnzYsOHICT BfnrvaXLFogZeHHsF+MQ6C5dZAm5TDxBeNa0fdlkdg4pdQg27CGms/VN8En38iZTPChX iCoZ0cKDNfsAWORMScTLvdgvw4xL9ASztpxIyQSa1BdIUmRikBkNWUHNaXCZbCEIVmmL 4MjYgtwCNFU4rwmagQy/rqOdJ+Aluq9vgwEkP3A0wdclW7cuxEjoCx7ov8l4VmmcK9cx Wb/k7F1mbNNNi6u5q2kzXQcun4Q0Q4Yn/mrB2oeUJfdPFhdhAvXAjteEp2PM2DPVsdY1 pP0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:reply-to:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=IIoyMcQHZ0Qpe7BKvINLbeGCoM4NhndfXHONk8A0DuA=; fh=9GWDrXnfJMt1w9EnQqO/tJR+LHqcKVoSUgBypoOknYs=; b=n1aSYRghHwZpoSLDTudlf6JE80rEHuTGgMT0z7WFU/YgtxWkZDyYxT60uuRWxur0ci dNMJWnACZwHyBH460z4Qg6DU76/jOhPXexW6qVKFTk2Kn0VyBQkLHpa+wlHoERzAmj7X +uYjTpls8DpRa6fzVC37C1LdyL8NZEWUww517s+Bv2jcNroLQ5bRQHFZ8XGzHf6EQITs E850igIlJeo8wy1dRkw9+CU4bBseFvmzWy9+ON1dqB9SYBDlSltIz32V4lgivdFFIaeo c4i35J9m+J3EaZqxksiyJyThVuS/PmW3TMxj6GfvcmVPvBxu2xORtdBksPmXKtIREL9y j+Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b="ff/gZ9bw"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id g5-20020a63b145000000b0056476f15584si1065065pgp.541.2023.10.17.18.45.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 18:45:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b="ff/gZ9bw"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 646BF80ACCC6; Tue, 17 Oct 2023 18:45:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229460AbjJRBpk (ORCPT + 99 others); Tue, 17 Oct 2023 21:45:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbjJRBpj (ORCPT ); Tue, 17 Oct 2023 21:45:39 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40793F7 for ; Tue, 17 Oct 2023 18:45:37 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1c9daca2b85so47899955ad.1 for ; Tue, 17 Oct 2023 18:45:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1697593536; x=1698198336; darn=vger.kernel.org; h=to:references:message-id:content-transfer-encoding:reply-to:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=IIoyMcQHZ0Qpe7BKvINLbeGCoM4NhndfXHONk8A0DuA=; b=ff/gZ9bw0UNlmX9LRwzlObgx1Nn0oDNWNqhn6focVKW/InbdoeBzX9etFkTiG8idD4 06/QHNFGW/PpAx15kGyXh4jLErgMUJvANiHbz/vp+4JmwqQ74evtHZKrOEKJ5o9YkgPQ fAYZS+uvNgtk4MjuVEvTl2xKdN+1+YIvCKoc/JZW9goYG5iFzopPb7g2ucqvtCr53/Lb OUMLtA7Yd7rYGgpE7CGFIIZGrJfQ2JbvetAMb2uMpDzqugoUVs5UBV7UbmlbGJHvrM+/ S0nFwJ+taEODed2M0Aaa36NRBZgvfWsNdD1P3jzdEJs9E787CR+2bqxW6cwTEtY3GviW AsUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697593536; x=1698198336; h=to:references:message-id:content-transfer-encoding:reply-to:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IIoyMcQHZ0Qpe7BKvINLbeGCoM4NhndfXHONk8A0DuA=; b=o0BwmQ1tbnf6ghtvJ+TQY9eG5xDvL8oLvZIbvugdYnPCQhu5Qc2mHmXNz+y+hW9fN/ FKbKelG9eNJJW9Ey1InPJ1nAqlaYlHpPcMNx1cr8oPHQtOyurEiSLf2n8jwibzL2OXHu eA7kg3qT7vHb91UwB7S6mhIHyFXDs3oKbZe96fxDtsW812QMWYDFane5/6kaKkUUr3uV gpN2eRf9YJnH8WUp4QLF3ro9FhZQlt6zVhXY8TCJ1T+OokQisyile6XhxhgFvScaLPf8 JAu708imVZlYlEGqAtVwuGOB6kpWhJg5TAv2aRsoXws3oV5USzrMREK7VBShF1zEPGwn zrEw== X-Gm-Message-State: AOJu0YwYU5EoHNgacQcNRyztKGbQ1JbTz9VgJ2MWU5OwCiqcZd2ZocwM Rj/FWRyENjndUJC3KLfBQkWsrg== X-Received: by 2002:a17:902:e5c3:b0:1b0:3ab6:5140 with SMTP id u3-20020a170902e5c300b001b03ab65140mr5806185plf.4.1697593536621; Tue, 17 Oct 2023 18:45:36 -0700 (PDT) Received: from ?IPv6:2402:7500:5ce:a18a:d02c:5aee:75ae:ccc2? ([2402:7500:5ce:a18a:d02c:5aee:75ae:ccc2]) by smtp.gmail.com with ESMTPSA id q11-20020a170902dacb00b001c746b986e5sm2247981plx.45.2023.10.17.18.45.33 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Oct 2023 18:45:36 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.7\)) Subject: Re: [PATCH v2 05/19] riscv: add ISA extension parsing for vector crypto extensions From: Jerry Shih In-Reply-To: <20231017131456.2053396-6-cleger@rivosinc.com> Date: Wed, 18 Oct 2023 09:45:30 +0800 Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Palmer Dabbelt , Paul Walmsley , Rob Herring , Krzysztof Kozlowski , Albert Ou , Jonathan Corbet , Andrew Jones , Evan Green , Conor Dooley , Samuel Ortiz Reply-To: 20231017131456.2053396-6-cleger@rivosinc.com Content-Transfer-Encoding: quoted-printable Message-Id: References: <20231017131456.2053396-1-cleger@rivosinc.com> <20231017131456.2053396-6-cleger@rivosinc.com> To: =?utf-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= X-Mailer: Apple Mail (2.3445.9.7) X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,UPPERCASE_50_75 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 17 Oct 2023 18:45:54 -0700 (PDT) On Oct 17, 2023, at 21:14, Cl=C3=A9ment L=C3=A9ger = wrote: > @@ -221,6 +261,22 @@ const struct riscv_isa_ext_data riscv_isa_ext[] =3D= { > __RISCV_ISA_EXT_DATA(zkt, RISCV_ISA_EXT_ZKT), > __RISCV_ISA_EXT_DATA(zksed, RISCV_ISA_EXT_ZKSED), > __RISCV_ISA_EXT_DATA(zksh, RISCV_ISA_EXT_ZKSH), > + __RISCV_ISA_EXT_DATA(zvbb, RISCV_ISA_EXT_ZVBB), > + __RISCV_ISA_EXT_DATA(zvbc, RISCV_ISA_EXT_ZVBC), > + __RISCV_ISA_EXT_DATA(zvkb, RISCV_ISA_EXT_ZVKB), The `Zvkb` is the subset of `Zvbb`[1]. So, the `Zvkb` should be bundled = with `Zvbb`. + __RISCV_ISA_EXT_DATA(zvbb, RISCV_ISA_EXT_ZVBB), + __RISCV_ISA_EXT_DATA(zvbb, RISCV_ISA_EXT_ZVKB), + __RISCV_ISA_EXT_DATA(zvkb, RISCV_ISA_EXT_ZVKB), or + __RISCV_ISA_EXT_BUNDLE(zvbb, riscv_zvbb_bundled_exts), + __RISCV_ISA_EXT_DATA(zvkb, RISCV_ISA_EXT_ZVKB), [1] = https://github.com/riscv/riscv-crypto/blob/main/doc/vector/riscv-crypto-ve= ctor-zvkb.adoc -Jerry=