Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5638370rwr; Mon, 1 May 2023 08:38:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4AgsDOTZPRL8+LpPPkPK/z8Z2VPksHvt2+ggatoVFbq02FGet55xs07lxJuKrHxrau81lL X-Received: by 2002:a17:902:db08:b0:1a9:b9ae:333b with SMTP id m8-20020a170902db0800b001a9b9ae333bmr17771405plx.27.1682955537721; Mon, 01 May 2023 08:38:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682955537; cv=none; d=google.com; s=arc-20160816; b=uQGX1QPIf5ZQ6cmJO7Wga6rOWpviysIdp2CnNnI+t8D+ik2siWEBZhJ2fVH1PJr6OT awLiaxCgDhKjMcgb6enPb1juNZhlSIZHzu49ExLBY8B6aekk6u6UAw1n9xELvgftaIcx 0QK5YHW56yxDzb5maYd3TPaohEBfX95DrY3/VLz5/blc/orbST5hoPENvk/pR4MHJYki KdnyjpwkFS/v9gksfKkpj6zANiQbzW8UbVeRFDEVEdEbscuNynueyV5Nr3lEwIFAlDGu q9N/e95fb+Z+D22NFPDN6ax9jWeWBOcZE1pE1b5kcB/ORofSPOiobVBW1pXFB3KbuaYL 9ahQ== 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=IOUg2Qc8aphe+30HNqY5ybX4gjABL3Ib/MKnnLtzDrs=; b=OO3eXpwOIIzxouCxw2Mtsz3QopASYyKPSHX2rUeTK8smBvH+QXrYid2qs7HLdS+lhM upvxK/sCYnT337E5SmJpWDY5nsUAiRsV3RJJ4TpkssdN44sNJ5CyukOoriYoc2bP3nzX hH7rVDWf0GMiqIwpsYMLh4zL3mONqdEs9juXuwWlek5mxTim/EvSPY82AVbukxW4patk WGl4FVC0t13ER4NomLz3NlBKxw7PlhP4AkPPD19V20WocVyugtXHLmgb+MfNdE9tU4ze 6W2PXpPHaWpNkjW8og4kjMwdPIyu0ydv+8xXLdQCm4mylJiOPYDJH+YzUF0p0ota0W0G mT6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=cjIapAex; 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 a16-20020a1709027d9000b001a6ce2cdb20si6129649plm.244.2023.05.01.08.38.42; Mon, 01 May 2023 08:38:57 -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=cjIapAex; 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 S232617AbjEAPeK (ORCPT + 99 others); Mon, 1 May 2023 11:34:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232573AbjEAPeI (ORCPT ); Mon, 1 May 2023 11:34:08 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79D4912A for ; Mon, 1 May 2023 08:34:05 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2a7ac89b82dso25228261fa.1 for ; Mon, 01 May 2023 08:34:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1682955243; x=1685547243; 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=IOUg2Qc8aphe+30HNqY5ybX4gjABL3Ib/MKnnLtzDrs=; b=cjIapAexQolPOJup6sm/QwTf4sMOe74fhKip8P0hVHqe2uBZV2gPyiY2kmDq94orez sQyh4Ypk7uCS74wWWjh+ZaQw6RCHpsvzzGa5WaopghrovB/P1YzkePHy5w1+2tPyfA1p IBEJleXckQ7WtwIDpU9iQQ7GnZUDjnkJUVBMqKxSMfYrOSUWOLOcnyPbkUZagObFSuah EDpubk2wNji3BPh5mOZ6Lw0kYu8i2t9ZmRT2IFTlx9sf9gFHi44jThiNm97M+AJSnVDk tHcK6pC/DuqrJ6BBeQbvepcxHsEUr5nhBYpMZk+IwMe/gd9/vwajrlLLSQZXQtH61Ng2 i6gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682955243; x=1685547243; 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=IOUg2Qc8aphe+30HNqY5ybX4gjABL3Ib/MKnnLtzDrs=; b=PqUQf+vaSY/SetEtCWVtfyxQN3QiskgU0Vnt0fWukcDI6FWwsPMksmdPDedz37XhcK posv8wHlG7u2MHMxP4X7mDfYmZc9ii/aSzf0xhVrRPgA4P3k1k8zIxbyu/rCG6JcsPJI PCyXEyaGDXtlG/g7vSGCX426VjpF9xQDArNTHeetGsMNj0xnJ4aceOLvzGblN2EnpZk9 Y4tagJoDQs1c5mz1iR2X/SOBcKyKVKq50PPuiX1A81cJd3OlKdZsDSII9MepJljjvx7m vVHgd6qSrmfxNrlm3RBOd5LxHOWgW3C2T/O9zFcynktTO6Bw4ql6Zyy6HrWGu5nODnVp LB8w== X-Gm-Message-State: AC+VfDw73m5BsSOiUVTeKf4gpP6k4VLSNvB5BHZGccWsBtCbX0tvE6se CJ6Th9T6mNYbYY67IHzFV4FHrLCgxkXSQ4P0FwcRgQ== X-Received: by 2002:a2e:3c05:0:b0:2a8:c75d:8167 with SMTP id j5-20020a2e3c05000000b002a8c75d8167mr3689817lja.4.1682955243666; Mon, 01 May 2023 08:34:03 -0700 (PDT) MIME-Version: 1.0 References: <20230429-gruffly-chrome-fd94628cc5ff@spud> In-Reply-To: From: Evan Green Date: Mon, 1 May 2023 08:33:27 -0700 Message-ID: Subject: Re: [PATCH 3/3] RISC-V: hwprobe: Expose Zba and Zbb To: Palmer Dabbelt Cc: Conor Dooley , aou@eecs.berkeley.edu, abrestic@rivosinc.com, ajones@ventanamicro.com, coelacanthus@outlook.com, Conor Dooley , heiko.stuebner@vrull.eu, corbet@lwn.net, Paul Walmsley , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org 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=unavailable 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 Sat, Apr 29, 2023 at 1:07=E2=80=AFPM Palmer Dabbelt = wrote: > > On Sat, 29 Apr 2023 06:40:51 PDT (-0700), Conor Dooley wrote: > > On Fri, Apr 28, 2023 at 12:06:08PM -0700, Evan Green wrote: > >> Add two new bits to the IMA_EXT_0 key for ZBA and ZBB extensions. Thes= e > >> are accurately reported per CPU. > >> > >> Signed-off-by: Evan Green > >> > >> --- > >> > >> Documentation/riscv/hwprobe.rst | 7 +++++ > >> arch/riscv/include/uapi/asm/hwprobe.h | 2 ++ > >> arch/riscv/kernel/sys_riscv.c | 43 ++++++++++++++++++++++----= - > >> 3 files changed, 45 insertions(+), 7 deletions(-) > >> > >> diff --git a/Documentation/riscv/hwprobe.rst b/Documentation/riscv/hwp= robe.rst > >> index 9f0dd62dcb5d..21f444a38359 100644 > >> --- a/Documentation/riscv/hwprobe.rst > >> +++ b/Documentation/riscv/hwprobe.rst > >> @@ -64,6 +64,13 @@ The following keys are defined: > >> * :c:macro:`RISCV_HWPROBE_IMA_C`: The C extension is supported, as = defined > >> by version 2.2 of the RISC-V ISA manual. > >> > >> + * :c:macro:`RISCV_HWPROBE_EXT_ZBA`: The Zba address generation exte= nsion is > >> + supported, as defined in version 1.0 of the Bit-Manipulation I= SA > >> + extensions. > >> + > >> + * :c:macro:`RISCV_HWPROBE_IMA_ZBB`: The Zbb extension is supporte, = as defined > > > > Why is one EXT_ZBA and the other is IMA_ZBB? You do not use IMA below, > > so I assume this is a copy-paste mistake. > > Looks like it. Either way this was too late for the current merge > window, so no big deal. Copypasta! I'll fix it. -Evan