From patchwork Thu Jan 13 17:54:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: German Gomez X-Patchwork-Id: 12713023 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 B4216C433F5 for ; Thu, 13 Jan 2022 17:55:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Npuz6ScgkczlDvKp+oaXhHDN6soapY1wS+VQHYLaTBU=; b=XzSfGd5oWM0eF3 Uso8NgwVVQQhuZ/ON1agxnl6YObgKXQ6Ek8djEYYR+28BqSXDaastk6cNKuwzvpEleSeV/82+W3B/ QW2qyeH8f1+GvZ1jDeU44O0AYhQ99VAN5VViFsZ4g0P42miO/Ixxf6+FBnzBxh5laViMc91VRIuU7 7NnPzSXkFg48hHAQFwgjGCnEmWt82VUBVqq7TpeUTzV9Jzx517/zW9AZfW2j2L8nAHosGXwrx+diN 9tlmME/DpYlrAUF9t4Xb22/hX73uX7IllcqcmzM9vxzRXAZkNUrVAhm07OMGk40bVqf8XKGXaF0zm YMVfX+7nFncQDMfgh8LQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n84JD-006nsx-T1; Thu, 13 Jan 2022 17:54:47 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n84JA-006nrd-3J for linux-arm-kernel@lists.infradead.org; Thu, 13 Jan 2022 17:54:45 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C00F36D; Thu, 13 Jan 2022 09:54:40 -0800 (PST) Received: from ip-10-252-15-108.eu-west-1.compute.internal (unknown [10.252.15.108]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id AB7823F766; Thu, 13 Jan 2022 09:54:39 -0800 (PST) From: German Gomez To: linux-eng@arm.com Cc: james.clark@arm.com, German Gomez , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] perf: arm_spe: make the PMSCR CX bit[3] consistent across the session Date: Thu, 13 Jan 2022 17:54:15 +0000 Message-Id: <20220113175417.5523-1-german.gomez@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220113_095444_230547_95337D77 X-CRM114-Status: UNSURE ( 7.43 ) X-CRM114-Notice: Please train this message. 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 The value of the CX bit of the PMSCR register is not consistent across a perf session. There is an example in [1/2] to reproduce the issue. This cset applies a small correction to fix the consistency issue. - [PATCH 1/2] Makes the CX bit consistent by caching the value during the initialization of the SPE PMU event. - [PATCH 2/2] Allows CONTEXT packets when profiling in CPU mode. German Gomez (2): perf: arm_spe: make the PMSCR CX bit[3] consistent across the session perf: arm_spe: Enable CONTEXT packets if profiling in CPU mode drivers/perf/arm_spe_pmu.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)