From patchwork Tue Nov 7 10:55:41 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: 13448501 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0BA73C4167B for ; Tue, 7 Nov 2023 10:56:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=99tcZfHq8b/F4yaGKZRYsZzZrAtc2MBVq0vlIxGAknI=; b=YWqA5hvNsouQr9 nmbWLxt45atoo4gwdeVi4OOTmpD+wk5sn5ooQkbuMuAsEYzPlF+C5esICyfQpzzxngRa8Re+mbWxt g5YudP5VAUnostJtAU8fwMFCpE6NE1czvx6u5auhSOaG+e32sCJOiZq+oT2BzliUisIhBV+4J21Ej pgP2/K791STyVt3kMSqLS+ojrhn1yDi2MX0KmoX/mfApPWKW0Hp1BtLmalDIMnAlMO6nj8KMR1Hbe 4B7+6LAykHvFhybktQ8SWEwqOxi93UNdKL1+cLv9W8XpMnxiONdItKpzqtiy04ddR4wOd+mZufkVK 0Pcv1/BKEx0M0iZXGLaQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r0Jkj-0019Ac-05; Tue, 07 Nov 2023 10:56:13 +0000 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r0Jke-00197m-22 for linux-riscv@lists.infradead.org; Tue, 07 Nov 2023 10:56:10 +0000 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-32fa4183535so811424f8f.1 for ; Tue, 07 Nov 2023 02:56:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1699354566; x=1699959366; darn=lists.infradead.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=sMnpi79X7SvPehiPmk4gRm0VBHL4POtxgFx0CajIeKI=; b=YRbQqnQB+/o9r35Y2Q+etkEKWG5B19rvDwXwJO3Vl4AycRl4RkV7v36xJCl4NL9G+N SbCWZ8luDX7zmoHCmhWmga4H1ZgROQi4wlv29HWJV0WzMyYPxr3KYO1xV2CNXU1IB6qE RvjVvfUZ8FWz347pa61GW68JO4pvcLHJOLyjXPfU4rlzL5WYrZ64PVhB1lFqXjs7tcVC 6ZFiAOxhJ6zIwFgINi3Y6d1ygTqJzznGnq1VvUpzR1zG2uMdOWRtZZV6Fs5h0IG7NXdo CfpBlZxWnEYzaOnz0tXCDVHiG6TfsG6PQoI05KOg+N143AcF8cRArGgW0Yu2Gox9KnMe GTXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699354566; x=1699959366; 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=sMnpi79X7SvPehiPmk4gRm0VBHL4POtxgFx0CajIeKI=; b=PsJvFYjdlZxPoSeR2gGo61oEsMiua6q+krg9A0iWMt+s+TmgI+gXturfDgWozXLDMH DSS62H2gS0x5TbkXsIfA0p6tJFM9l9AENiJ4o7ZVrf0m4Y6iwMgCF6nRBe0xGmsVFDB1 v0xM07+p9LnV/eCxfLT7dV6yGPcC84tv6ciDABzaY0KqShLTO1fICUtGXWLFvi7bFj8s DuECm0Txut1KIj/L3DYMU7Tm0g0wjX7/Nginu8jazxjiqlAZGnIjmwHX4D8Z20j1b08e zPP5vuOMgw77odi9LPe4RwzB/eEuWDvlYBcv3n16KpeUSa22ZlEm8NNDbheGxNjfaCBh k/lA== X-Gm-Message-State: AOJu0Yz3YUnUQZYoolgwOee/B1OSAltQ05hhDe28HaRsTOBn3vEuYy30 cdmMifNetg6vwzXx8PX5cNYZ3PG3K/eNh3AfQMPidQ== X-Google-Smtp-Source: AGHT+IFTaUb/5dQv+OZXaV1szaLrFMm+/+NNM4GP2T1RF5zEOMF3p1Mp4sxm0kbHOX9zra49UOac4w== X-Received: by 2002:a05:600c:3b91:b0:407:52f0:b01a with SMTP id n17-20020a05600c3b9100b0040752f0b01amr26054397wms.2.1699354566602; Tue, 07 Nov 2023 02:56:06 -0800 (PST) Received: from carbon-x1.. ([2a01:e0a:999:a3a0:7db3:bdd9:4cab:2ee3]) by smtp.gmail.com with ESMTPSA id n30-20020a05600c501e00b00405442edc69sm15396853wmr.14.2023.11.07.02.56.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Nov 2023 02:56:05 -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 Subject: [PATCH v3 05/20] dt-bindings: riscv: add scalar crypto ISA extensions description Date: Tue, 7 Nov 2023 11:55:41 +0100 Message-ID: <20231107105556.517187-6-cleger@rivosinc.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231107105556.517187-1-cleger@rivosinc.com> References: <20231107105556.517187-1-cleger@rivosinc.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231107_025608_677034_78819D45 X-CRM114-Status: UNSURE ( 9.95 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Add description for scalar crypto ISA extensions which can now be reported through hwprobe for userspace usage. These extensions are the following: - Zbkb - Zbkc - Zbkx - Zknd - Zkne - Zknh - Zkr - Zksed - Zksh - Zkt Signed-off-by: Clément Léger --- .../devicetree/bindings/riscv/extensions.yaml | 77 +++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/Documentation/devicetree/bindings/riscv/extensions.yaml b/Documentation/devicetree/bindings/riscv/extensions.yaml index c91ab0e46648..a89363ad653a 100644 --- a/Documentation/devicetree/bindings/riscv/extensions.yaml +++ b/Documentation/devicetree/bindings/riscv/extensions.yaml @@ -190,12 +190,89 @@ properties: multiplication as ratified at commit 6d33919 ("Merge pull request #158 from hirooih/clmul-fix-loop-end-condition") of riscv-bitmanip. + - const: zbkb + description: + The standard Zbkb bitmanip instructions for cryptography as ratified + in version 1.0 of RISC-V Cryptography Extensions Volume I + specification. + + - const: zbkc + description: + The standard Zbkc carry-less multiply instructions as ratified + in version 1.0 of RISC-V Cryptography Extensions Volume I + specification. + + - const: zbkx + description: + The standard Zbkx crossbar permutation instructions as ratified + in version 1.0 of RISC-V Cryptography Extensions Volume I + specification. + - const: zbs description: | The standard Zbs bit-manipulation extension for single-bit instructions as ratified at commit 6d33919 ("Merge pull request #158 from hirooih/clmul-fix-loop-end-condition") of riscv-bitmanip. + - const: zk + description: + The standard Zk Standard Scalar cryptography extension as ratified + in version 1.0 of RISC-V Cryptography Extensions Volume I + specification. + + - const: zkn + description: + The standard Zkn NIST algorithm suite extensions as ratified in + version 1.0 of RISC-V Cryptography Extensions Volume I + specification. + + - const: zknd + description: | + The standard Zknd for NIST suite: AES decryption instructions as + ratified in version 1.0 of RISC-V Cryptography Extensions Volume I + specification. + + - const: zkne + description: | + The standard Zkne for NIST suite: AES encryption instructions as + ratified in version 1.0 of RISC-V Cryptography Extensions Volume I + specification. + + - const: zknh + description: | + The standard Zknh for NIST suite: hash function instructions as + ratified in version 1.0 of RISC-V Cryptography Extensions Volume I + specification. + + - const: zkr + description: + The standard Zkr entropy source extension as ratified in version + 1.0 of RISC-V Cryptography Extensions Volume I specification. + + - const: zks + description: + The standard Zks ShangMi algorithm suite extensions as ratified in + version 1.0 of RISC-V Cryptography Extensions Volume I + specification. + + - const: zksed + description: | + The standard Zksed for ShangMi suite: SM4 block cipher instructions + as ratified in version 1.0 of RISC-V Cryptography Extensions + Volume I specification. + + - const: zksh + description: | + The standard Zksh for ShangMi suite: SM3 hash function instructions + as ratified in version 1.0 of RISC-V Cryptography Extensions + Volume I specification. + + - const: zkt + description: + The standard Zkt for data independent execution latency as ratified + in version 1.0 of RISC-V Cryptography Extensions Volume I + specification. + - const: zicbom description: The standard Zicbom extension for base cache management operations as