From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752273AbbEYKn4 (ORCPT ); Mon, 25 May 2015 06:43:56 -0400 Received: from mail-wi0-f176.google.com ([209.85.212.176]:36141 "EHLO mail-wi0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751537AbbEYKnx (ORCPT ); Mon, 25 May 2015 06:43:53 -0400 Date: Mon, 25 May 2015 12:43:48 +0200 From: Ingo Molnar To: Huang Rui Cc: Borislav Petkov , Len Brown , "Rafael J. Wysocki" , Thomas Gleixner , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , Fengguang Wu , Aaron Lu , "Li, Tony" , Andy Lutomirski Subject: Re: [RFC PATCH 2/4] x86, mwaitt: introduce mwaitx idle with a configurable timer Message-ID: <20150525104348.GA30252@gmail.com> References: <1432022472-2224-1-git-send-email-ray.huang@amd.com> <1432022472-2224-3-git-send-email-ray.huang@amd.com> <20150519113121.GD4819@pd.tnic> <20150520085520.GA8566@gmail.com> <20150520091213.GA3645@pd.tnic> <20150520102258.GA21245@gmail.com> <20150520105032.GD3645@pd.tnic> <20150520111120.GA25215@gmail.com> <20150525024214.GA24823@hr-slim.amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150525024214.GA24823@hr-slim.amd.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Huang Rui wrote: > No, the timeout value doesn't decide how 'deep' the power state > enters. Basically, the same power consumption with any timeout. > > I summarized the comparison of mwait and mwaitx > > MWAIT MWAITX > opcode 0f 01 c9 | 0f 01 fb > ECX[0] value of RFLAGS.IF seen by instruction > ECX[1] unused/#GP if set | enable timer if set > ECX[31:2] unused/#GP if set > EAX unused > EBX[31:0] unused | max wait time (loops) > > > MONITOR MONITORX > opcode 0f 01 c8 | 0f 01 fa > EAX (logical) address to monitor > ECX #GP if not zero Ok, thanks for the clarification! Thanks, Ingo