From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C2539C43331 for ; Thu, 2 Apr 2020 18:07:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8A41C2078B for ; Thu, 2 Apr 2020 18:07:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ckKoptQj" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389663AbgDBSHp (ORCPT ); Thu, 2 Apr 2020 14:07:45 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:45452 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728225AbgDBSHp (ORCPT ); Thu, 2 Apr 2020 14:07:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585850864; 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=v5oGIDGIVPedhHzR4MpWr3PEXpVfUB1v8StSapSY84c=; b=ckKoptQjvS/ZUAjqmibsEI1nTyM9XhjDGedRq6uys91xBvw58cSg6BitlAssljLVQxZJuj wJvgcHPNBzHCT6wTGX8dkVQ/vVYI28Nx3o+jCcXe5feXgqEoiyezh0sqQhDjJgyiZNgj/l 4/1eoltarjXmx0ndQwLhmGxHYJcVXaM= 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-199-JsKDMOkAOMqkdsAHCWt7nQ-1; Thu, 02 Apr 2020 14:07:42 -0400 X-MC-Unique: JsKDMOkAOMqkdsAHCWt7nQ-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 54119800D5F; Thu, 2 Apr 2020 18:07:41 +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 CCDB699E12; Thu, 2 Apr 2020 18:07:40 +0000 (UTC) From: Prarit Bhargava To: linux-kernel@vger.kernel.org Cc: Prarit Bhargava , andriy.shevchenko@linux.intel.com, Srinivas Pandruvada , platform-driver-x86@vger.kernel.org Subject: [PATCH] tools/power/x86/intel-speed-select: Fix CLX-N package information output Date: Thu, 2 Apr 2020 14:07:32 -0400 Message-Id: <20200402180732.24684-1-prarit@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On CLX-N the perf-profile output is missing the package, die, and cpu output. On CLX-N the pkg_dev struct will never be evaluated by the core code so pkg_dev.processed is always 0 and the package, die, and cpu information is never output. Set the pkg_dev.processed flag to 1 for CLX-N processors. Signed-off-by: Prarit Bhargava Cc: andriy.shevchenko@linux.intel.com Cc: Srinivas Pandruvada Cc: platform-driver-x86@vger.kernel.org --- tools/power/x86/intel-speed-select/isst-config.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/power/x86/intel-speed-select/isst-config.c b/tools/pow= er/x86/intel-speed-select/isst-config.c index d1ac57be0cbd..2e64b9b6eb2e 100644 --- a/tools/power/x86/intel-speed-select/isst-config.c +++ b/tools/power/x86/intel-speed-select/isst-config.c @@ -1169,6 +1169,7 @@ static void dump_clx_n_config_for_cpu(int cpu, void= *arg1, void *arg2, =20 ctdp_level =3D &clx_n_pkg_dev.ctdp_level[0]; pbf_info =3D &ctdp_level->pbf_info; + clx_n_pkg_dev.processed =3D 1; isst_ctdp_display_information(cpu, outf, tdp_level, &clx_n_pkg_dev); free_cpu_set(ctdp_level->core_cpumask); free_cpu_set(pbf_info->core_cpumask); --=20 2.18.2