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 X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 99E68C433EF for ; Wed, 8 Sep 2021 12:04:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8702F61132 for ; Wed, 8 Sep 2021 12:04:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351646AbhIHMF4 (ORCPT ); Wed, 8 Sep 2021 08:05:56 -0400 Received: from mx0a-0016f401.pphosted.com ([67.231.148.174]:35784 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234758AbhIHMFw (ORCPT ); Wed, 8 Sep 2021 08:05:52 -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 1889TZZk030893; Wed, 8 Sep 2021 05:04:36 -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=rNwDQ/qSjWPQ+WqtJv2ivYT9fUH60zkO9sLdsZ7fPpM=; b=g2QJU43HYRdClYCD9uvO9NxtAkMpyK2g7aFAjHN1wxKuGEYFia3Hf+eqzYxOgw33xkC7 54ERiAqdG3cF5wbV17e5wETGqfK7wrez74ohIXFeSQQZq4oJprguShlGUHPQ5qS7/d76 OVMDr9YMau75AN9IWNqEvbtug7kVmrQ7lV12ve5iydtFVkel3Hwgo3WW3N+3Qtd1Em78 C3/ps3TB3NaDoAN1rEZBq3Yhw1/RgKrYXKLYsXSUs9LVkUFb3au2SH3Uy46f0em5p2AI DGoUIbZvdKSnrcAP2eOFlqcNAASFkgeGCQVkrt6wqq36+LLSIxiRyWLkN5RcVcKq9ekn YQ== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com with ESMTP id 3axtka8fw9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 08 Sep 2021 05:04:36 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 8 Sep 2021 05:04:30 -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.18 via Frontend Transport; Wed, 8 Sep 2021 05:04:30 -0700 Received: from hyd1soter3.marvell.com (unknown [10.29.37.12]) by maili.marvell.com (Postfix) with ESMTP id 43A233F708C; Wed, 8 Sep 2021 05:04:27 -0700 (PDT) From: Bhaskara Budiredla To: , , , CC: , , , Bhaskara Budiredla Subject: [PATCH v5 0/2] drivers: perf: Add Marvell CN10K LLC-TAD pmu driver Date: Wed, 8 Sep 2021 17:34:23 +0530 Message-ID: <20210908120425.10084-1-bbudiredla@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-GUID: Wxt_lwnp6VLDJCmBOz-qMQz3tG3_X1Xp X-Proofpoint-ORIG-GUID: Wxt_lwnp6VLDJCmBOz-qMQz3tG3_X1Xp X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475 definitions=2021-09-08_05,2021-09-07_02,2020-04-07_01 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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. 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 | 430 ++++++++++++++++++ 4 files changed, 501 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 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 X-Spam-Level: X-Spam-Status: No, score=-12.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 917BDC433EF for ; Wed, 8 Sep 2021 12:06:56 +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 5F9076109F for ; Wed, 8 Sep 2021 12:06:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5F9076109F 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=NUvDSWSmuVtogmhKXA29pF53IF1zG27/J6+c3UvsFwo=; b=v9+/Rfm30qmcL+ fjwgK+idLZzGzVKvZb6aX2R+5sw2HhZnSw/ztlJtW1zksVGwWvpc6sx+2xDQjQNTyUZ8JWDL7nX0x a6AcMApGmDMQmPlbTHwV7N+6iVK+GNC3R2Hx90rTwgdl2/UTmNb0RPVQFTdQklNBEU2ykPxRSSkJX S97g9yrTWCxqzKO4zdTDdCjQcnOFpng/HgDaMAq7dXGozTST9Qpvj3EKzEQ21zpaPDTh5zp58zdeF 2gpYE3fbfhllNOGEd7D/OnDRLc2ijOh42dxCUB7awGKbBn5YH9YCUwAW8/OHB8pYz204OEK1wnGF4 InhbV6uN8PBEaXJsNiLw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mNwJq-006cvc-Ht; Wed, 08 Sep 2021 12:04:46 +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 1mNwJn-006ctt-DB for linux-arm-kernel@lists.infradead.org; Wed, 08 Sep 2021 12:04:44 +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 1889TZZk030893; Wed, 8 Sep 2021 05:04:36 -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=rNwDQ/qSjWPQ+WqtJv2ivYT9fUH60zkO9sLdsZ7fPpM=; b=g2QJU43HYRdClYCD9uvO9NxtAkMpyK2g7aFAjHN1wxKuGEYFia3Hf+eqzYxOgw33xkC7 54ERiAqdG3cF5wbV17e5wETGqfK7wrez74ohIXFeSQQZq4oJprguShlGUHPQ5qS7/d76 OVMDr9YMau75AN9IWNqEvbtug7kVmrQ7lV12ve5iydtFVkel3Hwgo3WW3N+3Qtd1Em78 C3/ps3TB3NaDoAN1rEZBq3Yhw1/RgKrYXKLYsXSUs9LVkUFb3au2SH3Uy46f0em5p2AI DGoUIbZvdKSnrcAP2eOFlqcNAASFkgeGCQVkrt6wqq36+LLSIxiRyWLkN5RcVcKq9ekn YQ== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com with ESMTP id 3axtka8fw9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 08 Sep 2021 05:04:36 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 8 Sep 2021 05:04:30 -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.18 via Frontend Transport; Wed, 8 Sep 2021 05:04:30 -0700 Received: from hyd1soter3.marvell.com (unknown [10.29.37.12]) by maili.marvell.com (Postfix) with ESMTP id 43A233F708C; Wed, 8 Sep 2021 05:04:27 -0700 (PDT) From: Bhaskara Budiredla To: , , , CC: , , , Bhaskara Budiredla Subject: [PATCH v5 0/2] drivers: perf: Add Marvell CN10K LLC-TAD pmu driver Date: Wed, 8 Sep 2021 17:34:23 +0530 Message-ID: <20210908120425.10084-1-bbudiredla@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Proofpoint-GUID: Wxt_lwnp6VLDJCmBOz-qMQz3tG3_X1Xp X-Proofpoint-ORIG-GUID: Wxt_lwnp6VLDJCmBOz-qMQz3tG3_X1Xp X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475 definitions=2021-09-08_05,2021-09-07_02,2020-04-07_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210908_050443_514442_382D2975 X-CRM114-Status: GOOD ( 14.74 ) 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. 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 | 430 ++++++++++++++++++ 4 files changed, 501 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