On Fri, Jun 22, 2012 at 12:40:45AM +0000, Jung-uk Kim wrote:
> Author: jkim
> Date: Fri Jun 22 00:40:44 2012
> New Revision: 237412
> URL: http://svn.freebsd.org/changeset/base/237412
> 
> Log:
>   Merge ACPICA 20120620.

I think it is caused by import, malloc is called while spinlock is held:

ACPI: Executed 1 blocks of module-level executable AML code
acpi0: Power Button (fixed)
panic: blockable sleep lock (sleep mutex) 16 @ 
/usr/home/kostik/work/build/bsd/DEV/src/sys/vm/uma_core.c:2040
cpuid = 0
KDB: stack backtrace:
db_trace_self_wrapper() at 0xffffffff80279d0a = db_trace_self_wrapper+0x2a
panic() at 0xffffffff80325a28 = panic+0x1d8
witness_checkorder() at 0xffffffff80377938 = witness_checkorder+0x1d8
_mtx_lock_flags() at 0xffffffff80313777 = _mtx_lock_flags+0x87
uma_zalloc_arg() at 0xffffffff804db97a = uma_zalloc_arg+0x2ea
malloc() at 0xffffffff8030f7cd = malloc+0xbd
AcpiUtAllocate() at 0xffffffff802704f1 = AcpiUtAllocate+0x31
AcpiUtAllocateZeroed() at 0xffffffff80270559 = AcpiUtAllocateZeroed+0x19
AcpiSetupGpeForWake() at 0xffffffff8025becc = AcpiSetupGpeForWake+0xfc
acpi_probe_child() at 0xffffffff802848e9 = acpi_probe_child+0x2b9
AcpiNsWalkNamespace() at 0xffffffff802686ef = AcpiNsWalkNamespace+0x15f
AcpiWalkNamespace() at 0xffffffff80268c0f = AcpiWalkNamespace+0xbf
acpi_attach() at 0xffffffff80283e43 = acpi_attach+0x993
device_attach() at 0xffffffff8035ab62 = device_attach+0x72
bus_generic_attach() at 0xffffffff8035bd3a = bus_generic_attach+0x1a
nexus_acpi_attach() at 0xffffffff804fbd89 = nexus_acpi_attach+0x69
device_attach() at 0xffffffff8035ab62 = device_attach+0x72
bus_generic_new_pass() at 0xffffffff8035bf46 = bus_generic_new_pass+0xd6
bus_set_pass() at 0xffffffff803597ba = bus_set_pass+0x7a
configure() at 0xffffffff804fd51a = configure+0xa
mi_startup() at 0xffffffff802d5c17 = mi_startup+0x77
btext() at 0xffffffff802531cc = btext+0x2c
KDB: enter: panic
[ thread pid 0 tid 100000 ]
Stopped at      0xffffffff8035fffb = kdb_enter+0x3b:    movq    
$0,0x1027d62(%rip)
db> show alllocks
Process 0 (kernel) thread 0xffffffff80837cc0 (100000)
exclusive sleep mutex Giant (Giant) r = 0 (0xffffffff8133a900) locked @ 
/usr/home/kostik/work/build/bsd/DEV/src/sys/kern/kern_module.c:116
exclusive spin mutex ACPI lock (0xfffffe000321da80) (ACPI lock 
(0xfffffe000321da80)) r = 0 (0xfffffe000321da80) locked @ 
/usr/home/kostik/work/build/bsd/DEV/src/sys/dev/acpica/Osd/OsdSynch.c:535

Attachment: pgp6HExkXhokZ.pgp
Description: PGP signature

Reply via email to