Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp34064371rwd; Sun, 9 Jul 2023 04:33:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlGvvRVrL8x1HHtW8Y2u2OBjF4V2Vo+D4wH7S3+NHEY7qwUp0uDuc5fkYFfxvC0dDaE7QYVA X-Received: by 2002:a17:90a:8007:b0:263:5d25:150c with SMTP id b7-20020a17090a800700b002635d25150cmr7697324pjn.29.1688902439334; Sun, 09 Jul 2023 04:33:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688902439; cv=none; d=google.com; s=arc-20160816; b=eiaidMFuuVgvnIO6j34rm/Zx/LqheTT/ZhrjycmWUkbzzg/B4r477CtXvFjqVbewJD cABvkt3mKAEP6ZPlGAy0X96dkJDqoUmMBxQgy46USQd2F1U5iZGcJn2GiulxjqQVE0+s xBt3jFLi41zLhjFTztQCcTYX2+f+rSr7nGmRnckYoqa91GlXLXGTB34FUhod+TUWJjNb SIGyKpgkLrMiEWyFviaG1A2H/IekKgXWEu2Xv0ycgmBQd2QkFX2JDG/g5EGOnuxJUHct 4nCDhJ4WtlrXH8l6LCxkajbixtmRH1ltKMyusb34R89J0RhRIyNlVZTQHMgfvwk8c4yC 65pg== 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=yl5jGHoY23Vjt6KFEV6xmUB+2MFU24ExwTsPtqjzXQA=; fh=pqF99guiKEHBeRd2kdVfvuhf+EbQmvQAzrSdrkzCf+Y=; b=i/0erfV5FdlcbL9BveZeJI4vaRCGJ31lBeJdcKdaSEpTB1accTzzoir7xsuKysRWSk O+6T+udP1jYPBaqWFb98KJSwSstNYEdpHGRQgudVJxU7ERM+MyIUh99vn1L97++fZpv6 lhnu8YJYLB3Ci3BpL3vXdYviJj9LGYqHja/QKL79/aCs5Wr125n6KOcKrYIWV3Od2PsB G3J3QitSZMSZEh0sOL4FNLfntP9xsBlhKvuXLNCYplq/orqdk4n0UeAYZY/Fwe6tO0pq lZsYqoEzhCPNeCa+lS1Clodhbhdr4TDeTc/B3cHSxqw24FmL8Vz3XtBWalvkuxXTAk9n 3PMQ== 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 k3-20020a17090ad08300b00262ca6c0ad7si5469701pju.116.2023.07.09.04.33.48; Sun, 09 Jul 2023 04:33: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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232798AbjGILbG (ORCPT + 99 others); Sun, 9 Jul 2023 07:31:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232804AbjGILbF (ORCPT ); Sun, 9 Jul 2023 07:31:05 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D41D218C for ; Sun, 9 Jul 2023 04:30: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 1qIScn-00020u-EA; Sun, 09 Jul 2023 13:30:45 +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 , Jiatai He , Samuel Ortiz Subject: Re: [PATCH v2 1/3] RISC-V: add Bitmanip/Scalar Crypto parsing from DT Date: Sun, 09 Jul 2023 13:30:43 +0200 Message-ID: <7542713.EvYhyI6sBW@phil> In-Reply-To: <20230628131442.3022772-2-sameo@rivosinc.com> References: <20230628131442.3022772-1-sameo@rivosinc.com> <20230628131442.3022772-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,NO_DNS_FOR_FROM, RCVD_IN_DNSWL_BLOCKED,T_SCC_BODY_TEXT_LINE,T_SPF_HELO_TEMPERROR, T_SPF_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 Mittwoch, 28. Juni 2023, 15:14:33 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 > Signed-off-by: Samuel Ortiz > Signed-off-by: Hongren (Zenithal) Zheng Reviewed-by: Heiko Stuebner Tested-by: Heiko Stuebner