Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp918615rdd; Wed, 10 Jan 2024 03:38:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IHZHCojKF+/GL5diTQ9o5+izIxO8jP78TQukoSqz0M3+jx09IU6Rr5g1ngLhl9PaJ1GB3DN X-Received: by 2002:a17:902:ce86:b0:1d4:cd8d:a864 with SMTP id f6-20020a170902ce8600b001d4cd8da864mr1172076plg.122.1704886715561; Wed, 10 Jan 2024 03:38:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704886715; cv=none; d=google.com; s=arc-20160816; b=TmGW0oAKsjiRm2ura6jFPBNzEy1eaTYjB3yANt1YdlfAAIsk4MxGHtHRzA77gcU3Mx 3yo2FnlOT6YN8fjZtI2YIu79Tcb+x8MHK0Pa4yosZvjibt4FdAxIC4o+HwGEZx/8OJp3 98LY3ZT44Z3UVWWJtEelOK4jZd4pGpyzYChminl5UPbWUPwcJXSuvR5kSe1lr9l8vtvJ /xPy17bcD8rS4ia8+KgJPeSvB5FWunwpVDDClfa7C+IkQig9peDI7kO5BvY2yythcMNl 5b6tXKy4SYGPJ2p/1MwZvwxa8F84o0mSLifH6BBJLN/RS8dY1eiQH86unyXsYAAReoAd PSzg== ARC-Message-Signature: i=1; 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=fLoeyJhp51W7XZr/sm9aIevUF89/SerSPYFNYotXVRc=; fh=Sajlny7GxGgCH7IsBN1bIgSQ+rn7TpEulOetfFtaTbA=; b=JQB6HVQgOh5ZFRyTY4XGHll5grcNV1ic/76wRmf7JIXaB42Rb+M5yeR3+1NgaH6Y5m xfUZ7MX7c2co/hUmmuXXM9ZOo+sLWKwmDOWwggXH38kNYn1csHCfmAjSRJAr7KFKSZus 6lJtstR6pnlFEgDD+obkdTiDAx1KCIxgO054n8GrAWi5UwehjC+QOIDHr5pV1YzQY/vK ZlaFlY4/wgKG81n/Yyh8ugOdgA9X+wkjEERfZeG+ePz21jfMTT5xkqvWc89enBjrVWIo 42Yeg7kgPPSJk3prqjxPj6cYJdqcIUAtZrk3/J7kR1j4cxgIe32XToLCORiat52Fkd/R FmZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pcvTS9li; spf=pass (google.com: domain of linux-kernel+bounces-22096-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22096-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 j12-20020a170903024c00b001d4c27cd15asi3648018plh.491.2024.01.10.03.38.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 03:38:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22096-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=pcvTS9li; spf=pass (google.com: domain of linux-kernel+bounces-22096-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22096-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 0A87EB24D7C for ; Wed, 10 Jan 2024 11:31:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A88AE47A6F; Wed, 10 Jan 2024 11:31:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pcvTS9li" 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 CCFCB364AF; Wed, 10 Jan 2024 11:31:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CC577C433C7; Wed, 10 Jan 2024 11:31:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704886286; bh=YijeE4lMHSCVvcttYBU3SInp/YKSJPvaHdxLhi+JtYA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pcvTS9liGZeeFspyq8/b0JP1ZkBzGDTEnjvFv15DiD0vtEfUNzgIeodJnmxMDN8U3 rpYqy5NlhOXHJU6Ik3NTqDlmO+slV461IW+8mVSp5niGHKBvMSktqvxS2hqTG83yYp Wu/D1yXDI70WeKACfCWat8Rc4SdYV0mpTR0xCGPKImGfTcHj2Y6tFGEaTZQUnbD525 uRQjZAKcoRiV+ip19HJhkNyUEJ0ni65fbN8/DTiGHVpsPeF/ooL2i+EY8LSQkQ9a0k 3it3s8ZktOm2N2mV9Pa89bDBR/sX1N7OHYVkGk2rF5mGFQ1+pmEtAuLffIoVycpSGq 1FSG1BXbJ96ew== Date: Wed, 10 Jan 2024 11:31:21 +0000 From: Conor Dooley To: =?iso-8859-1?Q?Cl=E9ment_L=E9ger?= Cc: linux-doc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou , Rob Herring , Krzysztof Kozlowski , Robbin Ehn , Gianluca Guida Subject: Re: [PATCH v2 4/6] riscv: add ISA extension parsing for Zacas Message-ID: <20240110-creed-sturdily-c93c15fc6549@spud> References: <20231220155723.684081-1-cleger@rivosinc.com> <20231220155723.684081-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="ltx+3bcvQMB0flo+" Content-Disposition: inline In-Reply-To: <20231220155723.684081-5-cleger@rivosinc.com> --ltx+3bcvQMB0flo+ Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 20, 2023 at 04:57:20PM +0100, Cl=E9ment L=E9ger wrote: > Add parsing for Zacas ISA extension which was ratified recently in the > riscv-zacas manual. >=20 > Signed-off-by: Cl=E9ment L=E9ger Reviewed-by: Conor Dooley Cheers, Conor. > --- > 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/hwca= p.h > index 3b31efe2f716..34f86424d743 100644 > --- a/arch/riscv/include/asm/hwcap.h > +++ b/arch/riscv/include/asm/hwcap.h > @@ -85,6 +85,7 @@ > #define RISCV_ISA_EXT_ZVFHMIN 70 > #define RISCV_ISA_EXT_ZFA 71 > #define RISCV_ISA_EXT_ZTSO 72 > +#define RISCV_ISA_EXT_ZACAS 73 > =20 > #define RISCV_ISA_EXT_MAX 128 > #define RISCV_ISA_EXT_INVALID U32_MAX > diff --git a/arch/riscv/kernel/cpufeature.c b/arch/riscv/kernel/cpufeatur= e.c > index 3eb48a0eecb3..9a9d915b5bb2 100644 > --- a/arch/riscv/kernel/cpufeature.c > +++ b/arch/riscv/kernel/cpufeature.c > @@ -259,6 +259,7 @@ const struct riscv_isa_ext_data riscv_isa_ext[] =3D { > __RISCV_ISA_EXT_DATA(zihintntl, RISCV_ISA_EXT_ZIHINTNTL), > __RISCV_ISA_EXT_DATA(zihintpause, RISCV_ISA_EXT_ZIHINTPAUSE), > __RISCV_ISA_EXT_DATA(zihpm, RISCV_ISA_EXT_ZIHPM), > + __RISCV_ISA_EXT_DATA(zacas, RISCV_ISA_EXT_ZACAS), > __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), > --=20 > 2.43.0 >=20 --ltx+3bcvQMB0flo+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZZ6ACQAKCRB4tDGHoIJi 0v55AQDZdKqZq0LPpzAGZXePq06kU+fz6HskHPlQ+h2crRlRAwEAsHn72UEtafAE 4seP9ykxgZVOQtsIOdfyUSSVCueHwwA= =imzt -----END PGP SIGNATURE----- --ltx+3bcvQMB0flo+--