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: 162402 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:aa0b:0:b0:403:3b70:6f57 with SMTP id k11csp150601vqo; Tue, 7 Nov 2023 02:57:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IFFINsABtuXsYKv2c4XXqOdcA5Ou4voA/IcRh80zQE9TR7rr//loF4LdMNneTcrzBLrpJcC X-Received: by 2002:a05:6a20:8e2a:b0:174:63a9:293 with SMTP id y42-20020a056a208e2a00b0017463a90293mr30283628pzj.48.1699354627058; Tue, 07 Nov 2023 02:57:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699354627; cv=none; d=google.com; s=arc-20160816; b=Gtuy8D38t6/xwX2KVB35f2wbKTPZwuW1MMSWS8GvEdOc1UlbZDomDvFgAcFGceH6ax Rzeta9SVEA5piK+AzIHWqD5xypBbU+Pt8W3wywEzCLW1QY84fv27Ffx7pMtz2LCk71J7 cBBjfwlS0V9dAqFDKhdou1GinEFlcm5BzR9kRE6wb/DppZXlgzmr9mdl/NQdiNgJqvmN DGgJIxGowA8QorblyYqk9ZRHJFZt2pYEn0NBvxmGrDVLPgjiqmvziWcfua3jlqzUtqWb YrX46+4DdnQO3tFzdW8VgSsE+Rq0TUFlbvlnTfPGrVBych+y1/89lXNynzEZaxQ9zCO4 ejPA== 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=sMnpi79X7SvPehiPmk4gRm0VBHL4POtxgFx0CajIeKI=; fh=lvGFqwUxN+Dx1jonz8cRGrvjuKDcjMXylffmtrJGOYA=; b=MwXu+ujmyEsaHtVmP92/ZBdrfdfWbqThAVOlb9LyNOoH2d4Xoq2WtAWhhn9YiXgxI9 NTSHlKAhN0QiL2vzQyhnxHFpss22HnoaAxJ3L9YeOzh5AgL1EfxxI1f6CySFnr/Lozjt XDGj78J6muwQuh4FcIG5OEpGEdpID7F4LS8315vkSyh5SsnQft1vIMNt7PArFSBIC+Uo Na5XprxGcM0EBFqjakSsLAqh8SUFKEE1614+rUWaaz1+eREm/fODzWTnmwZqkWpHd3ts 8s17E7lAMJhaBevFYeMje+NNPZpe4S9M8BgPqkT16OZf9rCIzskUbCF7AiMigoXAWWkf l1yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=gZokaBPX; 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 Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id n9-20020a170902d2c900b001c9d7d8860fsi11084805plc.485.2023.11.07.02.57.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Nov 2023 02:57:07 -0800 (PST) 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=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=gZokaBPX; 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 Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id B8C52802648E; Tue, 7 Nov 2023 02:56:54 -0800 (PST) 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 S234228AbjKGK4T (ORCPT + 32 others); Tue, 7 Nov 2023 05:56:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234173AbjKGK4L (ORCPT ); Tue, 7 Nov 2023 05:56:11 -0500 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 879A3D79 for ; Tue, 7 Nov 2023 02:56:08 -0800 (PST) Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-32fa4183535so811421f8f.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=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=sMnpi79X7SvPehiPmk4gRm0VBHL4POtxgFx0CajIeKI=; b=gZokaBPX2TCvHaZGjbAH0J8BEoCZs9yXP9Ur7le8C+q0a3ZD3x9DCU2KmSagx+dFcX /9A/OyBdHM/ptQgpiaHiKWwLwpCkYhiVkiK17GqvVVTQoj4FrWkcHpae8GUy+3EYfCbn g/mT4p4x2/FT6161xCT/snyBaH5fgYgGGGFcGn5vC44fo3v16UCEliz7WEGQ79n+6yUw o5jy+XDBUurNe0FWVQ+vrYTTccxrL0sJ+LFmw8F9+Oy5vU7XHRq1j+mDClUewjxVzh21 wLQeOD02kluxcA9LdcTQ7Pikau339kUJVCRWHPNDQT6IoC7M9xKr+tBbszq63CTMgLUL T1mw== 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=R8fMuT9YXHEiWjfz0VjrShMb4xOG8adssaVD7++Z/pc3FEVPViDVBNiO5mtpP55tu0 CHMwPPpPCqFsxu0zrnlAacNnaCcVN1aWhr7nYqR9QF1By0D3HmXuODwjX+hnMUa/fNxD KzQxUG5PMa0nYADkSG4hl6l8sDHKllPMt10+oHPdNRq5J8bUQFQ6K99SfM0QOyjm/ISD M/Uwq54pcJkeA0NNFZmHo7uKh6kw2dAkkhuMLvKQdUByC/SHNyfYrM4xJ27Sr8IrxT5t uP6iTG9FB4KE6HZajDEnvB87YsEL5/7GTjm4zUZ8H98/hiLaserrq67E9nORQV3Fdqt/ emqw== X-Gm-Message-State: AOJu0Yyjd61jXzWNV50P+OSiVdcAfZH2ZQW4Tfwyc7XDIFyZiycc9dUH 6ERuW2WOEGIhSzlqJo2+KZ0SFw== 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-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,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 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, 07 Nov 2023 02:56:54 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781902477146876565 X-GMAIL-MSGID: 1781902477146876565 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