From: Dan Magenheimer Subject: RE: dom0 is stalled until a keypress Date: Tue, 6 Sep 2011 10:17:45 -0700 (PDT) Message-ID: <71fba00b-9a7a-4029-ac11-4d37732bb53f@default> References: <20110905091937.GA1906@email> <36a5b662-4420-41aa-be01-445f83b15a7b@default 4E664BEE.9000208@invisiblethingslab.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4E664BEE.9000208@invisiblethingslab.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Joanna Rutkowska Cc: xen-devel@lists.xensource.com, Rafal Wojtczuk List-Id: xen-devel@lists.xenproject.org > From: Joanna Rutkowska [mailto:joanna@invisiblethingslab.com] > Subject: Re: [Xen-devel] dom0 is stalled until a keypress >=20 > On 09/06/11 17:49, Dan Magenheimer wrote: > >> From: Rafal Wojtczuk [mailto:rafal@invisiblethingslab.com] > >> Sent: Monday, September 05, 2011 3:20 AM > >> To: xen-devel@lists.xensource.com > >> Subject: [Xen-devel] dom0 is stalled until a keypress > >> > >> Hello, > >> The following bizarre behaviour was observed on xen4.1+suse dom0 2.6.3= 8, on > >> an old Core Duo laptop; maybe someone can hint what is wrong. > >> Dom0 boot stalls after an init.d script prints "Starting udev". Then n= othing > >> seems to happen. I need to press any key to observe progress - I need = to do > >> it tens of times for the boot to finish. After X starts fine, then the= re is > >> no need for keypressing anymore. > >> A particularly disturbing fact is that qrexec_daemon parent, that basi= cally > >> does > >> for (;;) { sleep(1); fprintf(stderr, "."); } > >> does not print dots, until a keypress arrives. So something is very wr= ong > >> with timers. > >> Somehow similarly, pm-suspend sometimes hangs at some stage - after de= taching > >> power cord, machine enters S3 immediately. > >> This is vaguely similar to the issue described in > >> https://lkml.org/lkml/2008/9/14/122 > >> but this time, "nohz=3Doff" does not help. > >> > >> "cpufreq=3Ddom0-kernel" cures the symptoms; but it is not a sideeffect= less > >> solution. Any idea what is going on or how to debug it ? > > > > ISTR seeing this on a Core(2?)Duo laptop and I think the > > workaround was setting max_cstate=3D0 (as Xen boot parameter). > > > But what was the actual problem? Setting max_cstate is probably even > worse for power management than setting cpufreq=3Ddom-kernel, isn't it? Sorry, dunno. I recall looking into it a bit and finding that the Core processor (and possibly specifically Merom, the laptop version) had some special C-state (C3, C1E maybe?) and giving up at that point. Sorry I can't be more helpful.