Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751372AbdFEGvr (ORCPT ); Mon, 5 Jun 2017 02:51:47 -0400 Received: from mail-bn3nam01on0050.outbound.protection.outlook.com ([104.47.33.50]:24128 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751267AbdFEGvp (ORCPT ); Mon, 5 Jun 2017 02:51:45 -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 v3 0/2] Add ThunderX2 SoC Performance Monitoring Unit driver Date: Mon, 5 Jun 2017 12:21:02 +0530 Message-Id: <1496645464-26062-1-git-send-email-ganapatrao.kulkarni@cavium.com> X-Mailer: git-send-email 1.8.1.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: PN1PR01CA0099.INDPRD01.PROD.OUTLOOK.COM (10.174.144.15) To CY1PR07MB2569.namprd07.prod.outlook.com (10.167.16.24) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY1PR07MB2569: X-MS-Office365-Filtering-Correlation-Id: c10b292c-a909-4f24-f64c-08d4abdf52cd X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:CY1PR07MB2569; X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB2569;3:WrVSpHbP8ozdh6GMGq2Qmb6rN82zL7abVnyoMjA7aTTpnvHytIyv49q54mCOBaXiAJox+ggwmKxDEtzu6OXeVtmPyoBMlTrSTNXKyO4R1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t8qHRx6NTVrS+lyn92MOYGUnnncxiOvhR47GGhugrcNHWLetl9J0uWZECLCQT2QFYwk4WGM7xErvCdJbeM0Y99SSFM6JX57OjDJRL9cINtzyHwQ7zLDT+1S0tQQ312UKtGpIcJph3+2gHouvN9dhm8r7knLZatN03um96hez5JswYefXiIwiP5MURA7BBvEnYfYV90rSigIZZ7+6w3ilSqFcq3zArNkaAeo0g7AZIQhB4ArxCGqt15Xtmk6PTIoY5JP+ONwgCcEgcjY2TaA+wfj84Y2Npx26xt8+qgJrdnV6ym6igwldt21sA+KsATuwgY0veVdAJOTajteRYU7Gfhl4wzYn7bfedQ02iImU8pw9KdlcfNnAFeiKy24VxURylwJNeK4qEj0ZxRzDpXYsDObnexnaDUPZESLyPO0E6jgRKxbYb X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(72170088055959); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(10201501046)(3002001)(93006095)(93001095)(6041248)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123564025)(20161123555025)(20161123562025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CY1PR07MB2569;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CY1PR07MB2569; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY1PR07MB2569;4:KRLQFpZEQoeudYO0Ip4q/ClZhg+JGJDRaAlWVsfW67?= =?us-ascii?Q?LDZjrwGKv60QoAXRHf01q9zzNC8hG9Eib848c5Fk4Z0Z0NXul34cSp/yC2nD?= =?us-ascii?Q?sN8Mh+7APEaCj/ZzG0cSuUe4WGYO1kgIEABZbsBxxKTTDNKZ7blL2XGInka+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fZcS3fblHoYP3c82670c?= =?us-ascii?Q?Y9wWf1h852IDELxgDdqc++E6mDKq4Ziq7IJW5hso3SU5VQ4NwcnD4oV49vEP?= =?us-ascii?Q?ZZ7oKN/LFeL34B54mGGGgrk/927AEBWFkOinPF5wWNwTNun5oHgLsRqGxZvQ?= =?us-ascii?Q?0T1Jk/24WujCg=3D?= X-Forefront-PRVS: 0329B15C8A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(39840400002)(39410400002)(39400400002)(39450400003)(48376002)(305945005)(7416002)(86362001)(6506006)(4720700003)(47776003)(6666003)(66066001)(5003940100001)(8676002)(81166006)(6512007)(50226002)(5660300001)(25786009)(53936002)(478600001)(50986999)(6486002)(33646002)(50466002)(2906002)(7736002)(42186005)(3846002)(36756003)(6116002)(38730400002)(110136004)(189998001)(4326008)(72206003);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR07MB2569;H:mypc.cavium.com.com;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY1PR07MB2569;23:bDECIishW/fE6fMsaSq3hlKqGqjjgIpc8cxRUVTFm?= =?us-ascii?Q?oWN8wf2K8NwWjLWHhnO8lMA08fmZYVKElc8p+KK0oDw9uoxEI3Tos26pr1+P?= =?us-ascii?Q?QQTF3Kl+tC/8maoxoThBE/dMwm9kEYQwL1TD4TUEZb7NwbxqbXjowkIhICUe?= =?us-ascii?Q?xqhwkMEMMvyy5WGdzAEM4Hktb5QVKTMigjsKL1tpVvCSU5HlQZ5Z2hYfNHOm?= =?us-ascii?Q?W2nGpuvllovFEIcGZh6haGLuRm2bCg1/D3RA+jkXaMkBhM0VUSdQWgBpPtmq?= =?us-ascii?Q?kBch/weB7Wt05yT1UrT7s4mqpYHMXwNq8Bb6GzizyUroV0WocQVPtAj/3fGo?= =?us-ascii?Q?2Bb/8OkQehdUP7qub4BumULxIxdA4/gE/VrR1ffPLq7Efi3dhkvjbjXvM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ibi7qFRC/dip6/DVYYD8l6UYX+R3KgGjmNVnYZSJLYwZXntja9ArpYR9bIsJxIjcui/2xeKM+/eBc9Bfp/i5ktqaiXBImGozjme+c08L0HnkHe+rL/wMXyIj2aqfudOaAO0c5BcwjVKSxJBKwscFY8Thj2KNdXOGt9iiemUCkTPLXw8L0Pqva+bWHZVwUlLU1jjH5Lem4uVxwsErm0u+SKaBTVKSFuVctMc3Z4wDAVVcq7KNGcEywu2Aved0Bld//cXdq4fae2yY0fOqA== X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB2569;5:Iqekrz+uyV4SwjSUM992QFj2UJi5vxKhwN3U1+trlh8mVWh62WZsuEF1RR4Fb0wD7hStlJMG7l5BJfB6ddtiRuYz7TWA0f/FDZGinO0fzTBMT4hp4n4UfQLJ8z4nltCX+8FbIpMdrqYIeAsujtCnjyUPsXAg8sDxg9qStVzhc0q1/d+gsoInwk/+m1k5Z5VEYrd56wm0HyYAFHhiurPxJYKguPK1WXVlX1el2/7EuVCTfd6w1ICThwGdCrwgI5heosTzWjvGCoWoUgn/RzMDwYYOgoCKMyTjKGDiu+KAFljBpkDRXUahPLUKZ2vmNuOepx4780ZNeHhCNN9zKbbgeGmJfJuFilYGkHKPZdibpjFJ4sEe2T4IHxRDxiV5Zi+X+KVzypp8qTYqoZF3VqtUZfVeYqK7lF8BZ8jk2rFdzmJAzp4pfyQGpx5LDQq8UhQDcfA75JpkxANFbF0LP/Jdp65fE86IKFrYxJ9nY5xCMybQkHgyrFt8WZYF+zJt/3v0;24:evkBH9Iwuv0JfF823FxM8NdYSEigZYr3PrnotpNTDiPjkHenFFQqqc2fH4muHUy0Z1hzOW00H0mBHgwatpTZhto/R1zPmuhkFgflXVKKHWM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB2569;7:nuMvOdWC8OcGUmX13prTSPLWgJ4lvIdQBXYIfT/zxOV8NdXar5UlNrMwLEG7jID6251F/5I7sOaMJIVWFhuyOwsX2EbzWS28U5SERQYvn79wDEBqNOfOTSpE2ek81gQOQV6YW6RYCso15xhPUiXYnjc69BTV1c2j7o9243hhfai4+y/719vlaEzkiHOMlD+FNk5SouAe/VKfCNG2zyw4Hsn9SOBE4t6wzpVpFkBFHp2l6TUTta2KR4LxqL0muPpPwrl6jNg2c1krvRWg/WLA33S0+HlfNUL0w5zy3CMdeCIqNQlLrNgrZwAn/ShKsF4mMAIfSRBTPMIwAImh8cSQ2Q== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2017 06:51:38.5288 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR07MB2569 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 908 Lines: 29 This patchset adds PMU driver for Cavium's ThunderX2 SoC UNCORE devices. The SoC has PMU support in its L3 cache controller (L3C) and in the DDR4 Memory Controller (DMC). v3: - fixed warning reported by kbuild robot v2: - rebased to 4.12-rc1 - Removed Arch VULCAN dependency - update SMC call parameters as per latest firmware v1: -Initial patch Ganapatrao Kulkarni (2): perf: uncore: Adding documentation for ThunderX2 pmu uncore driver perf: ThunderX2: Add Cavium Thunderx2 SoC UNCORE PMU driver Documentation/perf/thunderx2-pmu.txt | 60 +++ drivers/perf/Kconfig | 8 + drivers/perf/Makefile | 1 + drivers/perf/thunderx2_pmu.c | 968 +++++++++++++++++++++++++++++++++++ 4 files changed, 1037 insertions(+) create mode 100644 Documentation/perf/thunderx2-pmu.txt create mode 100644 drivers/perf/thunderx2_pmu.c -- 1.8.1.4