From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751535Ab3LKNLg (ORCPT ); Wed, 11 Dec 2013 08:11:36 -0500 Received: from moutng.kundenserver.de ([212.227.126.187]:63339 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751268Ab3LKNLe (ORCPT ); Wed, 11 Dec 2013 08:11:34 -0500 Message-ID: <1386767435.12005.66.camel@marge.simpson.net> Subject: Re: 50 Watt idle power regression bisected to Linux-3.10 From: Mike Galbraith To: Peter Zijlstra Cc: Borislav Petkov , Thomas Gleixner , Len Brown , Linux PM list , "linux-kernel@vger.kernel.org" , Jeremy Eder , x86@kernel.org Date: Wed, 11 Dec 2013 14:10:35 +0100 In-Reply-To: <20131211124352.GB21999@twins.programming.kicks-ass.net> References: <1386559014.4875.16.camel@marge.simpson.net> <1386652637.5374.72.camel@marge.simpson.net> <1386732093.5964.6.camel@marge.simpson.net> <20131211113839.GF21683@pd.tnic> <20131211115239.GA21999@twins.programming.kicks-ass.net> <1386764955.12005.60.camel@marge.simpson.net> <20131211124352.GB21999@twins.programming.kicks-ass.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-Provags-ID: V02:K0:KC66hcaIz9ajWto6s2aqscevVbze1o3+EeqzRqSdSPP Mc+0JczY4kooy7GSzjjLqLSBYTAFGUpzPPoIVBaRYglWLyNWtL uWKPGws6zK4DSi6/0kQBtPc2MtIdF4rfHdVGSpHuGr9DZheDKo WhGNxHiFOCVmhjppYL0k/JATxlOk9BBjJhn+7Eusk9IrMZntXN 5ipYQgQlXRRCgKIH/4iezR6LUNIe8AfgikjZRJaSt2deg/rVae D43xtn3seEtNyIbcyG1yBEMCmLtySNHLZxllVSZZhngdqvmxgY WGGt3WVc6Ey7DHhSN8OrSw2FRdz32senrJOrPz+0CThhziBuT0 Wu1CVplJdK6DzcDXPqnVOKgBSgKwgWZG/K6LcUzME Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2013-12-11 at 13:43 +0100, Peter Zijlstra wrote: > On Wed, Dec 11, 2013 at 01:29:15PM +0100, Mike Galbraith wrote: > > On Wed, 2013-12-11 at 12:52 +0100, Peter Zijlstra wrote: > > > On Wed, Dec 11, 2013 at 12:38:39PM +0100, Borislav Petkov wrote: > > > > Right, if it turns out that this is really the case and that this > > > > erratum hasn't been fixed for models later than 29 - we'd need the > > > > additional model numbers to set X86_FEATURE_CLFLUSH_MONITOR correctly. > > > > > > You also need: https://lkml.org/lkml/2013/11/19/143 > > > > > > Because obviously not all mwait idle loops check that cpu bit. > > > > I had tried that patch, to see if it would magically make the thing > > start working, nope. I had also tried... > > > + if (this_cpu_has(X86_FEATURE_CLFLUSH_MONITOR)) > > + clflush((void *)¤t_thread_info()->flags); > > Yeah, you need a bit extra to enable that feature bit for your CPU as > bpetkov said. Works for me, one more for the stable bucket. So as soon as Len resurrects mwait_idle for Q6600 (and other core2 when booted max_cstates=1 so tsc clocksource is used instead of pos hpet), all the (known) idle regressions should be history. -Mike