Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3150088rdg; Tue, 17 Oct 2023 06:16:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH5JV/zL54gnrEnZe24RMqmoQyenSuD/Ps5rcFD9fVzvTJFhsofKIMz3o2Huso7C4xpCKlJ X-Received: by 2002:a05:6a00:134a:b0:68f:bb02:fdf with SMTP id k10-20020a056a00134a00b0068fbb020fdfmr2253340pfu.27.1697548575915; Tue, 17 Oct 2023 06:16:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697548575; cv=none; d=google.com; s=arc-20160816; b=b75PriqXY5apqQZFV51i+bSjuK7+nlR0BRwULi0O7YDv00ekFtqJ8271SQSsPjvIBR j7LNXPEbeEIn78V71Uiq8rwcUi9fbxMdm1DenhoDELffzcX0cJ44yFEDqgEXL6Gb1Nxv PN209/VDQzFenNKfOJQqjQSz2NjUACDHJ3MSL7k8/ulBI40kItgFIlt9iUTtiwuybM8C 9N3k2COBLey8UYm1d6K+EkRFam5/N8zCgNgiVbmGQ5E838tx9IQKf0eW345lbqPV2NlR sdKI9fbXsk/D+XPARpBCaUxuCiDa8uiaBL0ZUtL9DP/yGxNhOCIUTxuzh6c7I9TbCV90 4rFg== 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=gPGVtTxEoI+EJFM/rO8bytg8A5BuyDNrPQqlXh09110=; fh=+cbUtfSAqhMquIoUm29OkpkAteRz4N6smd68uCoHFfk=; b=llqU2ieBUE0MOIZGjAuHbViIoCACQio5DjoLwd1U8iXY1qy9C8jHjfTAd74gxDaFi+ 3Pf9fjUqHocc0zh62MldnR5nXAet9kGupwNvKMlHoaqELMmcMLcjUyyGHAElHmiE+NHL VG4VJzC7atnNh9XyTXvzr9K1KNn74+u3mR7SdiX3JWM64m+ANs744/XsW0O/mRSuK39J ZZV21cravlCar7LnR0wDaAaRTv4KO2SvgW4QlyGJhjpFEpPbzLqh7pxG0GqkwFCxDWjB LCeb4wroYMsfT2i2GE8sfxQnz9TctczZ4S6l793pK8ll4ZkHyvo7xeENOL/EMxNKO+9a R4GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=yQIORvDr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id b28-20020a63715c000000b005b7e3ee181fsi1674534pgn.642.2023.10.17.06.16.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 06:16:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=yQIORvDr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 4536780B2887; Tue, 17 Oct 2023 06:16:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343866AbjJQNQB (ORCPT + 99 others); Tue, 17 Oct 2023 09:16:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343832AbjJQNPh (ORCPT ); Tue, 17 Oct 2023 09:15:37 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4FC7106 for ; Tue, 17 Oct 2023 06:15:35 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2c52407516bso3494211fa.1 for ; Tue, 17 Oct 2023 06:15:35 -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=gPGVtTxEoI+EJFM/rO8bytg8A5BuyDNrPQqlXh09110=; b=yQIORvDrXztvFM8kTpl0NZ863xfT0dgOfj3OtVJ8CdGam+buW/xAAquxcCZWRBnGNJ 0Ocvg4QeYlhfzR7g857Wx0doIUq/9p0l7YOeRIN6OpoFavORUWYDB8+aTPBDf8oI/Kpw oSvFMPhQnfP34gNzvNhhloQ1FyikmaOaR0mGFZPObKfN3qcIvMHr+PY+zjwII1qUjh5M 6XXWt1JG0SsV9tQmSFIQMv4BZ7Z8za6HM+fG6Qdd8heQP8VwU2kSTybnWGw6r33xijmw miQyU851airCXzfHkLlpu7e6xtrq89Wa6FAD+npwW1vkuTg+ZqENAK9xK9N1lzfmeKfc 3M+Q== 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=gPGVtTxEoI+EJFM/rO8bytg8A5BuyDNrPQqlXh09110=; b=c2KHYpPK3ZIub7UV6g2Z2oltrXyTVz1r87ULLH6UVsbacKeGX9f9/f0yd0Z4hVB0Aw 84yTVIu6S37hBrBlrqUiR8X+CNGjZLlrvsevIQThSLBhvYug9p1MQlmjsUKgUTtCYzXS hryZvXAQxz9oWeMUUA5VNEIQelWSPpiLwtquc5afwJ1i82Q+F0jo/PyluFHpX17wNLpf 7EDLZvRCeyHbqfiM1hJwehTo3nbPEWIgfX1qHzwtDtH9PUU3XWqhOgix5mfjy2lb3RcG L/TxCakQSOM0hy6ruSvJIRLaKeUx3ylKZPQGOQX2csme+WUbgMUGoxm9/WKvoSikgGMt kT4w== X-Gm-Message-State: AOJu0YzCuBTG2TKNTx5OnwkkOQjwrt87ZUoooT1i3iDme/5mCaOv1jl3 je8PRcSHEFwP6DaldQycGnXZtA== X-Received: by 2002:a2e:b553:0:b0:2c5:2407:4d0c with SMTP id a19-20020a2eb553000000b002c524074d0cmr1474854ljn.2.1697548533314; Tue, 17 Oct 2023 06:15:33 -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.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 06:15:32 -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 , Conor Dooley Subject: [PATCH v2 07/19] dt-bindings: riscv: add vector crypto ISA extensions description Date: Tue, 17 Oct 2023 15:14:44 +0200 Message-ID: <20231017131456.2053396-8-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 groat.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 (groat.vger.email [0.0.0.0]); Tue, 17 Oct 2023 06:16:12 -0700 (PDT) Add Zv* vector crypto extensions that were added in "RISC-V Cryptography Extensions Volume II" specificationi[1]: - 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. Link: https://drive.google.com/file/d/1gb9OLH-DhbCgWp7VwpPOVrrY6f3oSJLL/view [1] Signed-off-by: Clément Léger Acked-by: Conor Dooley --- .../devicetree/bindings/riscv/extensions.yaml | 96 +++++++++++++++++++ 1 file changed, 96 insertions(+) diff --git a/Documentation/devicetree/bindings/riscv/extensions.yaml b/Documentation/devicetree/bindings/riscv/extensions.yaml index 96ed3d22d3c4..93beb9872900 100644 --- a/Documentation/devicetree/bindings/riscv/extensions.yaml +++ b/Documentation/devicetree/bindings/riscv/extensions.yaml @@ -323,5 +323,101 @@ properties: in commit 2e5236 ("Ztso is now ratified.") of the riscv-isa-manual. + - const: zvbb + description: + The standard Zvbb extension for vectored basic bit-manipulation + 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 multiplication + 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-manipulation + 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.adoc") + of riscv-crypto. + + - const: zvkn + description: + The standard Zvkn extension for NIST algorithm suite instructions, as + ratified in commit 56ed795 ("Update riscv-crypto-spec-vector.adoc") + of riscv-crypto. + + - const: zvknc + description: + The standard Zvknc extension for NIST algorithm suite with carryless + 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 GCM + 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 secure, + hash (SHA-256 only) instructions, as ratified in commit + 56ed795 ("Update riscv-crypto-spec-vector.adoc") of riscv-crypto. + + - const: zvknhb + description: | + The standard Zvknhb extension for NIST suite: vector SHA-2 secure, + hash (SHA-256 and SHA-512) instructions, as ratified in commit + 56ed795 ("Update riscv-crypto-spec-vector.adoc") of riscv-crypto. + + - 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 cipher + 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 hash + 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 with 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 execution + latency, as ratified in commit 56ed795 ("Update + riscv-crypto-spec-vector.adoc") of riscv-crypto. + additionalProperties: true ... -- 2.42.0