From patchwork Fri Jun 30 12:03:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gowthami Thiagarajan X-Patchwork-Id: 13298092 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 AAF65EB64DA for ; Fri, 30 Jun 2023 12:04:45 +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=g4083U6snz99u6xakFACiJkOawP8sOe6OmfCJWxz0N4=; b=ej2rLQUuzSFOh1 JQY7JCjl0pl8NtqefHdFn1Sn0GWM+cETeWzxFTKS0BbrmokgSdX+LlZfjkUopNw0MNt+V4Jp97P+E QQwr8w87XWDCa90m2IgTCkHt5h3rKXXQqxcOfedwFYJrsA9MszFtlnKR/GBmLS/OlIQOyEtPRUg2c HN/VxKhrvGG+QaGfRiEqgj8t3tm0FTwmhvC5uhfM+ReA+R3NIP7G387WAJioAlO5A5ujLvL7Ntz4s 6ik6FisTkSe5f8qLjQRFkdQBbjD0NrZfX0JQEbM2MKvwxY81AtZoUlooAvs9uES2YIho2HYEfk8p4 Lu4Qd6RJsK+Gb9EQTwOg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qFCrF-003eE9-1b; Fri, 30 Jun 2023 12:04:13 +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 1qFCrA-003eD3-2F for linux-arm-kernel@lists.infradead.org; Fri, 30 Jun 2023 12:04:11 +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 35U946kv019050; Fri, 30 Jun 2023 05:04:00 -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=wphDQnsgQHriFEZB5037roDvSuzFkZdpHT41NkU4ayw=; b=A4RHuflsqT/53cykmrH1DQuajwz6hNlZkan/pWtAHYzi/qi407DdoPZ+2AzVLVDqlC+0 rUdVd/3UG99v9IZvIBqFDqpE1oIsdXT3aym4eSpumbissSQXpozis6ypgKjcHgdfaMWQ PPwf9RGK827cEosWp068Gxnkbb1ytkuca/MuBapZXCogyea7R+njtLfiC9E6/e6HRwYU D2irrNRO3fkvnlR5X+CCya+lWzMVSBH7Lzw7NBpl7uCHIg8n+ZkNQfOf6su+U3/XY+U+ hzrAaE+imyXm8SbPOKD9ihqpZP9k6SCZFfyiSNVlLITwY0l1hut4P94eDDEi7xKei/7I HA== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3rgvpc63b1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 30 Jun 2023 05:03:59 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Fri, 30 Jun 2023 05:03:57 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Fri, 30 Jun 2023 05:03:57 -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 315A83F707E; Fri, 30 Jun 2023 05:03:54 -0700 (PDT) From: Gowthami Thiagarajan To: , , , CC: , , , , Gowthami Thiagarajan Subject: [PATCH 0/6] Marvell Odyssey uncore performance monitor support Date: Fri, 30 Jun 2023 17:33:45 +0530 Message-ID: <20230630120351.1143773-1-gthiagarajan@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Proofpoint-GUID: YzVLSv1g9Qkn0NsajL7vG70DEJEJzXLn X-Proofpoint-ORIG-GUID: YzVLSv1g9Qkn0NsajL7vG70DEJEJzXLn X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-06-30_05,2023-06-30_01,2023-05-22_02 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230630_050408_870992_6FDBF90C X-CRM114-Status: GOOD ( 13.63 ) 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. Gowthami Thiagarajan (6): perf/marvell: Marvell PEM performance monitor support dt-bindings: perf: marvell: Add YAML schemas for Marvell PEM pmu perf/marvell : Odyssey LLC-TAD performance monitor support dt-bindings: perf: marvell: Add YAML schemas for Marvell Odyssey LLC-TAD pmu perf/marvell: Odyssey DDR Performance monitor support dt-bindings: Add YAML schemas for Marvell Odyssey DDR PMU .../bindings/perf/marvell-cn10k-ddr.yaml | 9 +- .../bindings/perf/marvell-odyssey-pem.yaml | 38 ++ .../bindings/perf/marvell-odyssey-tad.yaml | 63 +++ MAINTAINERS | 15 + drivers/perf/Kconfig | 14 + drivers/perf/Makefile | 2 + drivers/perf/marvell_cn10k_ddr_pmu.c | 404 +++++++++++++--- drivers/perf/marvell_odyssey_tad_pmu.c | 406 ++++++++++++++++ drivers/perf/marvell_pem_pmu.c | 433 ++++++++++++++++++ include/linux/cpuhotplug.h | 1 + 10 files changed, 1318 insertions(+), 67 deletions(-) create mode 100644 Documentation/devicetree/bindings/perf/marvell-odyssey-pem.yaml create mode 100644 Documentation/devicetree/bindings/perf/marvell-odyssey-tad.yaml create mode 100644 drivers/perf/marvell_odyssey_tad_pmu.c create mode 100644 drivers/perf/marvell_pem_pmu.c