From patchwork Mon Apr 20 14:10:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prarit Bhargava X-Patchwork-Id: 11499087 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 18EA514DD for ; Mon, 20 Apr 2020 14:11:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F34D820B1F for ; Mon, 20 Apr 2020 14:11:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Dv6jHtpF" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726847AbgDTOLJ (ORCPT ); Mon, 20 Apr 2020 10:11:09 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:58582 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726719AbgDTOLJ (ORCPT ); Mon, 20 Apr 2020 10:11:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1587391868; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=juxlCNjhUGoVaucv5IlBSUfH1PKTujMrazy+xkLY5Ag=; b=Dv6jHtpFdhiY5QpWmY6aItPw5LncJXyQa/Grcl7G+vEL/GFD0tjjkNQrvLI7OndIsnKrqk XAsmgxdLY15CuEcF8aIotISp/hTi9pzBOISiTm7GYsyWOVisifldn+Y+cGXIMoJpsqRqii 3GMknkxPfmp+0ZdX7ged/z6WzgGF5To= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-120-KcCg_TM8PDOH2bqnDHoZDg-1; Mon, 20 Apr 2020 10:11:06 -0400 X-MC-Unique: KcCg_TM8PDOH2bqnDHoZDg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 65089801A07; Mon, 20 Apr 2020 14:11:05 +0000 (UTC) Received: from prarit.bos.redhat.com (prarit-guest.7a2m.lab.eng.bos.redhat.com [10.16.222.26]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9B4B0129FA2; Mon, 20 Apr 2020 14:11:02 +0000 (UTC) From: Prarit Bhargava To: linux-kernel@vger.kernel.org Cc: Prarit Bhargava , Srinivas Pandruvada , platform-driver-x86@vger.kernel.org Subject: [PATCH] intel-speed-select: Fix speed-select-base-freq-properties output on CLX-N Date: Mon, 20 Apr 2020 10:10:54 -0400 Message-Id: <20200420141054.26173-1-prarit@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Sender: platform-driver-x86-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org On CLX-N, the perf-profile-level's output is terminated before the speed-select-base-freq-properties are output which results in a corrupt json file. Adjust the output of speed-select-base-freq-properties by one on CLX-N. Signed-off-by: Prarit Bhargava Cc: Srinivas Pandruvada Cc: platform-driver-x86@vger.kernel.org --- tools/power/x86/intel-speed-select/isst-display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/power/x86/intel-speed-select/isst-display.c b/tools/power/x86/intel-speed-select/isst-display.c index 51dbaa5f02ec..f6e2ce181123 100644 --- a/tools/power/x86/intel-speed-select/isst-display.c +++ b/tools/power/x86/intel-speed-select/isst-display.c @@ -470,7 +470,7 @@ void isst_ctdp_display_information(int cpu, FILE *outf, int tdp_level, _isst_pbf_display_information(cpu, outf, tdp_level, &ctdp_level->pbf_info, - level + 1); + level + 2); continue; }