Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp733465lqt; Fri, 19 Apr 2024 08:51:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVmvIG0aJBURnopmj1uVsvpK2T26pC4yX09er2UxR9LM4t+AfyvJ8jlz9FkEIX2GayCe5FTLAs2+S6HzrKtizJWyBM2UA6LaTcttKLv7Q== X-Google-Smtp-Source: AGHT+IGZgH7BANiAIQjbHujxG56oL7a3r2q35VEifn0sed+s6yERLY50L6blwUpUla5REj/2PJVf X-Received: by 2002:a0c:ab14:0:b0:699:2086:8918 with SMTP id h20-20020a0cab14000000b0069920868918mr2715619qvb.47.1713541913458; Fri, 19 Apr 2024 08:51:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713541913; cv=pass; d=google.com; s=arc-20160816; b=FibGDx/HEGwGtGnhfJnQRNZBOc9IW4tXFoYxqdtDbYGgpg9f1BADNPBscVwpn2q4ZL cba+x+5+au7GiuwHtflqcny11dqa8cMgOgbaJg2JOLbLimb7FDfYx8Sk0qwLPqNg4HZb BmxbG9ZENpjGje7Z1t1gZTDz5ySisrPVUzfnvgyyhBIj4hAEwa8prQJGTZ1pJ99u+s8C VoW8PvmXUayHcZeHcWDfnO7B8VGSfRMMqmSnyvIhdP/HOBoB+2htsbfCs2cxuGia6RJ+ ryAXEwJhi4GOoGdeFZprxvt2bGF4AdDMpEyYFzEIKYzeuqk878kNg58lBiLqHxLXp0Os W/JA== 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=GmrIN7Fc68ptgd5QvbE03mizTBIOLeCaXDocPH40hWs=; fh=vsy5oOM3jKMPSozjj0Sm6sdsF7YyOk3ebKwRnl/K6ro=; b=lxaZ4oHUeVnMcWSMvh3ATxMH4CFCi2+ASleG6zQ/+cPYrSHucc/uMr9hN9XaVa681c XwLhlCV1xSuSQZTRKtNn7KNqLNAoH9cxHpnwzN2JxDmUQrhpYjb/xiABqyLY2SKMf8a0 T78Z1TL/2cJDfZuxgGLkVoVbAbRSPQmXV0yfJMmIviyfZ+qon7iPnvPBtwfSu6DoL8HV yeHS5X9CoEpN6xlFWkdWDLDN0tFCDJhzav2Qt383SXI2YyM5BC14SKKLGdVfpBFhzdJa gCYKnZq2RqKe33DLM+Hj0Uy5uwFCBeHihncUaN0iMyp0Xt2UZ2bKDHpFNsjGatwJtD+E 8lFw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jflr+Mer; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-151708-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151708-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id eo6-20020ad45946000000b0069b1e62f8d0si4092234qvb.457.2024.04.19.08.51.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 08:51:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151708-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jflr+Mer; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-151708-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151708-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 1A67D1C20D7D for ; Fri, 19 Apr 2024 15:51:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 430D3130E52; Fri, 19 Apr 2024 15:51:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jflr+Mer" 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 5615E130497; Fri, 19 Apr 2024 15:51:20 +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=1713541881; cv=none; b=IGWzmmrILE77SqXqEEwXMLbBcirUoePmO4TTkLZ3f+MCku0L7QBVAqxiaVCIxpxHjLfjcPFe7AT0x1VRC5FINz3RqoXDcTK4jMq7GLWUXVoub5VR/39mo8m7hH33asW3W573S4F9KEb8o23cUolJJY/bxhhFGgmalLVlahCUG7U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713541881; c=relaxed/simple; bh=zWv/xUUueVGUPY7NUN+yMB++Labd0w15D1CcT2ZEb+I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Y66+Z3OrVQMRQnnTvsRlYP2SiEymYVpuC5f3Zgfd2x8FXZsdQ8ANq9TRZK4PQPmowpj+cU8MKostxuZCeaXboqrw6/PkSzxGP+Win33c/RIrPp8d0Ik5SYEiF665fV0q5NxkO4ZJbfNt9R50E1uXEVzbTYZjwdNCLdqUZclMWkU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jflr+Mer; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8CCAFC2BD10; Fri, 19 Apr 2024 15:51:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713541880; bh=zWv/xUUueVGUPY7NUN+yMB++Labd0w15D1CcT2ZEb+I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jflr+Mery9Icxy3YAAa4Gdj1oYC1mkU/VBqOa5PU8S9zq1KHtzXsbjjighF29TwsJ IEGyN7LbfLHMhudzxyLDGuBrxur2rD2/bITcoXu9aCd2TgbCbvg3HfWH4PKAV5xtgR PVBM6v7TnN/bL4vZHAFIXwb7W3Eirxvr/YYmU+cXDmBCnSc52XsswVcM3GvavAVprm j0hZ8UIKiDE8jB5I4EbIobbHFn+kCkpBe1s+WdO+MGy68eJJsLGnyYbjJPrLjc2UGZ kKcV+moXe7AQVMTxZt43CKoqxWVDscrmU1W0b2RJa1R6w8JJaFX0Pp7uuDBjbJd9fs tCoVpy/FjJG/Q== Date: Fri, 19 Apr 2024 16:51:10 +0100 From: Conor Dooley To: =?iso-8859-1?Q?Cl=E9ment_L=E9ger?= Cc: 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 v2 04/12] riscv: add ISA parsing for Zca, Zcf, Zcd and Zcb Message-ID: <20240419-clinic-amusing-d23b1b6d2af2@spud> References: <20240418124300.1387978-1-cleger@rivosinc.com> <20240418124300.1387978-5-cleger@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="QS4RfLs7pvJlTuus" Content-Disposition: inline In-Reply-To: <20240418124300.1387978-5-cleger@rivosinc.com> --QS4RfLs7pvJlTuus Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 18, 2024 at 02:42:27PM +0200, Cl=E9ment L=E9ger wrote: > The Zc* standard extension for code reduction introduces new extensions. > This patch adds support for Zca, Zcf, Zcd and Zcb. Zce, Zcmt and Zcmp > are left out of this patch since they are targeting microcontrollers/ > embedded CPUs instead of application processors. >=20 > Signed-off-by: Cl=E9ment L=E9ger > --- > arch/riscv/include/asm/hwcap.h | 4 ++++ > arch/riscv/kernel/cpufeature.c | 4 ++++ > 2 files changed, 8 insertions(+) >=20 > diff --git a/arch/riscv/include/asm/hwcap.h b/arch/riscv/include/asm/hwca= p.h > index 543e3ea2da0e..b7551bad341b 100644 > --- a/arch/riscv/include/asm/hwcap.h > +++ b/arch/riscv/include/asm/hwcap.h > @@ -82,6 +82,10 @@ > #define RISCV_ISA_EXT_ZACAS 73 > #define RISCV_ISA_EXT_XANDESPMU 74 > #define RISCV_ISA_EXT_ZIMOP 75 > +#define RISCV_ISA_EXT_ZCA 76 > +#define RISCV_ISA_EXT_ZCB 77 > +#define RISCV_ISA_EXT_ZCD 78 > +#define RISCV_ISA_EXT_ZCF 79 > =20 > #define RISCV_ISA_EXT_XLINUXENVCFG 127 > =20 > diff --git a/arch/riscv/kernel/cpufeature.c b/arch/riscv/kernel/cpufeatur= e.c > index 115ba001f1bc..09dee071274d 100644 > --- a/arch/riscv/kernel/cpufeature.c > +++ b/arch/riscv/kernel/cpufeature.c > @@ -261,6 +261,10 @@ const struct riscv_isa_ext_data riscv_isa_ext[] =3D { > __RISCV_ISA_EXT_DATA(zfa, RISCV_ISA_EXT_ZFA), > __RISCV_ISA_EXT_DATA(zfh, RISCV_ISA_EXT_ZFH), > __RISCV_ISA_EXT_DATA(zfhmin, RISCV_ISA_EXT_ZFHMIN), > + __RISCV_ISA_EXT_DATA(zca, RISCV_ISA_EXT_ZCA), > + __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(zba, RISCV_ISA_EXT_ZBA), > __RISCV_ISA_EXT_DATA(zbb, RISCV_ISA_EXT_ZBB), > __RISCV_ISA_EXT_DATA(zbc, RISCV_ISA_EXT_ZBC), Ye, this looks exactly like what I "feared". --QS4RfLs7pvJlTuus Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZiKS7gAKCRB4tDGHoIJi 0j53AP91a0/pzMnYOB5Q1NSAdfxkcqTq0TgGDLsop/SUUlrxKAD+Oqehg3RXMuA6 lxMl1823mjF1OflpyCXnIjSA8qwLFAA= =4Weq -----END PGP SIGNATURE----- --QS4RfLs7pvJlTuus--