From patchwork Tue Dec 14 14:16:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robin Murphy X-Patchwork-Id: 12696077 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 30E40C433FE for ; Tue, 14 Dec 2021 14:18:06 +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=1Jpez+l8K0y5u4T2sJ3IPnJ+1POerrU6lCHcBttlRZo=; b=gM0cJsIW3CfkgE S62dOrbQ2+e90fby6TVSo0nv0ONqiGMTfiJ/VNAO1MUV0DI5MgSHUimze2iF5iLnYPiJ5RZHdEcQq tIEJICIEybgjJ/PZ6++XCFe4r00ffdz24Tt7lWO6Mj02VN2lj0VT3/3ZBE8wjSzckuHvyl5Dzq7Zt DT0mmoGS3zjJUd8htTeWn5iT4xhJ/6diJRLfLl+ysLvnVELpDrq3RcemKVd7Z//orRhWbA0z2FAd8 JGy0Rsk74n/7OYqPyLqy6nERxMRUeOuJaCcGPL+6IleFNAKJWS6FiPu9FfUNgEe9Q3t0UckTGaM/b VL0Kby/06ENf5IsRPIlQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mx8bV-00EKSF-2A; Tue, 14 Dec 2021 14:16:29 +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 1mx8bR-00EKR9-Qa for linux-arm-kernel@lists.infradead.org; Tue, 14 Dec 2021 14:16:27 +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 86B4B6D; Tue, 14 Dec 2021 06:16:22 -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 60B243F793; Tue, 14 Dec 2021 06:16:21 -0800 (PST) From: Robin Murphy To: will@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: catalin.marinas@arm.com, suzuki.poulose@arm.com, thierry.reding@gmail.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH v2 0/5] arm64: PMU updates Date: Tue, 14 Dec 2021 14:16:12 +0000 Message-Id: X-Mailer: git-send-email 2.28.0.dirty MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211214_061625_957280_EE6861C0 X-CRM114-Status: UNSURE ( 8.65 ) 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, Here's v2, with the DSU binding actually finished (oh the shame...) and the NVIDIA PMU patch pulled in to benefit from the cleanup and keep things manageably together. The initial binding patch from v1 is no longer included since Rob has picked it up separately. Refactoring arm_pmu's probing to be more modular turns out to be a substantial yak to shave, so in the end I decided it *is* worth implementing Mark's macro suggestion now - after all, it can simply be converted from a function template to a structure template as and when the time comes. Cheers, Robin. Robin Murphy (4): arm64: perf: Simplify registration boilerplate arm64: perf: Support new DT compatibles dt-bindings: perf: Convert Arm DSU to schema dt-bindings: perf: Add compatible for Arm DSU-110 Thierry Reding (1): arm64: perf: Support Denver and Carmel PMUs .../devicetree/bindings/arm/arm-dsu-pmu.txt | 27 ----- .../devicetree/bindings/perf/arm,dsu-pmu.yaml | 45 +++++++ arch/arm64/kernel/perf_event.c | 111 +++++++----------- 3 files changed, 88 insertions(+), 95 deletions(-) delete mode 100644 Documentation/devicetree/bindings/arm/arm-dsu-pmu.txt create mode 100644 Documentation/devicetree/bindings/perf/arm,dsu-pmu.yaml