Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp915445rdd; Wed, 10 Jan 2024 03:32:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IGZDHZ6MzgdkBojiFtVhCiq4MRsCyzeYqsjKdTHyfCVmdBPX53gyq1+Xf92Cj4vvQO8FHIv X-Received: by 2002:a17:906:ef0b:b0:a23:2aa8:99fe with SMTP id f11-20020a170906ef0b00b00a232aa899femr710928ejs.9.1704886344353; Wed, 10 Jan 2024 03:32:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704886344; cv=none; d=google.com; s=arc-20160816; b=uf/hlX9JXkKYbE1Z2qgdEUtyOcRBXUjbS0QadKwZ/K4JtHBYLytdOUDV+2LKAd+DPl h/D9lRjKfMxBy9qNWRrvRZq1xradhhwVw77gH66hCPmhz+9Sa3N2PJDHSEHcEAN9pWcn HCvnFAjUuguRlCNfABd0RZW6fXiNVTEXTCDAYoS7UK511Nu1gaQTSKagECoz5uvVIEzt uBh0GIp9Tdk6UAHKVE18uCSHPVLOuZKXrlDxcUCb28iWlj+/uybMUpSw8tb/i8tGdHj7 WbfePHE6MTQ4P3rB6qfGadxqvLJV8K71fqwJHWwcRRhLlO82uoI3FZk3OrLPCMUHvC93 TEEA== 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=hoBNUyLHW3BUHs/roN9h6SKMNlyUGpy0j4pG7pN6mIk=; fh=Sajlny7GxGgCH7IsBN1bIgSQ+rn7TpEulOetfFtaTbA=; b=aAim97UcIG0oDT5hA7tDh+GwOIOE4U9OIsfTqM2h6Gqx2lzx5CWBo+fAnQFSOBDz6t pzOsJU99y1pFKH0hFK8fZup8WFqW6jMj6luCwJDa+YUwTQs6G3ateDxjYu1ViD8cXdLA 85PNGPHUWeYQXaWSQE7qy0pKJc4VQ89bqehl0HlVjqo3c7jfqoKj7NWXGvejS9VlMjJG 3C36uofebw1DlrZLnH8EDOEAt66nhzoX19cM4Dg9HC6bYLrITm39dIgItK28AUztzGQC V1ccR+Wa3OjGAnG6Snfr5EkhZm8iXDsMOqG37wHZvfHXXiPb3YxikFDTDIzZEHc7Sblx aP5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WRByQrTh; spf=pass (google.com: domain of linux-kernel+bounces-22098-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22098-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 w20-20020a17090633d400b00a2afed17e93si1700164eja.191.2024.01.10.03.32.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 03:32:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22098-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=WRByQrTh; spf=pass (google.com: domain of linux-kernel+bounces-22098-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22098-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 205CB1F214D9 for ; Wed, 10 Jan 2024 11:32:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 22E2147A6F; Wed, 10 Jan 2024 11:32:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WRByQrTh" 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 4D6E2481A0; Wed, 10 Jan 2024 11:32:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 35ABBC433C7; Wed, 10 Jan 2024 11:32:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704886334; bh=X9QbxNBN6JyW1oeyEZmWRgibEZdnoLhcaRrM0O9CHk4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WRByQrTh7LUjUhEU7sOl3vvSeW1RpOIERkA8IwQlyQLSqQxmn3qJLcaQ+P5ZKa288 st8wEViJt9CzoVWOHucgOo5i+iuAk6vhSFhVUUpGOan8DcM+Gmybn/VlH9YJeS4zkP lCI6bb/2npds4NSzVmDfaULwF7pMQAgBQkkIoDU2fNdt6Li8IXmf8DZLJ5tyOF10eF hpb2qAGCeHQaHyyhSdCRAKJeAze3PbCB5IcLnN03LBY6f82TjZxAz/CsKvCtj0yGQ+ oN8xSJRdro3ixG21D0cSHQgm/SD9BlGc2GlfXjWAjs1GJ66kCqZpApZV+Jj5thSkNA Da7fp4EBb42PA== Date: Wed, 10 Jan 2024 11:32:09 +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 1/6] riscv: add ISA extension parsing for Ztso Message-ID: <20240110-childish-magnetic-75dacb4fb265@spud> References: <20231220155723.684081-1-cleger@rivosinc.com> <20231220155723.684081-2-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="rEohnyKvwS23qCv0" Content-Disposition: inline In-Reply-To: <20231220155723.684081-2-cleger@rivosinc.com> --rEohnyKvwS23qCv0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 20, 2023 at 04:57:17PM +0100, Cl=E9ment L=E9ger wrote: > Add support to parse the Ztso string in the riscv,isa string. The > bindings already supports it but not the ISA parsing code. >=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 2438d4685da6..3b31efe2f716 100644 > --- a/arch/riscv/include/asm/hwcap.h > +++ b/arch/riscv/include/asm/hwcap.h > @@ -84,6 +84,7 @@ > #define RISCV_ISA_EXT_ZVFH 69 > #define RISCV_ISA_EXT_ZVFHMIN 70 > #define RISCV_ISA_EXT_ZFA 71 > +#define RISCV_ISA_EXT_ZTSO 72 > =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 dc0ab3e97cd2..3eb48a0eecb3 100644 > --- a/arch/riscv/kernel/cpufeature.c > +++ b/arch/riscv/kernel/cpufeature.c > @@ -279,6 +279,7 @@ const struct riscv_isa_ext_data riscv_isa_ext[] =3D { > __RISCV_ISA_EXT_DATA(zkt, RISCV_ISA_EXT_ZKT), > __RISCV_ISA_EXT_DATA(zksed, RISCV_ISA_EXT_ZKSED), > __RISCV_ISA_EXT_DATA(zksh, RISCV_ISA_EXT_ZKSH), > + __RISCV_ISA_EXT_DATA(ztso, RISCV_ISA_EXT_ZTSO), > __RISCV_ISA_EXT_SUPERSET(zvbb, RISCV_ISA_EXT_ZVBB, riscv_zvbb_exts), > __RISCV_ISA_EXT_DATA(zvbc, RISCV_ISA_EXT_ZVBC), > __RISCV_ISA_EXT_DATA(zvfh, RISCV_ISA_EXT_ZVFH), > --=20 > 2.43.0 >=20 --rEohnyKvwS23qCv0 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZZ6AOQAKCRB4tDGHoIJi 0gi6AQDMTvHshgmIxeYYvER5QNLkJGGnk9Du0Z4e5q/5yAhdnwD7BDk5kOnuXzyq U0LrzFyiX6cUknwFyCuN0/arBBh3zgY= =J7XO -----END PGP SIGNATURE----- --rEohnyKvwS23qCv0--