Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1386747ybz; Wed, 29 Apr 2020 21:20:34 -0700 (PDT) X-Google-Smtp-Source: APiQypIr0QwCVf4mtJCSnuv8KlBBfjSabIsvMdoIt2X9z2uAdYS40go59ZzZxNnqijRigHpPY8tx X-Received: by 2002:a50:fc82:: with SMTP id f2mr963369edq.38.1588220434853; Wed, 29 Apr 2020 21:20:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588220434; cv=none; d=google.com; s=arc-20160816; b=DlyzlthUC14zDs/YWhlDYfWTaqkRY+w6oXBl2UpCec6e9pIR3KdYRTB3p6Eoid/+o7 2ad8LAaVeQ9mtSDZV4Y2HPnFmV3qBh8CRiIzyb/Ew7g1YQtonlM4cOl1LEgb8Vym8NY/ oNU+Xskx2wZVDmpS+FWJcP/fqF1vXTH9wnNaEVWzxscoCXgBwKAYTxDP2d1e0TRII86F VGz133TzompmvfANF/ThSXbhQhZGpkyRm3ffJQ6GkpCWdY1J+TNIHi8A2uIHKebu7+gU 7OdQkhyKU4Av2WjCo1D0eOwP8ittbsV0lsor6zaVb+75mEZNxpGmDm9GD6dXDHfCyfHF 8T4g== 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=WnWhxL0sP3Art73DyNEGVygKxaGOQdlirdwth+DSO9s=; b=i1JLPzp6BwnI3EqxOBKoDmkMW+IOOkqXzp7/DJkHsZCAU6sOzO+BO6cZooXvZAfH6G a4H8o748WDiUeA4CRfk9YT1RTF5XrBAZXgMGaPFZfL9ksHLwmznltYIR6/Ih6lNgjgGA zeH8Ck/2UoDTclX0AmuS/VYGs8addTv9Cz8/QnXdMbfdsM05q5mVqgoc4xUbgBXOLB3l PFidTTZepSKjrErrE7cwlhh+Is30gvJ8swXzb4mI+Hl583+Vu7ymH1eaUe/KNSDCBprC qQbBNbS4PWX1AMBbNtUWgqvQZPmN4VoW+Jr1RSG1+NLxe9kTq9lQ04wm08i3QHXo/QIj iDWg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id k15si5172720ejs.61.2020.04.29.21.20.11; Wed, 29 Apr 2020 21:20:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726395AbgD3EQ1 (ORCPT + 99 others); Thu, 30 Apr 2020 00:16:27 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:32438 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725280AbgD3EQ1 (ORCPT ); Thu, 30 Apr 2020 00:16:27 -0400 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 03U420Zk051394; Thu, 30 Apr 2020 00:16:20 -0400 Received: from ppma02dal.us.ibm.com (a.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.10]) by mx0a-001b2d01.pphosted.com with ESMTP id 30me46yreg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 30 Apr 2020 00:16:20 -0400 Received: from pps.filterd (ppma02dal.us.ibm.com [127.0.0.1]) by ppma02dal.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id 03U4EowQ010028; Thu, 30 Apr 2020 04:16:19 GMT Received: from b03cxnp08026.gho.boulder.ibm.com (b03cxnp08026.gho.boulder.ibm.com [9.17.130.18]) by ppma02dal.us.ibm.com with ESMTP id 30mcu751g2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 30 Apr 2020 04:16:19 +0000 Received: from b03ledav004.gho.boulder.ibm.com (b03ledav004.gho.boulder.ibm.com [9.17.130.235]) by b03cxnp08026.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 03U4GHHq21168586 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 30 Apr 2020 04:16:17 GMT Received: from b03ledav004.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 43DA87805C; Thu, 30 Apr 2020 04:16:18 +0000 (GMT) Received: from b03ledav004.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B47367805E; Thu, 30 Apr 2020 04:16:17 +0000 (GMT) Received: from sofia.ibm.com (unknown [9.199.60.232]) by b03ledav004.gho.boulder.ibm.com (Postfix) with ESMTP; Thu, 30 Apr 2020 04:16:17 +0000 (GMT) Received: by sofia.ibm.com (Postfix, from userid 1000) id 1B1262E2DE5; Thu, 30 Apr 2020 09:46:13 +0530 (IST) Date: Thu, 30 Apr 2020 09:46:13 +0530 From: Gautham R Shenoy To: Michael Ellerman Cc: Gautham R Shenoy , Tyrel Datwyler , Nathan Lynch , Vaidyanathan Srinivasan , Kamalesh Babulal , "Naveen N. Rao" , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 0/5] Track and expose idle PURR and SPURR ticks Message-ID: <20200430041612.GA25522@in.ibm.com> Reply-To: ego@linux.vnet.ibm.com References: <1586249263-14048-1-git-send-email-ego@linux.vnet.ibm.com> <04b5e2fa-089f-93c9-cde9-33a930455bb2@linux.ibm.com> <20200423100213.GA23192@in.ibm.com> <871ro5g0qb.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <871ro5g0qb.fsf@mpe.ellerman.id.au> 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.676 definitions=2020-04-30_01:2020-04-30,2020-04-29 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 bulkscore=0 lowpriorityscore=0 priorityscore=1501 mlxscore=0 impostorscore=0 spamscore=0 malwarescore=0 mlxlogscore=999 clxscore=1015 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004300025 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Michael, On Thu, Apr 30, 2020 at 12:34:52PM +1000, Michael Ellerman wrote: > Gautham R Shenoy writes: > > On Mon, Apr 20, 2020 at 03:46:35PM -0700, Tyrel Datwyler wrote: > >> On 4/7/20 1:47 AM, Gautham R. Shenoy wrote: > >> > From: "Gautham R. Shenoy" > >> > > >> > Hi, > >> > > >> > This is the fifth version of the patches to track and expose idle PURR > >> > and SPURR ticks. These patches are required by tools such as lparstat > >> > to compute system utilization for capacity planning purposes. > ... > >> > > >> > Gautham R. Shenoy (5): > >> > powerpc: Move idle_loop_prolog()/epilog() functions to header file > >> > powerpc/idle: Store PURR snapshot in a per-cpu global variable > >> > powerpc/pseries: Account for SPURR ticks on idle CPUs > >> > powerpc/sysfs: Show idle_purr and idle_spurr for every CPU > >> > Documentation: Document sysfs interfaces purr, spurr, idle_purr, > >> > idle_spurr > >> > > >> > Documentation/ABI/testing/sysfs-devices-system-cpu | 39 +++++++++ > >> > arch/powerpc/include/asm/idle.h | 93 ++++++++++++++++++++++ > >> > arch/powerpc/kernel/sysfs.c | 82 ++++++++++++++++++- > >> > arch/powerpc/platforms/pseries/setup.c | 8 +- > >> > drivers/cpuidle/cpuidle-pseries.c | 39 ++------- > >> > 5 files changed, 224 insertions(+), 37 deletions(-) > >> > create mode 100644 arch/powerpc/include/asm/idle.h > >> > > >> > >> Reviewed-by: Tyrel Datwyler > > > > Thanks for reviewing the patches. > > > >> > >> Any chance this is going to be merged in the near future? There is a patchset to > >> update lparstat in the powerpc-utils package to calculate PURR/SPURR cpu > >> utilization that I would like to merge, but have been holding off to make sure > >> we are synced with this proposed patchset. > > > > Michael, could you please consider this for 5.8 ? > > Yes. Has it been tested on KVM at all? No. I haven't tested this on KVM. Will do that today. > > cheers -- Thanks and Regards gautham.