Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp322098rdg; Thu, 12 Oct 2023 06:48:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEnj6QypBImgeqsxWHoBUdWubLMioXdv8wNQ4LmozPZLAQW2XHrREI6s9IXhQyBVlv6cmfi X-Received: by 2002:a17:90b:ed7:b0:268:7ec:51ae with SMTP id gz23-20020a17090b0ed700b0026807ec51aemr21073376pjb.41.1697118490181; Thu, 12 Oct 2023 06:48:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697118490; cv=none; d=google.com; s=arc-20160816; b=Cv0CtXIYs+SiuI9Ug/Jr8EFevGS6evV68qROF0MXMnAWHSVIFhh6C+593Fx0J87ezn CL19cjwum0Ch0HTmvNsjfFNDzyF0FN7duKTmLpUNlUEA7yvx1sVlxWsT3EAQUyJ+du/i fXZ0RdweqCGkTFFPOTcfsqAj71QxjPcafZ8lCNbEFWZPcv96lYqwPUwvlB9bxpeuimlC 5CPmBvQrE59ZG4gb9tVPG3Ogp5nalxiJHuX1TPR8xplY4JY+uwiEvaAucKZBdOwvKb6v VORE26dxaAHM0toEH0pQAH4KaDOHAeuxIcEA7F8IB/5cg+8JSxUf1GOucb1IwPpLXucw bABA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=srJP1dcLOhslAUQK1ur+T2x6/HbyxYW4brLSBqMCYi0=; fh=k0KhkICzpdkH8cc63XdtvTeBHYBgAfzGQTQ2iyT4IrI=; b=phfdk52EX+fctknpbgjWj3I9JpfYu8XZjjiorUqWS50HmWv9ridz01dBZOy0Il7djQ WDZ5anAIr6Q6arfPiZiCwRTDXTXiE3bwX8coex83DObwtUgJKJ++D1tGDqdRd+ZxLXG0 kEJf6fMBTXiFLSan3q63eY4Uwet7gbrn00iqiyxrkABM8i4bXnJ8Ndx9i/5rWFQdryHg xnrfTYcTksDejlPrNCt7exLn0FfKtLUwa5RNCMSjclTVZBft5updcsUMFtTaFW2trM9S KOqVUaFi/0y9HtxMhrWh66MDLw562NhtEwPhHcfV4MPZTtzPcvEiudnTYZnihKj2PXnE g7aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=toDLP8Io; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id on6-20020a17090b1d0600b0027cfe711365si2499632pjb.51.2023.10.12.06.48.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 06:48:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=toDLP8Io; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 3B7478086839; Thu, 12 Oct 2023 06:48:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378899AbjJLNr5 (ORCPT + 99 others); Thu, 12 Oct 2023 09:47:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343925AbjJLNr4 (ORCPT ); Thu, 12 Oct 2023 09:47:56 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD3E6BA for ; Thu, 12 Oct 2023 06:47:54 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E3955C433C7; Thu, 12 Oct 2023 13:47:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697118474; bh=M6/Qc0XbKAWDLzcioQK//3A7VmcEvW6GiZ4CsMaKi9c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=toDLP8IoYI0zO1Qr/HpWhBSJedmIYWvtu0OWyQ/cCKT7Em1nDxVTIrGbWueqQOu9F uSPs+Dzi1+ob0udaJ8m6YKimln2U50iBfkmAGHGwhxGaC1lq25eK4o7I6NekVLpdkO QY49/LwtgRiaJbrW4YkWS2FsuwVFpp+Kq/tUQ52Fxu5cq3w03hYpAQElctBYX3Xoqu ffshbo3mrdDUDwsHXQQ8VjQ1Suy/VZ9PqGD7QNDdMoojnZFnyfzCbxp9J45e5Vd6tP lmh8YjrleBi0oEr6Ftw9f6dgBNm3CLoSpuZunOM7EaufxvwQc1B2MucilC2Eit+F/S y2421EuVP2obw== Date: Thu, 12 Oct 2023 14:47:49 +0100 From: Conor Dooley To: =?iso-8859-1?Q?Cl=E9ment_L=E9ger?= 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 Subject: Re: [PATCH v1 04/13] dt-bindings: riscv: add Zv* ratified crypto ISA extensions description Message-ID: <20231012-job-charbroil-469c3e1d2982@spud> References: <20231011111438.909552-1-cleger@rivosinc.com> <20231011111438.909552-5-cleger@rivosinc.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="+ala/M+NuL0Bx69x" Content-Disposition: inline In-Reply-To: <20231011111438.909552-5-cleger@rivosinc.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 fry.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 (fry.vger.email [0.0.0.0]); Thu, 12 Oct 2023 06:48:07 -0700 (PDT) --+ala/M+NuL0Bx69x Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Yo, On Wed, Oct 11, 2023 at 01:14:29PM +0200, Cl=E9ment L=E9ger wrote: > Add Zv* vector crypto extensions that were added in "RISC-V Cryptography > Extensions Volume II" specificationi[1]: >=20 > - Zvbb: Vector Basic Bit-manipulation > - Zvbc: Vector Carryless Multiplication > - Zvkb: Vector Cryptography Bit-manipulation > - Zvkg: Vector GCM/GMAC. > - Zvkned: NIST Suite: Vector AES Block Cipher > - Zvknh[ab]: NIST Suite: Vector SHA-2 Secure Hash > - Zvksed: ShangMi Suite: SM4 Block Cipher > - Zvksh: ShangMi Suite: SM3 Secure Hash > - Zvkn: NIST Algorithm Suite > - Zvknc: NIST Algorithm Suite with carryless multiply > - Zvkng: NIST Algorithm Suite with GCM. > - Zvks: ShangMi Algorithm Suite > - Zvksc: ShangMi Algorithm Suite with carryless multiplication > - Zvksg: ShangMi Algorithm Suite with GCM. > - Zvkt: Vector Data-Independent Execution Latency. >=20 > [1] https://drive.google.com/file/d/1gb9OLH-DhbCgWp7VwpPOVrrY6f3oSJLL/view Link: [1] Acked-by: Conor Dooley Thanks, Conor. > Signed-off-by: Cl=E9ment L=E9ger > --- > .../devicetree/bindings/riscv/extensions.yaml | 96 +++++++++++++++++++ > 1 file changed, 96 insertions(+) >=20 > diff --git a/Documentation/devicetree/bindings/riscv/extensions.yaml b/Do= cumentation/devicetree/bindings/riscv/extensions.yaml > index cc1f546fdbdc..4002c65145c9 100644 > --- a/Documentation/devicetree/bindings/riscv/extensions.yaml > +++ b/Documentation/devicetree/bindings/riscv/extensions.yaml > @@ -246,5 +246,101 @@ properties: > in commit 2e5236 ("Ztso is now ratified.") of the > riscv-isa-manual. > =20 > + - const: zvbb > + description: > + The standard Zvbb extension for vectored basic bit-manipulat= ion > + instructions, as ratified in commit 56ed795 ("Update > + riscv-crypto-spec-vector.adoc") of riscv-crypto. > + > + - const: zvbc > + description: > + The standard Zvbc extension for vectored carryless multiplic= ation > + instructions, as ratified in commit 56ed795 ("Update > + riscv-crypto-spec-vector.adoc") of riscv-crypto. > + > + - const: zvkb > + description: > + The standard Zvkb extension for vector cryptography bit-mani= pulation > + instructions, as ratified in commit 56ed795 ("Update > + riscv-crypto-spec-vector.adoc") of riscv-crypto. > + > + - const: zvkg > + description: > + The standard Zvkg extension for vector GCM/GMAC instructions= , as > + ratified in commit 56ed795 ("Update riscv-crypto-spec-vector= =2Eadoc") > + of riscv-crypto. > + > + - const: zvkn > + description: > + The standard Zvkn extension for NIST algorithm suite instruc= tions, as > + ratified in commit 56ed795 ("Update riscv-crypto-spec-vector= =2Eadoc") > + of riscv-crypto. > + > + - const: zvknc > + description: > + The standard Zvknc extension for NIST algorithm suite with c= arryless > + multiply instructions, as ratified in commit 56ed795 ("Update > + riscv-crypto-spec-vector.adoc") of riscv-crypto. > + > + - const: zvkned > + description: > + The standard Zvkned extension for Vector AES block cipher > + instructions, as ratified in commit 56ed795 ("Update > + riscv-crypto-spec-vector.adoc") of riscv-crypto. > + > + - const: zvkng > + description: > + The standard Zvkng extension for NIST algorithm suite with G= CM > + instructions, as ratified in commit 56ed795 ("Update > + riscv-crypto-spec-vector.adoc") of riscv-crypto. > + > + - const: zvknha > + description: | > + The standard Zvknha extension for NIST suite: vector SHA-2 s= ecure, > + hash (SHA-256 only) instructions, as ratified in commit > + 56ed795 ("Update riscv-crypto-spec-vector.adoc") of riscv-cr= ypto. > + > + - const: zvknhb > + description: | > + The standard Zvknhb extension for NIST suite: vector SHA-2 s= ecure, > + hash (SHA-256 and SHA-512) instructions, as ratified in comm= it > + 56ed795 ("Update riscv-crypto-spec-vector.adoc") of riscv-cr= ypto. > + > + - const: zvks > + description: > + The standard Zvks extension for ShangMi algorithm suite > + instructions, as ratified in commit 56ed795 ("Update > + riscv-crypto-spec-vector.adoc") of riscv-crypto. > + > + - const: zvksc > + description: > + The standard Zvksc extension for ShangMi algorithm suite with > + carryless multiplication instructions, as ratified in commit= 56ed795 > + ("Update riscv-crypto-spec-vector.adoc") of riscv-crypto. > + > + - const: zvksed > + description: | > + The standard Zvksed extension for ShangMi suite: SM4 block c= ipher > + instructions, as ratified in commit 56ed795 ("Update > + riscv-crypto-spec-vector.adoc") of riscv-crypto. > + > + - const: zvksh > + description: | > + The standard Zvksh extension for ShangMi suite: SM3 secure h= ash > + instructions, as ratified in commit 56ed795 ("Update > + riscv-crypto-spec-vector.adoc") of riscv-crypto. > + > + - const: zvksg > + description: > + The standard Zvksg extension for ShangMi algorithm suite wit= h GCM > + instructions, as ratified in commit 56ed795 ("Update > + riscv-crypto-spec-vector.adoc") of riscv-crypto. > + > + - const: zvkt > + description: > + The standard zvkt extension for vector data-independent exec= ution > + latency, as ratified in commit 56ed795 ("Update > + riscv-crypto-spec-vector.adoc") of riscv-crypto. > + > additionalProperties: true > ... > --=20 > 2.42.0 >=20 --+ala/M+NuL0Bx69x Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZSf5BQAKCRB4tDGHoIJi 0geQAQDhWB73Yqnqqsw5vfDyfuBoHydY4VRH771rfIyg9uid7gEAv07b2l+r1hLN isOAcrJ0GWoMBgFW2kO9X6FTgAPTsgk= =sC9E -----END PGP SIGNATURE----- --+ala/M+NuL0Bx69x--