From patchwork Tue Feb 6 10:27:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robin Murphy X-Patchwork-Id: 13547086 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 CE6F8C48297 for ; Tue, 6 Feb 2024 11:30:56 +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=BM2xVO/Adb00I1co++67TCkfzJUCUyaNWcucD856NMc=; b=bbMUV7PtO++bOr XNXu11t4tTl1Fu4LF7nLA/z0ts/mhIfi6Z9WTS+JquqRz2DDBDIex+JkwbjKrtfQsMt1cBW+ah5nh XZLyXUWwegyhUJQTpTaciG8n+Ncpvv5UL1h8q/nMQ8AJov6UumoJ4Xo8UmA74SBCCiqogGk9ShJMr cyVmDbM317loaLPrwhnHTW54tz6gwIQS3Rk+jML/eX7ft5ip0gKiIXbJ+ds6zI94u5NV0LwbQTh+C obY2DaOx2yp1+VO+hnZe2aOquYSxVPFGudFTruPQqz/T7Q8siwXfDfHXlAYyi20H8jDOPnHq+EueM 5yLHibleeJj+tpP9weuA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rXJf5-00000007Kga-0VAx; Tue, 06 Feb 2024 11:30:47 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rXIgY-000000071to-1AD5 for linux-arm-kernel@bombadil.infradead.org; Tue, 06 Feb 2024 10:28:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=Uj/7IWdCZb3XBz0Kz+cPhreO+tCXn5O7RA/Oer9M4KA=; b=dyZmXVbjvlBrhwcF8KwpAknu8E hEynTVxZVW4YdHaXuLLkpdiCkRXzVZSOuFq0sl5VsuPBe3ts+61C2ZkuaMb2eQ41OCggLqyX3Z9zL hArB/1E141UgnkQwOj+nLKXaUtQvyCiiLqTAw98rdezFqSGS5rydVJajSFEbWJnfhemPVv+RgIlUv UbYkGh5SsogtrxNJX/ctl2sNaVbZiNi+WAHDzmHDVjzUuF4kkaCqV750uP5ugK8ig0e2M9d9dy/H6 81gi5XYPV5RuHmJDCdJ/SSgeTS1Jmy2Xe20pFJaw4xvIX2Rlw8nmVjiaWJXPnV1W+AB2wbJTRBu/v m0ruYjIg==; Received: from foss.arm.com ([217.140.110.172]) by desiato.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rXIgU-0000000CUMZ-1NIf for linux-arm-kernel@lists.infradead.org; Tue, 06 Feb 2024 10:28:12 +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 DEAFA1FB; Tue, 6 Feb 2024 02:28:45 -0800 (PST) Received: from e121345-lin.cambridge.arm.com (e121345-lin.cambridge.arm.com [10.1.196.40]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 24DC53F641; Tue, 6 Feb 2024 02:28:02 -0800 (PST) From: Robin Murphy To: will@kernel.org Cc: mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, suzuki.poulose@arm.com, ilkka@os.amperecomputing.com, bwicaksono@nvidia.com, YWan@nvidia.com, rwiley@nvidia.com Subject: [PATCH v3 0/5] perf/arm_cspmu: Add devicetree support Date: Tue, 6 Feb 2024 10:27:53 +0000 Message-Id: X-Mailer: git-send-email 2.39.2.101.g768bb238c484.dirty MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240206_102810_718483_691097B3 X-CRM114-Status: UNSURE ( 7.96 ) 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 v2: https://lore.kernel.org/linux-arm-kernel/cover.1702571292.git.robin.murphy@arm.com/ Hi all, Third time lucky... here's a hopefully-final spin to address the functional issues Besar pointed out, and give a little final polish to the binding (although I stand firm on teh point of a trivial example not being valuable :)) Cheers, Robin. Robin Murphy (5): perf/arm_cspmu: Simplify initialisation perf/arm_cspmu: Simplify attribute groups perf/arm_cspmu: Simplify counter reset dt-bindings/perf: Add Arm CoreSight PMU perf/arm_cspmu: Add devicetree support .../bindings/perf/arm,coresight-pmu.yaml | 39 +++++ drivers/perf/arm_cspmu/arm_cspmu.c | 153 ++++++++++-------- drivers/perf/arm_cspmu/arm_cspmu.h | 1 + drivers/perf/arm_cspmu/nvidia_cspmu.c | 6 - 4 files changed, 126 insertions(+), 73 deletions(-) create mode 100644 Documentation/devicetree/bindings/perf/arm,coresight-pmu.yaml