NetBSD Problem Report #38501
From martin@duskware.de Thu Apr 24 20:55:08 2008
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 9E88663B874
for <gnats-bugs@gnats.netbsd.org>; Thu, 24 Apr 2008 20:55:08 +0000 (UTC)
Message-Id: <20080424205417.AA68763B874@narn.NetBSD.org>
Date: Thu, 24 Apr 2008 20:54:17 +0000 (UTC)
From: spott.bsdhome@gmail.com
Reply-To: spott.bsdhome@gmail.com
To: netbsd-bugs-owner@NetBSD.org
Subject: NetBSD 4.99.60 (GENERIC) kernel does not handle shutdown -r properly on my hardware
X-Send-Pr-Version: www-1.0
>Number: 38501
>Category: kern
>Synopsis: NetBSD 4.99.60 (GENERIC) kernel does not handle shutdown -r properly on my hardware
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Apr 24 21:00:00 +0000 2008
>Last-Modified: Fri Jan 08 03:00:04 +0000 2010
>Originator: Scott Anderson
>Release: NetBSD-i386-4.0-RELEASE
>Organization:
My Home
>Environment:
NetBSD Spott2 4.0 NetBSD 4.0 (CPLDL360) #0: Sat Apr 19 22:00:08 MDT 2008 Spott@:/usr/src/sys/arch/i386/compile/CPLDL360 i386
>Description:
I was asked by Jared McNeill to test the ACPI functionality of the NetBSD 4.99.60 (GENERIC) kernel he was working on. My computer is a Compaq ProLiant DL360 G1 with dual P3/1GHz processors, 1152MB ram, and a ServerWorks chipset. Using the NetBSD-4.0-RELEASE (GENERIC) kernel, my computer would freeze during boot if ACPI was enabled in the kernel. The NetBSD 4.99.60 (GENERIC) kernel booted fine with or without ACPI, however when I ran 'shutdown -r now', it would kill all processes, unmount the drives, and then just sit. It would not automatically reboot with or wihout ACPI enabled. If ACPI was enabled, I would have to hold the power button for 4 seconds to turn the power off at that time. If ACPI was not enabled, momentarily pressing the power button would turn the power off immediately at that point.
>How-To-Repeat:
Install NetBSD-i386-4.0-RELEASE on a Compaq ProLiant DL360 G1
Copy the NetBSD 4.99.60 (GENERIC) kernel into /
Reboot
SU to root
Type 'shutdown -r now'
>Fix:
A workaround exists: Manually pressing the power button to power-cycle the computer.
>Audit-Trail:
From: Andrew Doran <ad@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: kern/38501: NetBSD 4.99.60 (GENERIC) kernel does not handle shutdown -r properly on my hardware
Date: Thu, 24 Apr 2008 22:05:41 +0100
> >How-To-Repeat:
> Install NetBSD-i386-4.0-RELEASE on a Compaq ProLiant DL360 G1
> Copy the NetBSD 4.99.60 (GENERIC) kernel into /
> Reboot
> SU to root
> Type 'shutdown -r now'
> >Fix:
> A workaround exists: Manually pressing the power button to power-cycle the computer.
Note that as of a couple of months ago, the same generation DL580 system
also with a ServerWorks chipset reboots OK with ACPI. I can try a newer
kernel on it.
Andrew
From: Juan RP <xtraeme@gmail.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: kern/38501: NetBSD 4.99.60 (GENERIC) kernel does not handle
shutdown -r properly on my hardware
Date: Thu, 24 Apr 2008 23:25:03 +0200
On Thu, 24 Apr 2008 21:10:02 +0000 (UTC)
Andrew Doran <ad@netbsd.org> wrote:
> Note that as of a couple of months ago, the same generation DL580 system
> also with a ServerWorks chipset reboots OK with ACPI. I can try a newer
> kernel on it.
I don't know what might be the cause, but in time when the per-cpu
poll/select changes were committed, my system started to not able
to shutdown properly.
Just then the S5 sleep state is entered the system hangs. I've been
having this problem for 1 month or so probably.
--
Juan Romero Pardines - xtraeme at gmail|netbsd dot org
The NetBSD Project
Make your own NetBSD/x86 Live CD
http://www.netbsd.org/~xtraeme/mklivecd/
From: "Jared D. McNeill" <jmcneill@invisible.ca>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org
Subject: Re: kern/38501: NetBSD 4.99.60 (GENERIC) kernel does not handle shutdown
-r properly on my hardware
Date: Thu, 24 Apr 2008 17:27:24 -0400
Andrew Doran wrote:
> Note that as of a couple of months ago, the same generation DL580 system
> also with a ServerWorks chipset reboots OK with ACPI. I can try a newer
> kernel on it.
We don't use ACPI for reboot on x86, so we should hit the same code path
regardless.
Cheers,
From: Andrew Doran <ad@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: kern/38501: NetBSD 4.99.60 (GENERIC) kernel does not handle shutdown -r properly on my hardware
Date: Thu, 24 Apr 2008 22:33:48 +0100
On Thu, Apr 24, 2008 at 09:30:04PM +0000, Jared D. McNeill wrote:
> The following reply was made to PR kern/38501; it has been noted by GNATS.
>
> From: "Jared D. McNeill" <jmcneill@invisible.ca>
> To: gnats-bugs@NetBSD.org
> Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org,
> netbsd-bugs@netbsd.org
> Subject: Re: kern/38501: NetBSD 4.99.60 (GENERIC) kernel does not handle shutdown
> -r properly on my hardware
> Date: Thu, 24 Apr 2008 17:27:24 -0400
>
> Andrew Doran wrote:
> > Note that as of a couple of months ago, the same generation DL580 system
> > also with a ServerWorks chipset reboots OK with ACPI. I can try a newer
> > kernel on it.
>
> We don't use ACPI for reboot on x86, so we should hit the same code path
> regardless.
I wonder how far along it is getting into the reboot sequence. I don't see
why we strobe the reset pin via the keyboard controller when triple faulting
is more likely to work everywhere.
Andrew
From: "Michael L. Hitch" <mhitch@lightning.msu.montana.edu>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: kern/38501: NetBSD 4.99.60 (GENERIC) kernel does not handle
shutdown -r properly on my hardware
Date: Thu, 7 Jan 2010 19:17:40 -0700 (MST)
On Thu, 24 Apr 2008, spott.bsdhome@gmail.com wrote:
>> Description:
> I was asked by Jared McNeill to test the ACPI functionality of the
NetBSD 4.99.60 (GENERIC) kernel he was working on. My computer is a
Compaq ProLiant DL360 G1 with dual P3/1GHz processors, 1152MB ram, and a
ServerWorks chipset. Using the NetBSD-4.0-RELEASE (GENERIC) kernel, my
computer would freeze during boot if ACPI was enabled in the kernel. The
NetBSD 4.99.60 (GENERIC) kernel booted fine with or without ACPI,
however when I ran 'shutdown -r now', it would kill all processes,
unmount the drives, and then just sit. It would not automatically reboot
with or wihout ACPI enabled. If ACPI was enabled, I would have to hold
the power button for 4 seconds to turn the power off at that time. If
ACPI was not enabled, momentarily pressing the power button would turn
the power off immediately at that point.
...
>> Fix:
> A workaround exists: Manually pressing the power button to power-cycle the computer.
I saw the same thing with a DL360 G1, and tracked it down to revision
1.113 of sys/dev/pci/pci.c. Undoing that change [I just commented out the
code in pci_child_shutdown()] allowed the machine to shutdown again.
I think later I added a second CPU to the machine, and then it is unable
to boot MP with ACPI disabled, so I've been just booting without ACPI. [I
really need to submit a PR on that problem some day.]
--
Michael L. Hitch mhitch@montana.edu
Computer Consultant
Information Technology Center
Montana State University Bozeman, MT USA
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.