Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1056632ybe; Thu, 5 Sep 2019 09:38:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqzy8t1xbKrbfQEATXFzNTFmXeEoXNvlXla+RFNVWGC4Es9qPkz82skeHCkgPzcmZ7N6Yw0e X-Received: by 2002:a62:3887:: with SMTP id f129mr5098780pfa.245.1567701521142; Thu, 05 Sep 2019 09:38:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567701521; cv=none; d=google.com; s=arc-20160816; b=b42mQcQMN38lPHKS0n1T0Z/sRNjioodjIM+jRrDAqjsy2pccTiJjMVEqfNLehiIaT3 Vj/2FZJ9ad41ifNI/7rV6FynYAD/GzXCWF1QXeIUnrqzDJuRM5WvKw7stewwIxpgkGvl HjggPEEWlNfC6NpPgRWOD3VS8R1uVGQyCMzoaBlFICyZC3cnc9kvnn8qWVn83C+OcHkJ Au0g13Q7+G/UQSrD82TzVmqNyjMKn301wFEdxpV/ULuI+eQmG1YeEN3VO5ivwN/2xh/V AJquuD5+cktTjB14fuZnXRmwIoX5Tr7lOMaEeLQLroKCYY+rLvgYR3axE168zhifEuT1 UOuA== 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:message-id:date:subject:cc:to:from; bh=1TQ4/UiL7Y/5Jc2TWL73UiiBe8Gi7xJ9sYj9wB5iSAI=; b=zN4qmYmjOXl+cOxuWMD1lts1AHni2YCQSUM7IGrfC7myqa0Tfd0+EF+KggPrzsY5Q3 LpXY5vba7Nqd+EbOVSBiYi3btIdXoV9+6qV/UWhFOhY8mhKTMi5KKQTVuru1gLoux3Ds CFHuMB3OZBT3XVw60SAZOdqeeha3dEgMkhpLFajQeWVeCOpVH7ON1PDXcOir4Q2fI8Rf vF7zXPTB95ezLc1+SHiBPr6Og9hnpqfXDxtwvSvYVIL7VkE4KrG2ZP3zEX/enUntmMak poQWM75DX1KSMLiXYF79Evzy0HjUYWzaosDGW+noIcpjRkoD2Yjhql3EGqHvC2UGCR4X s/Zw== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 23si2237991pgh.305.2019.09.05.09.38.25; Thu, 05 Sep 2019 09:38:41 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389091AbfIEMD0 (ORCPT + 99 others); Thu, 5 Sep 2019 08:03:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46588 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389081AbfIEMDZ (ORCPT ); Thu, 5 Sep 2019 08:03:25 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D5DBF18C427C; Thu, 5 Sep 2019 12:03:24 +0000 (UTC) Received: from prarit.bos.redhat.com (prarit-guest.khw1.lab.eng.bos.redhat.com [10.16.200.63]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2E32F10002B8; Thu, 5 Sep 2019 12:03:24 +0000 (UTC) From: Prarit Bhargava To: platform-driver-x86@vger.kernel.org Cc: andriy.shevchenko@intel.com, Prarit Bhargava , Srinivas Pandruvada , David Arcari , linux-kernel@vger.kernel.org Subject: [PATCH v2 6/9] tools/power/x86/intel-speed-select: Change turbo ratio output to maximum turbo frequency Date: Thu, 5 Sep 2019 08:03:08 -0400 Message-Id: <20190905120311.15286-7-prarit@redhat.com> In-Reply-To: <20190905120311.15286-1-prarit@redhat.com> References: <20190905120311.15286-1-prarit@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.62]); Thu, 05 Sep 2019 12:03:24 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The intel-speed-select tool currently outputs the turbo ratio for every bucket. Make the output more user-friendly by changing the output to the maximum turbo frequency. Signed-off-by: Prarit Bhargava Cc: Srinivas Pandruvada Cc: David Arcari Cc: linux-kernel@vger.kernel.org --- .../x86/intel-speed-select/isst-display.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/tools/power/x86/intel-speed-select/isst-display.c b/tools/power/x86/intel-speed-select/isst-display.c index 4ec1924ff7a9..cfeee0beb78d 100644 --- a/tools/power/x86/intel-speed-select/isst-display.c +++ b/tools/power/x86/intel-speed-select/isst-display.c @@ -336,9 +336,11 @@ void isst_ctdp_display_information(int cpu, FILE *outf, int tdp_level, snprintf(value, sizeof(value), "%d", j); format_and_print(outf, base_level + 6, header, value); - snprintf(header, sizeof(header), "turbo-ratio"); + snprintf(header, sizeof(header), + "max-turbo-frequency(MHz)"); snprintf(value, sizeof(value), "%d", - ctdp_level->trl_sse_active_cores[j]); + ctdp_level->trl_sse_active_cores[j] * + DISP_FREQ_MULTIPLIER); format_and_print(outf, base_level + 6, header, value); } snprintf(header, sizeof(header), "turbo-ratio-limits-avx"); @@ -351,9 +353,11 @@ void isst_ctdp_display_information(int cpu, FILE *outf, int tdp_level, snprintf(value, sizeof(value), "%d", j); format_and_print(outf, base_level + 6, header, value); - snprintf(header, sizeof(header), "turbo-ratio"); + snprintf(header, sizeof(header), + "max-turbo-frequency(MHz)"); snprintf(value, sizeof(value), "%d", - ctdp_level->trl_avx_active_cores[j]); + ctdp_level->trl_avx_active_cores[j] * + DISP_FREQ_MULTIPLIER); format_and_print(outf, base_level + 6, header, value); } @@ -367,9 +371,11 @@ void isst_ctdp_display_information(int cpu, FILE *outf, int tdp_level, snprintf(value, sizeof(value), "%d", j); format_and_print(outf, base_level + 6, header, value); - snprintf(header, sizeof(header), "turbo-ratio"); + snprintf(header, sizeof(header), + "max-turbo-frequency(MHz)"); snprintf(value, sizeof(value), "%d", - ctdp_level->trl_avx_512_active_cores[j]); + ctdp_level->trl_avx_512_active_cores[j] * + DISP_FREQ_MULTIPLIER); format_and_print(outf, base_level + 6, header, value); } if (ctdp_level->pbf_support) -- 2.21.0