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 A677FC77B7C for ; Sat, 29 Apr 2023 12:34:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229830AbjD2Mej (ORCPT ); Sat, 29 Apr 2023 08:34:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbjD2Mei (ORCPT ); Sat, 29 Apr 2023 08:34:38 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADA901FC6 for ; Sat, 29 Apr 2023 05:34:36 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-2f40b891420so755056f8f.0 for ; Sat, 29 Apr 2023 05:34:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1682771675; x=1685363675; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=oyTww+8/zlSGEpH0cgrTBvyiwJFDady3FmCvoDDMgT0=; b=A/z5TyUTqwCud45/kIkuGOx165IgVQyxljkiX3LKmU54aJnPA50bxIdVR7ORVbXPJG xLzfHVYD1z1C+uol3WpTyDpqwZGSqr1wH51zuS+TNV47qeoqch5NqgvTx9xAeqZY44IU XWA4SIStAPzkbCckFU/tbkQYR+hhIYkxqc9rsjeN13oSpTfat4mby2+qQH2b7+vr8MsO kVr7vr0bqsw5soMq/oHkc1kaIvmSxzIMNlotFeYuA3/n2lgPhzq76mR9b0G+QsX2p550 4qYsIkYVYROlXo4IosM1ZtD6Cpm8cJ2fEQNX4jIWRknEVYDHna0vHNyJ5nBrjAXZGr0a oGlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682771675; x=1685363675; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=oyTww+8/zlSGEpH0cgrTBvyiwJFDady3FmCvoDDMgT0=; b=Jq/yQQmRv+j/rmnGMYsaji5+5idUFxLsn3/1Tf4izqxF3zNO9bS5l1gGoGPpi8GLJL xubE9ctIQB8B1DLZeD8g6tsLZZdZNQofePhnlbKZ2bKXlg3RzEHiV7NKwJ1ezUmWu2rA gIMdoAgE0jN7Em+rH8pgh/Hwlgqb1UUCC2Yo0cEQ6jhQ4EBSIc0X7X/Y3k6wsyJPARGU CRL+fW8Hv+S5sxCvEYKXBTLzCCbA1/HzPJmWJ/pm/0xMXoDARV62WFAkJFosiQN6UGAt 3rxqz6zdY851csuIDbj0tdoKuNQHQgc+RHSvIR+CteyhmaLG37Qkk+CAljDE6hqiCNoc 7+6Q== X-Gm-Message-State: AC+VfDwxLmVlRl3e6+dfB3ekbYtiYNJphxWiqxLTmP9qESXrUJkL1e6E s4vUGDFPYsyDNWyAOO0IQWvaEg== X-Google-Smtp-Source: ACHHUZ6+RfewAuyborC2LIhchXAkHF6ymuqX2qX76Qc+Bj0Gznua6O2fZa1Zh1/JuvhHM0dXQ6rcYg== X-Received: by 2002:a05:6000:509:b0:2e8:b9bb:f969 with SMTP id a9-20020a056000050900b002e8b9bbf969mr6248178wrf.0.1682771675082; Sat, 29 Apr 2023 05:34:35 -0700 (PDT) Received: from localhost (cst2-173-16.cust.vodafone.cz. [31.30.173.16]) by smtp.gmail.com with ESMTPSA id f11-20020adffccb000000b002f90a75b843sm23496085wrs.117.2023.04.29.05.34.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Apr 2023 05:34:34 -0700 (PDT) Date: Sat, 29 Apr 2023 14:34:33 +0200 From: Andrew Jones To: Evan Green Cc: Palmer Dabbelt , Albert Ou , Andrew Bresticker , Anup Patel , Celeste Liu , Conor Dooley , Dao Lu , Heiko Stuebner , Jisheng Zhang , Jonathan Corbet , Palmer Dabbelt , Paul Walmsley , Sunil V L , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH 0/3] RISC-V: Export Zba, Zbb to usermode via hwprobe Message-ID: <20230429-104e430d8f02e587aeff2652@orel> References: <20230428190609.3239486-1-evan@rivosinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230428190609.3239486-1-evan@rivosinc.com> Precedence: bulk List-ID: X-Mailing-List: linux-doc@vger.kernel.org On Fri, Apr 28, 2023 at 12:06:05PM -0700, Evan Green wrote: > > This change detects the presence of Zba and Zbb extensions and exports > them per-hart to userspace via the hwprobe mechanism. Glibc can then use > these in setting up hwcaps-based library search paths. > > There's a little bit of extra housekeeping here: the first change adds > Zba to the set of extensions the kernel recognizes, and the second > change starts tracking ISA features per-hart (in addition to the ANDed > mask of features across all harts which the kernel uses to make > decisions). Now that we track the ISA information per-hart, we could > even fix up /proc/cpuinfo to accurately report extension per-hart, > though I've left that out of this series for now. > > > Evan Green (3): > RISC-V: Add Zba extension probing > RISC-V: Track ISA extensions per hart > RISC-V: hwprobe: Expose Zba and Zbb > > Documentation/riscv/hwprobe.rst | 7 +++++ > arch/riscv/include/asm/cpufeature.h | 10 +++++++ > arch/riscv/include/asm/hwcap.h | 1 + > arch/riscv/include/uapi/asm/hwprobe.h | 2 ++ > arch/riscv/kernel/cpu.c | 1 + > arch/riscv/kernel/cpufeature.c | 19 ++++++++---- > arch/riscv/kernel/sys_riscv.c | 43 ++++++++++++++++++++++----- > 7 files changed, 70 insertions(+), 13 deletions(-) > > -- > 2.25.1 > For the series Reviewed-by: Andrew Jones