Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp34202522rwd; Sun, 9 Jul 2023 07:09:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlGaf4YvCUHL05eeTcHCW/KmYmn653HybHPmjd07sBQSFr/ca5DUAHtN7qH1Rs3hj3Tb+DRp X-Received: by 2002:a17:906:10dc:b0:993:eef2:5d59 with SMTP id v28-20020a17090610dc00b00993eef25d59mr4223079ejv.0.1688911742294; Sun, 09 Jul 2023 07:09:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688911742; cv=none; d=google.com; s=arc-20160816; b=cAQtkNRdTwQ5inRtpwr9TK/YNtjrwaX6lNnJnSwUPSoPQFzlmeupYoDMA4ijWBWmCM 64h383DGW3VDgJek7PPWVuhxDMCcyrP40ibDNCPgQffpMPlGQW/DMN7c592oYQjxn0bL o/VVX3UU8/Ru/izNzHYmaOf/uQqPkfaQoJnMBYWj6G3qafrnF4ojdfcSbaO9sWegFWmf 0mlca2GzR6TFWosQBVMRFCdhOIxgaXT/klUzr1agc2Ka7jr0wviUAAJy/PXVtBMJblsi RMxv1Bo+QnoOH9XrAgMNelvKF/f7KZjk/scxkiALJJOKZ07SXardVzYaDI4scyvPE3sx /y7g== 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; bh=JlJgHBLhQo6Sn0r/a7ahbNmfhF7NljXbJT4YP1Z08Wc=; fh=f5cztLImFGGpNQKIHskFKy77I0UuJs7oBHSLaL1o4XU=; b=d3/O9xHk3sCVAP+l20kKfrYsGGljr1VthQh3+X0UXul3CgS5ZaNl/0XyrMaQE6Ssw5 6avQvk43Xh3CY1WHX78HN25VYuEYTkNcvpk6nlTYcf0UNvIOeh3/FW2kCFEVSGFWQVB1 vZ9xwUbSewkB2RIzAwg6rHgK/gao6/ZhaM6X4JrdzkLi/pUKYITQIAMryVK9F9W0EY29 hLxZoThK4LwmclEyQ8C/opRfPjrQT8BhEST0tqoewPSBD6QKFurK1tPibLanTFafCGav 380pOBThp7UmqXhI5Kv2bIIpnYD3Sluf4T7fhxbdGWJhrq/zrK+SlRLwbVZH1me7n632 qliw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f19-20020a170906049300b00992671918a3si6668241eja.270.2023.07.09.07.08.38; Sun, 09 Jul 2023 07:09:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230467AbjGINYT (ORCPT + 99 others); Sun, 9 Jul 2023 09:24:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229505AbjGINYS (ORCPT ); Sun, 9 Jul 2023 09:24:18 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41811103; Sun, 9 Jul 2023 06:24:17 -0700 (PDT) Received: from i53875a50.versanet.de ([83.135.90.80] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qIUOU-0002QX-Dk; Sun, 09 Jul 2023 15:24:06 +0200 From: Heiko Stuebner To: Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv@lists.infradead.org Cc: "Hongren (Zenithal) Zheng" , linux@rivosinc.com, Conor Dooley , Andrew Jones , Anup Patel , linux-kernel@vger.kernel.org, Guo Ren , Atish Patra , Samuel Ortiz , =?ISO-8859-1?Q?Bj=F6rn_T=F6pel?= , Evan Green , devicetree@vger.kernel.org, Jiatai He , Samuel Ortiz Subject: Re: [PATCH v3 1/4] RISC-V: Add Bitmanip/Scalar Crypto parsing from DT Date: Sun, 09 Jul 2023 15:24:05 +0200 Message-ID: <3171655.5fSG56mABF@phil> In-Reply-To: <20230709115549.2666557-2-sameo@rivosinc.com> References: <20230709115549.2666557-1-sameo@rivosinc.com> <20230709115549.2666557-2-sameo@rivosinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_NEUTRAL,T_SCC_BODY_TEXT_LINE, T_SPF_HELO_TEMPERROR autolearn=no 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 Am Sonntag, 9. Juli 2023, 13:55:43 CEST schrieb Samuel Ortiz: > From: "Hongren (Zenithal) Zheng" > > Parse Zb/Zk related string from DT and output them to cpuinfo. > > It is worth noting that the Scalar Crypto extension defines "zk" as a > shorthand for the Zkn, Zkr and Zkt extensions. Since the Zkn one also > implies the Zbkb, Zbkc and Zbkx extensions, simply passing the valid > "zk" extension name through a DT will enable all of the Zbkb, Zbkc, > Zbkx, Zkn, Zkr and Zkt extensions. > > Also, since there currently is no mechanism to merge all enabled > extensions, the generated cpuinfo output could be relatively large. > For example, setting the "riscv,isa" DT property to "rv64imafdc_zk_zks" > will generate the following cpuinfo output: > "rv64imafdc_zbkb_zbkc_zbkx_zknd_zkne_zknh_zkr_zksed_zksh_zkt". > > Tested-by: Jiatai He > Reviewed-by: Evan Green > Reviewed-by: Conor Dooley > Signed-off-by: Samuel Ortiz > Signed-off-by: Hongren (Zenithal) Zheng Signed-off-by lines should be the other way around (Hongren Zhen first, then yours), otherwise Reviewed-by: Heiko Stuebner Tested-by: Heiko Stuebner