From patchwork Tue Dec 5 16:51:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robin Murphy X-Patchwork-Id: 13480470 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 2776BC4167B for ; Tue, 5 Dec 2023 16:53:02 +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=O08sjsXXBHm/EmXgh34JGJuP8PintAfzy5VTJbJfOHk=; b=vRqKGMJvUTCpb+ RM519tHo+/VRgnO57xsxmSMlbHtNe2l5NRtI4YfvVcDWyoyyThgGS7DEq1PTwMwwxXV6U8YMbKLk/ pcLZDE4kYYNi2C7Vyb9DQk2r+yvaND3SSeGcr7x3gBYm1vRr1N8JdzYX+WowmPqGssQYRz8+o7IyY JZEFZ/ZmV+lIJiGbHLDk8zWRme4Xh95yQgHM06z0YJ1DJLZ4FhaSpoyMZDsw6O6Us1/M/PrZ2vmZa 6AH00ssAMUvIo5U5IoEMO5zEM5ysuxYnuc8ckBVqDd8d7EE0bUlHNxsuBgxPGCsIvRlh/ipkK+QTW QROLoGg/VROLdH6LD3ng==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rAYef-007wNE-02; Tue, 05 Dec 2023 16:52:17 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rAYeW-007w9B-1P for linux-arm-kernel@lists.infradead.org; Tue, 05 Dec 2023 16:52:13 +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 E01271474; Tue, 5 Dec 2023 08:52:50 -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 2D7F93F5A1; Tue, 5 Dec 2023 08:52:03 -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 0/5] perf/arm_cspmu: Add devicetree support Date: Tue, 5 Dec 2023 16:51: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-20231205_085208_616114_5EDF6774 X-CRM114-Status: UNSURE ( 9.16 ) 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 Hi all, This series does a bit more cleanup and adds devicetree support for CoreSight PMUs. The thing for which I originally wrote this has turned out not to warrant upstream support, but others have also expressed an interest so here it is. Thanks, 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 | 155 ++++++++++-------- drivers/perf/arm_cspmu/arm_cspmu.h | 1 + drivers/perf/arm_cspmu/nvidia_cspmu.c | 6 - 4 files changed, 126 insertions(+), 75 deletions(-) create mode 100644 Documentation/devicetree/bindings/perf/arm,coresight-pmu.yaml