Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp117864ybg; Mon, 8 Jun 2020 18:06:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZICUnHRheOk1LdfSgRpA/Jy8vCEH1dHipGPfiNhQ+6qrpjJy90baGiRv4dMdItWx77YCr X-Received: by 2002:a50:f017:: with SMTP id r23mr8723992edl.205.1591664781083; Mon, 08 Jun 2020 18:06:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591664781; cv=none; d=google.com; s=arc-20160816; b=MW27EKkge+AQDaSrZpz2W2xtpEVW15qoqxbpA1wykir7EppBMZEabhuBYAM+Eg9Lur FAAmgCNJRA3lkYYwEC/4rprUkmYAmFY1r3sU/F39TJ6+f6YB0TgzekkAV0Os3LZqnh+z 8kK/FgJWE7IS9LZUs72kYsfelJ5F5xq4SWyknf1LXxqbYgDZP5xFYtPsPyebGI+vobyS il/JuYMMgIg5+Tse58tvgtJoQhNUCXrb1p0LySYc3QNq7CgYuhhpXpSti9wQLGpSghCH fVeSSzxldatrA3IiV714gtDjOMnlHOkVM5835A/VRSYoanan1A9BdEVOc5gtEQnRu3Hm 4BNw== 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 :dkim-signature; bh=ko94b2jaUgUedj+fzSRvGYjSg5GtkwqptYmeYSRYpBY=; b=WQeL+u4EBAlMAunJKLfs1kcm6ZW0tbPGa50P4TqK31qq4CyXHVIsnnBrAmDL2+oNek vgn/stAhpsvFxt82q4BpEK7o1I2MiR/c7pb6TW789//dvdzxVFXbuVfSUo5bpJcangGx +ppfmqbdbQSuUDC2sfAHeAIjXEJ+tIDb6OcMEplJvQHBZ6QPThLEB7CdRgCAX5jKR1vD EWQztGpmgMXuWz2aH6efEB0y3CK3tONrzrD/col8QDKCRMb8zQu1O8TIgZLdkaheySNN Yfk3Oxj8DD9jXTY2XLNrPJulTFpHPPSARKnSqWEfkzk6M6OK+urZGddnFvaqI+86Biw0 i5wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zFBtBeAL; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b18si10017490edx.581.2020.06.08.18.05.58; Mon, 08 Jun 2020 18:06:21 -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=@kernel.org header.s=default header.b=zFBtBeAL; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727093AbgFHXHb (ORCPT + 99 others); Mon, 8 Jun 2020 19:07:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:50642 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727769AbgFHXHB (ORCPT ); Mon, 8 Jun 2020 19:07:01 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8944F20870; Mon, 8 Jun 2020 23:07:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591657621; bh=SqyLi8d8xiFLHBec76SFFQfbGYQNGQ0Jb1+ic5vnbfo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zFBtBeALLjJRo7gSES7ARlHs5hFDZU+QyPJrBOm5BINKc6bWVxgZMPdvwXUdABQgg q8ClG4FkT0y36DiVP930UWMsQPaIlloz1M4Xy9/CHZS1MW3PHceFvw2SSLH4amXiav tAFNJ0mc5HJbPnfo9MPJ5f/LILBvmde3k7z/MQjU= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Prarit Bhargava , Srinivas Pandruvada , andriy.shevchenko@linux.intel.com, platform-driver-x86@vger.kernel.org, Sasha Levin Subject: [PATCH AUTOSEL 5.7 042/274] tools/power/x86/intel-speed-select: Fix CLX-N package information output Date: Mon, 8 Jun 2020 19:02:15 -0400 Message-Id: <20200608230607.3361041-42-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200608230607.3361041-1-sashal@kernel.org> References: <20200608230607.3361041-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Prarit Bhargava [ Upstream commit 28c59ae6965ca0626e3150e2f2863e0f0c810ed7 ] 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 Signed-off-by: Srinivas Pandruvada Cc: andriy.shevchenko@linux.intel.com Cc: Srinivas Pandruvada Cc: platform-driver-x86@vger.kernel.org Signed-off-by: Sasha Levin --- 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/power/x86/intel-speed-select/isst-config.c index b73763489410..3688f1101ec4 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, ctdp_level = &clx_n_pkg_dev.ctdp_level[0]; pbf_info = &ctdp_level->pbf_info; + clx_n_pkg_dev.processed = 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); -- 2.25.1