From mboxrd@z Thu Jan 1 00:00:00 1970 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 07198C4332F for ; Mon, 18 Oct 2021 15:32:48 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id C8A5F60EFE for ; Mon, 18 Oct 2021 15:32:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C8A5F60EFE Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=marvell.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=e2/NmrfN4L/3ElHy5d14/zA1fTieQrqlhVnqgHyhmnw=; b=JmDmyd9OvILaTx slf/BD4owI9VXX/7mgtvVmC+7LXkakoGXsuUtIy1J2qc/j2nkKagQEZSsLl7fSIQVJorOpnTnnGJ+ KcNFQ4Fe9Le72CywWO66hSrIBKzZvn2mt3E9ODK8fXIFARIioBkBZnzEVRiMOX62e4i3/xbo7lHco qvcoyT/7Pqb6SC4Z7turZf/pmZAjDdNBtm7ppFBfI1XTQEzIX7YcmbLeMU+IJfA7+rbNwBtCrRCZ1 ZL8r/REoPF2JZcTgb55E1G/6Lk1s0xTWKtXE6aOZvX3RCoxUkDVKxvqFcsv7NheBkFrwuobthIfK6 9+kWF/nxUxTr1wclo+KA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mcUbl-00GKCR-Hf; Mon, 18 Oct 2021 15:31:25 +0000 Received: from mx0a-0016f401.pphosted.com ([67.231.148.174] helo=mx0b-0016f401.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mcUbh-00GKBN-Gj for linux-arm-kernel@lists.infradead.org; Mon, 18 Oct 2021 15:31:22 +0000 Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19ICZjli024862; Mon, 18 Oct 2021 08:31:15 -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-type; s=pfpt0220; bh=dU2vCIi5WKPb7AFGaKXXQnjtepfMevDauHgbDEzDwrw=; b=Go2/eztflQ7vf1M3NDoKpy63E7BgUeHyJP46YFhUVgAzcQfbRrWbnKbxr7WzfqDic5jU 7pxH306/yAMhLH/m7LJMAsQFBFQJ46GnrFx534ylWimO7qZGt/q6Yymo9fI/zJ1rR8IX FUnlmLD7Q9lnqSO1y4Y2eM3PpShk/+40Y0IPdkeWuXA/0BswFUKgF6a14/61GDD5vxKK 4Y+cD9qA8q2AgyC5wHJGZhxX6MKR/kcUJPyFPOWzrg+ndTgLjhcJSJyu+En5forACnZ7 1W8cY528zI+PPc0gh/54RVBM5GhwowTHevn5IN12wJBjyx2nib/4DRyfFVB/EgpL1K/r 0A== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com with ESMTP id 3bs1bujjke-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 18 Oct 2021 08:31:14 -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.18; Mon, 18 Oct 2021 08:31:13 -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.18 via Frontend Transport; Mon, 18 Oct 2021 08:31:13 -0700 Received: from hyd1soter3.marvell.com (unknown [10.29.37.12]) by maili.marvell.com (Postfix) with ESMTP id 7DEE15E6862; Mon, 18 Oct 2021 08:31:10 -0700 (PDT) From: Bhaskara Budiredla To: , , , , CC: , , , Bhaskara Budiredla Subject: [PATCH v6 0/2] drivers: perf: Add Marvell CN10K LLC-TAD pmu driver Date: Mon, 18 Oct 2021 21:00:55 +0530 Message-ID: <20211018153057.23217-1-bbudiredla@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Proofpoint-GUID: N-5QNF2_xhJzFgjxJK5kM1P8ezzqTWOk X-Proofpoint-ORIG-GUID: N-5QNF2_xhJzFgjxJK5kM1P8ezzqTWOk X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-10-18_07,2021-10-18_01,2020-04-07_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211018_083121_601362_8E9F9A75 X-CRM114-Status: GOOD ( 14.96 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series introduces performance monitor driver to Last-level-cache tag-and-data (LLC-TAD) PMU which is an intergral part of Marvell CN10K SoCs. The configuration and functionality of the TAD PMU is covered in patch 1. The device tree bindings are dealt in patch 2. v6: - add COMPILE_TEST dependency (Bharat Bhushan) - replace sprintf with sysfs_emit (Bharat Bhushan) v5: - add prefix, type, description for vendor specific properties in DT bindings (Rob Herring) v4: - rebased on kernel v5.14-rc7 - eliminate yamllint errors (Rob Herring) v3: - rebased on kernel v5.14-rc5 - disable sampling events via PERF_PMU_CAP_NO_INTERRUPT (Will Deacon) - convert tad pmu bindings to schema (Will Deacon) - replace tighter semantics with *_relaxed() accesses (Will Deacon) - use PMU_EVENT_ATTR_ID generic macro (Will Deacon) - allow cleanup of allocations through devm_kcalloc() (Will Deacon) v2: - rebased on kernel v5.13-rc3 Bhaskara Budiredla (2): drivers: perf: Add LLC-TAD perf counter support dt-bindings: perf: Add YAML schemas for Marvell CN10K LLC-TAD pmu bindings .../bindings/perf/marvell-cn10k-tad.yaml | 63 +++ drivers/perf/Kconfig | 7 + drivers/perf/Makefile | 1 + drivers/perf/marvell_cn10k_tad_pmu.c | 429 ++++++++++++++++++ 4 files changed, 500 insertions(+) create mode 100644 Documentation/devicetree/bindings/perf/marvell-cn10k-tad.yaml create mode 100644 drivers/perf/marvell_cn10k_tad_pmu.c -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5D2B8C433EF for ; Mon, 18 Oct 2021 15:31:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2678D60F02 for ; Mon, 18 Oct 2021 15:31:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229696AbhJRPde (ORCPT ); Mon, 18 Oct 2021 11:33:34 -0400 Received: from mx0a-0016f401.pphosted.com ([67.231.148.174]:42960 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230154AbhJRPde (ORCPT ); Mon, 18 Oct 2021 11:33:34 -0400 Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19ICZjli024862; Mon, 18 Oct 2021 08:31:15 -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-type; s=pfpt0220; bh=dU2vCIi5WKPb7AFGaKXXQnjtepfMevDauHgbDEzDwrw=; b=Go2/eztflQ7vf1M3NDoKpy63E7BgUeHyJP46YFhUVgAzcQfbRrWbnKbxr7WzfqDic5jU 7pxH306/yAMhLH/m7LJMAsQFBFQJ46GnrFx534ylWimO7qZGt/q6Yymo9fI/zJ1rR8IX FUnlmLD7Q9lnqSO1y4Y2eM3PpShk/+40Y0IPdkeWuXA/0BswFUKgF6a14/61GDD5vxKK 4Y+cD9qA8q2AgyC5wHJGZhxX6MKR/kcUJPyFPOWzrg+ndTgLjhcJSJyu+En5forACnZ7 1W8cY528zI+PPc0gh/54RVBM5GhwowTHevn5IN12wJBjyx2nib/4DRyfFVB/EgpL1K/r 0A== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com with ESMTP id 3bs1bujjke-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 18 Oct 2021 08:31:14 -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.18; Mon, 18 Oct 2021 08:31:13 -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.18 via Frontend Transport; Mon, 18 Oct 2021 08:31:13 -0700 Received: from hyd1soter3.marvell.com (unknown [10.29.37.12]) by maili.marvell.com (Postfix) with ESMTP id 7DEE15E6862; Mon, 18 Oct 2021 08:31:10 -0700 (PDT) From: Bhaskara Budiredla To: , , , , CC: , , , Bhaskara Budiredla Subject: [PATCH v6 0/2] drivers: perf: Add Marvell CN10K LLC-TAD pmu driver Date: Mon, 18 Oct 2021 21:00:55 +0530 Message-ID: <20211018153057.23217-1-bbudiredla@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-GUID: N-5QNF2_xhJzFgjxJK5kM1P8ezzqTWOk X-Proofpoint-ORIG-GUID: N-5QNF2_xhJzFgjxJK5kM1P8ezzqTWOk X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-10-18_07,2021-10-18_01,2020-04-07_01 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This series introduces performance monitor driver to Last-level-cache tag-and-data (LLC-TAD) PMU which is an intergral part of Marvell CN10K SoCs. The configuration and functionality of the TAD PMU is covered in patch 1. The device tree bindings are dealt in patch 2. v6: - add COMPILE_TEST dependency (Bharat Bhushan) - replace sprintf with sysfs_emit (Bharat Bhushan) v5: - add prefix, type, description for vendor specific properties in DT bindings (Rob Herring) v4: - rebased on kernel v5.14-rc7 - eliminate yamllint errors (Rob Herring) v3: - rebased on kernel v5.14-rc5 - disable sampling events via PERF_PMU_CAP_NO_INTERRUPT (Will Deacon) - convert tad pmu bindings to schema (Will Deacon) - replace tighter semantics with *_relaxed() accesses (Will Deacon) - use PMU_EVENT_ATTR_ID generic macro (Will Deacon) - allow cleanup of allocations through devm_kcalloc() (Will Deacon) v2: - rebased on kernel v5.13-rc3 Bhaskara Budiredla (2): drivers: perf: Add LLC-TAD perf counter support dt-bindings: perf: Add YAML schemas for Marvell CN10K LLC-TAD pmu bindings .../bindings/perf/marvell-cn10k-tad.yaml | 63 +++ drivers/perf/Kconfig | 7 + drivers/perf/Makefile | 1 + drivers/perf/marvell_cn10k_tad_pmu.c | 429 ++++++++++++++++++ 4 files changed, 500 insertions(+) create mode 100644 Documentation/devicetree/bindings/perf/marvell-cn10k-tad.yaml create mode 100644 drivers/perf/marvell_cn10k_tad_pmu.c -- 2.17.1