Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp617912lqm; Wed, 1 May 2024 10:19:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVR931QgLNirUZpTyTaNZSUY4aYE6+NS67D7Oke4zX3ATnVZH0OnHY/oIWrPuO2moXrRFQcxugyfIPrv5/1y/nuaTscOeJCkhk6mxZSaQ== X-Google-Smtp-Source: AGHT+IGrSimYTrXz0YYJvWcEz0rozw/F9cGO1k4RpXrSMxneQvQ7o2v/hdA5Q7zBTf9DYERqbTW+ X-Received: by 2002:a05:6a00:3a2a:b0:6ea:bf1c:9dfd with SMTP id fj42-20020a056a003a2a00b006eabf1c9dfdmr3468572pfb.27.1714583990549; Wed, 01 May 2024 10:19:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714583990; cv=pass; d=google.com; s=arc-20160816; b=ozKl/4Nq+921juldNVzvAAkMne2Q9Mo7OsuKOqqNH/4SN7SdpfaZ172WPP2DqCyoDM 2qfNfYlltD6uaQbpfKeKhDuC/DdvcWXm9yLRmllU5JCcsAmnUBASai6THRLkQiajqotb QJ0r1669QFLI1zEXo0i5UK+YuMMGMrLqdHPGJsovmhQ1lSXQWWNKI0BKYEg9DWX543Wt hlo6HE9nLQlREYKaxkEpHREQQKSvKfb2HMqYY2OLGCwq/Mvu0+zzax3l8ZHT9591ZGio vdPy9rleNvlfOwea2QiDZrlDnB/MMshb5gn0b0GvDIPYxfZ6aIXpfKcfkTpVU0Le/GUY N3CQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=YjpuQJT4kHa5gt1ZUcLXBE2gdjYPqdkdobSfsfJPJSY=; fh=kiKb/E1IKtDGEPwtAD/GUWMLQ7E7wuWCe9ftlFN37rY=; b=kCtWdOi44rFICAAIk9OTsyEgGw4Cy3or9yLBlat0yJ9aUB3tjJllphhIl2jbcjZ2mj rXpEhzz7LHH9oydbyFiFTrB/2O+V2i8xa7FBYdVQraTqWORYLSs5NWmvmaNVq2LzrYDt IT7MCmndbU9Yv4UCYPSeNuu0HPA3OfdrWQ0uXPUkfhR9LcFztYdLP4KvICEW/50biIAM g/IoMakr3xiLVq40w4u5aW8h6q9lIJaZkY7o1U5WBwCXYxL8qPk4mxXDF8ntShhzcvB7 QZKzmXD54AjHC6fbC//xLRaOcRCH1vqBPe/vT0pdSvmj/3mp2s3xExasql7acqnLiQOp F94g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HMSpGVhI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-165638-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165638-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d67-20020a633646000000b005f7ff3465a0si22313077pga.478.2024.05.01.10.19.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 10:19:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165638-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HMSpGVhI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-165638-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165638-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 15CCA282797 for ; Wed, 1 May 2024 17:19:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D3B3D18E1C; Wed, 1 May 2024 17:19:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HMSpGVhI" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E842FDDAB; Wed, 1 May 2024 17:19:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714583982; cv=none; b=Y1hiCtw+VXiUPgU6Qu+S6vjMqMHHeAUWeV0tbj3EiEOLwjJHBK4cYKvdnDHRhZ4ODTOaPPvC7GOYzksnahUv1senflII4xVrc/orKH1pEpcijJfMgmSLLcgz4rXC6U+iHa7zHO9ycIN287OyIJiFRgjwIAG2HuknW8I5J8Cs07Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714583982; c=relaxed/simple; bh=mJpQKEtcJ3c2v8AHUID+6FduoqIlPGmY7MH+0xeYgrQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RVy/shA78FbIgIrTO0k/VH+JcuOVb2nuHdluATBXTfUVb6UyEYW6mc2/Sj5MOl5B3mTRDtHdW6ZH41PbXn6dNFo6njIJtEoiyftTi+mckeuyPH7WCN0tc8N33d7jwISN6b2wt2OZG44amj92sjWjcBMtijyp4EGbGDdDysZOxCk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HMSpGVhI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 07A04C072AA; Wed, 1 May 2024 17:19:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714583981; bh=mJpQKEtcJ3c2v8AHUID+6FduoqIlPGmY7MH+0xeYgrQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HMSpGVhI8L8uDLsSJJEyFBTgsakjDAs1is1XCNC2hQxzL/c3hmNjyHKnYw9L7pnNm 3VrCgUo1asZ5RBoNv4kM5h9lNXbDcn//XWfzXfR8sj3XMhA6M1MgMq8QH4Gi+wWaJ5 0l2lDkdkGXWlXMWPo4BAyk0qBvpH9mWWcG2UvJeygxKc85jiZz0wukD31Ex0OU/5s2 gg6jbKOb2F7NJjqav6GG3wo7ox9dAtoBhAVqLdD5ZgpQImiveSIsKvm6tUjj1me2Xj npHYon9go63e2dhegSbafdb4RQwnnOedglZqjxDB5gNnJW+9JfXd8t44tI5kKN+1dT QOkkuGbs4LPzg== Date: Wed, 1 May 2024 18:19:34 +0100 From: Conor Dooley To: Evan Green Cc: Charlie Jenkins , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Guo Ren , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Conor Dooley , =?iso-8859-1?Q?Cl=E9ment_L=E9ger?= , Jonathan Corbet , Shuah Khan , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Palmer Dabbelt , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v4 05/16] riscv: Extend cpufeature.c to detect vendor extensions Message-ID: <20240501-flagstone-zealous-2fc722bfad39@spud> References: <20240426-dev-charlie-support_thead_vector_6_9-v4-0-b692f3c516ec@rivosinc.com> <20240426-dev-charlie-support_thead_vector_6_9-v4-5-b692f3c516ec@rivosinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="mVgGewDsv8YXPdzq" Content-Disposition: inline In-Reply-To: --mVgGewDsv8YXPdzq Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 01, 2024 at 09:44:15AM -0700, Evan Green wrote: > On Fri, Apr 26, 2024 at 2:29=E2=80=AFPM Charlie Jenkins wrote: > > +struct riscv_isa_vendor_ext_data_list { > > + const struct riscv_isa_ext_data *ext_data; > > + struct riscv_isainfo *per_hart_vendor_bitmap; > > + unsigned long *vendor_bitmap; >=20 > It took a lot of digging for me to understand this was the set of > vendor extensions supported on all harts. Can we add that to the name, > maybe something like isa_bitmap_all_harts? (I wonder if we could drop > the vendor part of the name since we already know we're in a > vendor_ext_data_list structure). Reading this made me wonder, why is the all-hart bitmap an unsigned long when the per hart one is a riscv_isainfo struct? --mVgGewDsv8YXPdzq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZjJ5pgAKCRB4tDGHoIJi 0mvKAQDZ/PuqkdmAAHeDEhcfzV4GeMOwujPT7ib0jWzVFEvmMAEAhdzNdXJHw+cT qfdruwRE1FLdK0IBpLEhnxWwE/OVvgc= =uVOz -----END PGP SIGNATURE----- --mVgGewDsv8YXPdzq--