From patchwork Thu Apr 13 00:08:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Len Brown X-Patchwork-Id: 9678507 X-Patchwork-Delegate: rjw@sisk.pl Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1754E60383 for ; Thu, 13 Apr 2017 00:10:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 09F2928631 for ; Thu, 13 Apr 2017 00:10:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F31BB2863B; Thu, 13 Apr 2017 00:10:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8093E28631 for ; Thu, 13 Apr 2017 00:10:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755947AbdDMAKm (ORCPT ); Wed, 12 Apr 2017 20:10:42 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:35971 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755855AbdDMAJc (ORCPT ); Wed, 12 Apr 2017 20:09:32 -0400 Received: by mail-qt0-f196.google.com with SMTP id v3so5979423qtd.3; Wed, 12 Apr 2017 17:09:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references:reply-to:organization; bh=5KBtqgxHZt/8S0K6oP7aFyvNJ+qsRyuqicQQYG/cyy8=; b=D8Y+ZgkwYmO7X18irT3BL9VXxnINc+uimCw620t5LFz0HrYwUpexvAjtS+X+zxHmbt 1RRSRTgmqGSAYID+8igHxLvFxwo5/of2ZQaTQNzUlPFXSiO3Z38LGu/CiKVJIDJWlQrO ZvZolNWU2SaOPuiSK21K8RcRL/T0kToTKcrBpxw/30KyRoaM1SdrSBgNkVt9ZmLOgetl tTRexYnzUMN6wTUvhEp35kZl6J0ajWNzykRB9a6r4EXZu/pyZlphaNLTLMqibBuL25tu lc+WjW6jsF1zRv5VIDNdyKLWiD2qzZ5KlFEg013kmqKsq43OyAYQgaFfxnpb1VL9U1Ds IYhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references:reply-to:organization; bh=5KBtqgxHZt/8S0K6oP7aFyvNJ+qsRyuqicQQYG/cyy8=; b=PQUP+/oqWQx/Ty+Ra7XFlcwgNyVxs9yj0SvZgygn6aavEatUyU7aG9KLVdBaAsj9aZ lBgmHEoL5Zv4R78irgBXZanZ6vmkRNtMYchaIjJW0HamabM/vGDR9NWdM1q7UO9i6u39 ZD0IxC0YaPQHG7YMhKT4DclI4X4IU2kRKpF52acrhF7VXUyAuX6K3fQLq8Y/XMcrn5tH sRm5Notzv26/8m/wGTWQpCJZWMImUzzMjfTbO9qMV/p3lhsdlmAEGImAAjpX+NHrGxFD jsbo1PE2W3VTQPknDFiovEQ0K3kBc2/MOXnf2HFjNhjNbfnKQUKTnQd+k5NZYl0V3neQ C+Qg== X-Gm-Message-State: AN3rC/41d4zZPkOaTJzPcAN3A2MeozAibwu18b8lFKJBOfjBjjQ+bymY wlnk8CD/OOLW2A== X-Received: by 10.200.54.218 with SMTP id b26mr356286qtc.8.1492042171532; Wed, 12 Apr 2017 17:09:31 -0700 (PDT) Received: from z87.localdomain (pool-173-48-65-169.bstnma.fios.verizon.net. [173.48.65.169]) by smtp.gmail.com with ESMTPSA id g15sm14621086qte.58.2017.04.12.17.09.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 12 Apr 2017 17:09:31 -0700 (PDT) From: Len Brown To: rjw@rjwysocki.net, linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Len Brown Subject: [PATCH 4/7] tools/power turbostat: update HWP dump to decimal from hex Date: Wed, 12 Apr 2017 20:08:50 -0400 Message-Id: <6dbd25a24599db07d88a805615bad1f4d48a5749.1492041840.git.len.brown@intel.com> X-Mailer: git-send-email 2.11.0.161.g6610af872 In-Reply-To: <20170413000853.21648-1-lenb@kernel.org> References: <20170413000853.21648-1-lenb@kernel.org> In-Reply-To: <22048c5485503749754b3b5daf9d99ef89fcacdc.1492041840.git.len.brown@intel.com> References: <22048c5485503749754b3b5daf9d99ef89fcacdc.1492041840.git.len.brown@intel.com> Reply-To: Len Brown Organization: Intel Open Source Technology Center Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Len Brown Syntax only. The HWP CAPABILTIES and REQUEST ratios are more easily viewed in decimal -- just multiply by 100 and you get MHz... new: cpu0: MSR_HWP_CAPABILITIES: 0x010c1b23 (high 35 guar 27 eff 12 low 1) cpu0: MSR_HWP_REQUEST: 0x80002301 (min 1 max 35 des 0 epp 0x80 window 0x0 pkg 0x0) old: cpu0: MSR_HWP_CAPABILITIES: 0x010c1b23 (high 0x23 guar 0x1b eff 0xc low 0x1) cpu0: MSR_HWP_REQUEST: 0x80002301 (min 0x1 max 0x23 des 0x0 epp 0x80 window 0x0 pkg 0x0) Signed-off-by: Len Brown --- tools/power/x86/turbostat/turbostat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c index e95799966560..b0591d0da801 100644 --- a/tools/power/x86/turbostat/turbostat.c +++ b/tools/power/x86/turbostat/turbostat.c @@ -3113,7 +3113,7 @@ int print_hwp(struct thread_data *t, struct core_data *c, struct pkg_data *p) return 0; fprintf(outf, "cpu%d: MSR_HWP_CAPABILITIES: 0x%08llx " - "(high 0x%x guar 0x%x eff 0x%x low 0x%x)\n", + "(high %d guar %d eff %d low %d)\n", cpu, msr, (unsigned int)HWP_HIGHEST_PERF(msr), (unsigned int)HWP_GUARANTEED_PERF(msr), @@ -3124,7 +3124,7 @@ int print_hwp(struct thread_data *t, struct core_data *c, struct pkg_data *p) return 0; fprintf(outf, "cpu%d: MSR_HWP_REQUEST: 0x%08llx " - "(min 0x%x max 0x%x des 0x%x epp 0x%x window 0x%x pkg 0x%x)\n", + "(min %d max %d des %d epp 0x%x window 0x%x pkg 0x%x)\n", cpu, msr, (unsigned int)(((msr) >> 0) & 0xff), (unsigned int)(((msr) >> 8) & 0xff), @@ -3138,7 +3138,7 @@ int print_hwp(struct thread_data *t, struct core_data *c, struct pkg_data *p) return 0; fprintf(outf, "cpu%d: MSR_HWP_REQUEST_PKG: 0x%08llx " - "(min 0x%x max 0x%x des 0x%x epp 0x%x window 0x%x)\n", + "(min %d max %d des %d epp 0x%x window 0x%x)\n", cpu, msr, (unsigned int)(((msr) >> 0) & 0xff), (unsigned int)(((msr) >> 8) & 0xff),