From patchwork Sat Aug 12 14:25:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gowthami Thiagarajan X-Patchwork-Id: 13351858 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 19059C04A94 for ; Sat, 12 Aug 2023 14:26:20 +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=gEuPbwWMiP8nraYLy8IWfF/S9DVtb2uv+M7Ej14Bm24=; b=V/Il8XOdXFg3rC kwXDiT96YxURmTHBAIOhGOYmDxyFcWeSJj5RFQ25sAL8VUSxA3aY+0UnqW7XlanlWuYOVCWmQhxHe sl0hWGpGixGoXTXIqVOeULHB1KvEENFNvetdMU/W12eomgKRq4jjhcZcf8h9ue2HRsCrf0HLOP33B QjSjELy9KOONVQk2NeoD6dpVrjgnIwmmY0yCJ+3uuAFmX/f0Cdnd91TQ3o2kNgFBdUfgkP8HFMOuJ +gs74o6K3EoiCW5kt8K24LwCQGoAeN7hnAq9kubUcIZ6XxBzZS4lThfuRTDD4rf+gBMIxcfeP8nsU 43UwichnXvf7YJS1hqkw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qUpYq-00DYRs-2l; Sat, 12 Aug 2023 14:25:48 +0000 Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qUpYo-00DYR9-0v for linux-arm-kernel@lists.infradead.org; Sat, 12 Aug 2023 14:25:47 +0000 Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 37CDlnKJ032543; Sat, 12 Aug 2023 07:25:32 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=y2h9nLbuSwl/QP82jn4J6bzXMjp3EQhSL/4Ks3F3V/s=; b=FdAbGgtghg6UlsJFoJs1FeCY/rbRpHtI6BLQGyqu75AFhlkRVyorj5suam7rVVDJsAlK IRFJQtGz2ze23c5WGCnPrhsCH+EkCASLo6q65lwBGc0xXLg55cPX77UCzPHtCc3FdCm9 6cnvTd88oBg3AmpP/7f77WTQdp8QODG11aLAqUBahHAD+nnPVCW3+aEdsAz9PhKNXVhM r2615TmuAvnHaASBpT9Isc9SbF/lc1rwYzEDy7Q0bumOiv57sfcNrsS+5RLesAWwVsnx 0ziFmwtrSfD3GFOW5cXKxpiCIfYJY0Me7PXWcl1phVQVBToJLqRn0L9nQfSxREWPaP4y xg== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3se9kj09cd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sat, 12 Aug 2023 07:25:32 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Sat, 12 Aug 2023 07:25:30 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Sat, 12 Aug 2023 07:25:30 -0700 Received: from IPBU-BLR-SERVER1.marvell.com (IPBU-BLR-SERVER1.marvell.com [10.28.8.41]) by maili.marvell.com (Postfix) with ESMTP id 6CFAA3F7041; Sat, 12 Aug 2023 07:25:26 -0700 (PDT) From: Gowthami Thiagarajan To: , , , , , , , CC: , , , Gowthami Thiagarajan Subject: [PATCH v2 0/6] Marvell Odyssey uncore performance monitor support Date: Sat, 12 Aug 2023 19:55:12 +0530 Message-ID: <20230812142518.778259-1-gthiagarajan@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Proofpoint-GUID: g5vlqzJJGrtv5BOOzV_DbhUQ5QUq_Yg5 X-Proofpoint-ORIG-GUID: g5vlqzJJGrtv5BOOzV_DbhUQ5QUq_Yg5 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-12_14,2023-08-10_01,2023-05-22_02 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230812_072546_457232_208EB5E4 X-CRM114-Status: GOOD ( 14.60 ) 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 This series of patches introduces support for uncore performance monitor units (PMUs) on the Marvell Odyssey platform. The PMUs covered in this series include the PEM PMU, LLC-TAD PMU and DDR PMU. Patches 1, 3 and 5 adds support for PEM pmu, LLC-TAD pmu, DDR pmu respectively. Patches 2, 4 and 6 deal with their respective device tree bindings. v1->v2: - Changed DT binding file names to match with compatible - Added missed validations in perf event init - Fixed Comment style Gowthami Thiagarajan (6): perf/marvell: Marvell PEM performance monitor support dt-bindings: perf: Add Marvell PEM performance monitor unit perf/marvell : Odyssey LLC-TAD performance monitor support dt-bindings: perf: Add Marvell Odyssey LLC-TAD pmu perf/marvell: Odyssey DDR Performance monitor support dt-bindings: perf: Add Marvell Odyssey DDR PMU .../perf/marvell,odyssey-pem-pmu.yaml | 38 ++ .../perf/marvell,odyssey-tad-pmu.yaml | 63 +++ .../bindings/perf/marvell-cn10k-ddr.yaml | 9 +- MAINTAINERS | 16 + drivers/perf/Kconfig | 14 + drivers/perf/Makefile | 2 + drivers/perf/marvell_cn10k_ddr_pmu.c | 435 ++++++++++++++--- drivers/perf/marvell_odyssey_tad_pmu.c | 424 +++++++++++++++++ drivers/perf/marvell_pem_pmu.c | 437 ++++++++++++++++++ include/linux/cpuhotplug.h | 1 + 10 files changed, 1369 insertions(+), 70 deletions(-) create mode 100644 Documentation/devicetree/bindings/perf/marvell,odyssey-pem-pmu.yaml create mode 100644 Documentation/devicetree/bindings/perf/marvell,odyssey-tad-pmu.yaml create mode 100644 drivers/perf/marvell_odyssey_tad_pmu.c create mode 100644 drivers/perf/marvell_pem_pmu.c