Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp5331551ybl; Tue, 27 Aug 2019 03:02:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqztrDU5QetD8hbQIhQrOpMYKD9qbhgmT+70YRYVZLvY0EaPIV50mGoMka3MZvvjXxr9i1I7 X-Received: by 2002:a62:1808:: with SMTP id 8mr25342833pfy.177.1566900167372; Tue, 27 Aug 2019 03:02:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1566900167; cv=pass; d=google.com; s=arc-20160816; b=a+kXYiNEVUEJyxEK1M7hG6+SFUQO1nUPUeDBwujj/qlVPufaWffWUbihyiM7FZM0DP MiIGUB73ACgXB3YhJEct08cBNkrMRDX8Glf4F6YDKtUXp+0yXnEm3vfwDTghECeKfi/B 5yJmdIBMKNCoQcYTsN/dl23lEg7LwodLQ0ZoIWUD693FLGfiTCsEwPy3Sk7ORgFjUyZr L+h1ilNlFyoQ0K1PJmBWGCy2y8wT3atTKgBZfmtskNGEpea4/vYYO0nP+XIYuMMslmVu b2kSn2gR5ZE5VPo+tLZavz/F3HMps8PD7kMXMoIrKxiFpKEtkl2OkrjcuIpYSXdSpP33 Th1g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :dkim-signature; bh=ootOdHAvtqQH4GwYY6kk7ctFqiK4JGyKzRkUe0LXTY4=; b=CFm55GYiIm7t6dZG5x5d3TOxBtQxrVLyRqETTnzzxWhQaOQTxBTeoFvhM/QXGnBQJN Ho4Ui1e1bgGU0ft0ur/jZ9AgqiP2uoEddZGw3CGienCR8U0bG4Zj3CEhsuwKOHG1kfbc ttvwX71OoU4jiDcigOr9QlbnwfavFQ1YHJ6p7pvYsWJbOVPrfRqCzSKVZ3QgbGSqvwqj cfYfmT37btR+o9WY+6CslNp1i8gQ5Ig0twyZdc0sk3tj/WXl3aVeBUCrJM8GLKeyT1aH 6h8Tudcugl6ZE61MZFeo0hEDYXcqPB6rwWP1dND1e393JbwODZo0+Z68KUPMkxFTkOJ4 KRWg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0818 header.b=dA4u89+v; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector2-marvell-onmicrosoft-com header.b=c7ktWF73; arc=pass (i=1 spf=pass spfdomain=marvell.com dkim=pass dkdomain=marvell.com dmarc=pass fromdomain=marvell.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=marvell.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e18si11281594pgv.139.2019.08.27.03.02.29; Tue, 27 Aug 2019 03:02:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0818 header.b=dA4u89+v; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector2-marvell-onmicrosoft-com header.b=c7ktWF73; arc=pass (i=1 spf=pass spfdomain=marvell.com dkim=pass dkdomain=marvell.com dmarc=pass fromdomain=marvell.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728772AbfH0KAa (ORCPT + 99 others); Tue, 27 Aug 2019 06:00:30 -0400 Received: from mx0a-0016f401.pphosted.com ([67.231.148.174]:45634 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726435AbfH0KA3 (ORCPT ); Tue, 27 Aug 2019 06:00:29 -0400 Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x7R9oE5L000447; Tue, 27 Aug 2019 03:00:17 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=ootOdHAvtqQH4GwYY6kk7ctFqiK4JGyKzRkUe0LXTY4=; b=dA4u89+vU1OIztLa79p8DF7rnaoo/antx8fRj0bFAsF3bCTMjvp3D85jG4laNtOnfBN6 AEHULvgguIrtxZXpZs2jgJ0czbuzgD0tZ85wjr+ke7AxUzdL/6D58AIsqly2yqnS/PN6 3QYzi1/hwhx/Y5bpK5PtiBqCwvXH71sby9/OXFmNjy7qJ6YaB4OIdUvEleRMUV/im3x/ Mv7kid7jg+tf9yI26hqDLSNeNV8RdAYlhDyrGvOd59NCh2XMDQpg5hdPCNZTkYatSTZE A8zWGpgyznKPfY13FnYxUxUkePjl6u1XhVHAUGHIVxg2jJe9RA6xDqmkdwtutW0k7OuY Mg== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0a-0016f401.pphosted.com with ESMTP id 2uk2kq2xsa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 27 Aug 2019 03:00:17 -0700 Received: from SC-EXCH02.marvell.com (10.93.176.82) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 27 Aug 2019 03:00:16 -0700 Received: from NAM04-SN1-obe.outbound.protection.outlook.com (104.47.44.55) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Tue, 27 Aug 2019 03:00:16 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NK6O4b46POtR4c7kvukrspjmPaDziSY8/Dfpvae/FcUKcxoIp6lmgDWVaAclF6tYU03qNh+WN2b/9N83xuUtHxbmXeyjH7mIUiNEvONFdjFhXpCeLXcSzRSAuYdPR0VhAgkRmaNwxXBwJ5kTSKOgMoWpzOw3GOzLcycQSPoZPwBhCYdvXCa0HwD7Q62jL/10s77iEP2ys0eXuj7YvHviUnQWmtBgqcjbjKLSIxfHcN3EpR7h36yCskLMrh6ayLVUB9L0YWwMNTwLZO9eYvbSQb8eKfEwtR2DX9nnB2eRhsj1VcnBcyoPYKRZmXajpvpFOQCfrSAbInqdLrZWGKUf4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ootOdHAvtqQH4GwYY6kk7ctFqiK4JGyKzRkUe0LXTY4=; b=RVmXzprd8IkDnhjTOY/C9MXjIDpdgO3OKv05ufjEehp+104bfXwFPhYdiXE8kDDSxfNlsKMxKMYsClQBLPV96HRCuDjCEM+4CswXRIRbDeVTstwQQ+Obwa7hmc8hDLLaSlIZbjbzd+Sq/mEMEqcHm85hj9GKu5XgQT7BcUcwKXKOU/ZUkwXyRzjSyZuqyFURAE7i3MglrLA3UiLsRXTWQpzxRwTIVVd5pJenbVdv3Au9lCGCCDXnNcEMt167LepYJ7ARFSwqxme6WuJF55Qbom4B2clwTXpIb9b/HNAwVAqmIKK5bQH2tX9fw1Yvcv3rdcnrVG2b0L0S67xSFj2mYA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector2-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ootOdHAvtqQH4GwYY6kk7ctFqiK4JGyKzRkUe0LXTY4=; b=c7ktWF73BAseUfBBW4dA8Ye2abXA/Sv0O2XGSK8hPwDkngbE2belcItL1Xm6xPg7eAxifqLTFYqW0fwlN5BdJqBOhUnYJd6ILb6aZlZNOQR1MmWPgEpUtbs14LXCsQAUSLfx7lPTDdgwevG/re1YSu4csiK1JXAkYu5SmwPMhYo= Received: from DM5PR18MB1355.namprd18.prod.outlook.com (10.175.223.16) by DM5PR18MB1675.namprd18.prod.outlook.com (10.175.224.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2199.21; Tue, 27 Aug 2019 10:00:14 +0000 Received: from DM5PR18MB1355.namprd18.prod.outlook.com ([fe80::3cbf:34d2:5b36:e127]) by DM5PR18MB1355.namprd18.prod.outlook.com ([fe80::3cbf:34d2:5b36:e127%12]) with mapi id 15.20.2199.021; Tue, 27 Aug 2019 10:00:14 +0000 From: Ganapatrao Kulkarni To: "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" CC: "will@kernel.org" , "mark.rutland@arm.com" , "corbet@lwn.net" , "Jayachandran Chandrasekharan Nair" , Robert Richter , Jan Glauber , "gklkml16@gmail.com" Subject: [PATCH v4 1/2] Documentation: perf: Update documentation for ThunderX2 PMU uncore driver Thread-Topic: [PATCH v4 1/2] Documentation: perf: Update documentation for ThunderX2 PMU uncore driver Thread-Index: AQHVXL44aHI36qxaXUaCNM2ViMjXSQ== Date: Tue, 27 Aug 2019 10:00:14 +0000 Message-ID: <1566899990-18277-2-git-send-email-gkulkarni@marvell.com> References: <1566899990-18277-1-git-send-email-gkulkarni@marvell.com> In-Reply-To: <1566899990-18277-1-git-send-email-gkulkarni@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BYAPR03CA0005.namprd03.prod.outlook.com (2603:10b6:a02:a8::18) To DM5PR18MB1355.namprd18.prod.outlook.com (2603:10b6:3:14a::16) x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 1.8.3.1 x-originating-ip: [199.233.59.128] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: bfbde55b-84dc-4d15-16d6-08d72ad55b18 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:DM5PR18MB1675; x-ms-traffictypediagnostic: DM5PR18MB1675: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-forefront-prvs: 0142F22657 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(376002)(346002)(396003)(136003)(366004)(39860400002)(199004)(189003)(7736002)(8936002)(305945005)(4720700003)(8676002)(50226002)(81166006)(81156014)(66476007)(66446008)(5660300002)(64756008)(66556008)(6486002)(4326008)(2501003)(102836004)(14454004)(386003)(6506007)(26005)(186003)(6436002)(76176011)(99286004)(6512007)(52116002)(86362001)(2201001)(110136005)(53936002)(256004)(486006)(54906003)(316002)(6116002)(3846002)(66946007)(25786009)(476003)(71190400001)(71200400001)(11346002)(446003)(36756003)(66066001)(478600001)(2616005)(2906002);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR18MB1675;H:DM5PR18MB1355.namprd18.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: MsTrubtRLqk/n7RSzSYHbIoD2aISMHIWvzVCFaQJ8/UDQNBdYCbRvczUvWG/gHbrEEpaIAvHQkUtv4It5rV+7RwEPjVMmzt8yE7a8ljBhCpoBxpYMK71pzAPDDYlRMyp5rOSYQaNxPApfZF3dWujKCansipE68lOAT8FlMv7tbEvC8TN24OfMVL29/qGxhk34PQB2VgRLoFJ5xp/yKxJ1CzkZvNknKb6oEhO/RmmUHiB8KPR9xaL2be5wWYeuBKlLgI6ZQTRl35gjhLpuqsQkiuL8DH9cKZZtsKrs/WKlFNpkVErdjTgi+O15xA+LKLVEEWv2evAOc3LXB8wmdIdHzTAOF0d/PQUNKzPxTx+ZdTV+cdGbqaD3Z/A9tyf5xb/9t74O1OL9f2klD5BmVtVTOhj5kFCzF8gPb3r7iD/nRE= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: bfbde55b-84dc-4d15-16d6-08d72ad55b18 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Aug 2019 10:00:14.4988 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: SXtboQ0YaeyC9qqFCib1IDLlrMDiVnHFWaQD7VP2N/E7aOlP4s4P7MO4MvQQjUlWrzLkzWAdHROT2EWGBddHdg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR18MB1675 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:5.22.84,1.0.8 definitions=2019-08-27_01:2019-08-26,2019-08-27 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ganapatrao Kulkarni Add documentation for Cavium Coherent Processor Interconnect (CCPI2) PMU. Signed-off-by: Ganapatrao Kulkarni --- .../admin-guide/perf/thunderx2-pmu.rst | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/Documentation/admin-guide/perf/thunderx2-pmu.rst b/Documentati= on/admin-guide/perf/thunderx2-pmu.rst index 08e33675853a..01f158238ae1 100644 --- a/Documentation/admin-guide/perf/thunderx2-pmu.rst +++ b/Documentation/admin-guide/perf/thunderx2-pmu.rst @@ -3,24 +3,26 @@ Cavium ThunderX2 SoC Performance Monitoring Unit (PMU UNC= ORE) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 The ThunderX2 SoC PMU consists of independent, system-wide, per-socket -PMUs such as the Level 3 Cache (L3C) and DDR4 Memory Controller (DMC). +PMUs such as the Level 3 Cache (L3C), DDR4 Memory Controller (DMC) and +Cavium Coherent Processor Interconnect (CCPI2). =20 The DMC has 8 interleaved channels and the L3C has 16 interleaved tiles. Events are counted for the default channel (i.e. channel 0) and prorated to the total number of channels/tiles. =20 -The DMC and L3C support up to 4 counters. Counters are independently -programmable and can be started and stopped individually. Each counter -can be set to a different event. Counters are 32-bit and do not support -an overflow interrupt; they are read every 2 seconds. +The DMC and L3C support up to 4 counters, while the CCPI2 supports up to 8 +counters. Counters are independently programmable to different events and +can be started and stopped individually. None of the counters support an +overflow interrupt. DMC and L3C counters are 32-bit and read every 2 secon= ds. +The CCPI2 counters are 64-bit and assumed not to overflow in normal operat= ion. =20 PMU UNCORE (perf) driver: =20 The thunderx2_pmu driver registers per-socket perf PMUs for the DMC and -L3C devices. Each PMU can be used to count up to 4 events -simultaneously. The PMUs provide a description of their available events -and configuration options under sysfs, see -/sys/devices/uncore_; S is the socket id. +L3C devices. Each PMU can be used to count up to 4 (DMC/L3C) or up to 8 +(CCPI2) events simultaneously. The PMUs provide a description of their +available events and configuration options under sysfs, see +/sys/devices/uncore_; S is the socket id. =20 The driver does not support sampling, therefore "perf record" will not work. Per-task perf sessions are also not supported. --=20 2.17.1