latest xen-unstable fails to boot on Dell D630 (likely hpet/Cstate problem)
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/msg01027.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=2 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.
Dan
Quoted 23 lines
-----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/msg01027.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=2 on the Xen command line allows a successful dom0 boot, so I suspect the problem is the same (or at least very similar).
Quoted 8 lines
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.
Let's firstly figure out which component the issue resides.
Firstly, in the default boot (i.e. without specifying max_cstate=2), when dom0 hangs, is xen still alive, E.g. can Xen response to three Ctrl-'A' in serial?
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.
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?
Best Regards
Ke
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 2 lines
case, if convenient, could you help to do some bisect to see which cset cause this bug?
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.
Quoted 2 lines
max_cstate=2), when dom0 hangs, is xen still alive, E.g. can Xen response to three Ctrl-'A' in serial?
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).
Quoted 60 lines
-----Original Message-----
From: Yu, Ke [mailto:[email protected]]
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)Quoted 7 lines
-----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
Quoted 16 lines
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=2 on the Xen command line allows a successful dom0 boot, so I suspect the problem is the same (or at least very similar).
Quoted 8 lines
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.
Let's firstly figure out which component the issue resides.
Firstly, in the default boot (i.e. without specifying max_cstate=2), when dom0 hangs, is xen still alive, E.g. can Xen response to three Ctrl-'A' in serial?
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.
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?
Best Regards
Ke
Quoted 1 line
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=2
20072 boots most of the way without max_cstate=2 but crashes
before a login prompt (when xend is starting I think)
20073 FAILS to boot without max_cstate=2 but crashes
before a login prompt
20082 FAILS to boot without max_cstate=2 but crashes
before a login prompt with max_cstate=2
20143 FAILS to boot without max_cstate=2 but boots OK
with max_cstate=2
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).
Quoted 86 lines
-----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)Quoted 2 lines
case, if convenient, could you help to do some bisect to see which cset cause this bug?
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.
Quoted 2 lines
max_cstate=2), when dom0 hangs, is xen still alive, E.g. can Xen response to three Ctrl-'A' in serial?
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).
Quoted 60 lines
-----Original Message-----
From: Yu, Ke [mailto:[email protected]]
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)Quoted 7 lines
-----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
Quoted 16 lines
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=2 on the Xen command line allows a successful dom0 boot, so I suspect the problem is the same (or at least very similar).
Quoted 8 lines
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.
Let's firstly figure out which component the issue resides.
Firstly, in the default boot (i.e. without specifying max_cstate=2), when dom0 hangs, is xen still alive, E.g. can Xen response to three Ctrl-'A' in serial?
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.
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?
Best Regards
Ke
Quoted 5 lines
before a login prompt (when xend is starting I think)
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).
I realized I just had to disable xend to test this and it confirmed my hypothesis.
So 20072 boots fine without max_cstate=2, while 20073 fails to boot unless max_cstate=2 is a Xen boot parameter.
Quoted 121 lines
-----Original Message-----
From: Dan Magenheimer
Sent: Tuesday, December 08, 2009 4:25 PM
To: Dan Magenheimer; Yu, Ke; Xen-Devel (E-mail)
Cc: [email protected]
Subject: RE: latest xen-unstable fails to boot on Dell D630 (likely hpet/Cstate problem)Quoted 1 line
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=2
20072 boots most of the way without max_cstate=2 but crashes
before a login prompt (when xend is starting I think)20073 FAILS to boot without max_cstate=2 but crashes
before a login prompt20082 FAILS to boot without max_cstate=2 but crashes
before a login prompt with max_cstate=220143 FAILS to boot without max_cstate=2 but boots OK
with max_cstate=2Note 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).
Quoted 17 lines
-----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)Quoted 2 lines
case, if convenient, could you help to do some bisect to see which cset cause this bug?
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.
Quoted 13 lines
Quoted 2 lines
max_cstate=2), when dom0 hangs, is xen still alive, E.g. can Xen response to three Ctrl-'A' in serial?
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).
Quoted 5 lines
-----Original Message-----
From: Yu, Ke [mailto:[email protected]]
Sent: Tuesday, December 08, 2009 12:08 AM
To: Dan Magenheimer; Xen-Devel (E-mail)
Subject: RE: latest xen-unstable fails to boot on DellD630 (likely
Quoted 56 lines
Quoted 55 lines
hpet/Cstate problem)
Quoted 7 lines
-----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
Quoted 16 lines
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=2 on the Xen command line allows a successful dom0 boot, so I suspect the problem is the same (or at least very similar).
Quoted 8 lines
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.
Let's firstly figure out which component the issue resides.
Firstly, in the default boot (i.e. without specifying max_cstate=2), when dom0 hangs, is xen still alive, E.g. can Xen response to three Ctrl-'A' in serial?
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.
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?
Best Regards
Ke
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
Quoted 107 lines · Dan Magenheimer
Quoted 1 line
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=2
20072 boots most of the way without max_cstate=2 but crashes
before a login prompt (when xend is starting I think)20073 FAILS to boot without max_cstate=2 but crashes
before a login prompt20082 FAILS to boot without max_cstate=2 but crashes
before a login prompt with max_cstate=220143 FAILS to boot without max_cstate=2 but boots OK
with max_cstate=2Note 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).
Quoted 83 lines
-----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)Quoted 2 lines
case, if convenient, could you help to do some bisect to see which cset cause this bug?
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.
Quoted 2 lines
max_cstate=2), when dom0 hangs, is xen still alive, E.g. can Xen response to three Ctrl-'A' in serial?
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).
Quoted 58 lines
-----Original Message-----
From: Yu, Ke [mailto:[email protected]]
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)Quoted 24 lines
-----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.htmlAs 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=2 on the Xen command line allows a successful dom0 boot, so I suspect the problem is the same (or at least very similar).
Quoted 8 lines
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.
Let's firstly figure out which component the issue resides.
Firstly, in the default boot (i.e. without specifying max_cstate=2), when dom0 hangs, is xen still alive, E.g. can Xen response to three Ctrl-'A' in serial?
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.
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?
Best Regards
Ke
FYI, 20073+20093+20149 boots properly and xend starts WITH max_cstate=2, but dom0 FAILs to boot unless max_cstate=2 is added as a Xen boot parameter.
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).
Thanks,
Dan
Quoted 134 lines
-----Original Message-----
From: Zhang, Xiantao [mailto:[email protected]]
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 D630 (likely hpet/Cstate problem)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. :)
XiantaoQuoted 17 lines · Dan Magenheimer
Quoted 1 line
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=2
20072 boots most of the way without max_cstate=2 but crashes
before a login prompt (when xend is starting I think)20073 FAILS to boot without max_cstate=2 but crashes
before a login prompt20082 FAILS to boot without max_cstate=2 but crashes
before a login prompt with max_cstate=2Quoted 37 lines
20143 FAILS to boot without max_cstate=2 but boots OK
with max_cstate=2Note 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).
Quoted 30 lines
-----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)Quoted 2 lines
case, if convenient, could you help to do some bisect to see which cset cause this bug?
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.
Quoted 2 lines
max_cstate=2), when dom0 hangs, is xen still alive, E.g. can Xen response to three Ctrl-'A' in serial?
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).
Quoted 5 lines
-----Original Message-----
From: Yu, Ke [mailto:[email protected]]
Sent: Tuesday, December 08, 2009 12:08 AM
To: Dan Magenheimer; Xen-Devel (E-mail)
Subject: RE: latest xen-unstable fails to boot on DellD630 (likely
Quoted 53 lines
Quoted 53 lines
Quoted 53 lines
hpet/Cstate problem)
Quoted 24 lines
-----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.htmlAs 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=2 on the Xen command line allows a successful dom0 boot, so I suspect the problem is the same (or at least very similar).
Quoted 8 lines
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.
Let's firstly figure out which component the issue resides.
Firstly, in the default boot (i.e. without specifying max_cstate=2), when dom0 hangs, is xen still alive, E.g. can Xen response to three Ctrl-'A' in serial?
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.
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?
Best Regards
Ke
Quoted 3 lines · Dan Magenheimer
FYI, 20073+20093+20149 boots properly and xend starts WITH max_cstate=2, but dom0 FAILs to boot unless max_cstate=2 is added as a Xen boot parameter.
Could you attach the failure log ? In addition, does this system have ioapic support ? I think hpet doesn't use MSI, right ? Xiantao
Quoted 140 lines
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).Thanks,
DanQuoted 131 lines
-----Original Message-----
From: Zhang, Xiantao [mailto:[email protected]]
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 D630 (likely hpet/Cstate problem)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. :)
XiantaoQuoted 107 lines · Dan Magenheimer
Quoted 1 line
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=2
20072 boots most of the way without max_cstate=2 but crashes
before a login prompt (when xend is starting I think)20073 FAILS to boot without max_cstate=2 but crashes before a
login prompt20082 FAILS to boot without max_cstate=2 but crashes
before a login prompt with max_cstate=220143 FAILS to boot without max_cstate=2 but boots OK with
max_cstate=2Note 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).
Quoted 83 lines
-----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)Quoted 2 lines
case, if convenient, could you help to do some bisect to see which cset cause this bug?
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.
Quoted 2 lines
max_cstate=2), when dom0 hangs, is xen still alive, E.g. can Xen response to three Ctrl-'A' in serial?
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).
Quoted 58 lines
-----Original Message-----
From: Yu, Ke [mailto:[email protected]]
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)Quoted 24 lines
-----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.htmlAs 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=2 on the Xen command line allows a successful dom0 boot, so I suspect the problem is the same (or at least very similar).
Quoted 8 lines
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.
Let's firstly figure out which component the issue resides.
Firstly, in the default boot (i.e. without specifying max_cstate=2), when dom0 hangs, is xen still alive, E.g. can Xen response to three Ctrl-'A' in serial?
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.
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?
Best Regards
Ke
Quoted 1 line
Could you attach the failure log ?
I can't get any failure logs because dom0 fails to boot. The failure conditions are the same as described here:
http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01027.html
However, I have attached the xm dmesg output from
a successful boot (with max_cstate=2).
Quoted 1 line
In addition, does this system have ioapic support ?
I think so. See attached log.
Quoted 1 line
I think hpet doesn't use MSI, right ?
I don't think so.
Dan
Quoted 120 lines
-----Original Message-----
From: Zhang, Xiantao [mailto:[email protected]]
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)Quoted 3 lines · Dan Magenheimer
FYI, 20073+20093+20149 boots properly and xend starts WITH max_cstate=2, but dom0 FAILs to boot unless max_cstate=2 is added as a Xen boot parameter.
Could you attach the failure log ? In addition, does this system have ioapic support ? I think hpet doesn't use MSI, right ? Xiantao
Quoted 6 lines
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).Quoted 31 lines
Thanks,
DanQuoted 28 lines
-----Original Message-----
From: Zhang, Xiantao [mailto:[email protected]]
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 D630 (likely hpet/Cstate problem)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. :)
XiantaoQuoted 4 lines · Dan Magenheimer
Quoted 1 line
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
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
patch.
20070 boots OK without max_cstate=2
20072 boots most of the way without max_cstate=2 but crashes
before a login prompt (when xend is starting I think)20073 FAILS to boot without max_cstate=2 but crashes
before a
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
login prompt
20082 FAILS to boot without max_cstate=2 but crashes
before a login prompt with max_cstate=220143 FAILS to boot without max_cstate=2 but boots OK with
max_cstate=2Note 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).
Quoted 8 lines
-----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)Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
case, if convenient, could you help to do some bisect to see which cset cause this bug?
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.
Quoted 27 lines
Quoted 27 lines
Quoted 27 lines
Quoted 27 lines
But I'll give bisecting a try.
Quoted 2 lines
max_cstate=2), when dom0 hangs, is xen still alive, E.g. can Xen response to three Ctrl-'A' in serial?
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).
Quoted 17 lines
-----Original Message-----
From: Yu, Ke [mailto:[email protected]]
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)Quoted 9 lines
-----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
Quoted 44 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
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 reproducedthis problem.
Quoted 35 lines
Quoted 35 lines
Quoted 35 lines
Quoted 35 lines
Quoted 35 lines
Quoted 9 lines
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=2 on the Xen command line allows a successful dom0 boot, so I suspect the problem is the same (or at least very similar).
Quoted 8 lines
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.
Let's firstly figure out which component the issue resides.
Firstly, in the default boot (i.e. without specifying max_cstate=2), when dom0 hangs, is xen still alive, E.g. can Xen response to three Ctrl-'A' in serial?
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.
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?
Best Regards
Ke
__ __ _____ ____ _ _ _
\ \/ /___ _ __ |___ / | ___| _ _ _ __ ___| |_ __ _| |__ | | ___ \ // _ \ \047_ \ |_ \ |___ \ __| | | | \047_ \/ __| __/ _` | \047_ \| |/ _ \ / \ __/ | | | ___) | ___) |__| |_| | | | \__ \ || (_| | |_) | | __/ /_/\_\___|_| |_| |____(_)____/ \__,_|_| |_|___/\__\__,_|_.__/|_|\___|
(XEN) Xen version 3.5-unstable (root@localdomain) (gcc version 4.1.2 20070626 (Red Hat 4.1.2-14)) Tue Dec 8 20:21:40 EST 2009 (XEN) Latest ChangeSet: Tue Dec 08 14:14:27 2009 +0000 20597:7f611de6b93c
(XEN) Command line: com1=115200,8n1 dom0_mem=256M console=com1,vga loglvl=all tmem
(XEN) Video information:
(XEN) VGA is text mode 80x25, font 8x16 (XEN) VBE/DDC methods: none; EDID transfer time: 0 seconds (XEN) EDID info not retrieved because no DDC retrieval method detected
(XEN) Disc information:
(XEN) Found 0 MBR signatures
(XEN) Found 1 EDD information structures
(XEN) Xen-e820 RAM map:
(XEN) 0000000000000000 - 000000000009cc00 (usable) (XEN) 000000000009cc00 - 00000000000a0000 (reserved) (XEN) 00000000000e0000 - 0000000000100000 (reserved) (XEN) 0000000000100000 - 000000007d6b0000 (usable) (XEN) 000000007d6b0000 - 000000007d6be000 (ACPI data) (XEN) 000000007d6be000 - 000000007d6f0000 (ACPI NVS) (XEN) 000000007d6f0000 - 000000007d700000 (reserved) (XEN) 00000000fee00000 - 00000000fee01000 (reserved) (XEN) 00000000ffa6f000 - 00000000ffa70000 (reserved) (XEN) 00000000ffb00000 - 0000000100000000 (reserved) (XEN) System RAM: 1993MB (2041372kB) (XEN) ACPI: RSDP 000F9990, 0014 (r0 ACPIAM) (XEN) ACPI: RSDT 7D6B0000, 0048 (r1 A M I OEMRSDT 5000708 MSFT 97) (XEN) ACPI: FACP 7D6B0200, 0084 (r2 A M I OEMFACP 5000708 MSFT 97) (XEN) ACPI: DSDT 7D6B0490, 6643 (r1 SDBLI9 SDBLI944 44 INTL 20051117) (XEN) ACPI: FACS 7D6BE000, 0040 (XEN) ACPI: APIC 7D6B0390, 006C (r1 A M I OEMAPIC 5000708 MSFT 97) (XEN) ACPI: MCFG 7D6B0450, 003C (r1 A M I OEMMCFG 5000708 MSFT 97) (XEN) ACPI: OEMB 7D6BE040, 0079 (r1 A M I AMI_OEM 5000708 MSFT 97) (XEN) ACPI: HPET 7D6B6AE0, 0038 (r1 A M I OEMHPET 5000708 MSFT 97) (XEN) ACPI: ASF! 7D6B6B18, 0099 (r32 LEGEND I865PASF 1 INTL 20051117) (XEN) ACPI: GSCI 7D6BE0C0, 2024 (r1 A M I GMCHSCI 5000708 MSFT 97) (XEN) ACPI: iEIT 7D6C00F0, 00B0 (r1 A M I EITTABLE 5000708 MSFT 97)
(XEN) ACPI: SSDT 7D6C0BC0, 0877 (r1 DpgPmm CpuPm 12 INTL 20051117)
(XEN) No NUMA configuration found
(XEN) Faking a node at 0000000000000000-000000007d6b0000 (XEN) Domain heap initialised
(XEN) found SMP MP-table at 000ff780
(XEN) DMI present.
(XEN) Using APIC driver default
(XEN) ACPI: PM-Timer IO Port: 0x808
(XEN) ACPI: ACPI SLEEP INFO: pm1x_cnt[804,0], pm1x_evt[800,0]
(XEN) ACPI: wakeup_vec[7d6be00c], vec_size[20]
(XEN) ACPI: Local APIC address 0xfee00000
(XEN) ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled) (XEN) Processor #0 6:15 APIC version 20
(XEN) ACPI: LAPIC (acpi_id[0x02] lapic_id[0x01] enabled) (XEN) Processor #1 6:15 APIC version 20
(XEN) ACPI: LAPIC (acpi_id[0x03] lapic_id[0x82] disabled) (XEN) ACPI: LAPIC (acpi_id[0x04] lapic_id[0x83] disabled) (XEN) ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0]) (XEN) IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23 (XEN) ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) (XEN) ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level) (XEN) ACPI: IRQ0 used by override.
(XEN) ACPI: IRQ2 used by override.
(XEN) ACPI: IRQ9 used by override.
(XEN) Enabling APIC mode: Flat. Using 1 I/O APICs
(XEN) ACPI: HPET id: 0x8086a301 base: 0xfed00000
(XEN) PCI: MCFG configuration 0: base e0000000 segment 0 buses 0 - 255 (XEN) PCI: Not using MMCONFIG.
(XEN) Using ACPI (MADT) for SMP configuration information (XEN) Using scheduler: SMP Credit Scheduler (credit)
(XEN) Initializing CPU#0
(XEN) Detected 2992.523 MHz processor.
(XEN) CPU: L1 I cache: 32K, L1 D cache: 32K
(XEN) CPU: L2 cache: 4096K
(XEN) CPU: Physical Processor ID: 0
(XEN) CPU: Processor Core ID: 0
(XEN) VMX: Supported advanced features:
(XEN) - APIC MMIO access virtualisation (XEN) - APIC TPR shadow (XEN) - Virtual NMI (XEN) - MSR direct-access bitmap
(XEN) HVM: ASIDs disabled.
(XEN) HVM: VMX enabled
(XEN) Intel machine check reporting enabled on CPU#0.
(XEN) CPU0: Thermal monitoring enabled (TM2)
(XEN) CMCI: CPU0 has no CMCI support
(XEN) I/O virtualisation disabled
(XEN) CPU0: Intel(R) Core(TM)2 Duo CPU E6850 @ 3.00GHz stepping 0b
(XEN) Booting processor 1/1 eip 8c000
(XEN) Initializing CPU#1
(XEN) CPU: L1 I cache: 32K, L1 D cache: 32K
(XEN) CPU: L2 cache: 4096K
(XEN) CPU: Physical Processor ID: 0
(XEN) CPU: Processor Core ID: 1
(XEN) HVM: ASIDs disabled.
(XEN) Intel machine check reporting enabled on CPU#1.
(XEN) CPU1: Thermal monitoring enabled (TM2)
(XEN) CMCI: CPU1 has no CMCI support
(XEN) CPU1: Intel(R) Core(TM)2 Duo CPU E6850 @ 3.00GHz stepping 0b
(XEN) Total of 2 processors activated.
(XEN) ENABLING IO-APIC IRQs
(XEN) -> Using new ACK method
(XEN) ..TIMER: vector=0xF0 apic1=0 pin1=2 apic2=-1 pin2=-1
(XEN) checking TSC synchronization across 2 CPUs: passed.
(XEN) Platform timer is 14.318MHz HPET
(XEN) Brought up 2 CPUs
(XEN) microcode.c:73:d32767 microcode: CPU1 resumed
(XEN) HPET: 4 timers in total, 0 timers will be used for broadcast
(XEN) ACPI sleep modes: S3
(XEN) mcheck_poll: Machine check polling timer started.
(XEN) *** LOADING DOMAIN 0 ***
(XEN) elf_parse_binary: phdr: paddr=0xc0100000 memsz=0x262424
(XEN) elf_parse_binary: phdr: paddr=0xc0363000 memsz=0x12743c
(XEN) elf_parse_binary: memory: 0xc0100000 -> 0xc048a43c
(XEN) elf_xen_parse_note: GUEST_OS = "linux"
(XEN) elf_xen_parse_note: GUEST_VERSION = "2.6"
(XEN) elf_xen_parse_note: XEN_VERSION = "xen-3.0"
(XEN) elf_xen_parse_note: VIRT_BASE = 0xc0000000
(XEN) elf_xen_parse_note: PADDR_OFFSET = 0xc0000000
(XEN) elf_xen_parse_note: ENTRY = 0xc0100000
(XEN) elf_xen_parse_note: HYPERCALL_PAGE = 0xc0101000
(XEN) elf_xen_parse_note: HV_START_LOW = 0xf5800000
(XEN) elf_xen_parse_note: FEATURES = "writable_page_tables|writable_descriptor_tables|auto_translated_physmap|pae_pgdir_above_4gb|supervisor_mode_kernel" (XEN) elf_xen_parse_note: PAE_MODE = "yes"
(XEN) elf_xen_parse_note: unknown xen elf note (0xd)
(XEN) elf_xen_parse_note: LOADER = "generic"
(XEN) elf_xen_parse_note: SUSPEND_CANCEL = 0x1
(XEN) elf_xen_addr_calc_check: addresses:
(XEN) virt_base = 0xc0000000 (XEN) elf_paddr_offset = 0xc0000000 (XEN) virt_offset = 0x0 (XEN) virt_kstart = 0xc0100000 (XEN) virt_kend = 0xc048a43c (XEN) virt_entry = 0xc0100000 (XEN) p2m_base = 0xffffffffffffffff
(XEN) Xen kernel: 64-bit, lsb, compat32
(XEN) Dom0 kernel: 32-bit, PAE, lsb, paddr 0xc0100000 -> 0xc048a43c (XEN) PHYSICAL MEMORY ARRANGEMENT:
(XEN) Dom0 alloc.: 000000007a000000->000000007b000000 (61440 pages to be allocated)
(XEN) VIRTUAL MEMORY ARRANGEMENT:
(XEN) Loaded kernel: 00000000c0100000->00000000c048a43c (XEN) Init. ramdisk: 00000000c048b000->00000000c0b6aa00 (XEN) Phys-Mach map: 00000000c0b6b000->00000000c0bab000 (XEN) Start info: 00000000c0bab000->00000000c0bab4b4 (XEN) Page tables: 00000000c0bac000->00000000c0bba000 (XEN) Boot stack: 00000000c0bba000->00000000c0bbb000 (XEN) TOTAL: 00000000c0000000->00000000c1000000 (XEN) ENTRY ADDRESS: 00000000c0100000
(XEN) Dom0 has maximum 2 VCPUs
(XEN) elf_load_binary: phdr 0 at 0x00000000c0100000 -> 0x00000000c0362424 (XEN) elf_load_binary: phdr 1 at 0x00000000c0363000 -> 0x00000000c041c9e4 (XEN) Scrubbing Free RAM: .................done.
(XEN) Xen trace buffers: disabled
(XEN) tmem: initialized comp=0 global-lock=0
(XEN) Std. Loglevel: All
(XEN) Guest Loglevel: All
(XEN) Xen is relinquishing VGA console.
(XEN) *** Serial input -> DOM0 (type \047CTRL-a\047 three times to switch input to Xen) (XEN) Freed 164kB init memory.
(XEN) tmem_relinquish_page: failing order=6
(XEN) tmem_relinquish_page: failing order=6
(XEN) tmem_relinquish_page: failing order=6
(XEN) tmem_relinquish_page: failing order=6
(XEN) io_apic.c:2282:
(XEN) ioapic_guest_write: apic=0, pin=2, irq=0
(XEN) ioapic_guest_write: new_entry=00000900
(XEN) ioapic_guest_write: Attempt to modify IO-APIC pin for in-use IRQ! (XEN) io_apic.c:2282:
(XEN) ioapic_guest_write: apic=0, pin=4, irq=4
(XEN) ioapic_guest_write: new_entry=00000904
(XEN) ioapic_guest_write: Attempt to modify IO-APIC pin for in-use IRQ! (XEN) io_apic.c:2282:
(XEN) ioapic_guest_write: apic=0, pin=4, irq=4
(XEN) ioapic_guest_write: new_entry=00010904
(XEN) ioapic_guest_write: Attempt to modify IO-APIC pin for in-use IRQ! (XEN) PCI add device 00:03.2
(XEN) PCI add device 00:1f.5
(XEN) PCI add device 00:1a.7
(XEN) allocated vector for irq:19
(XEN) PCI add device 00:1d.7
(XEN) allocated vector for irq:23
(XEN) PCI add device 00:1a.0
(XEN) allocated vector for irq:16
(XEN) PCI add device 00:1a.1
(XEN) allocated vector for irq:21
(XEN) PCI add device 00:1a.2
(XEN) allocated vector for irq:18
(XEN) PCI add device 00:1d.0
(XEN) PCI add device 00:1d.1
(XEN) PCI add device 00:1d.2
(XEN) PCI add device 00:1f.2
(XEN) PCI add device 00:1f.5
(XEN) PCI add device 00:03.3
(XEN) allocated vector for irq:17
(XEN) PCI add device 00:1f.3
(XEN) PCI add device 00:19.0
(XEN) allocated vector for irq:20
(XEN) PCI add device 00:1b.0
(XEN) allocated vector for irq:22
(XEN) Set CPU acpi_id(1) cpuid(0) Px State info:
(XEN) _PPC: 0
(XEN) cpuid.MWAIT[.eax=40, .ebx=40, .ecx=3, .edx=220]
(XEN) Monitor-Mwait will be used to enter C-1 state
(XEN) Set CPU acpi_id(1) cpuid(0) Px State info:
(XEN) _PCT: descriptor=130, length=12, space_id=127, bit_width=0, bit_offset=0, reserved=0, address=0
(XEN) _PCT: descriptor=130, length=12, space_id=127, bit_width=0, bit_offset=0, reserved=0, address=0
(XEN) _PSS: state_count=4
(XEN) State0: 3000MHz 89000mW 10us 10us 0x92a 0x92a
(XEN) State1: 2667MHz 76000mW 10us 10us 0x825 0x825
(XEN) State2: 2333MHz 64000mW 10us 10us 0x720 0x720
(XEN) State3: 2000MHz 53000mW 10us 10us 0x61a 0x61a
(XEN) _PSD: num_entries=5 rev=0 domain=0 coord_type=252 num_processors=2
(XEN) _PPC: 0
(XEN) xen_pminfo: @acpi_cpufreq_cpu_init,HARDWARE addr space
(XEN) CPU 0 initialization completed
(XEN) Set CPU acpi_id(2) cpuid(1) Px State info:
(XEN) _PPC: 0
(XEN) cpuid.MWAIT[.eax=40, .ebx=40, .ecx=3, .edx=220]
(XEN) Monitor-Mwait will be used to enter C-1 state
(XEN) Set CPU acpi_id(2) cpuid(1) Px State info:
(XEN) _PCT: descriptor=130, length=12, space_id=127, bit_width=0, bit_offset=0, reserved=0, address=0
(XEN) _PCT: descriptor=130, length=12, space_id=127, bit_width=0, bit_offset=0, reserved=0, address=0
(XEN) _PSS: state_count=4
(XEN) State0: 3000MHz 89000mW 10us 10us 0x92a 0x92a
(XEN) State1: 2667MHz 76000mW 10us 10us 0x825 0x825
(XEN) State2: 2333MHz 64000mW 10us 10us 0x720 0x720
(XEN) State3: 2000MHz 53000mW 10us 10us 0x61a 0x61a
(XEN) _PSD: num_entries=5 rev=0 domain=0 coord_type=252 num_processors=2
(XEN) _PPC: 0
(XEN) adding CPU 1
(XEN) no cpu_id for acpi_id 3
(XEN) no cpu_id for acpi_id 4
(XEN) microcode: CPU0 updated from revision 0xb3 to 0xb6, date = 2007-07-13 (XEN) microcode: CPU1 updated from revision 0xb3 to 0xb6, date = 2007-07-13
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Hi, Dan
We still can't reproduce this failure locally, even with Merom laptop. Do you have the dock with your Dell 630, and I think the dock should have the serial port support, and maybe you can get the failure log through it. If we can get the failure log, it should be helpful to identify this issue. Also I have analyzed the Cset #20072 and Cst20073, and have no any clue which can lead to this issue. In addition, I also talked with Ke, he said he could reproduce another issue related to hwclock, but for this issue, he also can't catch it in any platforms. :(
Thanks!
Xiantao
-----Original Message-----
From: Dan Magenheimer [mailto:[email protected]]
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 (likely hpet/Cstate problem)
Quoted 1 line
Could you attach the failure log ?
I can't get any failure logs because dom0 fails to boot. The failure conditions are the same as described here:
http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01027.html
However, I have attached the xm dmesg output from a successful boot (with max_cstate=2).
Quoted 1 line
In addition, does this system have ioapic support ?
I think so. See attached log.
Quoted 1 line
I think hpet doesn't use MSI, right ?
I don't think so.
Dan
Quoted 164 lines
-----Original Message-----
From: Zhang, Xiantao [mailto:[email protected]]
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)Quoted 3 lines · Dan Magenheimer
FYI, 20073+20093+20149 boots properly and xend starts WITH max_cstate=2, but dom0 FAILs to boot unless max_cstate=2 is added as a Xen boot parameter.
Could you attach the failure log ? In addition, does this system have ioapic support ? I think hpet doesn't use MSI, right ? Xiantao
Quoted 6 lines
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).Quoted 31 lines
Thanks,
DanQuoted 28 lines
-----Original Message-----
From: Zhang, Xiantao [mailto:[email protected]]
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 D630 (likely hpet/Cstate problem)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. :)
XiantaoQuoted 4 lines · Dan Magenheimer
Quoted 1 line
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
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
patch.
20070 boots OK without max_cstate=2
20072 boots most of the way without max_cstate=2 but crashes
before a login prompt (when xend is starting I think)20073 FAILS to boot without max_cstate=2 but crashes
before a
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
login prompt
20082 FAILS to boot without max_cstate=2 but crashes
before a login prompt with max_cstate=220143 FAILS to boot without max_cstate=2 but boots OK with
max_cstate=2Note 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).
Quoted 8 lines
-----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)Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
case, if convenient, could you help to do some bisect to see which cset cause this bug?
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.
Quoted 27 lines
Quoted 27 lines
Quoted 27 lines
Quoted 27 lines
But I'll give bisecting a try.
Quoted 2 lines
max_cstate=2), when dom0 hangs, is xen still alive, E.g. can Xen response to three Ctrl-'A' in serial?
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).
Quoted 17 lines
-----Original Message-----
From: Yu, Ke [mailto:[email protected]]
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)Quoted 9 lines
-----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.htmlQuoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
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 reproducedthis problem.
Quoted 35 lines
Quoted 35 lines
Quoted 35 lines
Quoted 35 lines
Quoted 35 lines
Quoted 9 lines
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=2 on the Xen command line allows a successful dom0 boot, so I suspect the problem is the same (or at least very similar).
Quoted 8 lines
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.
Let's firstly figure out which component the issue resides.
Firstly, in the default boot (i.e. without specifying max_cstate=2), when dom0 hangs, is xen still alive, E.g. can Xen response to three Ctrl-'A' in serial?
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.
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?
Best Regards
Ke
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=2), 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
Quoted 216 lines
-----Original Message-----
From: Zhang, Xiantao [mailto:[email protected]]
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)Hi, Dan
We still can't reproduce this failure locally, even with
Merom laptop. Do you have the dock with your Dell 630, and I think the dock should have the serial port support, and maybe you can get the failure log through it. If we can get the failure log, it should be helpful to identify this issue. Also I have analyzed the Cset #20072 and Cst20073, and have no any clue which can lead to this issue. In addition, I also talked with Ke, he said he could reproduce another issue related to hwclock, but for this issue, he also can't catch it in any platforms. :(
Thanks!
Xiantao-----Original Message-----
From: Dan Magenheimer [mailto:[email protected]]
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 (likely hpet/Cstate problem)Quoted 1 line
Could you attach the failure log ?
I can't get any failure logs because dom0 fails to boot. The failure conditions are the same as described here:
http://lists.xensource.com/archives/html/xen-devel/2009-10/msg
01027.htmlHowever, I have attached the xm dmesg output from
a successful boot (with max_cstate=2).Quoted 1 line
In addition, does this system have ioapic support ?
I think so. See attached log.
Quoted 1 line
I think hpet doesn't use MSI, right ?
I don't think so.
Dan
Quoted 8 lines
-----Original Message-----
From: Zhang, Xiantao [mailto:[email protected]]
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)Quoted 24 lines
Quoted 3 lines · Dan Magenheimer
FYI, 20073+20093+20149 boots properly and xend starts WITH max_cstate=2, but dom0 FAILs to boot unless max_cstate=2 is added as a Xen boot parameter.
Could you attach the failure log ? In addition, does this system have ioapic support ? I think hpet doesn't use MSI, right ? Xiantao
Quoted 14 lines
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).Thanks,
DanQuoted 5 lines
-----Original Message-----
From: Zhang, Xiantao [mailto:[email protected]]
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 DellD630 (likely
Quoted 132 lines
Quoted 18 lines
Quoted 18 lines
hpet/Cstate problem)
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. :)
XiantaoQuoted 5 lines
Quoted 5 lines
Quoted 4 lines · Dan Magenheimer
Quoted 1 line
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
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
patch.
20070 boots OK without max_cstate=2
20072 boots most of the way without max_cstate=2 but crashes
before a login prompt (when xend is starting I think)20073 FAILS to boot without max_cstate=2 but crashes
before a
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
login prompt
20082 FAILS to boot without max_cstate=2 but crashes
before a login prompt with max_cstate=220143 FAILS to boot without max_cstate=2 but boots OK with
max_cstate=2Note 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).
Quoted 8 lines
-----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)Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
case, if convenient, could you help to do some bisect to see which cset cause this bug?
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.
Quoted 27 lines
Quoted 27 lines
Quoted 27 lines
Quoted 27 lines
But I'll give bisecting a try.
Quoted 2 lines
max_cstate=2), when dom0 hangs, is xen still alive, E.g. can Xen response to three Ctrl-'A' in serial?
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).
Quoted 17 lines
-----Original Message-----
From: Yu, Ke [mailto:[email protected]]
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)Quoted 9 lines
-----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.htmlQuoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
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 reproducedthis problem.
Quoted 35 lines
Quoted 35 lines
Quoted 35 lines
Quoted 35 lines
Quoted 35 lines
Quoted 9 lines
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=2 on the Xen command line allows a successful dom0 boot, so I suspect the problem is the same (or at least very similar).
Quoted 8 lines
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.
Let's firstly figure out which component the issue resides.
Firstly, in the default boot (i.e. without specifying max_cstate=2), when dom0 hangs, is xen still alive, E.g. can Xen response to three Ctrl-'A' in serial?
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.
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?
Best Regards
Ke