From patchwork Thu Sep 19 07:47:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gowthami Thiagarajan X-Patchwork-Id: 13807462 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 A3124CE8D5D for ; Thu, 19 Sep 2024 07:51:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding: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=fis1F+2vLYA5jjS4Brh0rDaABLlMjF6lNOqFy5q0M6s=; b=jG5tMpDHsCpzCj2kJOCbbX96GI 16vGQ054C0EozQCaVcFgTPYA666BgUKp/HwAIvPNzaSpS8MCggTxFzCXn6KsWaMXinCHk797UQ4j2 w4TDeAvQdzzC7IrF6YqDg1KZVlzjV1YpGQm+XICMQciGYvisKZM6TgPefsCdBIHM9DIhxKTZjczUI oIsWjBoHRFr7nDStjzTf24Qcqt3qqCv3f4/Bv0WgP4I2nZNtcrPn2STSQmW10X9bb8RifsODBniLk OHOoeFYCa48/pj7ARIHTm4rkQEOU4xNfOQRBfJ3/wEnavskdm72vqDO4ztYSrNFGYRdkMzwK2ysE+ Ey++vcSA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1srBwd-00000009hzX-2wuf; Thu, 19 Sep 2024 07:51:19 +0000 Received: from mx0a-0016f401.pphosted.com ([67.231.148.174] helo=mx0b-0016f401.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1srBtX-00000009h8O-3Cyt for linux-arm-kernel@lists.infradead.org; Thu, 19 Sep 2024 07:48:09 +0000 Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 48J6KVN0031226; Thu, 19 Sep 2024 00:47:41 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=pfpt0220; bh=fis1F+2vLYA5jjS4Brh0rDa ABLlMjF6lNOqFy5q0M6s=; b=AtKbkD5lWp0cKTtVpnIUp0hjd2xsAoWcgk27C0h BY9mYltROSklDlTMVdAU1f8dl9nuQNoBDtwBgZtjltni+NR6bHOYVr8+H5XAwTrV TNH5wknJePcpok3lYEQRtL1V6mLsY7JAzkM2pLNW5R4FnKGxjZYlharG5CUgxh7c ixztE5kkftpTc4fP3kVvYvR4VQ8b3KF+ver+8AhiEpseXUEyI5+rBJzSOSg2FPWg mZYgHfQUWylKDfudoXPJXbEzkWBXgzoAgW7YzUCbHKkOUCh4m3PMO251m+5FpFpN AY0hysvBaknhcQF1/yGoFgIox1t3oy33jgkNadzt8CV/cUQ== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 41qdwgg7um-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 19 Sep 2024 00:47:41 -0700 (PDT) Received: from DC5-EXCH05.marvell.com (10.69.176.209) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Thu, 19 Sep 2024 00:47:22 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Thu, 19 Sep 2024 00:47:22 -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 4C9AE3F7082; Thu, 19 Sep 2024 00:47:20 -0700 (PDT) From: Gowthami Thiagarajan To: , , , CC: , , , Gowthami Thiagarajan Subject: [PATCH v8 0/6] Marvell Odyssey uncore performance monitor support Date: Thu, 19 Sep 2024 13:17:11 +0530 Message-ID: <20240919074717.3276854-1-gthiagarajan@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Proofpoint-GUID: EW4bdoqcaSomDFz09W3jh7kl71zgbiiA X-Proofpoint-ORIG-GUID: EW4bdoqcaSomDFz09W3jh7kl71zgbiiA X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240919_004807_843660_B9D14C99 X-CRM114-Status: GOOD ( 12.37 ) 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 Odyssey is a 64 bit ARM based SoC with multiple performance monitor units for various blocks. 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 DDR PMU and LLC-TAD PMU. v7->v8: - Fixed the warning reported by kernel test robot Gowthami Thiagarajan (6): perf/marvell: Refactor to extract platform data - no functional change perf/marvell: Refactor to extract platform specific ops - no functional change perf/marvell: Refactor to add version - no functional change perf/marvell: Odyssey DDR Performance monitor support perf/marvell : Refactor to extract platform data - no functional change perf/marvell : Odyssey LLC-TAD performance monitor support Documentation/admin-guide/perf/index.rst | 2 + .../admin-guide/perf/mrvl-odyssey-ddr-pmu.rst | 80 +++ .../admin-guide/perf/mrvl-odyssey-tad-pmu.rst | 37 ++ drivers/perf/marvell_cn10k_ddr_pmu.c | 535 +++++++++++++++--- drivers/perf/marvell_cn10k_tad_pmu.c | 66 ++- 5 files changed, 644 insertions(+), 76 deletions(-) create mode 100644 Documentation/admin-guide/perf/mrvl-odyssey-ddr-pmu.rst create mode 100644 Documentation/admin-guide/perf/mrvl-odyssey-tad-pmu.rst