Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753217AbdDJJ0X (ORCPT ); Mon, 10 Apr 2017 05:26:23 -0400 Received: from mail-bl2nam02on0067.outbound.protection.outlook.com ([104.47.38.67]:51376 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753077AbdDJJZG (ORCPT ); Mon, 10 Apr 2017 05:25:06 -0400 Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=cavium.com; From: Ganapatrao Kulkarni To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Will.Deacon@arm.com, catalin.marinas@arm.com, mark.rutland@arm.com, acme@kernel.org, alexander.shishkin@linux.intel.com, peterz@infradead.org, mingo@redhat.com, jnair@caviumnetworks.com, gpkulkarni@gmail.com Subject: [PATCH 1/2] perf: uncore: Adding documentation for ThunderX2 pmu uncore driver Date: Mon, 10 Apr 2017 14:54:17 +0530 Message-Id: <1491816258-31794-2-git-send-email-ganapatrao.kulkarni@cavium.com> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1491816258-31794-1-git-send-email-ganapatrao.kulkarni@cavium.com> References: <1491816258-31794-1-git-send-email-ganapatrao.kulkarni@cavium.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: MA1PR01CA0101.INDPRD01.PROD.OUTLOOK.COM (10.174.56.145) To CY1PR0701MB1696.namprd07.prod.outlook.com (10.163.20.30) X-MS-Office365-Filtering-Correlation-Id: f5854133-dc3c-4ef6-0793-08d47ff37778 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:CY1PR0701MB1696; X-Microsoft-Exchange-Diagnostics: 1;CY1PR0701MB1696;3:RwC7kQSpqSOT7+WLwy553BPw6MfkIpwWZLaIwaWitcq8FJ1z/8HaMmTwp4POL7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zkcmsI6WpDNxogtfOYqxblMHJsHNSkNjqeMqGpARbqQh96fewSuduD5oIn73uH+JG1WcFrna6okyRyRkqEciYHQXrBflroJnfrzll1grWjpgHEtPLvvmN/v8RaenzSxivsyQNnWgCYHH4wMWUmMkb7UTps1VWmM4EtbOE2bznatdjReEkgZ+jdQqIvgRwXH/sPhcu4eXHHjtnI401grxRAIy9uXhH+mcSrU0OFlG884AbONdDCJ20CHN20v6NNE/IHJC3bLIGz+S6m4SZIAW0jNGm2zi2TO3wSWgaD/tD3Oo0D8LvFYwbnyMqx7YHGaN2YVAdak0CfhLr8HdxzfiP/Kh76AZ9Y9+eGq+MUhc+9mP+h2nhMoX9VQLAMivSNbDyIv7mub52cJw1ru5Pfiro28xSeew2+ypn1OydehMu0cNc4tMo+b3gYf2DmoOTVwVizx2Tu3aHW6OQiu9xA+KvISqnI323SxyKb X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(72170088055959)(209352067349851); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(6072148);SRVR:CY1PR0701MB1696;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0701MB1696; X-Microsoft-Exchange-Diagnostics: 1;CY1PR0701MB1696;4:8sQSIQqb3HW+EKOpfgASSkJTsCra0mbAu3B15ZzmKy26b7R7HaR4j3rlfIpC4ucTSqIiX5CKIRQIFpoRh+lmDiugsXcreETpMOOVaYuWShCg3YfInVrC+0WqTTax4//MMGvN8gsIUlG2PTTNdPAAKHF/lqONiRpyCaRMxlX9ztiwNDIWlHG8/ImPS3bInF5/nVPUgNl1wb5pYS0w80n9DeeigO/1dh5mPRqMAjlAjSf8E2GCc0LCKKjc73fKE8JJLoxnTsjukl4/EBFJNXi/ChAZWLPgO6U4pqxXkkycncyxQQ1xgC7Pa4dGN5dwCmecASl/sZ4Xg6Zk3Tftlc1JFf5bpSrutmznWVc1xleQiIBOmaheG4nqXQ1rpHUF6qQhYPmBGwRw+aAWDwcWpaLRQzZUjTNEhN2j1aEzRR/5T2NgmaY+ABsk8Lkmt5VXyh455K0kdXsOB1muA3Bh8lRQUe3jm4MtZIJNiux9BhLcsmfH5chXDqmOVFkDqYFGglMD3e+KHIy3A1AwMqvBdIyutF8QAWDujBv0W+K+1kHutjmJ4Mwb8GeVfQ/PVS0D+IPyxqYQYrOvv/SJij+zgGmvJBwTIVIW1Gl7VyTQBB1e70vdYyYjtNYgo8b0Qpyyc3xPQxkeUJA167BFtY26ZEe2+Mtu2av9x1izHugaYiyBm94NsOywhYWV/njhS/wBlupUimzPwxBWPpgLlXNgD2fJYAvtHWsNaE+OIP7dcZuOiJFvvWHJVd+Nw+QDdl3kpG3Lyw2lyq99BlPzxiUqbUPU5b4vX5julG5Gyclef/dn8Lk= X-Forefront-PRVS: 027367F73D X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(39400400002)(39850400002)(39410400002)(39450400003)(39840400002)(2950100002)(50226002)(53936002)(5009440100003)(33646002)(305945005)(7736002)(86362001)(5660300001)(6512007)(48376002)(50466002)(76176999)(36756003)(189998001)(7416002)(50986999)(6116002)(38730400002)(3846002)(110136004)(53416004)(81166006)(42186005)(8676002)(5003940100001)(4720700003)(47776003)(66066001)(2906002)(6486002)(6666003)(25786009)(6506006)(4326008);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR0701MB1696;H:mypc.caveonetworks.com;FPR:;SPF:None;MLV:nov;PTR:InfoNoRecords;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY1PR0701MB1696;23:AZzo0m/yZvasOtb9FGPPfXjrukAV6vFIds2kmLt?= =?us-ascii?Q?wzFSYVjsEi4B8yKDFqQXEnmldXoLmlGQcQKCYmS7AqftaFIHOlwZeTgzIZZ/?= =?us-ascii?Q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AipH3fxG/S5Uu5B?= =?us-ascii?Q?yFp6xAKAvRwUSFcofLob4Abi7vBiJU4zrzokOWJ1UEDYuI308CybGX8C5BQw?= =?us-ascii?Q?iOAinpIzjFw86TgSjiPxTha9yl1mX?= X-Microsoft-Exchange-Diagnostics: 1;CY1PR0701MB1696;6:I1XVDynGGa3MeCkygY+KcN/RozuSqLJHfiz8xVxjB825ww2M+zSOvb2SDGeZDMzwf8fvTKydnATQRvSp9kt8D4wgvsAqAOnYvNJ1PlRJE33+lkaw2foJVE3O3fr7cG9zTqWb6y1CXCpgFp551U/JdDfZ6KhBdLKkxqIl2hZ6zDvOgwAI4YbcJjbI42TTBKxP0PIaC0ogFkEyWwS49teDo8ra76XY48GQ04i69bWTJj7Jq/NB5sQwo84Kh9QEmgEdtJHJRXIPA5vdbgCnn2mL0A7+fzmSzWF3FPigpkrVlJLfywic4WkMpxbw4OM/82TciUcmSUDggbtRAlex2NjRTnwvGLHSfZHLzqTkf1VjIb1Kbd7jS/lR/xZ3/2kjYtoTbDkgnJCxSoX5jab0Obnx7K17vrB2N+84a2sE7pG9547j0LddzZM8QUw5km2AU5FvtbB1wonx1i3eUO0vAQNPDQ==;5:eYhG53Z7DmXIpMrz+WQe5PRGZs/CDt/LwvQe5zqY+6+pjxYKPPumW3C9CaMWeryFLXegZsyjya5Wp0I0lIYfuWYUTy3C2u5V+cvu5fuIUExX3nn/+nBnYkJhJ0yDSYMQFx2IeVZNeOx9NyPsELCtKA==;24:5BveaT4mHCvwGHQmSkHteW0OodpKj9Zb0qoGmbixPzE5Tj+kSGnUlbWJU3zDt7lT3wRNB+FX5gvD2Rw3Ncg98bftfCVD2Pd+5rvO3lJ89C8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY1PR0701MB1696;7:WEET6gSBTLzZgSKagYxLwnMOxSSO8WOA4syZMkEQtC03X97P0o5s5vTyoJsBfVTNqL/l4dyPjmsC+Alu6z0TetY/EQf7ARi5ucOSWykwv5xKENDukw32gBw4DlyW5o+3S0fFIyRe0ILYDqzKjnGlpmkyDBaXf3S7JrvazjP+GZXJUiMZA8kNp0djojRMeotKrfG2tudi+eoUyHhdmSXxTND8YxLydTYOBdEACwKsVYCFGbQEihVpvCwuSpp6JVCbC1KyJqaabfrHpGV9sP7uWgfG/qU50dh0Xxbpzt9zzp/VsK24+KNdTKK8ETUIvVmiTz1IyEodf2KMgQLdRvpRlg== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Apr 2017 09:24:59.1872 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0701MB1696 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2786 Lines: 78 Documentation for the UNCORE PMUs on Cavium's ThunderX2 SoC. The SoC has PMU support in its L3 cache controller (L3C) and in the DDR4 Memory Controller (DMC). Signed-off-by: Ganapatrao Kulkarni --- Documentation/perf/thunderx2-pmu.txt | 60 ++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Documentation/perf/thunderx2-pmu.txt diff --git a/Documentation/perf/thunderx2-pmu.txt b/Documentation/perf/thunderx2-pmu.txt new file mode 100644 index 0000000..eb8df9a --- /dev/null +++ b/Documentation/perf/thunderx2-pmu.txt @@ -0,0 +1,60 @@ + +Cavium ThunderX2 SoC Performance Monitoring Unit (PMU UNCORE) +============================================================= + +ThunderX2 SoC PMU consists of independent system wide PMUs such as +Level 3 Cache(L3C) and DDR4 Memory Controller(DMC). + +DMC: There are 8 independent PMUs to capture performance events corresponding +to 8 channels of DDR4 Memory Controller. Each PMU supports upto 4 counters. + +L3C: There are 16 independent PMUs to capture events corresponding to 16 tiles +of L3 cache. Each PMU supports up to 4 counters. + +PMU UNCORE (perf) driver +----------------------- + +The thunderx2-pmu driver registers several perf PMUs for DMC and L3C devices. +Each of the PMU provides description of its available events +and configuration options in sysfs. + see /sys/devices/uncore_