NetBSD-Bugs archive

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

Re: kern/39141 (kernel crash on shutdown when system power off)



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

From: Jukka Ruohonen <jruohonen%iki.fi@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/39141 (kernel crash on shutdown when system power off)
Date: Tue, 6 Jul 2010 13:11:03 +0300

 On Thu, Apr 02, 2009 at 03:30:02AM +0000, Takahiro Kambe wrote:
 >  Sadly, no change.
 >  
 >  unmounting file systems... done
 >  acpi0: entering state 5
 >  panic: cpu_switchto: switching above IPL_SCHED (8)
 >  ...
 
 Can you try the following patch?
 
 This is a *wild* guess based on the traces posted in the thread:
 
 http://mail-index.netbsd.org/current-users/2008/11/22/msg006196.html
 
 Index: acpi.c
 ===================================================================
 RCS file: /cvsroot/src/sys/dev/acpi/acpi.c,v
 retrieving revision 1.205
 diff -u -p -r1.205 acpi.c
 --- acpi.c     2 Jul 2010 05:18:38 -0000       1.205
 +++ acpi.c     6 Jul 2010 10:07:13 -0000
 @@ -1481,6 +1481,11 @@ acpi_enter_sleep_state(struct acpi_softc
                        break;
                }
  
 +              /*
 +               * Ensure that all GPEs are disabled before entering S5.
 +               */
 +              AcpiDisableAllGpes();
 +
                DELAY(1000000);
  
                sc->sc_sleepstate = state;
 


Home | Main Index | Thread Index | Old Index