Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp58414lqg; Wed, 10 Apr 2024 15:29:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVwyRNoBLxUVati8mOmaX49paUvpjHhv7eXCi7CzldiP8Mkdm/dQWGfckE1MNQOtfjNNbMYrLTxLWXXNF4Se1WnbmBWuxJ+w2m2gFr3iQ== X-Google-Smtp-Source: AGHT+IFdOWGD9uQyXhiTNb1kW6/q8Jgqr9VtOccXLFk6dFN7tPdg2xNHPAKV6YdhvAmnR6U2CG+l X-Received: by 2002:a05:6a20:5530:b0:1a7:556d:db5f with SMTP id ko48-20020a056a20553000b001a7556ddb5fmr3707976pzb.47.1712788197689; Wed, 10 Apr 2024 15:29:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712788197; cv=pass; d=google.com; s=arc-20160816; b=1KVY7yy4VicTkusPLfT3XnmDDnIR8rIhcyZhDL44L6OLtpyYpFVq+BAJp/QS8P7gJ+ SRbZqln+BbNRyaPlJgt/gHKTeGMSf9JuSzoUJ24CursGBVBuWgHb5m8T4KvbECrgkgX2 p3yj7CJi3SUgTRQg0dTnM5IlWJoPg5QMafvAkxYTbynM0wFFGJ2JvyvWTSNPnwOH1i6K o+wYsId0L0+8WrMr5gSyd3Qe5Y3MuZE51pdRmvSL6fJhfUTWDJibZ7UccxirnFrfEa8Z h18rIVP3WL3pGJntkqCfq0cS57tyCAiLZn6SGius4CPeZvycgFEFpqLaaWBrEW6umGjv clOA== 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=SS/StxTZHeZ0zRAQB4YQ4IgWpuuqPxZw9mrpuPvExKk=; fh=twIZ7y1EbPFqOmGNz+/c/hwqPrnR6tZyrHnZokGbVO8=; b=xPyNDDczkLHGksBmVoYSjYopzGOmtowjF/ojTERWFRqbJ1y8HpZwV6ZacI5dn4Bmjr MQzx8M+tySc0bv+Obofh73BYu81bkbTKn1A3MmvRfX1ncx4euiEl6xuddE+N3gG1jSmI tKYfCjHexYGzNtyZcaV2llyuH2Hfqnl8/0OEsgJ5QzNtW97n/5YrJcsb3gvok/4XQQrb pgbrJvUuBQWLbSoPqnGycSHpbL3Nlh87YbZYObywx/FgyqUpauF/AMKYxRJNXlRJrN2p k2ABGS3z0NwYApaO9VYBJbPsUUVREgpUBuiD6r4uxhzP6xWoReuaOmcuEYNWQBr1f3UT NZKw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="h3/uWsva"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-139435-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139435-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id e13-20020aa78c4d000000b006e8f569a4bcsi213353pfd.63.2024.04.10.15.29.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 15:29:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139435-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="h3/uWsva"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-139435-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139435-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 0AD51B22EA8 for ; Wed, 10 Apr 2024 22:27:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 082A119069D; Wed, 10 Apr 2024 22:27:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="h3/uWsva" 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 2005B19067B; Wed, 10 Apr 2024 22:27:21 +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=1712788042; cv=none; b=cWd27bifoLBg4ud9PC6AfEnX1hD2kjFOFnE6OkmFo7yLgVPvGed7m5FXKiwAn0F5UxUt7UIptatdDybNpePHPZBt/xbcQ5pn5SPdS6quO/zMCAHyINC3Dvp+tmIYH77CvxBV+zUW7enmS8hx15NTuEmCcFHo7K75lIAJuhVudrU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712788042; c=relaxed/simple; bh=MQwfwXM6s1UZx2FVelAfwabzd67L2NdfTcUOcwAkZa0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sHebwPvCRjy+POpLoVEgAV8eiE/m1fBN2dT2TbXF73oJCuRmikvdt39YdtgsVR0bt+Ga846GEBW42ePhXxA4rUhEakS7MA0oMMzqj5RIrimx5CI7eT43B3unyrrkspiOIPwBx0lcNe431bKGcRtV7vz/cAznC+0s6TN8REbEThk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=h3/uWsva; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 40E43C43390; Wed, 10 Apr 2024 22:27:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712788041; bh=MQwfwXM6s1UZx2FVelAfwabzd67L2NdfTcUOcwAkZa0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=h3/uWsvaOVdQm4bUzZWXXVJh7Wz75OVPDbNxYG47HDWrUe4NRBf2haOzPZ5BTxLZr ZC6IMZAHcrynGxHiYq3jz52i7ej0rN/aJYw+es916TUJ8W0q1hU18178W6RjIR7Mtr u6w32lwy76uxqJ0KHElDXglXLwG3tqXyePsPawNR6jTQLG8NFyOdt+q8rcv9DkP0NC 70nM/T3v/QA686jfQLVrIuderjJhiu+MJatd+IiwAja72W6qHSskPMT3YKq/D1IARS F5yGeIPYvce+43LFuqfCiuf0TdQJWhZrnNYilgUguhAsZx/mKtygsI+P7YAAlxXB7m KCNX0t+Sb+ZIA== Date: Wed, 10 Apr 2024 23:27:16 +0100 From: Conor Dooley To: Deepak Gupta Cc: =?iso-8859-1?Q?Cl=E9ment_L=E9ger?= , Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou , Rob Herring , Krzysztof Kozlowski , Anup Patel , Shuah Khan , Atish Patra , linux-doc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH 07/10] riscv: add ISA extension parsing for Zcmop Message-ID: <20240410-judgingly-appease-5df493852b70@spud> References: <20240410091106.749233-1-cleger@rivosinc.com> <20240410091106.749233-8-cleger@rivosinc.com> <20240410-jawless-cavalry-a3eaf9c562a4@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="UqyEiLRcLky9DwaJ" Content-Disposition: inline In-Reply-To: <20240410-jawless-cavalry-a3eaf9c562a4@spud> --UqyEiLRcLky9DwaJ Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 10, 2024 at 11:16:11PM +0100, Conor Dooley wrote: > On Wed, Apr 10, 2024 at 02:32:41PM -0700, Deepak Gupta wrote: > > On Wed, Apr 10, 2024 at 11:11:00AM +0200, Cl=E9ment L=E9ger wrote: > > > Add parsing for Zcmop ISA extension which was ratified in commit > > > b854a709c00 ("Zcmop is ratified/1.0") of the riscv-isa-manual. > > >=20 > > > Signed-off-by: Cl=E9ment L=E9ger > > > --- > > > arch/riscv/include/asm/hwcap.h | 1 + > > > arch/riscv/kernel/cpufeature.c | 1 + > > > 2 files changed, 2 insertions(+) > > >=20 > > > diff --git a/arch/riscv/include/asm/hwcap.h b/arch/riscv/include/asm/= hwcap.h > > > index b7551bad341b..cff7660de268 100644 > > > --- a/arch/riscv/include/asm/hwcap.h > > > +++ b/arch/riscv/include/asm/hwcap.h > > > @@ -86,6 +86,7 @@ > > > #define RISCV_ISA_EXT_ZCB 77 > > > #define RISCV_ISA_EXT_ZCD 78 > > > #define RISCV_ISA_EXT_ZCF 79 > > > +#define RISCV_ISA_EXT_ZCMOP 80 > > >=20 > > > #define RISCV_ISA_EXT_XLINUXENVCFG 127 > > >=20 > > > diff --git a/arch/riscv/kernel/cpufeature.c b/arch/riscv/kernel/cpufe= ature.c > > > index 09dee071274d..f1450cd7231e 100644 > > > --- a/arch/riscv/kernel/cpufeature.c > > > +++ b/arch/riscv/kernel/cpufeature.c > > > @@ -265,6 +265,7 @@ const struct riscv_isa_ext_data riscv_isa_ext[] = =3D { > > > __RISCV_ISA_EXT_DATA(zcb, RISCV_ISA_EXT_ZCB), > > > __RISCV_ISA_EXT_DATA(zcd, RISCV_ISA_EXT_ZCD), > > > __RISCV_ISA_EXT_DATA(zcf, RISCV_ISA_EXT_ZCF), > > > + __RISCV_ISA_EXT_DATA(zcmop, RISCV_ISA_EXT_ZCMOP), > >=20 > > As per spec zcmop is dependent on zca. So perhaps below ? > >=20 > > __RISCV_ISA_EXT_SUPERSET(zicboz, RISCV_ISA_EXT_ZCMOP, RISCV_ISA_EXT_ZCA) >=20 > What's zicboz got to do with it, copy-pasto I guess? > If we're gonna imply stuff like this though I think we need some > comments explaining why it's okay. Also, I'm inclined to call that out specifically in the binding, I've not yet checked if dependencies actually work for elements of a string array like the do for individual properties. I'll todo list that.. --UqyEiLRcLky9DwaJ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZhcSRAAKCRB4tDGHoIJi 0q6sAP9ipmaLBEqGqnK1J/+foh06vDyH4IjZKsQzB4HnpE/08QD+LHYD03uimI1C REPzlhiL3W105ct+G/bLuPwbDQsvHAM= =29Jl -----END PGP SIGNATURE----- --UqyEiLRcLky9DwaJ--