From patchwork Tue Nov 14 14:12:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= X-Patchwork-Id: 164929 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp1889377vqg; Tue, 14 Nov 2023 06:14:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IHOxLMijU67eYtvjxJtnDXmySf3sipNChCoh7rlyzqpYmTKpUp8KOX3MET2yKv56lqWw+bp X-Received: by 2002:a17:902:d4c6:b0:1cc:339e:c228 with SMTP id o6-20020a170902d4c600b001cc339ec228mr2941671plg.58.1699971252012; Tue, 14 Nov 2023 06:14:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699971251; cv=none; d=google.com; s=arc-20160816; b=NmIfI5yxZ+23lFFZ4z/iAJA4f0/mM4afXzfqWwTUUL616Or5xrGSrJixEDdWX5HzlU HpnekvTj4EHM88T6iDsW6sgNBOxdJscwNI8kKoO5yVJzC0aN/6il75QG54FhtdzYG1K4 MYXg4xlhSVTiD+CAAjOPNCSiL5NE1NEzhKJSu1zleCHfkPgodvNfFTNOhCTGDDJ7J2eB tcMwiXHTOWqNV1NJ+2soLRCBlLyAd8BiA7jnO/JrzPLYmApZgx9FAppx4/kiyxiWM4oB ABHWQ+vtTO0U3DoXAzggaAQzRr3EzPO1i1Rt9jn+mv11gfa6l7QGblp9lOJFcDWsT8uD EP1A== 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=LJxzqFw+iRCRAp409dtPRDTd4Cqq/JWi5Ol6ihv9w4s=; fh=SaalvynOhK4ahTIObhnXJGZ2UOF46AyGQYHyWECt674=; b=beuegRC7FeI2M/24kDxjKFVzlL21OrwDqMz1cirJcOJaY2hsp1mqokbqfrjY8n4dOz hF/PGQePaRNNsxKrrQ3mBdznuDjWKw47dCmd4iLRPXQb81u7pZAFMTilGf8AmQfLQXIz Vi/FtjeV9j69+TpxGO6B+qEVeZxQsnllMYb+FfAGyEU6G9bX9kPCo9/YvvHi5qDbErAn KZucTQbJDO2B0vWngPHmBByMS/otVKZIcbe3mBY9HQ3FNl3sjmnkIZLVVKJHfzyJd3Xk 5GqVnmWdNOnxvRGPJEkfHlOw2hyC3086s7/c+eHE9HoycjJh+j+Y4rYiWMtZXmMSp6Cg 7h2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b="WROfJ/SD"; 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 l7-20020a170902f68700b001c3b5a1336esi8354521plg.329.2023.11.14.06.14.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Nov 2023 06:14:11 -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="WROfJ/SD"; 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 AC57B80FDDE5; Tue, 14 Nov 2023 06:14:10 -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 S233488AbjKNON7 (ORCPT + 29 others); Tue, 14 Nov 2023 09:13:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233437AbjKNONx (ORCPT ); Tue, 14 Nov 2023 09:13:53 -0500 Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 752CAD52 for ; Tue, 14 Nov 2023 06:13:43 -0800 (PST) Received: by mail-ot1-x329.google.com with SMTP id 46e09a7af769-6d3099818c0so573994a34.1 for ; Tue, 14 Nov 2023 06:13:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1699971222; x=1700576022; 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=LJxzqFw+iRCRAp409dtPRDTd4Cqq/JWi5Ol6ihv9w4s=; b=WROfJ/SDcYdtua1UuEnFC/yqRHVka+Y7de1ghL0thFp+IOKjgFkxBQfpmbFyIA058I A/5ugkQzqtjxuQROTWVakV8zOcY7jUaNm0nE4KtM1oqqfeXmlSwMVQxpMJDCfGmNSXHd hcTukHp4NgP/sPduq8ZeQw8qMkgZq7ZQBbD0Ff2646d+uSjDzzcPISu4uN3vVBhoFIjz BScXpOaQSoM01BpckgKEZZVnDMqjmXV/y4NJNuUGgC1XDigMon8L34jTgH7EDO+oyRu+ pDboEQcpdH9Nj+b76QtenLcf9EbqcQZVFm8hiCVP8xcQ/okzT2FmlUk84RUhSKEOiw56 ebmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699971222; x=1700576022; 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=LJxzqFw+iRCRAp409dtPRDTd4Cqq/JWi5Ol6ihv9w4s=; b=GwI1F2CNuYFrKtIo95N+LffLYRM53Nk3a1sX49YkL3Nd/wU7WfB5Hc8i0BID0XnU1L VqyC7IXj1uw0m+UGmsgBFzS26ud20BtE+8GihqQ9p2jo0TybDLpOLw/KoTE8Yi5AhOFs 9cPxnMWi24wDVM70MmcmUh6WqmayckmgqbGpARUndMhfQ2izQrObGWggoYads3pTV/Nz VZ1Aklh65A52l9EWj7VDVtj9ye2wyd7JJFmyweVxpExh9rKKtG8gJQgwQw4bqIQSE1EK /pJ1I27xBP2N0ELIYbfcqmytZ0drsabxq/ATE2su2/q3C9fGQ6UTx3yrESlQZthchv9Y izQw== X-Gm-Message-State: AOJu0YwtqKZBcrF4wUyKxjOtq1BqGQwz+fdEy47Vhl+cHFAtR65+FH6v mzwVKiMjrq0+8I3boS+GbUXUTQ== X-Received: by 2002:a05:6830:7102:b0:6b1:9646:2ea0 with SMTP id ek2-20020a056830710200b006b196462ea0mr2803747otb.1.1699971222044; Tue, 14 Nov 2023 06:13:42 -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.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Nov 2023 06:13:41 -0800 (PST) From: =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= 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?= , Palmer Dabbelt , Paul Walmsley , Rob Herring , Krzysztof Kozlowski , Albert Ou , Jonathan Corbet , Andrew Jones , Evan Green , Conor Dooley , Samuel Ortiz , Jerry Shih , Conor Dooley Subject: [PATCH v4 08/20] dt-bindings: riscv: add vector crypto ISA extensions description Date: Tue, 14 Nov 2023 09:12:44 -0500 Message-ID: <20231114141256.126749-9-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 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: 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:10 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782549055322413021 X-GMAIL-MSGID: 1782549055322413021 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 a3803b22cf4f..e845e461b6e1 100644 --- a/Documentation/devicetree/bindings/riscv/extensions.yaml +++ b/Documentation/devicetree/bindings/riscv/extensions.yaml @@ -338,5 +338,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 ...