NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/44366: poweroff doesn't work



The following reply was made to PR kern/44366; it has been noted by GNATS.

From: Jukka Ruohonen <jruohonen%iki.fi@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: mihai.chelaru%ngnetworks.ro@localhost
Subject: Re: kern/44366: poweroff doesn't work
Date: Thu, 13 Jan 2011 17:20:51 +0200

 On Thu, Jan 13, 2011 at 01:10:07PM +0000, Mihai Chelaru wrote:
 >  It still doesn't work, sorry. Moreover, I just tested 5.0/i386
 >  and 5.1 GENERIC kernels and both completes power off.
 
 Thanks to Jared D. McNeill, the bug was located. This regression was caused
 by adding detach-routines to acpi(4) followed by the commit to i386/amd64
 machdep.c:
 
 revision 1.669
 date: 2009/06/26 23:40:27;  author: dyoung;  state: Exp;  lines: +52 -27
 During a normal shutdown, gracefully tear down arbitrary stacks of
 filesystems and (pseudo-)devices, according to the algorithm at A3
 and A4, below.
 
 Proposed and discussed at
 <http://mail-index.netbsd.org/tech-kern/2009/04/20/msg004864.html>.  No
 objections.
 
 ...
 
 In particular, cpu_reboot() now runs config_detach_all(), while acpi(4) can
 not obviously be detached as it is responsible for the hardware powerdown. 
 It was also disucssed that removing the dopowerhooks() could be unsafe (even
 on x86).
 
 At the moment it is unclear how this should be resolved.
 
 - Jukka.
 


Home | Main Index | Thread Index | Old Index