Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp108382imm; Sun, 8 Jul 2018 20:54:33 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdixbbxz3sAHNopSXhuDakEfTZh5gcvQWMUAExlVzZ2ydmA3RJpJO2DOM2qYTTq3qWA1xnD X-Received: by 2002:a63:3348:: with SMTP id z69-v6mr17051333pgz.171.1531108473833; Sun, 08 Jul 2018 20:54:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531108473; cv=none; d=google.com; s=arc-20160816; b=ZmxRuVz9HZF160nuH08mdLppRktyyUe+zjCejNXlvGZZCDIcLGdryyk83uLdha9WbG YoQLh533ueYlwhJOsHbNI/P9mEj12dOjpnDSb4h5OzjqFOEUeGT6YB9CLqtIC2p1r5Oc w23xVR4pF+84IcQDWWMIl9BubAe+5Gay8JxhMyHSQ5iPrdx/AAskrS0zUSRj7YoLHA7m u5LKP7OFqJaTUl4dA+exin30bDw4st8UuLd2lDxDgV/wpvG1MWPneUXvOsxK01gzdITc Gif/E0pT1pQ/pzjr6obQj2mymvBX8PfQxfcZ+VfHHr+NjFyw3JZ/ULsY+w6kb0yKeMnN wfiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=dnGWYIp2k2DdloTSzCib0/jwXURYd3yjpLPFEnNoGuI=; b=jFGw6b3QDrpLVRKd4wI1/e1irDG3iEiRFUNlYrDLpJIIZiZe/RMBKDtgd4/OcTgl0e hSKojjKogUqwl0kmIELGyX65LljGmesxDnPfXvO8Zdlyx8qN9YfK5aIb+t+MeLIIDt97 uXi3Oj7mX/6yNcOnbMBm0WRKj0KvgMnJLk9Wnxd5iSgp9pZqVnT6pAiZJOe+eK3NW0Ui PltAztx6nbn3CutAntWHIWL9OJYHGBIzz2z5+WvJuYPJEuIX7dPO1ogOdSNeSwqxgpRY cIxWieuHF69syfaQr8x0hHCtrySJVoymJVuuBTzsdwj76vz7MYGzBdf4Ts0J5NDHGSc3 ekYg== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w25-v6si14468030pfa.359.2018.07.08.20.53.42; Sun, 08 Jul 2018 20:54:33 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933040AbeGIDwo (ORCPT + 99 others); Sun, 8 Jul 2018 23:52:44 -0400 Received: from smtprelay0103.hostedemail.com ([216.40.44.103]:48639 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932842AbeGIDwn (ORCPT ); Sun, 8 Jul 2018 23:52:43 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay05.hostedemail.com (Postfix) with ESMTP id EECDE1801D2E3; Mon, 9 Jul 2018 03:52:42 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 20,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2693:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3872:4321:5007:7576:9163:10004:10400:10848:11026:11232:11473:11658:11914:12043:12295:12296:12438:12740:12760:12895:13069:13255:13311:13357:13439:14096:14097:14181:14659:14721:21080:21222:21433:21451:21611:21627:30029:30054:30090:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:linux.vnet.ibm.com-dnsbl7.mailshell.net-127.0.0.120,Custom_rules:0:0:0,LFtime:26,LUA_SUMMARY:none X-HE-Tag: day81_348d9ce37994a X-Filterd-Recvd-Size: 2582 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf10.hostedemail.com (Postfix) with ESMTPA; Mon, 9 Jul 2018 03:52:41 +0000 (UTC) Message-ID: <75bfb54e1292e31830aafb8329e3cc81d1412ff5.camel@perches.com> Subject: Re: [PATCH v3 1/2] powerpc: Detect the presence of big-cores via "ibm, thread-groups" From: Joe Perches To: Murilo Opsfelder Araujo , "Gautham R. Shenoy" Cc: Michael Ellerman , Benjamin Herrenschmidt , Michael Neuling , Vaidyanathan Srinivasan , Akshay Adiga , Shilpasri G Bhat , Oliver O'Halloran , Nicholas Piggin , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Date: Sun, 08 Jul 2018 20:52:39 -0700 In-Reply-To: <20180708160334.GA6947@kermit-br-ibm-com> References: <20180708160334.GA6947@kermit-br-ibm-com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2018-07-08 at 13:03 -0300, Murilo Opsfelder Araujo wrote: > On Fri, Jul 06, 2018 at 02:35:48PM +0530, Gautham R. Shenoy wrote: > > From: "Gautham R. Shenoy" > > > > On IBM POWER9, the device tree exposes a property array identifed by > > "ibm,thread-groups" which will indicate which groups of threads share a > > particular set of resources. [] > > diff --git a/arch/powerpc/kernel/sysfs.c b/arch/powerpc/kernel/sysfs.c [] > > @@ -1025,6 +1026,33 @@ static ssize_t show_physical_id(struct device *dev, > > } > > static DEVICE_ATTR(physical_id, 0444, show_physical_id, NULL); > > > > +static ssize_t show_small_core_siblings(struct device *dev, > > + struct device_attribute *attr, > > + char *buf) > > +{ > > Interesting enough, checkpatch.pl warned about this function name: > > WARNING: Consider renaming function(s) 'show_small_core_siblings' to 'small_core_siblings_show' > #354: FILE: arch/powerpc/kernel/sysfs.c:1053: > +} It's to allow the DEVICE_ATTR below to be renamed to DEVICE_ATTR_RO > > +static DEVICE_ATTR(small_core_siblings, 0444, show_small_core_siblings, NULL); So this becomes DEVICE_ATTR_RO(small_core_siblings)