Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp392883lqo; Thu, 16 May 2024 09:09:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVf9/mXmknWs4lbfAcPTHtK+Zmq8p2oMOV9HYus7Z5kjqg647ZUtTnLPQSA95okxshAIwY+eaRs+c6Bvl8un4OZ6BRA1ROPrAdY53DnWA== X-Google-Smtp-Source: AGHT+IG4mTe0vfQ4mxSjO7A/+M31oL1xIT6uBGNdjczEmdIusdR9SFfd2Un+raNIgpaj7UIWtNph X-Received: by 2002:a05:6a00:b86:b0:6f4:669d:8c64 with SMTP id d2e1a72fcca58-6f4c8a5d5d3mr31116440b3a.0.1715875764616; Thu, 16 May 2024 09:09:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715875764; cv=pass; d=google.com; s=arc-20160816; b=Vmgq+yx5poL9VcmLJHVv8D4MYi5zhHcdAyHIyIaHG5gIoglu9BLPVpF1vRXHFrW61p 1HJ2SAksSEUbbjQ1Ir69WEn4sKXYJmMQqQvS/1ZbVVJlFJhLI5Hg3ft1YsT8AE2l7Oel M6E7PnOcMEUv3f7o3JY4LHhogNeXrm+qURlNf8hg9pNaGVeZ8dfpIi41YZWqmEJRPUhv PleNaJQt4DqRbP7vRgqAfgjHIufTYeFVaatJVYdEuMeEsy3NrCZrIbuOvLzZRbOSGdev 8wYtEAakH5y5oJR4edUrGHhUGVo6pkYE40GG8Xkmy3E6/0T3B6yBGSKKkjX+iI7rvIwj jnLg== 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=BuB1lBuPqSHeYAZRlNth4Ne+6BiznLgjo9Q2PlJemPM=; fh=nHLVJspk/4saqyastFGrWlLbaMOI/u6eHZbcJJcBr2o=; b=iuyc7MrhzE+bGbTUJB0Lu/bHRlW2LptJhLhbIkM90fCt0PwKxZYwhmBuovhcpR7hXa GgyL4Fg3bTTSfi1uqyyhwQ56Z8kkzPYdqZ/9S5OkHtljXD19yHa5HPLQlQlT6KbrEgVG NFeffLxlVBuxaLeX0WBocoIIlUDEpHeuc0r1xbxrecPZ46hF7CrWqBI4f63PRtGvHPje q8MqmOK10QifhbsljcctFs+HNOoR5b1G6m0Woa5KsGUObdshx8OaY+gql4MoGT2Fcsri VMZPE3g0anzsFVZM7mrV5nwPFlqqHA7M8E2MMPK4QnazoCpftcYHiLfH1ue78zc4WuV3 WwcA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="ba/wtGx2"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-181295-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181295-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. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-634103f70f2si15908824a12.420.2024.05.16.09.09.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 09:09:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-181295-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="ba/wtGx2"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-181295-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181295-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 4435328457F for ; Thu, 16 May 2024 16:09:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8AEB414D711; Thu, 16 May 2024 16:09:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ba/wtGx2" 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 B356A143874 for ; Thu, 16 May 2024 16:09:17 +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=1715875757; cv=none; b=qwwLkezkuaSdzs/AtyyrdU7ATL2OqOa/A4gyNkTxihbXzSz9zZCwvfJY61+4IaSY7BbsssmOi0DpSUGGQtnn1wXZ4hwhTaSbUhNIQBaCwZm88EJb6lt5SdZhZMrk93Mh18ivZn/JXZ3hxROI4yTveXzie+Q5yFJHb/Ic+ukKP1A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715875757; c=relaxed/simple; bh=BuB1lBuPqSHeYAZRlNth4Ne+6BiznLgjo9Q2PlJemPM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=J9tZ9tS7BIqS40aNj891IvgRkUhtUHFJgF+kIHMtz9TRiqwsAwIFBVnxS3Gtne2gEcMam0i2cUTe6T15mV5oVcaC28JSQwf+F2flEGsbaZAozfE+RJDxJ9PwXTk0hZ+k2J9kJOY9bVnHpKPIDjJpvJkGiskqfmO5FxPuMw83PI0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ba/wtGx2; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93BAAC113CC; Thu, 16 May 2024 16:09:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715875757; bh=BuB1lBuPqSHeYAZRlNth4Ne+6BiznLgjo9Q2PlJemPM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ba/wtGx2vX3cqrPfKBAa+K8BYIBEfPXL8ABcCbOyBeoqITFyr9fmyoJQg9NMi0f9O dOg9y0QrpMX/Dnos2RNeS/Tr/vUB6A5YjCP4l7On3vJPyGNRxmtIU9HxvzUAAUoSc0 OFxe37TAV2TjTQJUpl8uR2juQaJ0Dl7NDkj6iwb60KK33hByDxDzNJyF3Vlbuhyabk I/rEy/Df6VMutIvLPlQJT5tkcqvCaVAbqBP7np5noNraJVIiDt9zb5AEkRLLGMXHVD 2ZU5xKaNpHk0+CUk88bjgNUn0S6gPpq/Oe/Ob/seUmaEiYEVrH11Zb/t41wwx2MCHK Iwb6GrPT4jkfg== Date: Thu, 16 May 2024 17:09:13 +0100 From: Conor Dooley To: Charlie Jenkins Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Conor Dooley , Evan Green , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/4] riscv: Extend cpufeature.c to detect vendor extensions Message-ID: <20240516-undergo-bruising-00b2dda7fdb5@spud> References: <20240515-support_vendor_extensions-v1-0-b05dd5ea7d8d@rivosinc.com> <20240515-support_vendor_extensions-v1-1-b05dd5ea7d8d@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="IrlPhg3iJOawMNuM" Content-Disposition: inline In-Reply-To: <20240515-support_vendor_extensions-v1-1-b05dd5ea7d8d@rivosinc.com> --IrlPhg3iJOawMNuM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 15, 2024 at 02:26:13PM -0700, Charlie Jenkins wrote: > Instead of grouping all vendor extensions into the same riscv_isa_ext > that standard instructions use, create a struct > "riscv_isa_vendor_ext_data_list" that allows each vendor to maintain > their vendor extensions independently of the standard extensions. > xandespmu is currently the only vendor extension so that is the only > extension that is affected by this change. >=20 > An additional benefit of this is that the extensions of each vendor can > be conditionally enabled. A config RISCV_ISA_VENDOR_EXT_ANDES has been > added to allow for that. >=20 > Signed-off-by: Charlie Jenkins Reviewed-by: Conor Dooley Cheers, Conor. --IrlPhg3iJOawMNuM Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZkYvqQAKCRB4tDGHoIJi 0vPmAQCjYL7DFqx7XDKaJSfCyQ8gk+EFN+XsJQlo7vj1Euw1gQEAjxLQCPf6hokg WsJvsba6+KjbLP00vCozW0FMGxUkpAw= =hoDt -----END PGP SIGNATURE----- --IrlPhg3iJOawMNuM--