Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp614069lqm; Wed, 1 May 2024 10:13:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUkCTQrwlg35SQjcqHxJY6iNZi+g2i8torY1hQ4bSSe18s1VPL3+SzrOjXX491mURrxFrrL6mm2ahqGiKbLCpGr5TBEEGyo5LR6f9RR0w== X-Google-Smtp-Source: AGHT+IH5oPk+j6lYNjtLfGFHjfpo32v64jSDNl2LEjnumWdGiUzpDNASoCxg9qDdzMeBkUB85MDz X-Received: by 2002:a50:a454:0:b0:572:7d77:179d with SMTP id v20-20020a50a454000000b005727d77179dmr191105edb.5.1714583603401; Wed, 01 May 2024 10:13:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714583603; cv=pass; d=google.com; s=arc-20160816; b=SLm/n1NAhDpNJ63knrDLFXgtxctn46JVG6F2p6fxClX1HCw1VVRyoM/0eAgl8rwY8T lTPxD7w0omPb3bLDnD5rvvDgtGhwPYflMqjMW/46ZmmWWCpQ7W8YuxZxxHw8YYKAYtcJ S8RU1rz69lnMVPRLhoP7vAG/nUp1RDSuDyoruQKKgI9TuJoi3N2irXYqa1uf3EW5V5+2 0XMXiSNKrE+L+JFj0iWgrOUmnDW7YE2cGGpUIdEtpUioEvJlfoUIIAo1K43mVFq5vAww F99q5f15VV3gk4Bjes3iUIaR2VDh2U8GBxQuvc0Lj84jvISqEmYHQ4GFJtSMulsvfhGL o7sA== 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=PfFMtlOvr0dcN01JwTain/SBUthZH9w5BZHO6bnSzOk=; fh=mBwwpQbay9vhzTgPULjjDn+LkmwbaBeNVRczdYQ/Av4=; b=g4TLcVyR0n1btQqlAtKXzpf7GEeO7b4s21X5R9sNEfqM+hBMa69ivOplZjbkHz1uTw CS/CoJ89fJzPkjQL2QQ/ggDdooxmfinsWYJog6sKG19aGibhoT0gJ1v5r3KnK01wdAhV XYy0HjZ5COG5IWoq4X0r9lUrOLjDHTFb/ahQtL9UNvlv33JFdnWZc90GIFiuTUy5CHtY 1zfQqpRI69Eb3lH0qIbY66ZEuDAbAHQKMy13+8zQ1CLij+7GofVMCkpbMHtTrIdGh/zG hjmbM/VAvsGwQtCOptAv1TT4WIY/Uhg2+G1xbRUTx14zgvvfbqmt+YaIyxbVQS1IheRW EigA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Tkwq10iK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-165630-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165630-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id y4-20020a056402134400b00572a280af95si1382852edw.21.2024.05.01.10.13.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 10:13:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165630-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Tkwq10iK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-165630-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165630-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 265331F21DEA for ; Wed, 1 May 2024 17:13:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 41657DDAB; Wed, 1 May 2024 17:13:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Tkwq10iK" 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 5A9041B949; Wed, 1 May 2024 17:13:03 +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=1714583583; cv=none; b=fuv3aAC0EX+Nv/0ZfCpb+bcd/Q0rawO9RxYG9GuMeyDWjEMil3SDfCbXDHC/7K488IlYXqtsVv43GXyyt7AihGLmFhKF2fcsf/lSiKDuBOlzplb7pnX0dcJaRyEyzyT1OzUEtICQsxHQDzn2xZgtFZRxiGhSP3NRkltK1RDdAYI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714583583; c=relaxed/simple; bh=IPz3/aYgNNtTogx2QM/gCrHuFcu+FzM5abaZXdd4Yz4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=lSnakXLYVOe+79yyWnfJdKRy224ineR/r4PNLUDCOjeZmd19DT8u9lTlS+8n6XATcDwEUDJR1ARTr9hwqn/HbptpkDO9QvM3YwvobeHC3blnhBAyqY7ZvEHoySakjXiT5Ckwp9EyxnxYsLvGbXsmHFy1jks2wEPl8llVaisX0QI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Tkwq10iK; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 56A3CC072AA; Wed, 1 May 2024 17:12:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714583582; bh=IPz3/aYgNNtTogx2QM/gCrHuFcu+FzM5abaZXdd4Yz4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Tkwq10iKy65p80Ifjsox/DLLayxuj+nXv/KiaiaLvUT7iXX3Lsb/vXUKbej837y6+ oFP+d24cLqsoV3YN+nD9qskRfyG4+hXDqDaoRaVlUza1aio4ef9rNxlOCWxtQvKao2 hxfQpL3nt0+VPUHXaFRYC2KVeXXPG2VGBnPj9M8Dn/WCAnceBWQsYMEfrwDuI6vi3Y NpGSZW3z8srrJh0iKwVNS8cYydXi8ii4cJO0cVWwY/cLtZofBPJomJQ1VLOopgiSeg OPpOAETa2Cin4x7krMLph7NXP8rnqXSLtuWMKv7cuoGwfEu8Ke8+qdVuhFtU0Cb06O YIvRyEzwbv9XA== Date: Wed, 1 May 2024 18:12:56 +0100 From: Conor Dooley To: Charlie Jenkins Cc: Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Guo Ren , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Conor Dooley , Evan Green , =?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-drained-gradation-28fbca0cb566@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> <20240501-drivable-deviation-0a493511770c@spud> 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="/qzKnHYGdUVhk0nf" Content-Disposition: inline In-Reply-To: --/qzKnHYGdUVhk0nf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 01, 2024 at 10:10:57AM -0700, Charlie Jenkins wrote: > On Wed, May 01, 2024 at 12:40:38PM +0100, Conor Dooley wrote: > > On Fri, Apr 26, 2024 at 02:29:19PM -0700, Charlie Jenkins wrote: > > > Separate vendor extensions out into one struct per vendor > > > instead of adding vendor extensions onto riscv_isa_ext. > > >=20 > > > Add a hidden config RISCV_ISA_VENDOR_EXT to conditionally include this > > > code. > > >=20 > > > The xtheadvector vendor extension is added using these changes. > > >=20 > > > Signed-off-by: Charlie Jenkins > > > --- > > > arch/riscv/Kconfig | 2 + > > > arch/riscv/Kconfig.vendor | 19 ++++++ > > > arch/riscv/include/asm/cpufeature.h | 18 ++++++ > > > arch/riscv/include/asm/vendor_extensions.h | 26 ++++++++ > > > arch/riscv/include/asm/vendor_extensions/thead.h | 19 ++++++ > > > arch/riscv/kernel/Makefile | 2 + > > > arch/riscv/kernel/cpufeature.c | 77 ++++++++++++++= ++++------ > > > arch/riscv/kernel/vendor_extensions.c | 18 ++++++ > > > arch/riscv/kernel/vendor_extensions/Makefile | 3 + > > > arch/riscv/kernel/vendor_extensions/thead.c | 36 +++++++++++ > >=20 > > I see no modifications to cpu.c here, is it intentional that vendor > > stuff isn't gonna show up in /proc/cpuinfo? >=20 > I wasn't sure if that's something we were wanting to support since > hwprobe is the prefered api, but I can add that if it is desired. Desired API for programmatic consumption, sure, but for human users I think it's good to have the info there. --/qzKnHYGdUVhk0nf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZjJ4GAAKCRB4tDGHoIJi 0j3QAQDeC/2mrXk6dao/g67mzgn2Smh9xCv61aljEa2yPZ5CnAEAgL6ApCxtDfzO MGOVAm2ywft3ZaZrWjs6YI+O9CVW4gw= =YR4z -----END PGP SIGNATURE----- --/qzKnHYGdUVhk0nf--