From: Dan Magenheimer Subject: RE: latest xen-unstable fails to boot on Dell D630 (likely hpet/Cstate problem) Date: Tue, 8 Dec 2009 15:25:27 -0800 (PST) Message-ID: References: <22e49a10-020d-4319-b5b8-4b257207a84f@default> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <22e49a10-020d-4319-b5b8-4b257207a84f@default> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: dan.magenheimer@oracle.com, "Yu, Ke" , "Xen-Devel (E-mail)" Cc: xiantao.zhang@intel.com List-Id: xen-devel@lists.xenproject.org > But I'll give bisecting a try. Looks like the problem has been around for awhile. It appears the problem starts at c/s 20073. Xiantao cc'ed since 20073 was his patch. 20070 boots OK without max_cstate=3D2 20072 boots most of the way without max_cstate=3D2 but crashes before a login prompt (when xend is starting I think) 20073 FAILS to boot without max_cstate=3D2 but crashes before a login prompt 20082 FAILS to boot without max_cstate=3D2 but crashes before a login prompt with max_cstate=3D2 20143 FAILS to boot without max_cstate=3D2 but boots OK with max_cstate=3D2 Note that I have NOT bisected tools, just the hypervisor so the crashes are likely due to a newer xend failing on an older hypervisor (which is irrelevant to this problem). > -----Original Message----- > From: Dan Magenheimer=20 > Sent: Tuesday, December 08, 2009 10:42 AM > To: Yu, Ke; Xen-Devel (E-mail) > Subject: RE: latest xen-unstable fails to boot on Dell D630 (likely > hpet/Cstate problem) >=20 >=20 > > case, if convenient, could you help to do some bisect to see=20 > > which cset cause this bug? >=20 > I can do this, but because it is often no longer easy to > bisect Xen because of interdependencies with other > components, I was hoping that Keir or you or someone might > have some idea of what changeset might have caused the regression. > But I'll give bisecting a try. >=20 > > max_cstate=3D2), when dom0 hangs, is xen still alive, E.g. can=20 > > Xen response to three Ctrl-'A' in serial? >=20 > Unfortunately, I can't seem to get a Xen console working on > the Merom machine, and the problem can't be reproduced on > my other machine where the Xen console is working (because > Conroe doesn't support deep C). >=20 > > -----Original Message----- > > From: Yu, Ke [mailto:ke.yu@intel.com] > > Sent: Tuesday, December 08, 2009 12:08 AM > > To: Dan Magenheimer; Xen-Devel (E-mail) > > Subject: RE: latest xen-unstable fails to boot on Dell D630 (likely > > hpet/Cstate problem) > >=20 > >=20 > > >-----Original Message----- > > >In this thread, I observed that I was unable to > > >provoke deep C state (C3) on my Dell D630, which has > > >a Intel Merom (dual-core laptop) processor. At that > > >time, when I tried enabling hpetbroadcast, dom0 boot failed. > > > > > >http://lists.xensource.com/archives/html/xen-devel/2009-10/ms > > g01027.html > > > > > >As it turned out, all RHEL5-based (maybe RHEL4- also) dom0 > > >default installation run /sbin/hwclock, which IIRC takes > > >the RTC away from Xen and gives it to dom0. Since the > > >Xen hpet emulation does not do RTC emulation, bad things > > >then happen when a deep Cstate is entered (dom0 apparently > > >never wakes up). I think Ke Yu has also reproduced this problem. > > > > > >Sometime in the last few weeks, some patch in xen-unstable > > >apparently changed some defaults and xen-unstable will > > >no longer boot with this processor/dom0, with or without > > >hpetbroadcast on the Xen command line. However, specifying > > >max_cstate=3D2 on the Xen command line allows a successful > > >dom0 boot, so I suspect the problem is the same (or at > > >least very similar). > > > > > >I did a quick scan for hpet changes and found c/s 20497, > > >but backing it out made no difference. > > > > > >I have a workaround for now, but since it is likely that > > >many customers (including all of Oracle's OVS customers) > > >use a RHEL5-based dom0 boot sequence, and Merom processors > > >work fine otherwise, it would be nice to get this identified > > >and fixed before 4.0. > >=20 > > Let's firstly figure out which component the issue resides.=20 > >=20 > > Firstly, in the default boot (i.e. without specifying=20 > > max_cstate=3D2), when dom0 hangs, is xen still alive, E.g. can=20 > > Xen response to three Ctrl-'A' in serial? > >=20 > > If only dom0 hangs, it is probably that RTC malfunction make=20 > > incorrect dom0 time and lead dom0 fail to boot. Then RTC=20 > > emulation in hypervisor should fix this issue. > >=20 > > If Xen also hangs, it should be another bug, i.e. hpet=20 > > broadcast does not wake up CPU in deep C states. in this=20 > > case, if convenient, could you help to do some bisect to see=20 > > which cset cause this bug? > >=20 > > Best Regards > > Ke > >=20 > >=20 >