Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp3086223lqt; Tue, 23 Apr 2024 09:54:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUXANHm/lLa1m5HyjqaWnRBBcdsPqa06eq7FQ+nYDEc0ajxfIFsMa/ilHb0SpVeXfEcIsbU4CGS0iUfNW2OP84SKcJHoyc+ZCGLseEolw== X-Google-Smtp-Source: AGHT+IF13D5sx9wKgdOTauHxVFeCAVnkbhJ6mSTi+Xw9b/XNl2N9FThY3GBgAfVBmmNmQqj1NZW+ X-Received: by 2002:a17:90a:bf08:b0:2a5:575:c58d with SMTP id c8-20020a17090abf0800b002a50575c58dmr4135205pjs.16.1713891277327; Tue, 23 Apr 2024 09:54:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713891277; cv=pass; d=google.com; s=arc-20160816; b=VmPZHRPob/IvpfdBY5udTd0KYQB94oaUKGMTUDv1CxobETGYSJV0FshxHYxlZ+e7H6 CZkBrW/mitJOq4q7LOc0HLmgIRUtzK6qt0cmF2SNmKxzCqeVTf4bhZesTUmT03K1VtR8 voCRg+CvO1tkPNCNGVkkMUvFNPhl5EiZPar8Y+V0/x1B27oYndr1JGt+Yb5Q5K3p7TJf /6vvV0RE0rm8WxNmT6Kl55/8Ej2gnSxz1qYtSFah/4x089SVW8QM3GiQ/1Xr3VHOQUtY /ZK6rFcGfSHa2N/rpD7B/5aUn0rd1lHG+AVyXuJJ43nCQvw437SYhDfnouUX6eOmZQYw K9Ww== 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=FYnLrwYOUj2LNZUg+hwUDyClJhKWI2TiUdtZGbsIETk=; fh=vsy5oOM3jKMPSozjj0Sm6sdsF7YyOk3ebKwRnl/K6ro=; b=uWmatU0+l92kLIvHtSh5st5RqgBKVv4g0xX04U0dm7JKShr0o5s/yRwvzj/MFleeRI g+WZ7LDk79+oROawgWbEsAmkI2CzlXJWodSevF7fI+dzHPbO2+YySoyd7jdBCh4hX6PZ g9Z1yw3BF6yE1jIot0bNpS6erj9n9CqNIO79NPlptAY7QhAU43hMU6uvytXFm7qUtY2n vevOLntkm/nk8gbfICgP5UBgXnnKea4x5J0dLyFrREhFppoo33WDcZPioNbqTYlpb1oL lY2/VAeym0y1S0MqGsIzV54rA34dl6LgAbIRGMfG+paY6PjQQ7KojWcE9wSP6DbLnPr1 cipw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=H0N9z2Dp; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-155594-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155594-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 q9-20020a17090a304900b002ac214dea57si8783062pjl.19.2024.04.23.09.54.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 09:54:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155594-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=H0N9z2Dp; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-155594-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155594-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 6AFFC284D80 for ; Tue, 23 Apr 2024 16:48:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B956D13D62A; Tue, 23 Apr 2024 16:48:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="H0N9z2Dp" 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 CCEB813D510; Tue, 23 Apr 2024 16:48:29 +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=1713890910; cv=none; b=j7Q+Eb3zQSDitVcUFmYzR/VWc6/pdxCdWDPqj/DuEdLJVGAOYxve1ghcx6d+zD7EQyJqq5P58YnP2B9AZ3iyZZaEo471kY/3HyDHaArPPXlKHWDYS8grTHWs/Ybkm3IUSDYKZTQh4o8wTFAcaqoH1Ds4UgpLPG4SH04+v4ayd0Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713890910; c=relaxed/simple; bh=dDcEPFI4Ualc1uLvugD6+grOLhPWeZRyR8kTPMNYs3s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sZ0RyWF7U4pcH4NthuPhKLWiJgBBfS/olC0LqhwXeWekkRhoit+MDbjFS4Wu6YFVP1g6vooL15JVo5cX0kyFhnlJpyPfB1z2xyoC2RgBVQW5vmowOMWRoPtLQ9AIY8GC4CTFiT05F9EQXR7dtM/5Lkm8xqVnPSrtk20lFYdDMT8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=H0N9z2Dp; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2099AC116B1; Tue, 23 Apr 2024 16:48:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713890909; bh=dDcEPFI4Ualc1uLvugD6+grOLhPWeZRyR8kTPMNYs3s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=H0N9z2Dpb8WrHvqNLiT000UhV8Y+9krxRJtMDjYhIaBZP1030Bof/Sp/hOK16Vnyt pbVCxC1D1O5/vA65C3BsscHOwlAvYg1UpOpQ3EVxyzDTLUE1ZM+lZ8cmZu3/NkS3Tw xVOk1gKZBGsmyD84IVNwPtg+ESwZW+XFy+bMdvO5bjU1uLsENudLBOWWYEhZMMT8Fa vyNNR8+roNhWc/HCa+cWfetSA9UjIquzJOhYsoF6WnUMrvgZez9qPfpY5616SRkjrl L6wHTtaUP4o+WnWmTSYwHJWDswPA3+5pzcdxtnlLflvYjbQiJdjWqAwg5QkWxRyxD2 yBGwCrlwvy10w== Date: Tue, 23 Apr 2024 17:48:24 +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 2/5] riscv: add ISA extension parsing for Zimop Message-ID: <20240423-juiciness-unethical-90ec18e4fabe@spud> References: <20240404103254.1752834-1-cleger@rivosinc.com> <20240404103254.1752834-3-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="Zc1JrpErq69EY9Ys" Content-Disposition: inline In-Reply-To: <20240404103254.1752834-3-cleger@rivosinc.com> --Zc1JrpErq69EY9Ys Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 04, 2024 at 12:32:48PM +0200, Cl=E9ment L=E9ger wrote: > Add parsing for Zimop ISA extension which was ratified in commit > 58220614a5f of the riscv-isa-manual. >=20 > Signed-off-by: Cl=E9ment L=E9ger Reviewed-by: Conor Dooley > --- > 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 e17d0078a651..543e3ea2da0e 100644 > --- a/arch/riscv/include/asm/hwcap.h > +++ b/arch/riscv/include/asm/hwcap.h > @@ -81,6 +81,7 @@ > #define RISCV_ISA_EXT_ZTSO 72 > #define RISCV_ISA_EXT_ZACAS 73 > #define RISCV_ISA_EXT_XANDESPMU 74 > +#define RISCV_ISA_EXT_ZIMOP 75 > =20 > #define RISCV_ISA_EXT_XLINUXENVCFG 127 > =20 > diff --git a/arch/riscv/kernel/cpufeature.c b/arch/riscv/kernel/cpufeatur= e.c > index 3ed2359eae35..115ba001f1bc 100644 > --- a/arch/riscv/kernel/cpufeature.c > +++ b/arch/riscv/kernel/cpufeature.c > @@ -256,6 +256,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(zimop, RISCV_ISA_EXT_ZIMOP), > __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), > --=20 > 2.43.0 >=20 --Zc1JrpErq69EY9Ys Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZifmVwAKCRB4tDGHoIJi 0rtUAQCfFhskrVJaQGT4zQgAGIaJX6eQRM8RECwtSJ2o0cGu0gD+IKq0dbK1gZnO +otlDf1x+J0DKBOQ9YLeg8J2xFWRTAk= =AiuW -----END PGP SIGNATURE----- --Zc1JrpErq69EY9Ys--