Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp19548304rwd; Wed, 28 Jun 2023 10:43:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5sPcKmI4DGBeO/hBaMqhWPAFoCuZEapix0Gv5c5Sf+O3ZT1Pw7/kET1vBAyo7C01yLiI3W X-Received: by 2002:a17:903:245:b0:1b0:f727:bc41 with SMTP id j5-20020a170903024500b001b0f727bc41mr10376588plh.42.1687974201522; Wed, 28 Jun 2023 10:43:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687974201; cv=none; d=google.com; s=arc-20160816; b=ZnaW1Jwi+CqCF9XUKZlhoRydSH0c0L0ls+VeD4VQq8+v/F2Wt2oWPph9PMpX0JmApw s2KuS6S1BEl/efBZIQgPkKzdfqnAl2TQpzrcUsktEKp/sSDtwCZSs9ELa1VbgG/HqnRv 3bUGsF/bLmHxzk65zBOR7f4T6t+GiM+6fEs/z/XaVVnEf3nBTgy8BS6O9qvM0GacWHwz ONyP4mO3+IWNPct+SeBGhY04UrX1jQn/7wiiBAb8NdhRfkY9y9K8u9znWRaOsHVzZcYD Ch0wXfeuyeUJLo9JudRp4CS79+IEIgsgbczKAty8KUBSceQDOgfr7kWmObhguMznD9eR /8Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=kqIqFUPFrsKoIzLWBGgp2HjNxkpNScvy103dAekNK5w=; fh=rv4mV16uNqkdqBXn2bXBuAYkKxL4c1ECKT70ot6A1kI=; b=KOKb6Z8wk9XYU+3z3+sNJ9IW74M3NM33BHIxecr10N3yeI94pege7EiS7aMJPe88gs DTu6+APl5TgbNHfF9EOt0t7QTvf9WPYdDq9UliFdz9zMNZrSlaQY5b2/0BPQ7vvJaW84 zAm7ZD7aSd27jsExiCjd2mDzFLbYmI5KaQFbQdcUBVkrXYo1Lc6RFZ04HFyKM01HICBa i5uPhRt020j3vwcXwOgadXVW2K4naxveDjwf5ZQyvH/IFIPX0GK5aUDTQ8A/Ia/XI+Z3 S5r+BNbXmlVa9qdPMFWerfqh3OIxjf2Xhbt48SJx/SBMPHWfnMl9xl4OmHjgjq/NFUzI TBLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=iO+yzmLl; 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 z11-20020a170902708b00b001b3cf7cb619si8697734plk.62.2023.06.28.10.43.08; Wed, 28 Jun 2023 10:43:21 -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; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=iO+yzmLl; 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 S229522AbjF1RXi (ORCPT + 99 others); Wed, 28 Jun 2023 13:23:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbjF1RXf (ORCPT ); Wed, 28 Jun 2023 13:23:35 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEF741FCC for ; Wed, 28 Jun 2023 10:23:33 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-4fb77f21c63so5323364e87.2 for ; Wed, 28 Jun 2023 10:23:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1687973012; x=1690565012; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=kqIqFUPFrsKoIzLWBGgp2HjNxkpNScvy103dAekNK5w=; b=iO+yzmLlBkR+O04yTgo80XMCjE1b80WI/5T4Qt+zTpN+zGPz5uUifYYcilgLFgMHlu KRxvTMs2ZdJ5lItvmKidStNdeww57cz5o093LHLryAOWX0mjEFxB/a5kzgIFkFBD3YlU +D1ZnbfS+sh+CSyY39sAcSRMdmntP6SsFXeNJU0rDO5cbX1P57xW5ZRi6WlYNSHkr0IQ arbyQtQnxWUZGkqsK0ZlsXC6Hpc6EC3nZ9MEER7r4rJ01FEkQzjNOSJ5nrkBS6KXOD+Y aq5OoGfAThvZRw/LqxpPX05JVvc7EhBP60vZwNHAEiCJXpHKfesydgdF0TUxzYFw98/8 cNZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687973012; x=1690565012; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kqIqFUPFrsKoIzLWBGgp2HjNxkpNScvy103dAekNK5w=; b=ZS5bkETfPE7FTB7b9W+65NE0z9Rp2558b5tR51JE+6W3/VQaCgQdEGAomfXcH+/0NC ZMjnhELU++RpuI7wa40iDlAVGaoWXtjY4/ieO/HW8TNZu/7Uy72Pj+NCCeXtyQ4tE+y2 oR9FUk2eJ377oN9aqPn3qq006Zz0/7j/y1q1ReT2O6yfwAQb0+fGpUFFWAuX1wsi2HQN KYL/VRfM/Deklh+auKWv6fh8CRXhqOOfNk/xhgyc/W3oNwWpphbKbekLSkfVj+lnroQz QfkfkufoYxOKjp1RcSM1e5ppmj5kCCynxdg6neicCjaQYLejxGkpcm9AvqZFrSZ+yfNV gVjw== X-Gm-Message-State: AC+VfDz9llnwVHx302NyIihK2RZ7v661CVTmyyAS1lvpuqEWlPXDEqJl 6hp8XWwad2azNVHxF8gZFy7Uq2JUt4/ZnFoXBZfVhw== X-Received: by 2002:a05:6512:e9d:b0:4f9:b6f8:844f with SMTP id bi29-20020a0565120e9d00b004f9b6f8844fmr8662285lfb.39.1687973011995; Wed, 28 Jun 2023 10:23:31 -0700 (PDT) MIME-Version: 1.0 References: <20230628131442.3022772-1-sameo@rivosinc.com> <20230628131442.3022772-2-sameo@rivosinc.com> In-Reply-To: <20230628131442.3022772-2-sameo@rivosinc.com> From: Evan Green Date: Wed, 28 Jun 2023 10:22:56 -0700 Message-ID: Subject: Re: [PATCH v2 1/3] RISC-V: add Bitmanip/Scalar Crypto parsing from DT To: Samuel Ortiz Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv@lists.infradead.org, "Hongren (Zenithal) Zheng" , linux@rivosinc.com, Conor Dooley , Andrew Jones , Heiko Stuebner , Anup Patel , linux-kernel@vger.kernel.org, Guo Ren , Atish Patra , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Jiatai He Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 On Wed, Jun 28, 2023 at 6:15=E2=80=AFAM Samuel Ortiz w= rote: > > 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: Evan Green