Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp892199ybe; Wed, 4 Sep 2019 09:15:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqy4QNKLBum69NMHNWYlA4MkenRABLxqqKvG9IFCGMgCoTjdHyLoWndmkh9eLAPloPZbyJ7i X-Received: by 2002:a62:60c7:: with SMTP id u190mr47643959pfb.54.1567613705965; Wed, 04 Sep 2019 09:15:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567613705; cv=none; d=google.com; s=arc-20160816; b=UpryVNeKEAjNsrWlwQi6agiQv57gqNDzZAcT/uxwnHYIC5CEefSNiD+QH+cXJx7tnJ 8MXunyktI9V6gn+70zzL+aqkgs1kfka5PIfUJVkKpbropK+4Mxk5DuMhiuSHwu4dVywE PQxzb5KCxWNL0ZzwJObmYHAVD0mIxpmQ+xt2L1WgdILWmailzbvhFwXXHzzCiI7au/zn VFUL0Psqbc/1T0KahAfpzrXAtms5NVGotFQTfo7k2vadq5KZlJXU0TJP11AyykQ3zjqX IFfFjY831o5La7mybJN3rFdG1iCs0X1U93gI1rFB6dSnoBlcZd6tGd3PY6u2c7dKL20W ouoQ== 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=j+sIuoTb9iPu5+is2qzlBcH8KFczFMnOQC1kbNkYWA0=; b=gHaz263rYBMKwpTqWgOnlnMXEQ0/IY9UQIz+cFvga9oLibLIsKuh7BKufJKgIafFYn lrd5fIv9/naunRYV7MYtnKtfIoBlOaXyMpmHywO2LHMjsJ8+CUBKCQjLafT1nskcwfQK 2I5LsuVg9HLWrPvM7C0WGOxb+TdrzJtN00UnuEOck7A13SR+tGRofYgey8hP0ib32UTj zMvQLTIjQcZB8U2bxYn086ALuUXld6+j0MAYYZhai2VYUmsOUMFJfxX4zKANDkLz9hHO lS0S6QrFONq57/4cuk29TfPxG4gFpU76gNZYYwwKTvDgvMLiT97BK5gxVJY+CGAyfCl3 WsnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HogUkI1A; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 16si3494154pfw.253.2019.09.04.09.14.50; Wed, 04 Sep 2019 09:15:05 -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; dkim=pass header.i=@kernel.org header.s=default header.b=HogUkI1A; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387492AbfIDQOH (ORCPT + 99 others); Wed, 4 Sep 2019 12:14:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:34426 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732481AbfIDP7v (ORCPT ); Wed, 4 Sep 2019 11:59:51 -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 EBA642070C; Wed, 4 Sep 2019 15:59:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567612789; bh=tV808St7A5Hpdgkq54RIYT7FRJi6zzl/zCewLZTtoos=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HogUkI1AE4dfmG2KoZl08dFlaYGISvqGvYqf9CP9awXivYjHXBsk83DxaNPVJxyRK 8hDhxHn5S5h6t11OJbag9kC0Ld3HtrgtNJVBULFDWNzliux9U9VFoxlQ5ac67snswF D3cBsqMnanNV+s2wgsJiE+BzUWXJSTaJLJmU2HpM= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Len Brown , Prarit Bhargava , Kosuke Tatsukawa , Sasha Levin , linux-pm@vger.kernel.org Subject: [PATCH AUTOSEL 5.2 84/94] tools/power turbostat: Fix Haswell Core systems Date: Wed, 4 Sep 2019 11:57:29 -0400 Message-Id: <20190904155739.2816-84-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190904155739.2816-1-sashal@kernel.org> References: <20190904155739.2816-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: Len Brown [ Upstream commit cd188af5282d9f9e65f63915b13239bafc746f8d ] turbostat: cpu0: msr offset 0x630 read failed: Input/output error because Haswell Core does not have C8-C10. Output C8-C10 only on Haswell ULT. Fixes: f5a4c76ad7de ("tools/power turbostat: consolidate duplicate model numbers") Reported-by: Prarit Bhargava Suggested-by: Kosuke Tatsukawa Signed-off-by: Len Brown Signed-off-by: Sasha Levin --- tools/power/x86/turbostat/turbostat.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c index 0ff52b3c967a7..de76bf355120a 100644 --- a/tools/power/x86/turbostat/turbostat.c +++ b/tools/power/x86/turbostat/turbostat.c @@ -3211,6 +3211,7 @@ int probe_nhm_msrs(unsigned int family, unsigned int model) break; case INTEL_FAM6_HASWELL_CORE: /* HSW */ case INTEL_FAM6_HASWELL_X: /* HSX */ + case INTEL_FAM6_HASWELL_ULT: /* HSW */ case INTEL_FAM6_HASWELL_GT3E: /* HSW */ case INTEL_FAM6_BROADWELL_CORE: /* BDW */ case INTEL_FAM6_BROADWELL_GT3E: /* BDW */ @@ -3407,6 +3408,7 @@ int has_config_tdp(unsigned int family, unsigned int model) case INTEL_FAM6_IVYBRIDGE: /* IVB */ case INTEL_FAM6_HASWELL_CORE: /* HSW */ case INTEL_FAM6_HASWELL_X: /* HSX */ + case INTEL_FAM6_HASWELL_ULT: /* HSW */ case INTEL_FAM6_HASWELL_GT3E: /* HSW */ case INTEL_FAM6_BROADWELL_CORE: /* BDW */ case INTEL_FAM6_BROADWELL_GT3E: /* BDW */ @@ -3843,6 +3845,7 @@ void rapl_probe_intel(unsigned int family, unsigned int model) case INTEL_FAM6_SANDYBRIDGE: case INTEL_FAM6_IVYBRIDGE: case INTEL_FAM6_HASWELL_CORE: /* HSW */ + case INTEL_FAM6_HASWELL_ULT: /* HSW */ case INTEL_FAM6_HASWELL_GT3E: /* HSW */ case INTEL_FAM6_BROADWELL_CORE: /* BDW */ case INTEL_FAM6_BROADWELL_GT3E: /* BDW */ @@ -4034,6 +4037,7 @@ void perf_limit_reasons_probe(unsigned int family, unsigned int model) switch (model) { case INTEL_FAM6_HASWELL_CORE: /* HSW */ + case INTEL_FAM6_HASWELL_ULT: /* HSW */ case INTEL_FAM6_HASWELL_GT3E: /* HSW */ do_gfx_perf_limit_reasons = 1; case INTEL_FAM6_HASWELL_X: /* HSX */ @@ -4253,6 +4257,7 @@ int has_snb_msrs(unsigned int family, unsigned int model) case INTEL_FAM6_IVYBRIDGE_X: /* IVB Xeon */ case INTEL_FAM6_HASWELL_CORE: /* HSW */ case INTEL_FAM6_HASWELL_X: /* HSW */ + case INTEL_FAM6_HASWELL_ULT: /* HSW */ case INTEL_FAM6_HASWELL_GT3E: /* HSW */ case INTEL_FAM6_BROADWELL_CORE: /* BDW */ case INTEL_FAM6_BROADWELL_GT3E: /* BDW */ @@ -4286,7 +4291,7 @@ int has_hsw_msrs(unsigned int family, unsigned int model) return 0; switch (model) { - case INTEL_FAM6_HASWELL_CORE: + case INTEL_FAM6_HASWELL_ULT: /* HSW */ case INTEL_FAM6_BROADWELL_CORE: /* BDW */ case INTEL_FAM6_SKYLAKE_MOBILE: /* SKL */ case INTEL_FAM6_CANNONLAKE_MOBILE: /* CNL */ @@ -4570,9 +4575,6 @@ unsigned int intel_model_duplicates(unsigned int model) case INTEL_FAM6_XEON_PHI_KNM: return INTEL_FAM6_XEON_PHI_KNL; - case INTEL_FAM6_HASWELL_ULT: - return INTEL_FAM6_HASWELL_CORE; - case INTEL_FAM6_BROADWELL_X: case INTEL_FAM6_BROADWELL_XEON_D: /* BDX-DE */ return INTEL_FAM6_BROADWELL_X; -- 2.20.1