From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 16E34EB64DC for ; Sun, 9 Jul 2023 13:24:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230306AbjGINYT (ORCPT ); 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" Precedence: bulk List-ID: X-Mailing-List: devicetree@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