Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp475331lqr; Wed, 5 Jun 2024 11:14:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV+05y+y99L8CqmGJnf8q/5AgQ995iC4mjTlyTY210e52iwQwnyOWrQf8gCJE/idqbu+lUIpkiaEgkH0qsqoHF7b2PjZcvSNccfDDbdCQ== X-Google-Smtp-Source: AGHT+IGVL3rID08BJHipMiYTWVlBpS4N86BLvMkzSCjj/chspmIgzUSVugTxZZ+pNO4OTriu3mST X-Received: by 2002:a17:906:1589:b0:a67:8fc4:7ad1 with SMTP id a640c23a62f3a-a69a028cbd8mr215089266b.63.1717611246444; Wed, 05 Jun 2024 11:14:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717611246; cv=pass; d=google.com; s=arc-20160816; b=h5FkbwSh7sRdJ2Aeofrm2XumCHv8WfJjco4Zb/rfBarD1Vhnuq7FYl83VioMgMNAvI QEKP+2PzTpXnGtH+R/zaed2rb2ZVWeR2BCkDOZbBRJJwGVx94Hx0qxp7hQ7+wQu01b+5 EgF8aj/pNg7F2AgnLS+JPtZXOKKYSRRMRRknTF98of63KiffMMR4tapregZGNUVxRYiW hhxWVdMIOEnRY4zinWb6N9rrOUOWS2y3CmRPnc+J8SL3saGchQP8EsARuqZwJ4Q9QRPu MWGitRooUOZ+TMuskS6qZBZAYlkekoUOopl98T32rjW7Vhy+Vh9oMuC9w3epo/O1pecW jRzg== 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=yBE6BflV7JZc/gp4dLX61AixeukS/irfiignagx3eS4=; fh=tJrsyXvMaFDgfbNoW0GvzNODa1XOighm/iSIoTuhpoY=; b=k0ESuPheA/tYXJiVPT5m1PAMAphRQ16SdqQD/0u9CJbn4x3f413EpqgnpZHNU1HUI1 c22cx78wdEJDiGvl3fT5kTDdbLuFFFliO0OhjYV+smTjAS7SE2nv8mi0DVYxKgluhmNQ 7WOpl7P8zQjG2i/9KLF7Xl8eeKwIxADlqoQgGlwTIYd/HYYKZSJn9jPmDFlvXQMjvpiq Qr80nGxGuYjZKXxbS9gk5H3PbBz4ohe0hr46QeU2wOgAD6ttLRn5Yknr/402kfgAsrGm X5craHOo+eC5jOtxPVYO1M7ktEWRfVa1WOMBRjA7ZbTVJc+e0aaTyIikq68ErHPzBAqD KlHw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RLjJiy2R; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-203041-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203041-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a68cc563f89si449994966b.816.2024.06.05.11.14.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 11:14:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203041-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RLjJiy2R; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-203041-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203041-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 9C8101F25C4B for ; Wed, 5 Jun 2024 18:13:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C96F014D715; Wed, 5 Jun 2024 18:06:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RLjJiy2R" 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 EA6AA14B944; Wed, 5 Jun 2024 18:06:46 +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=1717610807; cv=none; b=ZRa6CbahhFWM4vT9o8QgnM9QMMu679fLKg2F/KXEHWdi/Ye3R0bUyX9mz6pnfdtXYLpaJg0g4JASGJOyq3pFGDwWhsmIi3C7dL+IxYR+oZ9Q+rsZ+OjvNzdh6CNo5S6xU2OEkewOZIa4dJ1vWBy3ilOyGvdc4jlBaPt1O2uOHf0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717610807; c=relaxed/simple; bh=5WLgWmi7391vEDkONzbYlVsXiq5rBsI0l3Wft0d2pmY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CrJ6Z1wtMFaq3N7cFq4hx+EJf//JcLZaDXHcx0ncu3xN4thHz5X93VyGDzH1z5/DoI/zfKuSLlKCjmXQ+4GNG+sP5FtTEecwElFZnDcIaK4YotAKcz5bUJ5+cOrHot0smtLqzXFF/xspYdKIXFdWfWHIODQ+xcD0VZImo2oMKag= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RLjJiy2R; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B8F6C2BD11; Wed, 5 Jun 2024 18:06:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717610806; bh=5WLgWmi7391vEDkONzbYlVsXiq5rBsI0l3Wft0d2pmY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RLjJiy2Ri4l+KMnvg98/r6lSB63VeIuqIbk66sBo6whE1DzQNBHsIsYsJWDgxFLGs JT7LntNOIe98YiQPQrXDmdIMI/BSdjYlu+csdYXmRLjRjjzFCIcPsAGEnm1rgEFFPI goVMzhoB3T6U2YlyZgkevetfl0IzC4SyYK1ma0//MGkpZkt25Ptk/9K8du9BZHH29E RPHRjlgT3WeZo2+VO+f2p0y/yl+3/ExMeImgsPXUXb8w1/5CE3sx7oKIOXJ0bQCAj0 yAN4rRhLd2JWa19Rw87TTXl8wJcnn0wqWnrUTlMNM4xxNR/r5E1u4IFakHd2mEIOkK x0dwlIamvULsQ== Date: Wed, 5 Jun 2024 19:06:40 +0100 From: Conor Dooley To: Rajnesh Kanwal Cc: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-riscv@lists.infradead.org, adrian.hunter@intel.com, alexander.shishkin@linux.intel.com, ajones@ventanamicro.com, anup@brainfault.org, acme@kernel.org, atishp@rivosinc.com, beeman@rivosinc.com, brauner@kernel.org, heiko@sntech.de, irogers@google.com, mingo@redhat.com, james.clark@arm.com, renyu.zj@linux.alibaba.com, jolsa@kernel.org, jisheng.teoh@starfivetech.com, palmer@dabbelt.com, tech-control-transfer-records@lists.riscv.org, will@kernel.org, kaiwenxue1@gmail.com Subject: Re: [PATCH RFC 3/6] riscv: perf: Add Control Transfer Records extension parsing Message-ID: <20240605-thaw-giant-87eb299c43d0@spud> References: <20240529185337.182722-1-rkanwal@rivosinc.com> <20240529185337.182722-4-rkanwal@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="RRX4c9uXLV2+FCJl" Content-Disposition: inline In-Reply-To: <20240529185337.182722-4-rkanwal@rivosinc.com> --RRX4c9uXLV2+FCJl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 29, 2024 at 07:53:34PM +0100, Rajnesh Kanwal wrote: > Adding CTR extension in ISA extension map to lookup for extension > availability. >=20 > Signed-off-by: Rajnesh Kanwal Same comment here about $subject. You're also missing dt-bindings for the extension. Thanks, Conor. > --- > arch/riscv/include/asm/hwcap.h | 4 ++++ > arch/riscv/kernel/cpufeature.c | 2 ++ > 2 files changed, 6 insertions(+) >=20 > diff --git a/arch/riscv/include/asm/hwcap.h b/arch/riscv/include/asm/hwca= p.h > index b8cc459ee8a4..aff5ef398671 100644 > --- a/arch/riscv/include/asm/hwcap.h > +++ b/arch/riscv/include/asm/hwcap.h > @@ -86,6 +86,8 @@ > #define RISCV_ISA_EXT_SSCCFG 77 > #define RISCV_ISA_EXT_SMCDELEG 78 > #define RISCV_ISA_EXT_SMCNTRPMF 79 > +#define RISCV_ISA_EXT_SMCTR 80 > +#define RISCV_ISA_EXT_SSCTR 81 > =20 > #define RISCV_ISA_EXT_XLINUXENVCFG 127 > =20 > @@ -95,9 +97,11 @@ > #ifdef CONFIG_RISCV_M_MODE > #define RISCV_ISA_EXT_SxAIA RISCV_ISA_EXT_SMAIA > #define RISCV_ISA_EXT_SxCSRIND RISCV_ISA_EXT_SMCSRIND > +#define RISCV_ISA_EXT_SxCTR RISCV_ISA_EXT_SMCTR > #else > #define RISCV_ISA_EXT_SxAIA RISCV_ISA_EXT_SSAIA > #define RISCV_ISA_EXT_SxCSRIND RISCV_ISA_EXT_SSCSRIND > +#define RISCV_ISA_EXT_SxCTR RISCV_ISA_EXT_SSCTR > #endif > =20 > #endif /* _ASM_RISCV_HWCAP_H */ > diff --git a/arch/riscv/kernel/cpufeature.c b/arch/riscv/kernel/cpufeatur= e.c > index d1fb6a8c5492..4334d822b2f2 100644 > --- a/arch/riscv/kernel/cpufeature.c > +++ b/arch/riscv/kernel/cpufeature.c > @@ -298,6 +298,7 @@ const struct riscv_isa_ext_data riscv_isa_ext[] =3D { > __RISCV_ISA_EXT_DATA(zvkt, RISCV_ISA_EXT_ZVKT), > __RISCV_ISA_EXT_DATA(smaia, RISCV_ISA_EXT_SMAIA), > __RISCV_ISA_EXT_DATA(smcdeleg, RISCV_ISA_EXT_SMCDELEG), > + __RISCV_ISA_EXT_DATA(smctr, RISCV_ISA_EXT_SMCTR), > __RISCV_ISA_EXT_DATA(smstateen, RISCV_ISA_EXT_SMSTATEEN), > __RISCV_ISA_EXT_DATA(smcntrpmf, RISCV_ISA_EXT_SMCNTRPMF), > __RISCV_ISA_EXT_DATA(smcsrind, RISCV_ISA_EXT_SMCSRIND), > @@ -305,6 +306,7 @@ const struct riscv_isa_ext_data riscv_isa_ext[] =3D { > __RISCV_ISA_EXT_DATA(sscsrind, RISCV_ISA_EXT_SSCSRIND), > __RISCV_ISA_EXT_DATA(ssccfg, RISCV_ISA_EXT_SSCCFG), > __RISCV_ISA_EXT_DATA(sscofpmf, RISCV_ISA_EXT_SSCOFPMF), > + __RISCV_ISA_EXT_DATA(ssctr, RISCV_ISA_EXT_SSCTR), > __RISCV_ISA_EXT_DATA(sstc, RISCV_ISA_EXT_SSTC), > __RISCV_ISA_EXT_DATA(svinval, RISCV_ISA_EXT_SVINVAL), > __RISCV_ISA_EXT_DATA(svnapot, RISCV_ISA_EXT_SVNAPOT), > --=20 > 2.34.1 >=20 --RRX4c9uXLV2+FCJl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZmCpMAAKCRB4tDGHoIJi 0kEpAQCsOUjZl8R2wNCVzJXQJV4UjjC09oI/oJy7iOQTgrCXpgD/bslLlxazlWXA 89hLVyp5e76pm/wa8mAGOes1wwKLNgo= =memG -----END PGP SIGNATURE----- --RRX4c9uXLV2+FCJl--