Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1427022rwl; Fri, 7 Apr 2023 16:15:56 -0700 (PDT) X-Google-Smtp-Source: AKy350Y7iQEv7FB0wxqrOCD2LzLT8KuuFvrgzhJ35r4fbuU6OLuwDgGYin/bd1UnRAZGENVa9vLZ X-Received: by 2002:a17:906:4ac7:b0:8ad:51e9:cd57 with SMTP id u7-20020a1709064ac700b008ad51e9cd57mr1065416ejt.49.1680909355804; Fri, 07 Apr 2023 16:15:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680909355; cv=none; d=google.com; s=arc-20160816; b=ayb0n8bLKbwRpfSI1zRd0gpKAw56NS8C9/OQz3ppduPLcZMwwU1Al3Qk1Vh9/fQMWc lnT+G5HLL0GVvEYh1QZF1BUjOBeJFsjzPPBlzU/cp/Y5ooTmCJlUXQPVCjnd9GXGRNCe 5tTuLEX0ngfPQg07zkqmvuoOND244HRlg9S6rWK/0KXH7S65zTAp1jd3ypsa4Zhjr1Zd mhyLMQQMSopScqMV9OuNvYCeEZ9vTdZFpU8gVPlMzePh6R5K+yWY1YBytQwKRG3Mfs7S PYb6TePWentxcZAYi2vlYTudcYWWhMn6Q6t2CAm7NqqEzumCvxqD0ljGnS5G/E7k24hu fRLA== 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=QLCKLoInrHAdRrt/0I6H7kvsHh1I3smFNdrczzyqv/Q=; b=J4/uMidOnJaG/G6IEwNI9nbVYsXJH+O2Xlx1KREAQAz9+wv+Zue8URCPkXI+B5eRIP GSrpfOUpDu653k/zC9LhWMxZ3cyYhCdpCE6bFrz9R9LR2dh0kihsZw0uWvy/T/T9b6S9 zj7SEsH15u9eMhfCxifuW/cwowI7hwT0+LGpYy3W7qDr0k7Uaq8JrL9GoeYOYoM4C1Sq B0NXsOzUXql4VeUI78IDh8QA0eQMqiovZ51ar1VIyxQPR5/ITv7Y4l+gu+9lHQ38CrxZ vfFrGSiFX355M2a+fgBnb+/syoY5Dqx3xTETc2P7jHJOjOhNKBllfSvvHkLtehk7nEe6 x9tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=1BVMFc6c; 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 b5-20020a1709064d4500b009334769adc2si4415256ejv.457.2023.04.07.16.15.29; Fri, 07 Apr 2023 16:15:55 -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.20210112.gappssmtp.com header.s=20210112 header.b=1BVMFc6c; 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 S229808AbjDGXOI (ORCPT + 99 others); Fri, 7 Apr 2023 19:14:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229786AbjDGXOE (ORCPT ); Fri, 7 Apr 2023 19:14:04 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EF68D53C for ; Fri, 7 Apr 2023 16:14:01 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id c9so45652866lfb.1 for ; Fri, 07 Apr 2023 16:14:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; t=1680909239; x=1683501239; 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=QLCKLoInrHAdRrt/0I6H7kvsHh1I3smFNdrczzyqv/Q=; b=1BVMFc6cnJvNZ3RCGog/TgUAVTShIApspugpWbu7eb5NWMCf7pwShOSSgxqtalstr7 /5oEqJlSLieSR/6Fbv9vqMSMmsb7NEJiC1iv1Sl8e8N5TRv6Kgmgs2RNyOtD/3+lS/HB VC0jNqy85O2whn7VfMZxF1x5AuNlf45ENRtquDzLd3lJ72FprgdTNqXMSC66Bkz5kraO 5sH4rcSJ8RwJREALKSNnUUEjeiYuMBnaHqHe+Yzew0lJll7GhNquiEhAg7iHbYkgiLOR 8tZTJrI9uxuOzfAplYHdH5oerDH1tIxhUTEqK9hp5AvToRNly5zYVQ9c2uoXtwMPlZMQ Npog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680909239; x=1683501239; 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=QLCKLoInrHAdRrt/0I6H7kvsHh1I3smFNdrczzyqv/Q=; b=4UkjAhdEwZVF1PDzU7v2vZZIlyn9ZPUyIqhqr4EnHwILvu+n9ZWNnTb4WRxQTTloqz 2bIIarvL8R2r86sUjLjlG2vc8Zd9WNCMQu4UpT3HrJ3QpVXnOSF2mtjPBbFH5kuyYdhO l0UYkZnpRRSUdBi3BLwL0BxSnGqcIyDg6xp/MGLUGIyncdyx8d+jM8WjeqDQHJLOEK5c jzWzKklLqCTOebI9E3vojqsbSknbjbvphnYMLVcW9GkxKwfmDpGxvx/pAFc1y1DmhnCY HbOl2/VE6irZQK4xSlpMxtooDN3HT5ExrRPFiNEOlfExj663GW0FR4EJ6e6NXyMq0aK+ jWfg== X-Gm-Message-State: AAQBX9fGXBe9cEIsvwJe3RTGx+GmrIlQuHO6v7S02/DWOnot59G1GMnx U3IBEeMQaD2lNb+sQQMRE9Qumg2vZIqsgL2irM9ogA== X-Received: by 2002:ac2:54a5:0:b0:4db:5133:59a6 with SMTP id w5-20020ac254a5000000b004db513359a6mr1120101lfk.13.1680909239626; Fri, 07 Apr 2023 16:13:59 -0700 (PDT) MIME-Version: 1.0 References: <20230327163203.2918455-1-evan@rivosinc.com> <20230327163203.2918455-3-evan@rivosinc.com> In-Reply-To: From: Evan Green Date: Fri, 7 Apr 2023 16:13:23 -0700 Message-ID: Subject: Re: [PATCH v5 2/6] RISC-V: Add a syscall for HW probing To: Paul Walmsley Cc: Palmer Dabbelt , slewis@rivosinc.com, vineetg@rivosinc.com, heiko@sntech.de, Conor Dooley , Conor Dooley , Heiko Stuebner , Albert Ou , Andrew Bresticker , Arnd Bergmann , Bagas Sanjaya , Celeste Liu , Guo Ren , Jonathan Corbet , Palmer Dabbelt , Paul Walmsley , Tobias Klauser , 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=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Wed, Apr 5, 2023 at 6:57=E2=80=AFAM Paul Walmsley wrote= : > > On Mon, 27 Mar 2023, Evan Green wrote: > > > We don't have enough space for these all in ELF_HWCAP{,2} and there's n= o > > system call that quite does this, so let's just provide an arch-specifi= c > > one to probe for hardware capabilities. This currently just provides > > m{arch,imp,vendor}id, but with the key-value pairs we can pass more in > > the future. > > > > Co-developed-by: Palmer Dabbelt > > Signed-off-by: Palmer Dabbelt > > Signed-off-by: Evan Green > > Reviewed-by: Conor Dooley > > Reviewed-by: Heiko Stuebner > > Tested-by: Heiko Stuebner > > Folks are already building RISC-V systems with cores that have different > feature sets inside the same Linux system image - just like some ARM > vendors are - so it makes sense to pass this information onto userspace. > > By the way, Evan, did you intend to update the copyright dates to include > 2023? Updated in v6. > > Beyond that, > > Reviewed-by: Paul Walmsley Thanks, Paul! -Evan