Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3388109ybl; Sun, 2 Feb 2020 22:42:38 -0800 (PST) X-Google-Smtp-Source: APXvYqxyvN53plqNsOlpBeCgoWnqIbixFAhIbH7BEfMkQt5732kPA2ZliBbrAccvI++9MDLGCF18 X-Received: by 2002:aca:db41:: with SMTP id s62mr13390316oig.87.1580712157858; Sun, 02 Feb 2020 22:42:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580712157; cv=none; d=google.com; s=arc-20160816; b=ikwxDh9qnBXQugXp6t0XVrz3upjev6LELpQh0edLk3yREYtgso06JWLz4b/C/90Dij Elx3svInw7CBNpHZ8WnHGx+oFjKJXxPT3Rk110HzxJHPxMC27IKNK0+B1hotNZkuLX71 iVIex7nxucnuGNj7/GROCjlHzlWs7zLw+NujrX0zZ/fnCKOWx8vkBXrZeuzd4MY4hEa0 HPUnuPK2bk86MSeTyfucxSE87ahfzv8sDO4bl7oPv4o7bH9lxg/nSkhWjhiBMfvXeP5O ssIz2kuhNwua51BqnI333spEUWz0cm3q9W0gP0isovu/3LaUkvM6BdS06tFimjRl1EyJ fN/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date; bh=JvOvDgTPpiHhVLbfX070g+Jvaw6/5ayP5ygB26y5vCs=; b=xyxccQ2mtGDL1W1c6Xub9UdnOKNziB6i8lUCB05pBpeNLC3OfrDCYt1+Q+EIo5Vdt4 R89wqS7vrZJkiht3NA+FLrIEamqFjU6EIS3JZ1Ou2k6S13q8HJ9avSitD2cOPKcMye7x ri1hidsn5dQYuWTZKkBz8RWckmY0eSOWeNojo/CiNHXo4kQCW1SijLyBTWgQjk8+jp8g B+rZlYWokqid0RGs6NNSC75s2KuNuoI24lyQlluKZ4m2u5C+dyaQyX7/55K/TxHOCn1V NsYdZZN0Pngh4cgm4WgJT3QJy+tRoWPhoV7tmEoU0KYMojvuAm4StNM8FIuAqjA7qmSt H5oQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i7si7234774oib.63.2020.02.02.22.41.57; Sun, 02 Feb 2020 22:42:37 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727420AbgBCErr (ORCPT + 99 others); Sun, 2 Feb 2020 23:47:47 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:2576 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727164AbgBCErr (ORCPT ); Sun, 2 Feb 2020 23:47:47 -0500 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0134j94j074931; Sun, 2 Feb 2020 23:47:39 -0500 Received: from ppma04dal.us.ibm.com (7a.29.35a9.ip4.static.sl-reverse.com [169.53.41.122]) by mx0a-001b2d01.pphosted.com with ESMTP id 2xxbtf1d0r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 02 Feb 2020 23:47:39 -0500 Received: from pps.filterd (ppma04dal.us.ibm.com [127.0.0.1]) by ppma04dal.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id 0134jGlE013589; Mon, 3 Feb 2020 04:47:38 GMT Received: from b01cxnp23034.gho.pok.ibm.com (b01cxnp23034.gho.pok.ibm.com [9.57.198.29]) by ppma04dal.us.ibm.com with ESMTP id 2xw0y6hmch-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 03 Feb 2020 04:47:38 +0000 Received: from b01ledav004.gho.pok.ibm.com (b01ledav004.gho.pok.ibm.com [9.57.199.109]) by b01cxnp23034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 0134lbP836176146 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 3 Feb 2020 04:47:37 GMT Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6DC55112061; Mon, 3 Feb 2020 04:47:37 +0000 (GMT) Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2E281112063; Mon, 3 Feb 2020 04:47:37 +0000 (GMT) Received: from sofia.ibm.com (unknown [9.124.31.110]) by b01ledav004.gho.pok.ibm.com (Postfix) with ESMTP; Mon, 3 Feb 2020 04:47:37 +0000 (GMT) Received: by sofia.ibm.com (Postfix, from userid 1000) id 649492E2DB0; Mon, 3 Feb 2020 10:17:35 +0530 (IST) Date: Mon, 3 Feb 2020 10:17:35 +0530 From: Gautham R Shenoy To: Nathan Lynch Cc: "Gautham R. Shenoy" , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Michael Ellerman , Vaidyanathan Srinivasan , Kamalesh Babulal , "Naveen N. Rao" , Tyrel Datwyler Subject: Re: [PATCH 2/3] powerpc/sysfs: Show idle_purr and idle_spurr for every CPU Message-ID: <20200203044735.GB13468@in.ibm.com> Reply-To: ego@linux.vnet.ibm.com References: <1574856072-30972-1-git-send-email-ego@linux.vnet.ibm.com> <1574856072-30972-3-git-send-email-ego@linux.vnet.ibm.com> <87pnh3u3ts.fsf@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87pnh3u3ts.fsf@linux.ibm.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-02-02_09:2020-02-02,2020-02-02 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 phishscore=0 adultscore=0 priorityscore=1501 lowpriorityscore=0 bulkscore=0 spamscore=0 impostorscore=0 malwarescore=0 clxscore=1015 mlxscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1911200001 definitions=main-2002030036 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Nathan, On Wed, Dec 04, 2019 at 04:24:31PM -0600, Nathan Lynch wrote: > "Gautham R. Shenoy" writes: > > @@ -1067,6 +1097,8 @@ static int __init topology_init(void) > > register_cpu(c, cpu); > > > > device_create_file(&c->dev, &dev_attr_physical_id); > > + if (firmware_has_feature(FW_FEATURE_SPLPAR)) > > + create_idle_purr_spurr_sysfs_entry(&c->dev); > > Architecturally speaking PURR/SPURR aren't strongly linked to the PAPR > SPLPAR option, are they? I'm not sure it's right for these attributes to > be absent if the platform does not support shared processor mode. Doesn't FW_FEATURE_SPLPAR refer to all Pseries guests ? It is perhaps incorrectly named, but from the other uses in the kernel, it seems to indicate that we are running as a guest instead of on a bare-metal system. -- Thanks and Regards gautham.