Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751284AbdHaLSo (ORCPT ); Thu, 31 Aug 2017 07:18:44 -0400 Received: from mail-sn1nam02on0058.outbound.protection.outlook.com ([104.47.36.58]:13136 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750863AbdHaLSm (ORCPT ); Thu, 31 Aug 2017 07:18:42 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jan.Glauber@cavium.com; Date: Thu, 31 Aug 2017 13:18:27 +0200 From: Jan Glauber To: Mark Rutland Cc: Zhangshaokun , Will Deacon , David Daney , Suzuki K Poulose , linux-kernel@vger.kernel.org, Borislav Petkov , linux-arm-kernel@lists.infradead.org Subject: Re: [RFC PATCH v9 5/7] perf: cavium: Support memory controller PMU counters Message-ID: <20170831111827.GD15906@hc> References: <20170829131238.4988-1-jglauber@cavium.com> <20170829131238.4988-6-jglauber@cavium.com> <20170831095746.GB15906@hc> <20170831103119.GC15031@leverpostej> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170831103119.GC15031@leverpostej> User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: [88.67.130.225] X-ClientProxiedBy: VI1P18901CA0013.EURP189.PROD.OUTLOOK.COM (10.173.66.151) To BN3PR07MB2578.namprd07.prod.outlook.com (10.167.5.6) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a57dfc10-c67d-41e9-3153-08d4f062080c X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:BN3PR07MB2578; X-Microsoft-Exchange-Diagnostics: 1;BN3PR07MB2578;3:M1UiH3e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rFsnhvg3qIxkJje2327EQ2MV1lPRwrPjXGD2j1yrnDe0bIRgBWY2o4Rd6zUZ1piQws0l7FQ8Yvi77VuLmnpCixJvYW3tyPPYg/IwGZvFhB10PykF1IGCM0sc4dqqgF9rseRzZgpJuMtogLz5Vrv8kLlkA79GYLbVmx/FDi9ORriwjRj7OJGLwDEVP5cPAKIAOUZqDehcgFMea1pyt/LotLBJSX+cf8rEqSxWzoV215tU8oBhtUxo1XnCc9GrlYk63V4CDU58v7XrirX/HPL4qxhB8DorFBzVIXGUoNO/Umrwy8g12rFzonZW5ZO/xT7iugcN1XFJBEPePa39+ROIfrulTMWRbtFmUda5W0VkdYbKS/CnCLIiNBGvdHkKCFU6g5NU4Dy/ozWMdP+ng2+htMAhl5jFyfNykCSnm4OVqJH6rK3nAVLPLl7WRj1eLbQAkdc=;4:LqrnQchTkHZL5CkcJVCqBkVf6Sib6Fce5DhEOO8JXxlZqH2zGJJYKXFvkMfwBGwLZmFPJeqSI0Uh9DfncSbHcWyjT/hPqSUxgRDDFhAaS3AIlTYJsbgqoO98YnGc5O4U6GQB1nfmA3S8gy0PD4YD9okd6OlW5Kyt3aU8zQFVRsSfWIO/Fc8etVDfXIwJ7vy2Tmsu0GNvS8PevsaZlYxJ4EoZlc6HGu+oKwiTZge7LJk84jtoJPyTpPo6V4RARNlCHS+kwuh41XbyfcgVslupWul0mLQkINaK9cIexy8NX5E= X-Exchange-Antispam-Report-Test: UriScan:(17755550239193); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(6041248)(20161123558100)(20161123560025)(20161123555025)(20161123562025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BN3PR07MB2578;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BN3PR07MB2578; X-Forefront-PRVS: 04163EF38A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6009001)(24454002)(189002)(199003)(42186005)(50466002)(4326008)(3846002)(6116002)(5660300001)(189998001)(23726003)(33716001)(54906002)(53936002)(55016002)(1076002)(53546010)(47776003)(9686003)(106356001)(25786009)(6246003)(6496005)(478600001)(105586002)(110136004)(66066001)(8676002)(4001350100001)(68736007)(93886005)(83506001)(81166006)(81156014)(229853002)(305945005)(8936002)(97736004)(33656002)(72206003)(6666003)(101416001)(2950100002)(42882006)(7736002)(50986999)(76176999)(6916009)(54356999)(2906002)(18370500001)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:BN3PR07MB2578;H:hc;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN3PR07MB2578;23:bHkhmIrAnItUw/B5VVxO1KSxCgDWLv8vaYwgyhA3g?= =?us-ascii?Q?qxpnV+rh7CXL26y42bV8ac7nioVZyezonLVyPaTsectULTqiSEEx/An5xx+d?= =?us-ascii?Q?q25azDmz/Bs/SovtOsfTNPwJwr8YfZS14ZiE+6/bitTff8SWFyE+uh5HYT/E?= =?us-ascii?Q?nieeAcynedAZ53vazY8ifgQ4OCHefQdgGGD0pN6Ou6gc7U4L0w1RSjTvL14E?= =?us-ascii?Q?S0HJRzMUh3Jwn80yTw59W77nVo51wc7P3toj1a1b6lDPjZFYdI0jwljRqoYw?= =?us-ascii?Q?jDIfoBssO9GZMOrO8o3V81mZgNZqulII6SO9UA6dbVLOmGV/xyd3H189ktSC?= =?us-ascii?Q?PlVx37A0WMuu0BvdfqUAV+nGOTVHLwWDG+aEhu0QP5d1++MgTwoSYZBLXps0?= =?us-ascii?Q?PTDoXmf6GtjQuwJsA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6:t/llJAUwElxds7g/EFQUyaRMPAEP3alhQE0yDPCYkiLFr1NmgNNj1g97roski7/eqcO3Ue9FRb3rqP57Am96ex478CMOcZo7oSA0WZxyq5xFmVcn6fVfCvDQOYzZJ1Nk9F1yown0oghA6utk5gOey9X9Pq9teOZFX2M2Bczt7i5MoIIEjIVpC7+w/rcXYEcwcaiyrMAIHlC9gpjYZbSMRd5/UBEa6J1Lk/ErfhGqOJc/eMUSZwoJV4Ellwb8d7jEKCJ3oyhV2j2lUhTrSJYzVIPk91NTPN3kfhGgCLpxSWuPQBLboqizJPJ6EfbyJBltpjSjavObVsIYgRjhvcWxNw==;5:eDTB6hn2FH7SEQ+OYNcYJ93DYrAjp0bqi41bk1MJC3f2Y8Dhn5OUCSDs6b7ldCMXfwbaF0u6vrV/V9vf/JAHHOAkBBf9dwVn4+dVt/yZWrSQ2KSbaj/lzFd6zn9rz9AM6LRCE8/Ybk2GnDAW6vxneA==;24:eaxhsUwkh873yq5BYSdZ/4aBegsopUflMNlLlG8H0ag2TR5hjSxQ3Aanl6s+7yBDUwW/5wmL72+JFm/Ev7NQ+k1ZowHSkLUSCE4ujDUA4VA=;7:FxmAwqFonwPBmSmNWFES1y3/wl/QCVrrSSwyhHgQ/srejtyCW9Somt4LPJOEMQ7e8E0PhpNsuXx+25E6JoPAszLhFBT+VKxf0nmlQHkgj7EndrJk5TA/WwJQ0Kc2TniXifti8/NFMNXvOKgGElmmv3PILw7desIuAbUFvLbCW7QFuUl0JesJLhDcDmgVn9VBB8wvwepTtC+jTvUIkgNiAFcKq1dEYjxPVHoALRB/TTA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Aug 2017 11:18:38.4185 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR07MB2578 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1319 Lines: 38 On Thu, Aug 31, 2017 at 11:31:20AM +0100, Mark Rutland wrote: > On Thu, Aug 31, 2017 at 11:57:46AM +0200, Jan Glauber wrote: > > On Wed, Aug 30, 2017 at 10:54:03AM +0800, Zhangshaokun wrote: > > > On 2017/8/29 21:12, Jan Glauber wrote: [...] > > > > diff --git a/include/linux/cpuhotplug.h b/include/linux/cpuhotplug.h > > > > index 82b30e6..ca84ac8 100644 > > > > --- a/include/linux/cpuhotplug.h > > > > +++ b/include/linux/cpuhotplug.h > > > > @@ -139,6 +139,7 @@ enum cpuhp_state { > > > > CPUHP_AP_PERF_ARM_QCOM_L3_ONLINE, > > > > CPUHP_AP_WORKQUEUE_ONLINE, > > > > CPUHP_AP_RCUTREE_ONLINE, > > > > + CPUHP_AP_PERF_ARM_CVM_ONLINE, > > > > > > Alphabetic order? > > > > These don't look alphabetically ordered to me. > > Sure, the full list is ordered by dependency. > > However, we've generally kept the uncore PMUs together, and within the > group of system PMU CPUHP_AP_PERF_ARM_* callbacks, we've retained > alphabetical order. > > Does this PMU need workqueues and RCU up before its HP callback is > invoked? Or can this be moved into the group of CPUHP_AP_PERF_ARM_* > above CPUHP_AP_WORKQUEUE_ONLINE and CPUHP_AP_RCUTREE_ONLINE? i.e. > between CPUHP_AP_PERF_ARM_CCN_ONLINE and CPUHP_AP_PERF_ARM_L2X0_ONLINE. I think I can move it inside the CPUHP_AP_PERF_ARM_* group. --Jan > THanks, > Mark.