From: Dan Magenheimer Subject: RE: latest xen-unstable fails to boot on Dell D630 (likely hpet/Cstate problem) Date: Sun, 13 Dec 2009 09:49:46 -0800 (PST) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=Windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Zhang, Xiantao" , "Yu, Ke" , "Xen-Devel (E-mail)" List-Id: xen-devel@lists.xenproject.org OK, thanks for looking for the problem. Since you can't reproduce it, it is likely a problem specific to the Dell D630 motherboard or BIOS or HPET or something like that. Since I have a workaround (max_cstate=3D2), I will just continue to use the workaround. I don't have a dock but if I get the serial port working at some point, I will try to reproduce the problem again. Also, when Ke's work on RTC emulation is completed, let me know and I will give that a try. Thanks, Dan > -----Original Message----- > From: Zhang, Xiantao [mailto:xiantao.zhang@intel.com] > Sent: Sunday, December 13, 2009 1:26 AM > To: Dan Magenheimer; Yu, Ke; Xen-Devel (E-mail) > Subject: RE: latest xen-unstable fails to boot on Dell D630 (likely > hpet/Cstate problem) >=20 >=20 > Hi, Dan=20 > We still can't reproduce this failure locally, even with=20 > Merom laptop. Do you have the dock with your Dell 630, and I=20 > think the dock should have the serial port support, and maybe=20 > you can get the failure log through it. If we can get the=20 > failure log, it should be helpful to identify this issue. =20 > Also I have analyzed the Cset #20072 and Cst20073, and have=20 > no any clue which can lead to this issue. In addition, I=20 > also talked with Ke, he said he could reproduce another issue=20 > related to hwclock, but for this issue, he also can't catch=20 > it in any platforms. :( > Thanks! > Xiantao >=20 > -----Original Message----- > From: Dan Magenheimer [mailto:dan.magenheimer@oracle.com]=20 > Sent: Wednesday, December 09, 2009 11:50 PM > To: Zhang, Xiantao; Yu, Ke; Xen-Devel (E-mail) > Subject: RE: latest xen-unstable fails to boot on Dell D630=20 > (likely hpet/Cstate problem) >=20 > > Could you attach the failure log ? >=20 > I can't get any failure logs because dom0 fails to boot. > The failure conditions are the same as described > here: >=20 > http://lists.xensource.com/archives/html/xen-devel/2009-10/msg > 01027.html=20 >=20 > However, I have attached the xm dmesg output from > a successful boot (with max_cstate=3D2). >=20 > > In addition, does this system have ioapic support ? >=20 > I think so. See attached log. >=20 > > I think hpet doesn't use MSI, right ?=20 >=20 > I don't think so. >=20 > Dan >=20 > > -----Original Message----- > > From: Zhang, Xiantao [mailto:xiantao.zhang@intel.com] > > Sent: Tuesday, December 08, 2009 9:40 PM > > To: Dan Magenheimer; Yu, Ke; Xen-Devel (E-mail) > > Subject: RE: latest xen-unstable fails to boot on Dell D630 (likely > > hpet/Cstate problem) > >=20 > >=20 > > Dan Magenheimer wrote: > > > FYI, 20073+20093+20149 boots properly and xend starts > > > WITH max_cstate=3D2, but dom0 FAILs to boot unless > > > max_cstate=3D2 is added as a Xen boot parameter.=20 > >=20 > > Could you attach the failure log ? In addition, does this=20 > > system have ioapic support ? I think hpet doesn't use MSI, right ?=20 > > Xiantao > >=20 > >=20 > > > So I still think something changed at 20073 that > > > causes Merom+RHEL5dom0 to fail to boot due to not > > > recovering from deep C-state (after dom0 runs > > > /sbin/hwclock ... Ke Yu knows how to reproduce > > > the problem). > > >=20 > > > Thanks, > > > Dan > > >=20 > > >> -----Original Message----- > > >> From: Zhang, Xiantao [mailto:xiantao.zhang@intel.com] > > >> Sent: Tuesday, December 08, 2009 6:44 PM > > >> To: Dan Magenheimer; Yu, Ke; Xen-Devel (E-mail) > > >> Subject: RE: latest xen-unstable fails to boot on Dell=20 > D630 (likely > > >> hpet/Cstate problem)=20 > > >>=20 > > >>=20 > > >> Dan, > > >> Don't use Cset20073 for testing separately, since it needs > > >> two minor fixes check-ined by the Cset #20093 and #20149. > > >> Except this, Keir also has a typo in Cset #20076 fixed by > > >> Cset #20092. In addition, one serious issue is also > > >> introduced in #Cset20084 which is fixed in Cset #20140. I > > >> remembered Pod also has issues which can crash hypervisor > > >> before Cset #20100. Thus, it is too hard to identify this > > >> issue through bisect before #Cset20149, since these issues > > >> are introduced and fixed crossedly. Certainly, if you want > > >> to test Cset #20073, you at least have to apply the > > >> Cset#20093 and #20149 on top of it. :) > > >> Xiantao > > >>=20 > > >>=20 > > >> Dan Magenheimer wrote: > > >>>> But I'll give bisecting a try. > > >>>=20 > > >>> Looks like the problem has been around for awhile. It appears > > >>> the problem starts at c/s 20073. Xiantao cc'ed since=20 > > 20073 was his > > >>> patch.=20 > > >>>=20 > > >>> 20070 boots OK without max_cstate=3D2 > > >>>=20 > > >>> 20072 boots most of the way without max_cstate=3D2 but crashes > > >>> before a login prompt (when xend is starting I think) > > >>>=20 > > >>> 20073 FAILS to boot without max_cstate=3D2 but crashes =20 > > before a > > >>> login prompt=20 > > >>>=20 > > >>> 20082 FAILS to boot without max_cstate=3D2 but crashes > > >>> before a login prompt with max_cstate=3D2 > > >>>=20 > > >>> 20143 FAILS to boot without max_cstate=3D2 but boots OK with > > >>> max_cstate=3D2=20 > > >>>=20 > > >>> 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). > > >>>=20 > > >>>> -----Original Message----- > > >>>> From: Dan Magenheimer > > >>>> 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 > > >>>>=20 > > >>>>> case, if convenient, could you help to do some bisect to see > > >>>>> 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=20 > > regression. > > >>>> But I'll give bisecting a try. > > >>>>=20 > > >>>>> max_cstate=3D2), when dom0 hangs, is xen still alive, E.g. can > > >>>>> 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 > > >>>>>=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. > > >>>>>>=20 > > >>>>>> http://lists.xensource.com/archives/html/xen-devel/2009-10/ms > > >>>>>> g01027.html=20 > > >>>>>>=20 > > >>>>>> 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=20 > > this problem. > > >>>>>>=20 > > >>>>>> 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). > > >>>>>>=20 > > >>>>>> I did a quick scan for hpet changes and found c/s 20497, > > >>>>>> but backing it out made no difference. > > >>>>>>=20 > > >>>>>> 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 > > >>>>> Firstly, in the default boot (i.e. without specifying > > >>>>> max_cstate=3D2), when dom0 hangs, is xen still alive, E.g. can > > >>>>> Xen response to three Ctrl-'A' in serial? > > >>>>>=20 > > >>>>> If only dom0 hangs, it is probably that RTC malfunction make > > >>>>> incorrect dom0 time and lead dom0 fail to boot. Then RTC > > >>>>> emulation in hypervisor should fix this issue. > > >>>>>=20 > > >>>>> If Xen also hangs, it should be another bug, i.e. hpet > > >>>>> broadcast does not wake up CPU in deep C states. in this > > >>>>> case, if convenient, could you help to do some bisect to see > > >>>>> which cset cause this bug?=20 > > >>>>>=20 > > >>>>> Best Regards > > >>>>> Ke > >=20 > >