Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1605459rdg; Sat, 12 Aug 2023 08:09:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH9BTbOZKiQ6MzO19hj0+NGOo84gRe6DoL8BH6A4grNpINTTOrMeOA3bU0UiV9Tk9GWVr9n X-Received: by 2002:a05:6a00:1708:b0:67b:8602:aa1b with SMTP id h8-20020a056a00170800b0067b8602aa1bmr4659621pfc.27.1691852945210; Sat, 12 Aug 2023 08:09:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691852945; cv=none; d=google.com; s=arc-20160816; b=QUUPHpd4Bqvu/mHdwEt+GUNHX59BQBZMumDLpCApP1mvDgsEw8KA7ibrK3+oGEH2pX lDRs8KiS3/gCLfjEirqIwZwcd6Q/VGXwFzKSLQISIKuNZ6iT7Yjt0KWwo2Z8VuFkpvYC IgLDnvBOlibRf54x1UG8BpO5jJn5SCYmb+uWubtGQoN3Or3J/fT31d7tjZrqKQDVClec HYtGVDhKVbx6OND+P4dhsxxFElVzM6INsGx4rivcKHHg+EndYvISZIyP3dJSAHsNtoxG BUSukhCHL6kd1rg95I9fQq+Yjt1g+qZi+jIKURBEcsYCQDiBLHrm9bjSP8yyBb3S1IOo xXfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Cp4w+jIBE4OGfvuXjDQNp9YPcLqLe9JIVtLeGphlHAY=; fh=yUCMGdpYJUDjigCeWHXknWjEZxWta26XinXOCl1AiH0=; b=T/uuJRqiIPBlrK0PNQLkuzJ5YlX03s2P/XiO+nzE/DK65UOjgdojNRZxZW+gpLID/T bljdv3PIRKSKkjbQysICjC8wlzybpe2CRdXqr4Q1QlKk6CDSCbvCpd79hfLnftmUIcPf bmB+In6smIHW+D/faR2tkBLChTMaB3Hiu5bkidsJWdFdK7D8Olc709s4oRaXgw4kg91v QTAgXOVjK7eXbeWQT9IJJAp6MWJubZXJx6dtiU+fE0CEigBm+MtAv2NLM+DH65QuAZU0 QZexZoayFCKGJpb6RfjedcWNKFKYcN5k7K3VTYeAcPbzdRZuWv8P3UJ4zaALQSH/4l8y G/NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=SwVFWg2Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s1-20020a63dc01000000b00553ce421356si5166399pgg.56.2023.08.12.08.08.52; Sat, 12 Aug 2023 08:09:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=SwVFWg2Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237134AbjHLO0O (ORCPT + 99 others); Sat, 12 Aug 2023 10:26:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231552AbjHLO0J (ORCPT ); Sat, 12 Aug 2023 10:26:09 -0400 Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 455ED1FE5; Sat, 12 Aug 2023 07:26:08 -0700 (PDT) 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 37CDuZiN015003; Sat, 12 Aug 2023 07:26:00 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=Cp4w+jIBE4OGfvuXjDQNp9YPcLqLe9JIVtLeGphlHAY=; b=SwVFWg2ZxfdZnVBDsVKmvgxikC36bddO0/U/TQ2J+rwGYUIIiZtrf+MXXZnfsXRazzks DtbMaKQozMMAwQ2dnS60OBSwPagHAUPUbbjRSPPraezdK1hZ0DZOj654NUVNaetf5C7g iubrELJxXFoZjMW2qhO0enpRoTpG7gdS2BJoLgKBF5SZWSvfFmMZCBLQyPlzhW/vtqH5 d7XTCXWu6zWm5rK6Wcl6g/nv5sFVcW3ELytrP3oT95vep7zVaH7alZqvAzFgYFr6Lth0 Pi+nWutlVoBtWnaDI3EuEHca42RqoZhX3/prfNbj+EbbRN40zicbMythgi8vZO3B4JpA fQ== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3se9kj09d4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sat, 12 Aug 2023 07:26:00 -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.48; Sat, 12 Aug 2023 07:25:57 -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.48 via Frontend Transport; Sat, 12 Aug 2023 07:25: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 074A43F7041; Sat, 12 Aug 2023 07:25:53 -0700 (PDT) From: Gowthami Thiagarajan To: , , , , , , , CC: , , , Gowthami Thiagarajan Subject: [PATCH v2 4/6] dt-bindings: perf: Add Marvell Odyssey LLC-TAD pmu Date: Sat, 12 Aug 2023 19:55:16 +0530 Message-ID: <20230812142518.778259-5-gthiagarajan@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230812142518.778259-1-gthiagarajan@marvell.com> References: <20230812142518.778259-1-gthiagarajan@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: xlue4Tfpag-saTc5X1piSGALROoaBXFw X-Proofpoint-ORIG-GUID: xlue4Tfpag-saTc5X1piSGALROoaBXFw X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-12_14,2023-08-10_01,2023-05-22_02 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add binding documentation for Marvell Odyssey LLC-TAD performance monitor unit Signed-off-by: Gowthami Thiagarajan --- v1->v2 - Changed DT binding file name to match with compatible - Added respective document in MAINTAINERS .../perf/marvell,odyssey-tad-pmu.yaml | 63 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 64 insertions(+) create mode 100644 Documentation/devicetree/bindings/perf/marvell,odyssey-tad-pmu.yaml diff --git a/Documentation/devicetree/bindings/perf/marvell,odyssey-tad-pmu.yaml b/Documentation/devicetree/bindings/perf/marvell,odyssey-tad-pmu.yaml new file mode 100644 index 000000000000..a1b9ee71e5f7 --- /dev/null +++ b/Documentation/devicetree/bindings/perf/marvell,odyssey-tad-pmu.yaml @@ -0,0 +1,63 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/perf/marvell,odyssey-tad-pmu.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Marvell Odyssey LLC-TAD performance monitor + +maintainers: + - Gowthami Thiagarajan + +description: | + The Tag-and-Data units (TADs) maintain coherence and contain CN10K + shared on-chip last level cache (LLC). The tad pmu measures the + performance of last-level cache. Each tad pmu supports up to eight + counters. + + The DT setup comprises of number of tad blocks, the sizes of pmu + regions, tad blocks and overall base address of the HW. + +properties: + compatible: + const: marvell,odyssey-tad-pmu + + reg: + maxItems: 1 + + marvell,tad-cnt: + description: specifies the number of tads on the soc + $ref: /schemas/types.yaml#/definitions/uint32 + + marvell,tad-page-size: + description: specifies the size of each tad page + $ref: /schemas/types.yaml#/definitions/uint32 + + marvell,tad-pmu-page-size: + description: specifies the size of page that the pmu uses + $ref: /schemas/types.yaml#/definitions/uint32 + +required: + - compatible + - reg + - marvell,tad-cnt + - marvell,tad-page-size + - marvell,tad-pmu-page-size + +additionalProperties: false + +examples: + - | + + tad { + #address-cells = <2>; + #size-cells = <2>; + + pmu@87e22b030000 { + compatible = "marvell,odyssey-tad-pmu"; + reg = <0x87e2 0x2b030000 0x0 0x1000>; + marvell,tad-cnt = <1>; + marvell,tad-page-size = <0x1000>; + marvell,tad-pmu-page-size = <0x1000>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 70d2971b93d4..b9da1affe8b9 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12591,6 +12591,7 @@ M: Bharat Bhushan M: Linu Cherian M: George Cherian S: Supported +F: Documentation/devicetree/bindings/perf/marvell,odyssey-tad-pmu.yaml F: drivers/perf/marvell_odyssey_tad_pmu.c MARVELL PRESTERA ETHERNET SWITCH DRIVER -- 2.25.1