Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp34224046rwd; Sun, 9 Jul 2023 07:31:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlHPzxUeuwreK92QbYDsf9u3K3Q/v2c1dZBw/1wgwCxg9rl8uej530WmBiIQwzMY4GJ0leM2 X-Received: by 2002:a17:902:f68c:b0:1b8:ae24:c207 with SMTP id l12-20020a170902f68c00b001b8ae24c207mr8874528plg.68.1688913119375; Sun, 09 Jul 2023 07:31:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688913119; cv=none; d=google.com; s=arc-20160816; b=M4AA3QQSwiqOuzlHBfsf06in62Qagf2YRhE5vc5nUVLw+/vfxAROqYEHsmhmdn7eCB 1BU/d2VrvGIUQAWtct0L3bBUowUstcMnaURXYkDS0oYXG3liWkP6jDU3oe/vVpq/LI2a CHBcd0tqp+2kOZG0zP672twqSeamh9NVDKbpLnGLGm2vfDEqtjd4kgfk3CrElHjHwUvl 8BUICpTBGhFrBzOxJjvIc+7kPSIzTV1634tk4nwWtmLRZ7CnOgRmvzHfZ6J5X4XZexRD epNMefJWCDHI1mc9YzbkjKS+yHHCN5JAK/VJVCYgFLSeaQUatzbXMIubIXkgT2r01LKn MV7w== 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=LM//e+uucBH/HplNYNws+UVkMQm0J+9RFcd6mB8hWd0=; b=Dz6gk4mOSQx//HKxcV5fFhtyneykzKdz9Jo1hLZydFDHPwP4fVWSlUJsMzlUi6fIub iQdh+ehOtcci2l+JPIu+pJ2+23Kp8RJRqJlnXGDd3u6orpAHD6TBtg3Hk8DXj/Lp7pve D5766pm6CQNarwIH5SdziAvFfh/WEHPI1jo0ip9/wvxOEQZDlvwUDNEWdmITp84Dzx/E 9yRF5l3lpBFYK6KNY/eFGgw/EtxrI/HN9Z+N84Fn4YwHjUo9DZ+xOcyaPxFbcdBTG7R8 +0XJ7CIu8NIcRyBPn+HaZ+2HquIT5ru9eyF7QCDjIv1W9ICBq8vRIZywmmUsWz/Qb+l+ boRA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b18-20020a170902d51200b001b9da7af2c0si1357571plg.214.2023.07.09.07.31.47; Sun, 09 Jul 2023 07:31:59 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232986AbjGIOI4 (ORCPT + 99 others); Sun, 9 Jul 2023 10:08:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232969AbjGIOIz (ORCPT ); Sun, 9 Jul 2023 10:08:55 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40A64123; Sun, 9 Jul 2023 07:08:54 -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 1qIV5j-0002d9-Cr; Sun, 09 Jul 2023 16:08:47 +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 16:08:46 +0200 Message-ID: <112597086.nniJfEyVGO@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.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_PASS,T_SCC_BODY_TEXT_LINE, T_SPF_HELO_TEMPERROR autolearn=ham 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