Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp451476pxb; Wed, 8 Sep 2021 05:08:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYIO+8rzqr5/Jok88MeE6KDzoUOtWSz53XvwroiQjGsNuXMOPk1GFQH9I6d1QABRe9+cE3 X-Received: by 2002:adf:e887:: with SMTP id d7mr3680390wrm.79.1631102904199; Wed, 08 Sep 2021 05:08:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631102904; cv=none; d=google.com; s=arc-20160816; b=SST/eXjjY8Yyg0gmmEsipRvifgy/uS+CvXurtTj3yPnCH87oreF9YMjWjSyary9YcV atFg3SWDCkZx/Lb7ETkYDl2k+nQfdQY92PhHtVJSo6+UmFDA9qxowEpBGkEN4/nSvO6U pcZGEqTCTF6tW8xZ1RzD2PWmBU8UyGxgDOpIx4Txn1ouJwBTGROIgQmtSGb/sCKBbtFg sNEqVnALkCMr62BCAK3UNs+DjEItxGy5sddSriaz8E0qj563sZN8ucK5VuqBuGQKiN8G jBqiJ3/9w9D8yEVGTrtKpyj/piJMItzDbEX4WRoQWbLvn0AOlp5sOTC2++sey6SusM59 4hlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=0GDP81HOhy8NDh4nKMkex8xLDckIM1Ua14J13VJZ7mk=; b=FnPnT6KjYlOuu5fl6nQfS7+DIgMXFQhjH+Tq/C4w9t7GeNSJCf295BFOnRfqSHhC+a 30FecoZ+WiNIbKZ5q74yXQEvk1OVKfbwiCb750c6Tu8o2P1WZkYS30x+se4y3xH/wgZC SXmt78b5f+3K6+9FhEU1vhZTICXGvNI1PE84ejLeLQgsvEZvq8HGSENmM5ESmjRIUY3e z/6YmBAX6+25ajTHYv3WktJAX60Qf1q3WfQb6uGT6tyUf/SN7k0uc5U5OmoMoYmxa/eE oyMUxU2SmqIkDnhvR1i116tPGNXuWQKgpYHiLeTxYoU2snQsO7V70BOkDyCunDQbXq2O wIcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b="KW/8hnNN"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n4si1936174edt.302.2021.09.08.05.07.45; Wed, 08 Sep 2021 05:08:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b="KW/8hnNN"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1351655AbhIHMF6 (ORCPT + 99 others); Wed, 8 Sep 2021 08:05:58 -0400 Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]:61800 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351616AbhIHMFy (ORCPT ); Wed, 8 Sep 2021 08:05:54 -0400 Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 1889r4fM000992; Wed, 8 Sep 2021 05:04:39 -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-type; s=pfpt0220; bh=0GDP81HOhy8NDh4nKMkex8xLDckIM1Ua14J13VJZ7mk=; b=KW/8hnNN78LNAk2qI50noempgcKzZRgkZlDo2jj1CaLYFkcyVUykw0FcFDpeNcTyrL7I gKWsO3Xt8YDXRqzmkjF6Yyjjy6b1Pkh9yZK3KD2hlfk9L0wnKDAc9mZfSLft1W3Ae9BX lUxKJ/r7xDiSL/YE068sx1hytjCCvhMSiHHSyS2S3PVRjzWb8gEk3tFJwUILIsYV8xfq 6reMG/3H7A/F/eoaQPuEl2JmfLtpYn/Wsli+DiYDmw2ceDgfy4vu8Y4bR6EMzaSP82Bl mOlz8PvmcQ+LlUtqMov9fmDndujVJhpUR1zUENCM+8b1IhCZxlw47vgLUR9xP6V9jIdh PA== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com with ESMTP id 3axtxc0d1x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 08 Sep 2021 05:04:39 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 8 Sep 2021 05:04:37 -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:37 -0700 Received: from hyd1soter3.marvell.com (unknown [10.29.37.12]) by maili.marvell.com (Postfix) with ESMTP id 9E13F3F7095; Wed, 8 Sep 2021 05:04:34 -0700 (PDT) From: Bhaskara Budiredla To: , , , CC: , , , Bhaskara Budiredla Subject: [PATCH v5 2/2] dt-bindings: perf: Add YAML schemas for Marvell CN10K LLC-TAD pmu bindings Date: Wed, 8 Sep 2021 17:34:25 +0530 Message-ID: <20210908120425.10084-3-bbudiredla@marvell.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210908120425.10084-1-bbudiredla@marvell.com> References: <20210908120425.10084-1-bbudiredla@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-ORIG-GUID: 81MJZkQbH2mQjy9baK98PMyHk-NR8_Ro X-Proofpoint-GUID: 81MJZkQbH2mQjy9baK98PMyHk-NR8_Ro 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 Add device tree bindings for Last-level-cache Tag-and-data (LLC-TAD) unit PMU for Marvell CN10K SoCs. Signed-off-by: Bhaskara Budiredla --- .../bindings/perf/marvell-cn10k-tad.yaml | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Documentation/devicetree/bindings/perf/marvell-cn10k-tad.yaml diff --git a/Documentation/devicetree/bindings/perf/marvell-cn10k-tad.yaml b/Documentation/devicetree/bindings/perf/marvell-cn10k-tad.yaml new file mode 100644 index 000000000000..362142252667 --- /dev/null +++ b/Documentation/devicetree/bindings/perf/marvell-cn10k-tad.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-cn10k-tad.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Marvell CN10K LLC-TAD performance monitor + +maintainers: + - Bhaskara Budiredla + +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,cn10k-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>; + + tad_pmu@80000000 { + compatible = "marvell,cn10k-tad-pmu"; + reg = <0x87e2 0x80000000 0x0 0x1000>; + marvell,tad-cnt = <1>; + marvell,tad-page-size = <0x1000>; + marvell,tad-pmu-page-size = <0x1000>; + }; + }; -- 2.17.1