* Re: [PATCH 15/15] Revert "x86: default to reboot via ACPI" [not found] ` <fa.ckUqcrtVKbxAkjNggIdajBTHr9Q-6miFZF/5cTBuMpJDpNschA@public.gmane.org> @ 2008-11-07 1:30 ` Robert Hancock [not found] ` <49139A43.4000203-fVOoFLC7IWo@public.gmane.org> 2008-11-08 22:32 ` Rafael J. Wysocki 0 siblings, 2 replies; 12+ messages in thread From: Robert Hancock @ 2008-11-07 1:30 UTC (permalink / raw) To: Matthew Garrett Cc: Andrew Morton, Rafael J. Wysocki, Eric W. Biederman, Eduardo Habkost, kvm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, kexec-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Linux Kernel Mailing List, Zhao Yakui, linux-acpi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Avi Kivity, Ingo Molnar, Andrey Borzenkov, Len Brown Matthew Garrett wrote: > On Fri, Nov 07, 2008 at 09:01:19AM +0800, Zhao Yakui wrote: > >> With the help of KVM I find that the windows will be rebooted by writing >> RESET_VALUE to RESET_REG I/O port if the RESET_REG_SUP bit is not >> zero(It indicates whether ACPI reboot is supported). >> IMO maybe the ACPI reboot is the first choice. If it can't, then it will >> fall back to other mode. > > Hmm. But we're seeing some machines that end up very confused if > rebooted via ACPI. I guess we need to run Vista on them to find out how > they behave. What OSI strings did your KVM setup expose? We know that > Windows changes behaviour under various circumstances depending on which > OS the firmware requests, so it's almost possible that this is another > of those cases. Given that Windows behavior, this patch seems suspicious: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8fd145917fb62368a9b80db59562c20576238f5a This patch ignores the RESET_REG_SUP flag and just tries using the reset register anyway if it thinks it's valid. So we may attempt ACPI reset on machines which don't indicate it's supported. The patch description mentioned that some machines didn't reboot after S3 suspend without this patch. However, we recently had this patch merged: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a68823ee5285e65b51ceb96f8b13a5b4f99a6888 Is it possible that the problem fixed there is the true cause of this reboot after S3 problem? ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <49139A43.4000203-fVOoFLC7IWo@public.gmane.org>]
* Re: [PATCH 15/15] Revert "x86: default to reboot via ACPI" [not found] ` <49139A43.4000203-fVOoFLC7IWo@public.gmane.org> @ 2008-11-07 1:43 ` Matthew Garrett 2008-11-07 1:53 ` Len Brown 0 siblings, 1 reply; 12+ messages in thread From: Matthew Garrett @ 2008-11-07 1:43 UTC (permalink / raw) To: Robert Hancock Cc: Andrew Morton, Rafael J. Wysocki, Eric W. Biederman, Eduardo Habkost, kvm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, kexec-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Linux Kernel Mailing List, Zhao Yakui, linux-acpi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Avi Kivity, Ingo Molnar, Andrey Borzenkov, Len Brown On Thu, Nov 06, 2008 at 07:30:43PM -0600, Robert Hancock wrote: > http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8fd145917fb62368a9b80db59562c20576238f5a > > This patch ignores the RESET_REG_SUP flag and just tries using the reset > register anyway if it thinks it's valid. So we may attempt ACPI reset on > machines which don't indicate it's supported. Yeah, that sounds very wrong. > The patch description mentioned that some machines didn't reboot after > S3 suspend without this patch. However, we recently had this patch merged: > > http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a68823ee5285e65b51ceb96f8b13a5b4f99a6888 > > Is it possible that the problem fixed there is the true cause of this > reboot after S3 problem? Oh, yeah, could be. Given the From:, I should really have thought of that :) -- Matthew Garrett | mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 15/15] Revert "x86: default to reboot via ACPI" 2008-11-07 1:43 ` Matthew Garrett @ 2008-11-07 1:53 ` Len Brown 0 siblings, 0 replies; 12+ messages in thread From: Len Brown @ 2008-11-07 1:53 UTC (permalink / raw) To: Matthew Garrett Cc: Robert Hancock, Zhao Yakui, Andrey Borzenkov, Ingo Molnar, Eduardo Habkost, Avi Kivity, Eric W. Biederman, Andrew Morton, Rafael J. Wysocki, kexec@lists.infradead.org, kvm@vger.kernel.org, Linux Kernel Mailing List, linux-acpi@vger.kernel.org On Fri, 7 Nov 2008, Matthew Garrett wrote: > On Thu, Nov 06, 2008 at 07:30:43PM -0600, Robert Hancock wrote: > > > http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8fd145917fb62368a9b80db59562c20576238f5a > > > > This patch ignores the RESET_REG_SUP flag and just tries using the reset > > register anyway if it thinks it's valid. So we may attempt ACPI reset on > > machines which don't indicate it's supported. > > Yeah, that sounds very wrong. As it turns out, it was an incorrect guess on our part on how to be "bug compatible" and I'm reverting it per the regression report here: http://bugzilla.kernel.org/show_bug.cgi?id=11942 -Len > > The patch description mentioned that some machines didn't reboot after > > S3 suspend without this patch. However, we recently had this patch merged: > > > > http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a68823ee5285e65b51ceb96f8b13a5b4f99a6888 > > > > Is it possible that the problem fixed there is the true cause of this > > reboot after S3 problem? > > Oh, yeah, could be. Given the From:, I should really have thought of > that :) > > -- > Matthew Garrett | mjg59@srcf.ucam.org > ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 15/15] Revert "x86: default to reboot via ACPI" 2008-11-07 1:30 ` [PATCH 15/15] Revert "x86: default to reboot via ACPI" Robert Hancock [not found] ` <49139A43.4000203-fVOoFLC7IWo@public.gmane.org> @ 2008-11-08 22:32 ` Rafael J. Wysocki 1 sibling, 0 replies; 12+ messages in thread From: Rafael J. Wysocki @ 2008-11-08 22:32 UTC (permalink / raw) To: Robert Hancock, Matthew Garrett Cc: Zhao Yakui, Len Brown, Andrey Borzenkov, Ingo Molnar, Eduardo Habkost, Avi Kivity, Eric W. Biederman, Andrew Morton, kexec@lists.infradead.org, kvm@vger.kernel.org, Linux Kernel Mailing List, linux-acpi@vger.kernel.org On Friday, 7 of November 2008, Robert Hancock wrote: > Matthew Garrett wrote: > > On Fri, Nov 07, 2008 at 09:01:19AM +0800, Zhao Yakui wrote: > > > >> With the help of KVM I find that the windows will be rebooted by writing > >> RESET_VALUE to RESET_REG I/O port if the RESET_REG_SUP bit is not > >> zero(It indicates whether ACPI reboot is supported). > >> IMO maybe the ACPI reboot is the first choice. If it can't, then it will > >> fall back to other mode. > > > > Hmm. But we're seeing some machines that end up very confused if > > rebooted via ACPI. I guess we need to run Vista on them to find out how > > they behave. What OSI strings did your KVM setup expose? We know that > > Windows changes behaviour under various circumstances depending on which > > OS the firmware requests, so it's almost possible that this is another > > of those cases. > > Given that Windows behavior, this patch seems suspicious: > > http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8fd145917fb62368a9b80db59562c20576238f5a > > This patch ignores the RESET_REG_SUP flag and just tries using the reset > register anyway if it thinks it's valid. So we may attempt ACPI reset on > machines which don't indicate it's supported. > > The patch description mentioned that some machines didn't reboot after > S3 suspend without this patch. However, we recently had this patch merged: > > http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a68823ee5285e65b51ceb96f8b13a5b4f99a6888 > > Is it possible that the problem fixed there is the true cause of this > reboot after S3 problem? Generally, it is. Should it regarded as -stable material, BTW, or is it already in -stable? Matthew? Thanks, Rafael ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <1225915018-6548-1-git-send-email-ehabkost@redhat.com>]
[parent not found: <20081106143021.GD13023@elte.hu>]
[parent not found: <20081106150610.GA1644@elte.hu>]
[parent not found: <200811061853.08003.arvidjaar@mail.ru>]
* Re: [PATCH 15/15] Revert "x86: default to reboot via ACPI" [not found] ` <200811061853.08003.arvidjaar@mail.ru> @ 2008-11-06 19:50 ` Len Brown 2008-11-06 21:50 ` Matthew Garrett 0 siblings, 1 reply; 12+ messages in thread From: Len Brown @ 2008-11-06 19:50 UTC (permalink / raw) To: Andrey Borzenkov Cc: Ingo Molnar, Eduardo Habkost, Avi Kivity, Eric W. Biederman, Andrew Morton, Rafael J. Wysocki, kexec, kvm, Linux Kernel Mailing List, linux-acpi > > This reverts commit c7ffa6c26277b403920e2255d10df849bd613380. I agree that the 2.6.27 default was changed to ACPI for the wrong reason. However, I think it was the right thing to do, and if you didn't propose it, I would. My expectation is that with the ACPI default, our problem is working around a finite list of old machines that don't work; while with the default KBD, our problem is working around a potentially unbounded list of yet to be shipped machines who may only be tested and work using the ACPI method. So I recommend leaving the default as ACPI for a while to see how it goes. thanks, -Len ps. please cc: linux-acpi@vger.kernel.org on ACPI related changes. ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 15/15] Revert "x86: default to reboot via ACPI" 2008-11-06 19:50 ` Len Brown @ 2008-11-06 21:50 ` Matthew Garrett [not found] ` <20081106215011.GA6391-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org> 0 siblings, 1 reply; 12+ messages in thread From: Matthew Garrett @ 2008-11-06 21:50 UTC (permalink / raw) To: Len Brown Cc: Andrey Borzenkov, Ingo Molnar, Eduardo Habkost, Avi Kivity, Eric W. Biederman, Andrew Morton, Rafael J. Wysocki, kexec, kvm, Linux Kernel Mailing List, linux-acpi On Thu, Nov 06, 2008 at 02:50:06PM -0500, Len Brown wrote: > My expectation is that with the ACPI default, our problem > is working around a finite list of old machines that don't work; > while with the default KBD, our problem is working around > a potentially unbounded list of yet to be shipped machines > who may only be tested and work using the ACPI method. Does Windows default to using the ACPI method now? -- Matthew Garrett | mjg59@srcf.ucam.org ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <20081106215011.GA6391-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org>]
* Re: [PATCH 15/15] Revert "x86: default to reboot via ACPI" [not found] ` <20081106215011.GA6391-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org> @ 2008-11-06 22:17 ` Len Brown 2008-11-06 23:24 ` Matthew Garrett 2008-11-07 1:01 ` Zhao Yakui 0 siblings, 2 replies; 12+ messages in thread From: Len Brown @ 2008-11-06 22:17 UTC (permalink / raw) To: Matthew Garrett Cc: Andrew Morton, Eduardo Habkost, kvm-u79uwXL29TY76Z2rM5mHXA, kexec-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Linux Kernel Mailing List, Rafael J. Wysocki, linux-acpi-u79uwXL29TY76Z2rM5mHXA, Eric W. Biederman, Ingo Molnar, Andrey Borzenkov, Avi Kivity > > My expectation is that with the ACPI default, our problem > > is working around a finite list of old machines that don't work; > > while with the default KBD, our problem is working around > > a potentially unbounded list of yet to be shipped machines > > who may only be tested and work using the ACPI method. > > Does Windows default to using the ACPI method now? That is my guess, based on the fact that we've seen newer machines that don't reboot w/o using the ACPI reset reg. -Len ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 15/15] Revert "x86: default to reboot via ACPI" 2008-11-06 22:17 ` Len Brown @ 2008-11-06 23:24 ` Matthew Garrett 2008-11-07 1:01 ` Zhao Yakui 1 sibling, 0 replies; 12+ messages in thread From: Matthew Garrett @ 2008-11-06 23:24 UTC (permalink / raw) To: Len Brown Cc: Andrey Borzenkov, Ingo Molnar, Eduardo Habkost, Avi Kivity, Eric W. Biederman, Andrew Morton, Rafael J. Wysocki, kexec, kvm, Linux Kernel Mailing List, linux-acpi On Thu, Nov 06, 2008 at 05:17:25PM -0500, Len Brown wrote: > > Does Windows default to using the ACPI method now? > > That is my guess, based on the fact that we've seen > newer machines that don't reboot w/o using the ACPI reset reg. We've seen machines that won't reboot for a variety of reasons in the past. In some cases this has seemed to be due to hardware being in a state that the BIOS didn't expect. Hitting the SMI trap behind the ACPI register might work around this, but I suspect that in many cases we could achieve the same effect by spending more time trying to work out whether there's any common themes in the failures. -- Matthew Garrett | mjg59@srcf.ucam.org ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 15/15] Revert "x86: default to reboot via ACPI" 2008-11-06 22:17 ` Len Brown 2008-11-06 23:24 ` Matthew Garrett @ 2008-11-07 1:01 ` Zhao Yakui 2008-11-07 0:59 ` Matthew Garrett 1 sibling, 1 reply; 12+ messages in thread From: Zhao Yakui @ 2008-11-07 1:01 UTC (permalink / raw) To: Len Brown Cc: Matthew Garrett, Andrey Borzenkov, Ingo Molnar, Eduardo Habkost, Avi Kivity, Eric W. Biederman, Andrew Morton, Rafael J. Wysocki, kexec@lists.infradead.org, kvm@vger.kernel.org, Linux Kernel Mailing List, linux-acpi@vger.kernel.org On Fri, 2008-11-07 at 06:17 +0800, Len Brown wrote: > > > > My expectation is that with the ACPI default, our problem > > > is working around a finite list of old machines that don't work; > > > while with the default KBD, our problem is working around > > > a potentially unbounded list of yet to be shipped machines > > > who may only be tested and work using the ACPI method. > > > > Does Windows default to using the ACPI method now? > > That is my guess, based on the fact that we've seen > newer machines that don't reboot w/o using the ACPI reset reg. With the help of KVM I find that the windows will be rebooted by writing RESET_VALUE to RESET_REG I/O port if the RESET_REG_SUP bit is not zero(It indicates whether ACPI reboot is supported). IMO maybe the ACPI reboot is the first choice. If it can't, then it will fall back to other mode. Thanks. > > -Len > -- > To unsubscribe from this list: send the line "unsubscribe linux-acpi" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 15/15] Revert "x86: default to reboot via ACPI" 2008-11-07 1:01 ` Zhao Yakui @ 2008-11-07 0:59 ` Matthew Garrett [not found] ` <20081107005946.GA9254-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org> 0 siblings, 1 reply; 12+ messages in thread From: Matthew Garrett @ 2008-11-07 0:59 UTC (permalink / raw) To: Zhao Yakui Cc: Andrew Morton, Eduardo Habkost, kvm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, kexec-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Linux Kernel Mailing List, Rafael J. Wysocki, linux-acpi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Eric W. Biederman, Ingo Molnar, Andrey Borzenkov, Len Brown, Avi Kivity On Fri, Nov 07, 2008 at 09:01:19AM +0800, Zhao Yakui wrote: > With the help of KVM I find that the windows will be rebooted by writing > RESET_VALUE to RESET_REG I/O port if the RESET_REG_SUP bit is not > zero(It indicates whether ACPI reboot is supported). > IMO maybe the ACPI reboot is the first choice. If it can't, then it will > fall back to other mode. Hmm. But we're seeing some machines that end up very confused if rebooted via ACPI. I guess we need to run Vista on them to find out how they behave. What OSI strings did your KVM setup expose? We know that Windows changes behaviour under various circumstances depending on which OS the firmware requests, so it's almost possible that this is another of those cases. -- Matthew Garrett | mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <20081107005946.GA9254-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org>]
* Re: [PATCH 15/15] Revert "x86: default to reboot via ACPI" [not found] ` <20081107005946.GA9254-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org> @ 2008-11-09 10:11 ` Avi Kivity 2008-11-09 10:24 ` Matthew Garrett 0 siblings, 1 reply; 12+ messages in thread From: Avi Kivity @ 2008-11-09 10:11 UTC (permalink / raw) To: Matthew Garrett Cc: Andrew Morton, Rafael J. Wysocki, Eduardo Habkost, kvm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, kexec-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Linux Kernel Mailing List, Zhao Yakui, linux-acpi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Eric W. Biederman, Ingo Molnar, Andrey Borzenkov, Len Brown Matthew Garrett wrote: > Hmm. But we're seeing some machines that end up very confused if > rebooted via ACPI. I guess we need to run Vista on them to find out how > they behave. What OSI strings did your KVM setup expose? We know that > Windows changes behaviour under various circumstances depending on which > OS the firmware requests, so it's almost possible that this is another > of those cases. > Isn't it the other way around? The firmware changes behavior depending on how the OS identifies itself? Reboot is a fixed feature IIRC, so it cannot change depending on identification strings. -- error compiling committee.c: too many arguments to function ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 15/15] Revert "x86: default to reboot via ACPI" 2008-11-09 10:11 ` Avi Kivity @ 2008-11-09 10:24 ` Matthew Garrett 0 siblings, 0 replies; 12+ messages in thread From: Matthew Garrett @ 2008-11-09 10:24 UTC (permalink / raw) To: Avi Kivity Cc: Zhao Yakui, Len Brown, Andrey Borzenkov, Ingo Molnar, Eduardo Habkost, Eric W. Biederman, Andrew Morton, Rafael J. Wysocki, kexec@lists.infradead.org, kvm@vger.kernel.org, Linux Kernel Mailing List, linux-acpi@vger.kernel.org On Sun, Nov 09, 2008 at 12:11:03PM +0200, Avi Kivity wrote: > Matthew Garrett wrote: > >Hmm. But we're seeing some machines that end up very confused if > >rebooted via ACPI. I guess we need to run Vista on them to find out how > >they behave. What OSI strings did your KVM setup expose? We know that > >Windows changes behaviour under various circumstances depending on which > >OS the firmware requests, so it's almost possible that this is another > >of those cases. > > > > Isn't it the other way around? The firmware changes behavior depending > on how the OS identifies itself? That also happens, yes. > Reboot is a fixed feature IIRC, so it cannot change depending on > identification strings. The ID strings that the firmware requests give a good idea about which operating systems the machine has been tested with. If Vista uses the ACPI method then having the firmware request the OSI string for Vista gives us a good indication that it's safe to use the ACPI method. -- Matthew Garrett | mjg59@srcf.ucam.org ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2008-11-09 10:25 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <fa.UVpnVba3yRAWG3rGZ0sk20JE9hs@ifi.uio.no>
[not found] ` <fa.FPBNKx3BSvZHPZ+eXD4Tb+fuRYk@ifi.uio.no>
[not found] ` <fa.PvVEuEo+f/t4sLmcGyN2Tsl8zYg@ifi.uio.no>
[not found] ` <fa.zzFdOXisTZzBaE1+ueGIYmt+Z5c@ifi.uio.no>
[not found] ` <fa.vQ6HVRcPFFr1zpcXFFOjEPtDdNk@ifi.uio.no>
[not found] ` <fa.ckUqcrtVKbxAkjNggIdajBTHr9Q@ifi.uio.no>
[not found] ` <fa.ckUqcrtVKbxAkjNggIdajBTHr9Q-6miFZF/5cTBuMpJDpNschA@public.gmane.org>
2008-11-07 1:30 ` [PATCH 15/15] Revert "x86: default to reboot via ACPI" Robert Hancock
[not found] ` <49139A43.4000203-fVOoFLC7IWo@public.gmane.org>
2008-11-07 1:43 ` Matthew Garrett
2008-11-07 1:53 ` Len Brown
2008-11-08 22:32 ` Rafael J. Wysocki
[not found] <1225915018-6548-1-git-send-email-ehabkost@redhat.com>
[not found] ` <20081106143021.GD13023@elte.hu>
[not found] ` <20081106150610.GA1644@elte.hu>
[not found] ` <200811061853.08003.arvidjaar@mail.ru>
2008-11-06 19:50 ` Len Brown
2008-11-06 21:50 ` Matthew Garrett
[not found] ` <20081106215011.GA6391-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org>
2008-11-06 22:17 ` Len Brown
2008-11-06 23:24 ` Matthew Garrett
2008-11-07 1:01 ` Zhao Yakui
2008-11-07 0:59 ` Matthew Garrett
[not found] ` <20081107005946.GA9254-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org>
2008-11-09 10:11 ` Avi Kivity
2008-11-09 10:24 ` Matthew Garrett
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox