From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CEC7BC3064D for ; Wed, 26 Jun 2024 16:37:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=1lD8fRLKhQDmXHyNmsSrGUGVXdUGFAPvH9RJeDgB7pE=; b=vECwZEcahCA98c25LH+ZEFQRCg lY46vRfBDDjR5GZHyrXUUiE8V3qerCr3fA3+oNL9OY9MSzRnFVm0y+9r7nlK6E4OkUDnI7XeP4Os5 TrF/2D2szNvoHgLlMmkYUqk+VrT5EIljdlUrzRbJU4Sn/V1cZtAjxYCGmHTL2o9BASb/zchqa2f54 wQqf/W5jYSfzXNcABDDRRdnc9jnCT2PQGrzAx2SCIqhqtWnT5/tTp+6dHjhReO9MQA9ZyY9lfBEJc tDfnArDK/WikGmIFsFeSnNkxT4sDCRTuwXa2DAg74jFmB170FhMFqjmM1ffIrdJJ1i1C74akfVFDI s254lymA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMVe7-00000007clS-2xud; Wed, 26 Jun 2024 16:37:23 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMVdy-00000007chV-10ch; Wed, 26 Jun 2024 16:37:15 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id EFCBB61986; Wed, 26 Jun 2024 16:37:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5EDB2C116B1; Wed, 26 Jun 2024 16:37:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1719419832; bh=1lD8fRLKhQDmXHyNmsSrGUGVXdUGFAPvH9RJeDgB7pE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eCG7hsy2l9mBP8DgUpW6XIpDt4uWVHlRvknHISmTPLOh1xGolLNBmOFqBxH6GtrC5 UTk7lYax8L91yj/c3jLL1NPP0w4ngeqTrcKad1GvCfrhYra5PkGsXQDl/AaC+b5FjQ s7j2iQJYWL+wG5mW/fledGv2KPyPdX8ZVn/vOoPWaM5Ec+bPUS018GoOjpcDR2eubW kQdj6p8tJW++NCGN+zCLRKuSrJp6OsKOBm1hiAO4GSReOLQYEgcUo9+39L/NrfA0vO sBaf9nGoToLOZRtaUas/UJBBzxs2GwFd90GrjhS/tFZ5yHDWX/gs/XcYNcQsstGS27 DhuI6ppAYoUbQ== Date: Wed, 26 Jun 2024 17:37:07 +0100 From: Conor Dooley To: Atish Kumar Patra Cc: Samuel Holland , linux-riscv@lists.infradead.org, kvm-riscv@lists.infradead.org, Atish Patra , Anup Patel , Will Deacon , Mark Rutland , Paul Walmsley , Palmer Dabbelt , Andrew Jones , Conor Dooley , Palmer Dabbelt , Alexandre Ghiti , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: Re: [PATCH v3 2/3] drivers/perf: riscv: Reset the counter to hpmevent mapping while starting cpus Message-ID: <20240626-eraser-unselect-99e68a1f5a3e@spud> References: <20240626-misc_perf_fixes-v3-0-de3f8ed88dab@rivosinc.com> <20240626-misc_perf_fixes-v3-2-de3f8ed88dab@rivosinc.com> <96ff4dd2-db66-4653-80e9-97d4f1381581@sifive.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ron7u5fHDD4eUMra" Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240626_093714_402647_47BA498A X-CRM114-Status: GOOD ( 16.84 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --ron7u5fHDD4eUMra Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 26, 2024 at 09:18:46AM -0700, Atish Kumar Patra wrote: > On Wed, Jun 26, 2024 at 6:24=E2=80=AFAM Samuel Holland > wrote: > > > > On 2024-06-26 2:23 AM, Atish Patra wrote: > > > From: Samuel Holland > > > > > > Currently, we stop all the counters while a new cpu is brought online. > > > However, the hpmevent to counter mappings are not reset. The firmware= may > > > have some stale encoding in their mapping structure which may lead to > > > undesirable results. We have not encountered such scenario though. > > > > > > > This needs: > > > > Signed-off-by: Samuel Holland > > >=20 > Oops. Sorry I missed that. >=20 > @Alexandre Ghiti What's Alex going to be able to do? > @Palmer Dabbelt : Can you add that while picking up > the patch or should I respin a v4 ? b4 should pick the signoff up though. "perf: RISC-V: Check standard event availability" seems to be missing your signoff though... --ron7u5fHDD4eUMra Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZnxDswAKCRB4tDGHoIJi 0jfRAQDzZpKiVTiVaovH+Q/5OxJQntjZIMNpZSGbTWqwqtdMoAEA9qF6f+d+BCB2 dVhzoaqpQ2mizAy1CcfVkCikmzqBlQM= =RDz8 -----END PGP SIGNATURE----- --ron7u5fHDD4eUMra--