Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp407879lqm; Wed, 1 May 2024 04:40:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU7SYRLIHZn19XTYtrF9M3MkmgjG6IF5Uu3AzMJh6n3/HpgyYA9RaPVNdV1z467XTbQqYPiIPzaZCYMxJYe9BS7d93P6FvFynxEpNh4MQ== X-Google-Smtp-Source: AGHT+IEejT5eiF8svS4hvA4ziN0xNttU4XiW/UYsF781UvVvo8zdhuz7EBhkKI/EnPQRJsLi/s32 X-Received: by 2002:a17:906:494c:b0:a52:55f5:aba5 with SMTP id f12-20020a170906494c00b00a5255f5aba5mr1672168ejt.2.1714563654807; Wed, 01 May 2024 04:40:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714563654; cv=pass; d=google.com; s=arc-20160816; b=UqzPgNOrHhfvcp4uMHcxwOZdycEahJWDvZz2+JWnyItRFHO1PwUuXMPUy3n7WmWm+c uW1/bKOaIPXj6M8xACUscUJJ1Gz8rPaL7Ct+acJXgmPb+Fbd7Rf74eys+96ZH3CTi80y CRHSz6XZuQV3ACj4213Ecj886RTV4eTKGGObjqZxF1fWEop8kMEZiwltQNgSdgcddj/t IPefAGQSHqay5jPUlITB0ijVmSRnYeOHB7DjKnCbK/p3v1Xdh4V2SrW7885czwM1P16b UPnYfmC68vkK8Cj+VclnwDdwHfTAsfeh1WgAJEc4YpkBBROdfePHZ1c6GnHelaGBMU7S MoBA== 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=lYYEkz7m0tqlGxqxtLR6WhanzrfZp6OfduV4vmhqA0w=; fh=mBwwpQbay9vhzTgPULjjDn+LkmwbaBeNVRczdYQ/Av4=; b=q4XWQErXSuL0UdFgAMVau1XAd/GdYJf04dDb4WB8sNH3N0u+0ZpLpJ1vyN6hoIwB4h KnY0BIDHZ3OFQ0fjke9COd0JiPWXPimM0iGvB4A4SG7aD090i1EHWwcJsPVlGFyk+TqQ WaYlK+27A9PLyOxIlygqXRsdGXZpUhAC4neKMRhFTRykfnACClrgmWMKR2QepHYzXIVf UF+w5EjKi7IToV4OAvQR79yXvDPA/30UxCsew/OeDhPPyEFBFVR8nYyH1/b2Ajegq/b5 MFKkbyLX7TZIZxUf4b7CISkUvsRTLrS2KSaNQgw0UqGEZaa55llAZ7WDr+FVsSFUZ9/+ OOXQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FWQrVZmR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-165200-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165200-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. [147.75.80.249]) by mx.google.com with ESMTPS id gv23-20020a170906f11700b00a52450cfb88si16822092ejb.619.2024.05.01.04.40.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 04:40:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165200-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FWQrVZmR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-165200-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165200-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 88B921F21D08 for ; Wed, 1 May 2024 11:40:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5373B81AB1; Wed, 1 May 2024 11:40:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FWQrVZmR" 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 70A9E1758D; Wed, 1 May 2024 11:40:45 +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=1714563645; cv=none; b=JqPe2XeeRF9CbcH64RmW2+g84LRJnsBbbVgXY2OIUvCjfvpS5cbtGGeULs0At+njahcwu+mekpKzW2YAUVkn0yo2nNAYrWHL+aDNBmy+yd41qIIynFYSbIgAmacJoPZQ6jDUxdgim35QIcwo7XRH6JTtCTFJ5Q23aE61uvSNsiw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714563645; c=relaxed/simple; bh=wjSpgVBA1AYrZcgC5XCgSh0SYSTObA/R2PwB5ny4N2w=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jPUo0vlq1bRygDAvNp7OANUViRtR4QCcgjTiZtZWu+wcsBj1Sj8QAJ/rYtIO85iijH6ukoLQAiqp5NG8iTXQuDLUle/LDYJ+GBzyu2VOQKYsdnZGdAGUhuJQsbxUNzHsmXuXbtyMPPfhuU3ilgK1jw98Faeg1mP1BVUWtW5LQd8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FWQrVZmR; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA9A8C113CC; Wed, 1 May 2024 11:40:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714563645; bh=wjSpgVBA1AYrZcgC5XCgSh0SYSTObA/R2PwB5ny4N2w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FWQrVZmRHD6t4l4m9y9InSm/dWTF32vdD7aRGjavVGSSVvdot/XLB32fC9noC9XwH w+J/4Oat23aTb9B82vofQ22DNvfGaXGWViI6IIKyx8XzeYYtNxaSnfKTrdoEUmDrat aprayiD8//hPgwZ/HgwXG+GzMNQw2c5vb09Dv8FSJApGEjrF/azhi3sA3j0aZXZT4g xix/psYZtkm/Ityc67DQeYgmE9DFcLFuUCkvONgQr7nyNUlKXaZsYg/MKmn7EH2J5t 03lQH24dwjGHhRp0t/Jji6+ljB1m1kZeJCXabufwTJmoyHFPw643kpW3V6IOc5CvNW 3+fd64QGmZvLA== Date: Wed, 1 May 2024 12:40:38 +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-drivable-deviation-0a493511770c@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="xHWLnBdUePAybcBR" Content-Disposition: inline In-Reply-To: <20240426-dev-charlie-support_thead_vector_6_9-v4-5-b692f3c516ec@rivosinc.com> --xHWLnBdUePAybcBR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 +++++++++++ I see no modifications to cpu.c here, is it intentional that vendor stuff isn't gonna show up in /proc/cpuinfo? --xHWLnBdUePAybcBR Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZjIqNgAKCRB4tDGHoIJi 0tFmAP9+0phfGvQLL4gYc5HwlKNHCFOZaYtAbKHBrc9NrXK7HQEAqAyjuARwXzQt BVcKUnRCSkMAcAMLHfb0vHWJR0NQ7QA= =qPWD -----END PGP SIGNATURE----- --xHWLnBdUePAybcBR--