linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Reboot through the BIOS on newer HP laptops
@ 2005-11-24  5:21 Matthew Garrett
  2005-11-24  7:26 ` Alistair John Strachan
  2005-11-27  4:33 ` Andrew Morton
  0 siblings, 2 replies; 5+ messages in thread
From: Matthew Garrett @ 2005-11-24  5:21 UTC (permalink / raw)
  To: linux-kernel

Newer HP laptops (nc4200, nc6xxx, nc8xxx) hang on reboot with a standard 
configuration. Passing reboot=b makes them work. This patch adds a DMI 
quirk that defaults them to this mode, and doesn't appear to have any 
adverse affects on older HPs.

Signed-off-by: Matthew Garrett <mjg59@srcf.ucam.org>

--- a/arch/i386/kernel/reboot.c.orig	2005-09-20 18:54:50.000000000 +0100
+++ a/arch/i386/kernel/reboot.c	2005-09-20 18:58:11.000000000 +0100
@@ -135,6 +135,14 @@
 			DMI_MATCH(DMI_PRODUCT_NAME, "PowerEdge 2400"),
 		},
 	},
+	{       /* HP laptops have weird reboot issues */
+	        .callback = set_bios_reboot,
+		.ident = "HP Laptop",
+		.matches = {
+		        DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "HP Compaq"),
+		},
+	},
 	{ }
 };

-- 
Matthew Garrett | mjg59@srcf.ucam.org

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Reboot through the BIOS on newer HP laptops
  2005-11-24  5:21 [PATCH] Reboot through the BIOS on newer HP laptops Matthew Garrett
@ 2005-11-24  7:26 ` Alistair John Strachan
  2005-11-24  7:29   ` Matthew Garrett
  2005-11-27  4:33 ` Andrew Morton
  1 sibling, 1 reply; 5+ messages in thread
From: Alistair John Strachan @ 2005-11-24  7:26 UTC (permalink / raw)
  To: Matthew Garrett; +Cc: linux-kernel

On Thursday 24 November 2005 05:21, Matthew Garrett wrote:
> Newer HP laptops (nc4200, nc6xxx, nc8xxx) hang on reboot with a standard
> configuration. Passing reboot=b makes them work. This patch adds a DMI
> quirk that defaults them to this mode, and doesn't appear to have any
> adverse affects on older HPs.

Might be better to specify machines that actually have this issue. My NC6000 
does not have any reboot issues with current or prior kernels, and such a 
change risks regressing that.

-- 
Cheers,
Alistair.

'No sense being pessimistic, it probably wouldn't work anyway.'
Third year Computer Science undergraduate.
1F2 55 South Clerk Street, Edinburgh, UK.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Reboot through the BIOS on newer HP laptops
  2005-11-24  7:26 ` Alistair John Strachan
@ 2005-11-24  7:29   ` Matthew Garrett
  0 siblings, 0 replies; 5+ messages in thread
From: Matthew Garrett @ 2005-11-24  7:29 UTC (permalink / raw)
  To: Alistair John Strachan; +Cc: linux-kernel

On Thu, Nov 24, 2005 at 07:26:16AM +0000, Alistair John Strachan wrote:
> On Thursday 24 November 2005 05:21, Matthew Garrett wrote:
> > Newer HP laptops (nc4200, nc6xxx, nc8xxx) hang on reboot with a standard
> > configuration. Passing reboot=b makes them work. This patch adds a DMI
> > quirk that defaults them to this mode, and doesn't appear to have any
> > adverse affects on older HPs.
> 
> Might be better to specify machines that actually have this issue. My NC6000 
> does not have any reboot issues with current or prior kernels, and such a 
> change risks regressing that.

This works fine with the NC6000, and every other HP-Compaq I've been 
able to test it on (which is quite a few). The alternative is really 
quite a long list.

-- 
Matthew Garrett | mjg59@srcf.ucam.org

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Reboot through the BIOS on newer HP laptops
  2005-11-24  5:21 [PATCH] Reboot through the BIOS on newer HP laptops Matthew Garrett
  2005-11-24  7:26 ` Alistair John Strachan
@ 2005-11-27  4:33 ` Andrew Morton
  2005-11-27 11:56   ` Matthew Garrett
  1 sibling, 1 reply; 5+ messages in thread
From: Andrew Morton @ 2005-11-27  4:33 UTC (permalink / raw)
  To: Matthew Garrett; +Cc: linux-kernel

Matthew Garrett <mjg59@srcf.ucam.org> wrote:
>
> Newer HP laptops (nc4200, nc6xxx, nc8xxx) hang on reboot with a standard 
> configuration. Passing reboot=b makes them work. This patch adds a DMI 
> quirk that defaults them to this mode, and doesn't appear to have any 
> adverse affects on older HPs.
> 
> Signed-off-by: Matthew Garrett <mjg59@srcf.ucam.org>
> 
> --- a/arch/i386/kernel/reboot.c.orig	2005-09-20 18:54:50.000000000 +0100
> +++ a/arch/i386/kernel/reboot.c	2005-09-20 18:58:11.000000000 +0100
> @@ -135,6 +135,14 @@
>  			DMI_MATCH(DMI_PRODUCT_NAME, "PowerEdge 2400"),
>  		},
>  	},
> +	{       /* HP laptops have weird reboot issues */
> +	        .callback = set_bios_reboot,
> +		.ident = "HP Laptop",
> +		.matches = {
> +		        DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
> +			DMI_MATCH(DMI_PRODUCT_NAME, "HP Compaq"),
> +		},
> +	},
>  	{ }
>  };

This seems rather generic.  I recently added one entry:

	{	/* Handle problems with rebooting on HP nc6120 */
		.callback = set_bios_reboot,
		.ident = "HP Compaq nc6120",
		.matches = {
			DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
			DMI_MATCH(DMI_PRODUCT_NAME, "HP Compaq nc6120"),
		},
	},

But your patch will do this for all HP laptops, will it not?  Worrisome. 
Is it not possible to identify particular models?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Reboot through the BIOS on newer HP laptops
  2005-11-27  4:33 ` Andrew Morton
@ 2005-11-27 11:56   ` Matthew Garrett
  0 siblings, 0 replies; 5+ messages in thread
From: Matthew Garrett @ 2005-11-27 11:56 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel

On Sat, Nov 26, 2005 at 08:33:26PM -0800, Andrew Morton wrote:

> But your patch will do this for all HP laptops, will it not?  Worrisome. 
> Is it not possible to identify particular models?

Yes, but there seems to be an awfully large number of affected models 
(at least the nc4200, tc4200, nx6110, nc6120, nc6220, nc6230, nc8220, 
nc8230 and nw8240) and HP and myself couldn't figure out /why/ they 
won't reboot in the normal way, so there's a fairly good chance that the 
next generation of them will have the same problem.

It's actually a bit odd. If I write some userspace code to prod the 
keyboard controller in the same way as the kernel reboot code does, the 
system reboots. If the kernel does it, it freezes at the point where it 
pokes the keyboard controller. 
-- 
Matthew Garrett | mjg59@srcf.ucam.org

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-11-27 15:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-24  5:21 [PATCH] Reboot through the BIOS on newer HP laptops Matthew Garrett
2005-11-24  7:26 ` Alistair John Strachan
2005-11-24  7:29   ` Matthew Garrett
2005-11-27  4:33 ` Andrew Morton
2005-11-27 11:56   ` 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).