Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3319599imu; Sun, 11 Nov 2018 12:16:57 -0800 (PST) X-Google-Smtp-Source: AJdET5edGT3W1YQFT64althBCqv146sIM43is06y4dgqGRhY3mptJn58qUW0VMJ84edrPFI0vfqF X-Received: by 2002:a17:902:7d8f:: with SMTP id a15-v6mr17279986plm.111.1541967417180; Sun, 11 Nov 2018 12:16:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541967417; cv=none; d=google.com; s=arc-20160816; b=1E5rjPF3GMnX60RZAzjKGbvue8OSMFnBOX8FsEsdQrwlX2Ta1uJO1Lm7GiGLG7ZzWi VdfWYkcYQw8MQR5GNa/Ja31i3/nawgqVjRODKC9AZG1VrIItnrlRsI/LcmD/oyg3/OcL ilf+Ur+5oOFBRUN3or8bY3RIyk3vS6XN3aghP69NFmdm5XSck9uJk0sxBEV5uuNJYeDK WBeVmtkj1Ao283h3Vb9ryj5tNkiwW0P3+mOAH3RQAaWJlRtV0mh6CSgzya/B8Nnr0iyD a1nKI6oKCgLIulnArWRJi/j3momrFczkxzy1+DXjnDRL1WYLaONoZ9LR8TTYDqy3iol9 /2FQ== 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=E7LJFtetQxf+zijpgUvdobBUTcY8fhl4qfkZKSJlRrs=; b=O2QlUvZFuuhOdDBERXQiZDZ9rtlXt8vHoY22j2L3mFy+AWFcfgVGGp0ZcXFlea8O3r hbiUBIKAPDI8dJn9PG/oHAGDN4AhCtckNJ7SEK6CaheeQsjSVuntPdtCRlLqXHgN/WpB hn+gV6d0L2A/ISl/x6zuX1oflcjiIkdyiwuOMFbx70DGxntXNRNfc1mzZWmQ3EJ9T/QA zx0eG4Pe9JfGQU/ca1HukOcNlNWOCglrhvg/vZIJDH1IWwVxBbwNSwE+kdoFbHml0p23 wpR+hp4WlYKem9sAfdqx4j2D1lLbBdkz07mhVux2nqkWXGohlgjMPf09EgPLs2CxeQLw xFWA== 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 w2-v6si15089695ply.21.2018.11.11.12.16.41; Sun, 11 Nov 2018 12:16:57 -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 S1731740AbeKLGFv (ORCPT + 99 others); Mon, 12 Nov 2018 01:05:51 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:53146 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729704AbeKLGFu (ORCPT ); Mon, 12 Nov 2018 01:05:50 -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-0000oO-0z; Sun, 11 Nov 2018 19:59:16 +0000 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1gLvsQ-0001VN-VE; 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" , "Ingo Molnar" Date: Sun, 11 Nov 2018 19:49:05 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 107/366] x86: msr-index.h: 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 a00072a24a9f5b88cfc56f2dec6afe8ce3874e60 upstream. According to the Intel Software Developers' Manual, Vol. 4, Order No. 335592, these macros have been reversed since they were added in the initial turbostat commit. The reversed definitions were presumably copied from turbostat.c to this file. Fixes: 9c63a650bb10 ("tools/power/x86/turbostat: share kernel MSR #defines") Signed-off-by: Matt Turner Acked-by: Ingo Molnar Signed-off-by: Len Brown [bwh: Backported to 3.16: adjust filename] Signed-off-by: Ben Hutchings --- arch/x86/include/uapi/asm/msr-index.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/arch/x86/include/uapi/asm/msr-index.h +++ b/arch/x86/include/uapi/asm/msr-index.h @@ -50,8 +50,8 @@ #define NHM_C3_AUTO_DEMOTE (1UL << 25) #define NHM_C1_AUTO_DEMOTE (1UL << 26) #define ATM_LNC_C6_AUTO_DEMOTE (1UL << 25) -#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) #define MSR_PLATFORM_INFO 0x000000ce #define MSR_MTRRcap 0x000000fe