From patchwork Wed Oct 16 08:01:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gowthami Thiagarajan X-Patchwork-Id: 13837880 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 61F98D1AD23 for ; Wed, 16 Oct 2024 08:07:34 +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=/x962+IYdit39k/M4/0b8X4fRrDBungmMIOQSwSbcOM=; b=4DWUioL+wvEspkircoPWdYkQfD fU4xbfztyGoF9HR/5lR9yBEQcCyAWb1RkZyo62eA+/grySayrNYWX6md6jbGyEJx9gviTlYmmmM/V UkFVDtmCsxkFDPPz9fAAqtea+lH6/MwAK2q3tUVmmTrZd7KYMg28EIMSilNKDmzhwJ+CvUojKX1kf j//GedHrW0f1sexLBRUcjpVS8bBP0oKBHmYXdRB7bsy/VO6uByF5LUs+17gF3RF6oqE4cKSs4SAcP Y22P5XKscl2BO5UE+oRi0viSgDPHibbHoxsRemLiB1Z4QP7BT+vuk1+e1ACROj7TP2iOBH/Ik2K86 NNoQkWlw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0z3w-0000000Ax5O-1G3B; Wed, 16 Oct 2024 08:07:20 +0000 Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0yzA-0000000Avna-1YtF for linux-arm-kernel@lists.infradead.org; Wed, 16 Oct 2024 08:02:26 +0000 Received: from pps.filterd (m0431383.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 49G37u71008286; Wed, 16 Oct 2024 01:02:09 -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=/x962+IYdit39k/M4/0b8X4 fRrDBungmMIOQSwSbcOM=; b=kMa7zmI1UZvLKNlqOH3aweEBrpqe03oQ/Z6aASm ShtGKRsGrM+BLskiC/dEvItlWCVRE8GPWAdJBCz8DUJ3hp2pnjUPt1gI+jNVTfL1 mFZieDLhJC/XRJqD8KoIFgWGeLjZFX5OS+q+dWFs70muEHIWbfGdQsHRrPPc3UQK VcltBgG/16VUK0mMh/JXmD0OaDz92GP8FcXUymNB16E6iRJpD5+pzvWPMQtuBMJ/ jUEh9pJWBufb2O1g21i5bZCUR3gGovtwNlsslQ7NLOVBmKloD0Yz/Wvz5xumBmPP 6phvVDR5mfHJlzO9kpZxjaKByyf2e4O9L+ojoN+bkKVRlSg== Received: from dc6wp-exch02.marvell.com ([4.21.29.225]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 42a5ahre34-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 16 Oct 2024 01:02:08 -0700 (PDT) Received: from DC6WP-EXCH02.marvell.com (10.76.176.209) by DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Wed, 16 Oct 2024 01:02:07 -0700 Received: from maili.marvell.com (10.69.176.80) by DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Wed, 16 Oct 2024 01:02:07 -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 0B26A3F706D; Wed, 16 Oct 2024 01:02:04 -0700 (PDT) From: Gowthami Thiagarajan To: , , , CC: , , , , Gowthami Thiagarajan Subject: [PATCH v9 0/5] Marvell Odyssey uncore performance monitor support Date: Wed, 16 Oct 2024 13:31:48 +0530 Message-ID: <20241016080153.3546353-1-gthiagarajan@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Proofpoint-GUID: JG5qzsqowmdtQt8NkvvceT5fAEaIERD_ X-Proofpoint-ORIG-GUID: JG5qzsqowmdtQt8NkvvceT5fAEaIERD_ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.687,Hydra:6.0.235,FMLib:17.0.607.475 definitions=2020-10-13_15,2020-10-13_02,2020-04-07_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241016_010224_551564_DDADE1B8 X-CRM114-Status: GOOD ( 11.47 ) 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. v8->v9: - Addressed the review comments. - Added platform specific flag in DDR PMU driver instead of version as there is already a platform specific data. Gowthami Thiagarajan (5): perf/marvell: Refactor to extract platform data - no functional change perf/marvell: Refactor to extract platform specific ops - 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 | 516 +++++++++++++++--- drivers/perf/marvell_cn10k_tad_pmu.c | 66 ++- 5 files changed, 630 insertions(+), 71 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