LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* Re: [PATCH 15/15] Revert "x86: default to reboot via ACPI"
[not found] ` <fa.ckUqcrtVKbxAkjNggIdajBTHr9Q@ifi.uio.no>
@ 2008-11-07 1:30 ` Robert Hancock
2008-11-07 1:43 ` Matthew Garrett
2008-11-08 22:32 ` Rafael J. Wysocki
0 siblings, 2 replies; 20+ messages in thread
From: Robert Hancock @ 2008-11-07 1:30 UTC (permalink / raw)
To: Matthew Garrett
Cc: Zhao Yakui, Len Brown, Andrey Borzenkov, Ingo Molnar,
Eduardo Habkost, Avi Kivity, Eric W. Biederman, Andrew Morton,
Rafael J. Wysocki, kexec, kvm, Linux Kernel Mailing List,
linux-acpi
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] 20+ 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
@ 2008-11-07 1:43 ` Matthew Garrett
2008-11-07 1:53 ` Len Brown
2008-11-08 22:32 ` Rafael J. Wysocki
1 sibling, 1 reply; 20+ messages in thread
From: Matthew Garrett @ 2008-11-07 1:43 UTC (permalink / raw)
To: Robert Hancock
Cc: Zhao Yakui, Len Brown, 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 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@srcf.ucam.org
^ permalink raw reply [flat|nested] 20+ 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; 20+ 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, kvm, Linux Kernel Mailing List,
linux-acpi
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] 20+ 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
2008-11-07 1:43 ` Matthew Garrett
@ 2008-11-08 22:32 ` Rafael J. Wysocki
1 sibling, 0 replies; 20+ 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, kvm, Linux Kernel Mailing List, linux-acpi
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] 20+ 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; 20+ 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, kvm, Linux Kernel Mailing List,
linux-acpi
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] 20+ messages in thread
* Re: [PATCH 15/15] Revert "x86: default to reboot via ACPI"
2008-11-07 0:59 ` Matthew Garrett
@ 2008-11-09 10:11 ` Avi Kivity
2008-11-09 10:24 ` Matthew Garrett
0 siblings, 1 reply; 20+ messages in thread
From: Avi Kivity @ 2008-11-09 10:11 UTC (permalink / raw)
To: Matthew Garrett
Cc: Zhao Yakui, Len Brown, Andrey Borzenkov, Ingo Molnar,
Eduardo Habkost, Eric W. Biederman, Andrew Morton,
Rafael J. Wysocki, kexec, kvm, Linux Kernel Mailing List,
linux-acpi
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] 20+ 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; 20+ 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, kvm, Linux Kernel Mailing List, linux-acpi
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] 20+ 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
2008-11-09 10:11 ` Avi Kivity
0 siblings, 1 reply; 20+ messages in thread
From: Matthew Garrett @ 2008-11-07 0:59 UTC (permalink / raw)
To: Zhao Yakui
Cc: Len Brown, 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 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@srcf.ucam.org
^ permalink raw reply [flat|nested] 20+ 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; 20+ 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] 20+ messages in thread
* Re: [PATCH 15/15] Revert "x86: default to reboot via ACPI"
2008-11-06 21:50 ` Matthew Garrett
@ 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; 20+ messages in thread
From: Len Brown @ 2008-11-06 22:17 UTC (permalink / raw)
To: Matthew Garrett
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
> > 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] 20+ 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
2008-11-06 22:17 ` Len Brown
0 siblings, 1 reply; 20+ 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] 20+ messages in thread
* Re: [PATCH 15/15] Revert "x86: default to reboot via ACPI"
2008-11-06 15:53 ` Andrey Borzenkov
@ 2008-11-06 19:50 ` Len Brown
2008-11-06 21:50 ` Matthew Garrett
0 siblings, 1 reply; 20+ 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] 20+ messages in thread
* Re: [PATCH 15/15] Revert "x86: default to reboot via ACPI"
2008-11-06 15:06 ` Ingo Molnar
2008-11-06 15:41 ` Eric W. Biederman
@ 2008-11-06 15:53 ` Andrey Borzenkov
2008-11-06 19:50 ` Len Brown
1 sibling, 1 reply; 20+ messages in thread
From: Andrey Borzenkov @ 2008-11-06 15:53 UTC (permalink / raw)
To: Ingo Molnar
Cc: Eduardo Habkost, Avi Kivity, Eric W. Biederman, Andrew Morton,
Rafael J. Wysocki, kexec, kvm, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 2712 bytes --]
[I had to trim direct recipients as my provider would refuse deliver
claiming it is spam]
On Thursday 06 November 2008, Ingo Molnar wrote:
>
> * Ingo Molnar <mingo@elte.hu> wrote:
>
> > > Andrey Borzenkov's patch, for example, adds a new DMI entry
> > > because reboot=acpi breaks his keyboard (even without KVM, I
> > > guess). Andrey, was that the case?
> >
> > hm, IIRC the problem was KVM in his case too.
>
> actually, Andrey's problem seems to be unrelated. So i've queued up
> the revert below in tip/x86/urgent for v2.6.28. Thanks guys!
>
Yes, I do not use KVM. Actually my CPU (PIII) does not even support
virtualization.
> Ingo
>
> ---------------->
> From 8d00450d296dedec9ada38d43b83e79cca6fd5a3 Mon Sep 17 00:00:00 2001
> From: Eduardo Habkost <ehabkost@redhat.com>
> Date: Tue, 4 Nov 2008 12:52:44 -0200
> Subject: [PATCH] Revert "x86: default to reboot via ACPI"
>
> This reverts commit c7ffa6c26277b403920e2255d10df849bd613380.
>
> the assumptio of this change was that this would not break
> any existing machine. Andrey Borzenkov reported troubles with
> the ACPI reboot method: the system would hang on reboot, necessiating
> a power cycle. Probably more systems are affected as well.
>
To be precise - system reboots but keyboard is non-functional after that.
Power off is required to clear this condition.
I am fine with either way (revert or DMI). But if problem which ACPI
reboot fixed (or worked around) is not solved differently I think
reverting to old way is better.
> Also, there are patches queued up for v2.6.29 to disable virtualization
> on emergency_restart() - which was the original motivation of
> this change.
>
> Reported-by: Andrey Borzenkov <arvidjaar@mail.ru>
> Bisected-by: Andrey Borzenkov <arvidjaar@mail.ru>
> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
> Acked-by: Avi Kivity <avi@redhat.com>
> Signed-off-by: Ingo Molnar <mingo@elte.hu>
> ---
> arch/x86/kernel/reboot.c | 6 +-----
> 1 files changed, 1 insertions(+), 5 deletions(-)
>
> diff --git a/arch/x86/kernel/reboot.c b/arch/x86/kernel/reboot.c
> index f4c93f1..724adfc 100644
> --- a/arch/x86/kernel/reboot.c
> +++ b/arch/x86/kernel/reboot.c
> @@ -29,11 +29,7 @@ EXPORT_SYMBOL(pm_power_off);
>
> static const struct desc_ptr no_idt = {};
> static int reboot_mode;
> -/*
> - * Keyboard reset and triple fault may result in INIT, not RESET, which
> - * doesn't work when we're in vmx root mode. Try ACPI first.
> - */
> -enum reboot_type reboot_type = BOOT_ACPI;
> +enum reboot_type reboot_type = BOOT_KBD;
> int reboot_force;
>
> #if defined(CONFIG_X86_32) && defined(CONFIG_SMP)
>
>
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 15/15] Revert "x86: default to reboot via ACPI"
2008-11-06 15:41 ` Eric W. Biederman
@ 2008-11-06 15:52 ` Avi Kivity
0 siblings, 0 replies; 20+ messages in thread
From: Avi Kivity @ 2008-11-06 15:52 UTC (permalink / raw)
To: Eric W. Biederman
Cc: Ingo Molnar, Eduardo Habkost, Simon Horman, Andrew Morton,
Vivek Goyal, Haren Myneni, Andrey Borzenkov, mingo,
Rafael J. Wysocki, kexec, kvm, linux-kernel
Eric W. Biederman wrote:
> If there are a number of problems with reboot and reset
> I'm wondering if we should investigate using an
> outb to port 0x92. With the right bit set you can trigger
> a toggle of the reset line on many motherboards.
>
Most likely that's what the ACPI reset describes.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 15/15] Revert "x86: default to reboot via ACPI"
2008-11-06 15:06 ` Ingo Molnar
@ 2008-11-06 15:41 ` Eric W. Biederman
2008-11-06 15:52 ` Avi Kivity
2008-11-06 15:53 ` Andrey Borzenkov
1 sibling, 1 reply; 20+ messages in thread
From: Eric W. Biederman @ 2008-11-06 15:41 UTC (permalink / raw)
To: Ingo Molnar
Cc: Eduardo Habkost, Avi Kivity, Simon Horman, Andrew Morton,
Vivek Goyal, Haren Myneni, Andrey Borzenkov, mingo,
Rafael J. Wysocki, kexec, kvm, linux-kernel
Ingo Molnar <mingo@elte.hu> writes:
> * Ingo Molnar <mingo@elte.hu> wrote:
>
>> > Andrey Borzenkov's patch, for example, adds a new DMI entry
>> > because reboot=acpi breaks his keyboard (even without KVM, I
>> > guess). Andrey, was that the case?
>>
>> hm, IIRC the problem was KVM in his case too.
>
> actually, Andrey's problem seems to be unrelated. So i've queued up
> the revert below in tip/x86/urgent for v2.6.28. Thanks guys!
If there are a number of problems with reboot and reset
I'm wondering if we should investigate using an
outb to port 0x92. With the right bit set you can trigger
a toggle of the reset line on many motherboards.
Eric
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 15/15] Revert "x86: default to reboot via ACPI"
2008-11-06 14:30 ` Ingo Molnar
@ 2008-11-06 15:06 ` Ingo Molnar
2008-11-06 15:41 ` Eric W. Biederman
2008-11-06 15:53 ` Andrey Borzenkov
0 siblings, 2 replies; 20+ messages in thread
From: Ingo Molnar @ 2008-11-06 15:06 UTC (permalink / raw)
To: Eduardo Habkost
Cc: Avi Kivity, Eric W. Biederman, Simon Horman, Andrew Morton,
Vivek Goyal, Haren Myneni, Andrey Borzenkov, mingo,
Rafael J. Wysocki, kexec, kvm, linux-kernel
* Ingo Molnar <mingo@elte.hu> wrote:
> > Andrey Borzenkov's patch, for example, adds a new DMI entry
> > because reboot=acpi breaks his keyboard (even without KVM, I
> > guess). Andrey, was that the case?
>
> hm, IIRC the problem was KVM in his case too.
actually, Andrey's problem seems to be unrelated. So i've queued up
the revert below in tip/x86/urgent for v2.6.28. Thanks guys!
Ingo
---------------->
>From 8d00450d296dedec9ada38d43b83e79cca6fd5a3 Mon Sep 17 00:00:00 2001
From: Eduardo Habkost <ehabkost@redhat.com>
Date: Tue, 4 Nov 2008 12:52:44 -0200
Subject: [PATCH] Revert "x86: default to reboot via ACPI"
This reverts commit c7ffa6c26277b403920e2255d10df849bd613380.
the assumptio of this change was that this would not break
any existing machine. Andrey Borzenkov reported troubles with
the ACPI reboot method: the system would hang on reboot, necessiating
a power cycle. Probably more systems are affected as well.
Also, there are patches queued up for v2.6.29 to disable virtualization
on emergency_restart() - which was the original motivation of
this change.
Reported-by: Andrey Borzenkov <arvidjaar@mail.ru>
Bisected-by: Andrey Borzenkov <arvidjaar@mail.ru>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Acked-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
arch/x86/kernel/reboot.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/arch/x86/kernel/reboot.c b/arch/x86/kernel/reboot.c
index f4c93f1..724adfc 100644
--- a/arch/x86/kernel/reboot.c
+++ b/arch/x86/kernel/reboot.c
@@ -29,11 +29,7 @@ EXPORT_SYMBOL(pm_power_off);
static const struct desc_ptr no_idt = {};
static int reboot_mode;
-/*
- * Keyboard reset and triple fault may result in INIT, not RESET, which
- * doesn't work when we're in vmx root mode. Try ACPI first.
- */
-enum reboot_type reboot_type = BOOT_ACPI;
+enum reboot_type reboot_type = BOOT_KBD;
int reboot_force;
#if defined(CONFIG_X86_32) && defined(CONFIG_SMP)
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 15/15] Revert "x86: default to reboot via ACPI"
2008-11-06 12:40 ` Eduardo Habkost
@ 2008-11-06 14:30 ` Ingo Molnar
2008-11-06 15:06 ` Ingo Molnar
0 siblings, 1 reply; 20+ messages in thread
From: Ingo Molnar @ 2008-11-06 14:30 UTC (permalink / raw)
To: Eduardo Habkost
Cc: Avi Kivity, Eric W. Biederman, Simon Horman, Andrew Morton,
Vivek Goyal, Haren Myneni, Andrey Borzenkov, mingo,
Rafael J. Wysocki, kexec, kvm, linux-kernel
* Eduardo Habkost <ehabkost@redhat.com> wrote:
> On Thu, Nov 06, 2008 at 08:14:45AM +0100, Ingo Molnar wrote:
> >
> > * Eduardo Habkost <ehabkost@redhat.com> wrote:
> >
> > > This reverts commit c7ffa6c26277b403920e2255d10df849bd613380.
> > >
> > > Now that we have the hooks to disable virtualization on
> > > emergency_restart(), we can get back to the BOOT_KBD reboot_type default.
> > >
> > > Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
> >
> > hm, why revert this? There's nothing wrong with the ACPI reboot
> > method, it's just that we surprise the BIOS by exiting with an unclean
> > VMX state in certain circumstances.
> >
> > if the ACPI reboot method does not work we do the KBD method as the
> > next thing in the reboot chain.
>
> I suppose there are cases where the new default broke without KVM,
> and the suggestion was to disable VMX before rebooting instead of
> changing the default.
>
> Avi changed the default because on some machines reboot=kbd breaks
> when VMX is enabled, but the regressions caused by the new default
> doesn't necessarily involve VMX.
there's another reason as well: a growing quirk-list of machines where
ACPI is the best (sometimes only) method to reboot.
> Andrey Borzenkov's patch, for example, adds a new DMI entry because
> reboot=acpi breaks his keyboard (even without KVM, I guess). Andrey,
> was that the case?
hm, IIRC the problem was KVM in his case too.
Ingo
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 15/15] Revert "x86: default to reboot via ACPI"
2008-11-06 7:14 ` Ingo Molnar
@ 2008-11-06 12:40 ` Eduardo Habkost
2008-11-06 14:30 ` Ingo Molnar
0 siblings, 1 reply; 20+ messages in thread
From: Eduardo Habkost @ 2008-11-06 12:40 UTC (permalink / raw)
To: Ingo Molnar
Cc: Avi Kivity, Eric W. Biederman, Simon Horman, Andrew Morton,
Vivek Goyal, Haren Myneni, Andrey Borzenkov, mingo,
Rafael J. Wysocki, kexec, kvm, linux-kernel
On Thu, Nov 06, 2008 at 08:14:45AM +0100, Ingo Molnar wrote:
>
> * Eduardo Habkost <ehabkost@redhat.com> wrote:
>
> > This reverts commit c7ffa6c26277b403920e2255d10df849bd613380.
> >
> > Now that we have the hooks to disable virtualization on
> > emergency_restart(), we can get back to the BOOT_KBD reboot_type default.
> >
> > Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
>
> hm, why revert this? There's nothing wrong with the ACPI reboot
> method, it's just that we surprise the BIOS by exiting with an unclean
> VMX state in certain circumstances.
>
> if the ACPI reboot method does not work we do the KBD method as the
> next thing in the reboot chain.
I suppose there are cases where the new default broke without KVM, and
the suggestion was to disable VMX before rebooting instead of changing
the default.
Avi changed the default because on some machines reboot=kbd breaks when
VMX is enabled, but the regressions caused by the new default doesn't
necessarily involve VMX.
Andrey Borzenkov's patch, for example, adds a new DMI entry because
reboot=acpi breaks his keyboard (even without KVM, I guess). Andrey,
was that the case?
--
Eduardo
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 15/15] Revert "x86: default to reboot via ACPI"
2008-11-05 19:56 ` [PATCH 15/15] Revert "x86: default to reboot via ACPI" Eduardo Habkost
@ 2008-11-06 7:14 ` Ingo Molnar
2008-11-06 12:40 ` Eduardo Habkost
0 siblings, 1 reply; 20+ messages in thread
From: Ingo Molnar @ 2008-11-06 7:14 UTC (permalink / raw)
To: Eduardo Habkost
Cc: Avi Kivity, Eric W. Biederman, Simon Horman, Andrew Morton,
Vivek Goyal, Haren Myneni, Andrey Borzenkov, mingo,
Rafael J. Wysocki, kexec, kvm, linux-kernel
* Eduardo Habkost <ehabkost@redhat.com> wrote:
> This reverts commit c7ffa6c26277b403920e2255d10df849bd613380.
>
> Now that we have the hooks to disable virtualization on
> emergency_restart(), we can get back to the BOOT_KBD reboot_type default.
>
> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hm, why revert this? There's nothing wrong with the ACPI reboot
method, it's just that we surprise the BIOS by exiting with an unclean
VMX state in certain circumstances.
if the ACPI reboot method does not work we do the KBD method as the
next thing in the reboot chain.
Ingo
^ permalink raw reply [flat|nested] 20+ messages in thread
* [PATCH 15/15] Revert "x86: default to reboot via ACPI"
2008-11-05 19:56 [PATCH 00/15] x86: disable virt on kdump and emergency_restart (v2) Eduardo Habkost
@ 2008-11-05 19:56 ` Eduardo Habkost
2008-11-06 7:14 ` Ingo Molnar
0 siblings, 1 reply; 20+ messages in thread
From: Eduardo Habkost @ 2008-11-05 19:56 UTC (permalink / raw)
To: Avi Kivity, Ingo Molnar
Cc: Eric W. Biederman, Simon Horman, Andrew Morton, Vivek Goyal,
Haren Myneni, Andrey Borzenkov, mingo, Rafael J. Wysocki, kexec,
kvm, linux-kernel, Eduardo Habkost
This reverts commit c7ffa6c26277b403920e2255d10df849bd613380.
Now that we have the hooks to disable virtualization on
emergency_restart(), we can get back to the BOOT_KBD reboot_type default.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
arch/x86/kernel/reboot.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/arch/x86/kernel/reboot.c b/arch/x86/kernel/reboot.c
index 3240491..260c131 100644
--- a/arch/x86/kernel/reboot.c
+++ b/arch/x86/kernel/reboot.c
@@ -32,11 +32,7 @@ EXPORT_SYMBOL(pm_power_off);
static const struct desc_ptr no_idt = {};
static int reboot_mode;
-/*
- * Keyboard reset and triple fault may result in INIT, not RESET, which
- * doesn't work when we're in vmx root mode. Try ACPI first.
- */
-enum reboot_type reboot_type = BOOT_ACPI;
+enum reboot_type reboot_type = BOOT_KBD;
int reboot_force;
#if defined(CONFIG_X86_32) && defined(CONFIG_SMP)
--
1.5.5.GIT
^ permalink raw reply [flat|nested] 20+ messages in thread
end of thread, other threads:[~2008-11-09 10:25 UTC | newest]
Thread overview: 20+ 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>
2008-11-07 1:30 ` [PATCH 15/15] Revert "x86: default to reboot via ACPI" Robert Hancock
2008-11-07 1:43 ` Matthew Garrett
2008-11-07 1:53 ` Len Brown
2008-11-08 22:32 ` Rafael J. Wysocki
2008-11-05 19:56 [PATCH 00/15] x86: disable virt on kdump and emergency_restart (v2) Eduardo Habkost
2008-11-05 19:56 ` [PATCH 15/15] Revert "x86: default to reboot via ACPI" Eduardo Habkost
2008-11-06 7:14 ` Ingo Molnar
2008-11-06 12:40 ` Eduardo Habkost
2008-11-06 14:30 ` Ingo Molnar
2008-11-06 15:06 ` Ingo Molnar
2008-11-06 15:41 ` Eric W. Biederman
2008-11-06 15:52 ` Avi Kivity
2008-11-06 15:53 ` Andrey Borzenkov
2008-11-06 19:50 ` Len Brown
2008-11-06 21:50 ` Matthew Garrett
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
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;
as well as URLs for NNTP newsgroup(s).