Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3319460imu; Sun, 11 Nov 2018 12:16:45 -0800 (PST) X-Google-Smtp-Source: AJdET5czdTeDjkdUvqwURCNiUKq8/ItESZV9ZLgbEmwnkCzEKu8qgr/953NHdUiut5of6h2432dy X-Received: by 2002:a63:c642:: with SMTP id x2-v6mr14620404pgg.16.1541967405453; Sun, 11 Nov 2018 12:16:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541967405; cv=none; d=google.com; s=arc-20160816; b=yqXHS2aWEPfqIedrZK6LpNi+3oD8vTcLRh5KwMiUuiiAS//1gzX1Y+Cxo0XD6qMVqo IzK56H1KdFSwc90n06QORguzHC5n1eYZKDMzqsxE0f1AGpU1rnS9NKItSbSKxCz+k6wx u1Dkh0TMliHetv/H/YqwAjmc2wuMjTGmGLY9tRKNhUwtLyl1vZjDC7o8Cx2Hx06RzdQE RO6o4EiGfE2rpkC7g9JvzPYuhLaOWJdpR/Z6w3kAPubvvmPe614uiV+UOP625n8qZmke V30iJ1uKiR5tsBPn2+z31sPdttoqJhLSQsyUkU9CUF5kkN2/o1aCHnPSz7S2dRkrTdfD D1nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=LAFV+KUlaeIW6akFZTacprY8SKhlpHG/kGF6k/yGEok=; b=qzvDe2Tz8ZO5k2nOtL+bUpEWdwx/f04Pkax9WoRQLREOQABDMxyhqg80lEbfHpN2yX DqKYex6+UsWDlDZcwBtK2iVlRFtilofK9aMrjhwJJkobl72HU9pSgY3w0HlYIAjtbkOB L6J6P4xeEI69AKEu8Pg9yKbAG2Z8RxvjiAldmBRHgmSWj0GFNUisKYIyKz4aczxK/cx/ 8WVS+Zq4EOeTSKiAerW8eOr6mTlhGtU90NRX/YQvcQzcZIgNXGUoa5wYC6hIWOoQFJSp T86CZ8ZCKIQaLVRaX1cr2lUgcwJVbWZPimxPrDMYLhpWaOpPqfvagjaQXNUjlMsoPHan 640A== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x5-v6si16766920pfx.74.2018.11.11.12.16.30; Sun, 11 Nov 2018 12:16:45 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731898AbeKLGFj (ORCPT + 99 others); Mon, 12 Nov 2018 01:05:39 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:53114 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731877AbeKLGFj (ORCPT ); Mon, 12 Nov 2018 01:05:39 -0500 Received: from [192.168.4.242] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gLvt6-0000l9-1D; Sun, 11 Nov 2018 19:59:16 +0000 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1gLvsQ-0001VI-U4; Sun, 11 Nov 2018 19:58:34 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Matt Turner" , "Len Brown" Date: Sun, 11 Nov 2018 19:49:05 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 106/366] tools/power turbostat: Correct SNB_C1/C3_AUTO_UNDEMOTE defines In-Reply-To: X-SA-Exim-Connect-IP: 192.168.4.242 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.61-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Matt Turner commit e0d34648b4d77ba715e13739d04e7b0692fe5eaa upstream. According to the Intel Software Developers' Manual, Vol. 4, Order No. 335592, these macros have been reversed since they were added. Fixes: 889facbee3e6 ("tools/power turbostat: v3.0: monitor Watts and Temperature") Signed-off-by: Matt Turner Signed-off-by: Len Brown Signed-off-by: Ben Hutchings --- tools/power/x86/turbostat/turbostat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/tools/power/x86/turbostat/turbostat.c +++ b/tools/power/x86/turbostat/turbostat.c @@ -1088,8 +1088,8 @@ void print_verbose_header(void) print_nhm_turbo_ratio_limits: get_msr(0, MSR_NHM_SNB_PKG_CST_CFG_CTL, &msr); -#define SNB_C1_AUTO_UNDEMOTE (1UL << 27) -#define SNB_C3_AUTO_UNDEMOTE (1UL << 28) +#define SNB_C3_AUTO_UNDEMOTE (1UL << 27) +#define SNB_C1_AUTO_UNDEMOTE (1UL << 28) fprintf(stderr, "cpu0: MSR_NHM_SNB_PKG_CST_CFG_CTL: 0x%08llx", msr);