Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1316722ybz; Wed, 29 Apr 2020 19:38:09 -0700 (PDT) X-Google-Smtp-Source: APiQypIPmPsOnZcDMKuvOiA2BOeZcX+6xUWdZy80X0f7o9UvYhrI2v7upyiE+D+NwTbIX1ggA2Rq X-Received: by 2002:a17:906:1e51:: with SMTP id i17mr683200ejj.336.1588214289001; Wed, 29 Apr 2020 19:38:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588214288; cv=none; d=google.com; s=arc-20160816; b=I4/yxVMKY8FjNCHgBrJoBBWLKUX9WbclcAvBQjov6JzXCuFgE5RQSNNOgnlEDdoM6e elAuxTnAaSjduhpErGuO2Ur+dgBxJteXTqInCAPNvBCL8GQcB/c4voQ1zQOwSK9oKMim P9N0n06YFRkK1/YeeRG/avYv+fdAf9sHy43bL2SP/26R+vzJUe8vO7DOcgr4OHFDwNmq iMt6l0UEy2kyWh/eB+61os9+6TGRRFksHa82KQ21+f6rQXXekobMjtHWLj9XX3iYtSCO oy16agWtBKyUQg9UdEIzJrekK27gl4LnVZ+GxDZ6GgicxS1DOCn+qj4jDhJvJSAX9/aS 29Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=emlx0bB8MX6G2ebc03Oijj3SuqzEV1Ikfqvf+qhMGOY=; b=Rbc3aSEKatZC12FWPH3999Tw23do2yQalg6JQL++rutSPNHWL1sV7AOP9o8LJhby7e YIuj+kLX1iLoiCCGuI2TAorFlHcNFHlzWn1aV7JoGgM/kHQKsqY/1rj+Q8pZS7PB516C NGNASGuIvc9okR+dkygNwQ2PN+kxdeEhionj1unVebllLp02GpzqTXnTejgH+HAzPXec PXYYtgACaQw4cjRuuQtRPxP3mFUnywuesr70DZwSKqVDYqZF13HPPg6tr0e1djx4MKA4 VKkepbiMF34QSF1yw7qgLvApFErzWlB5yn6IrGS/y0rHmqxqe+sUbhXAZ4pxHiOzpGTz mdTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=WBBHx9n9; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o20si4591273eja.517.2020.04.29.19.37.46; Wed, 29 Apr 2020 19:38:08 -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; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=WBBHx9n9; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726782AbgD3Ceo (ORCPT + 99 others); Wed, 29 Apr 2020 22:34:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726526AbgD3Ceo (ORCPT ); Wed, 29 Apr 2020 22:34:44 -0400 Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB4AEC035494 for ; Wed, 29 Apr 2020 19:34:43 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 49CKGQ4ZsBz9sRY; Thu, 30 Apr 2020 12:34:38 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1588214078; bh=BCi4c4G/ZA+9mO7Of96Qiajv3+eSTHs7JkDfkYQrlss=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=WBBHx9n9lJB5ghHEmLoQc/ndI+TE1BPqxe8vSOjeC45nb3lFf2k0AMXBBL6OQnEBX h7xYd9osHiC0kFJcAf39tG76Pf8UELx65k2BDL+Oo2Tl0y05j1fiJtgHLRVASvMG7A FwctvR5cuOxfITfXOsV8+w6eo558jf8H0jUk108No0lHZkAiT+Nyn/tuR7TIuKQIs3 XY3PbTnCEyrTEQKMFfqwRSXnK/Udph2u6EzvETGGJUNnG7OVewxdpo5QlHsYFN6JXz gEWP6L/DmMUuOTnvr29OLGtVWh1qkjvpSif2RtQAD9Hg7M4zcC7PpMYTkXQARL+VRb rjJPdDYfz/bFw== From: Michael Ellerman To: Gautham R Shenoy , Tyrel Datwyler Cc: "Gautham R. Shenoy" , 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 In-Reply-To: <20200423100213.GA23192@in.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> Date: Thu, 30 Apr 2020 12:34:52 +1000 Message-ID: <871ro5g0qb.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? cheers