Early panic at boot: exclusive sleep mutex hdac1 (HDA driver mutex) ...

From: David Wolfskill <david_at_catwhisker.org>
Date: Thu, 19 Mar 2015 07:23:19 -0700
As noted in a thread on -mobile yesterday, I'm replacing my long-serving
Dell M4400 laptop with a newer model (M4800) -- you can see -mobile
archives for additional details if you're interested.

What prompted this note was:
* When I tried to boot head/i386, I got a rather quick panic (well
  before any file systems were mounted -- and before any swap space was
  allocated, so I didn't have a place for a crash dump.

* Much to my (positive) surprise, when I looked at /var/run/dmesg.bo0t
  (after having rebooted from my stable/10 slice, and in the process
  of reviewing my kernel config to see if I could configure around
  the panic)), I found some verbose boot messages from the attempted
  boot under head.

So that latter actually provided a bit of information that might be
useful for debugging, so I copied it to
<http://www.catwhisker.org/~david/FreeBSD/m4800/>, as dmesg.boot.

Here's an excerpt from it, in case that's useful.  (I didn't want to
spam the world with the whole 74KB thing....):

FreeBSD 11.0-CURRENT #1544  r280166M/280167:1100065: Tue Mar 17 07:04:10 PDT 2015
    root_at_g1-251.catwhisker.org:/common/S4/obj/usr/src/sys/CANARY i386
FreeBSD clang version 3.6.0 (tags/RELEASE_360/final 230434) 20150225
WARNING: WITNESS option enabled, expect reduced performance.
WARNING: DIAGNOSTIC option enabled, expect reduced performance.
MEMGUARD DEBUGGING ALLOCATOR INITIALIZED:
        MEMGUARD map base: 0xc7c00000
        MEMGUARD map size: 104964 KBytes
VT: running with driver "vga".
CPU: Intel(R) Core(TM) i7-4810MQ CPU _at_ 2.80GHz (2793.59-MHz 686-class CPU)
  Origin="GenuineIntel"  Id=0x306c3  Family=0x6  Model=0x3c  Stepping=3
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x7ffafbff<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,TSCDLT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND>
  AMD Features=0x2c100000<NX,Page1GB,RDTSCP,LM>
  AMD Features2=0x21<LAHF,ABM>
  Structured Extended Features=0x27ab<FSGSBASE,TSCADJ,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID>
  XSAVE Features=0x1<XSAVEOPT>
  VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID
  TSC: P-state invariant, performance statistics
real memory  = 8589934592 (8192 MB)
avail memory = 3368755200 (3212 MB)
Event timer "LAPIC" quality 600
ACPI APIC Table: <DELL   CBX3   >
FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs
FreeBSD/SMP: 1 package(s) x 4 core(s) x 2 SMT threads
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
 cpu2 (AP): APIC ID:  2
 cpu3 (AP): APIC ID:  3
 cpu4 (AP): APIC ID:  4
 cpu5 (AP): APIC ID:  5
 cpu6 (AP): APIC ID:  6
 cpu7 (AP): APIC ID:  7
ioapic0 <Version 2.0> irqs 0-23 on motherboard
...
hdacc0: <NVIDIA (0x0042) HDA CODEC> at cad 0 on hdac0
hdaa0: <NVIDIA (0x0042) Audio Function Group> at nid 1 on hdacc0
hdaa0: Subsystem ID: 0x102805cc
hdaa0: NumGPIO=0 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=0
hdaa0: Original pins configuration:
hdaa0: nid   0x    as seq device       conn  jack    loc        color   misc
hdaa0:  4 585600f0 15 0  Digital-out   None  Digital 0x18       Unknown 0
hdaa0:  5 185600f0 15 0  Digital-out   Jack  Digital 0x18       Unknown 0
hdaa0:  6 585600f0 15 0  Digital-out   None  Digital 0x18       Unknown 0
hdaa0:  7 185600f0 15 0  Digital-out   Jack  Digital 0x18       Unknown 0
hdaa0: Patched pins configuration:
hdaa0: nid   0x    as seq device       conn  jack    loc        color   misc
hdaa0:  4 585600f0 15 0  Digital-out   None  Digital 0x18       Unknown 0 DISA
hdaa0:  5 185600f0 15 0  Digital-out   Jack  Digital 0x18       Unknown 0
hdaa0:  6 585600f0 15 0  Digital-out   None  Digital 0x18       Unknown 0 DISA
hdaa0:  7 185600f0 15 0  Digital-out   Jack  Digital 0x18       Unknown 0
hdaa0: 2 associations found:
hdaa0: Association 0 (15) out:
hdaa0:  Pin nid=5 seq=0
hdaa0: Association 1 (15) out:
hdaa0:  Pin nid=7 seq=0
hdaa0: Tracing association 0 (15)
hdaa0:  Pin 5 traced to DAC 8
hdaa0: Association 0 (15) trace succeeded
hdaa0: Tracing association 1 (15)
hdaa0:  Pin 7 traced to DAC 9
hdaa0: Association 1 (15) trace succeeded
hdaa0: Looking for additional DAC for association 0 (15)
hdaa0: Looking for additional DAC for association 1 (15)
hdaa0: Tracing input monitor
hdaa0: Tracing other input monitors
hdaa0: Tracing beeper
hdaa0: FG config/quirks: forcestereo ivref50 ivref80 ivref100 ivref
pcm0: <NVIDIA (0x0042) (HDMI/DP 8ch)> at nid 5 on hdaa0
pcm0: Playback:
pcm0:      Stream cap: 0x00000005 AC3 PCM
pcm0:         PCM cap: 0x000e07f0 16 20 24 bits, 32 44 48 88 96 176 192 KHz
pcm0:             DAC: 8
pcm0: 
pcm0:     nid=5 [pin: Digital-out (Jack)]
pcm0:       + <- nid=8 [audio output] [src: pcm]
pcm0: 
pcm0: Mixer "vol" -> "none": child=0x00000010
pcm0: Mixer "pcm": parent="vol"
pcm0: Soft PCM mixer ENABLED
pcm0: Playback channel matrix is: unknown, assuming 7.1 (disconnected)
pcm1: <NVIDIA (0x0042) (HDMI/DP 8ch)> at nid 7 on hdaa0
pcm1: Playback:
pcm1:      Stream cap: 0x00000005 AC3 PCM
pcm1:         PCM cap: 0x000e07f0 16 20 24 bits, 32 44 48 88 96 176 192 KHz
pcm1:             DAC: 9
pcm1: 
pcm1:     nid=7 [pin: Digital-out (Jack)]
pcm1:       + <- nid=9 [audio output] [src: pcm]
pcm1: 
pcm1: Mixer "vol" -> "none": child=0x00000010
pcm1: Mixer "pcm": parent="vol"
pcm1: Soft PCM mixer ENABLED
pcm1: Playback channel matrix is: unknown, assuming 7.1 (disconnected)
hdacc1: <Realtek (0x0292) HDA CODEC> at cad 0 on hdac1
hdaa1: <Realtek (0x0292) Audio Function Group> at nid 1 on hdacc1
hdaa1: Subsystem ID: 0x102805cc
hdaa1: NumGPIO=5 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1
hdaa1:  GPIO0: disabled
hdaa1:  GPIO1: disabled
hdaa1:  GPIO2: disabled
hdaa1:  GPIO3: disabled
hdaa1:  GPIO4: disabled
hdaa1: Original pins configuration:
hdaa1: nid   0x    as seq device       conn  jack    loc        color   misc
hdaa1: 18 90a60140 4  0  Mic           Fixed Digital Internal   Unknown 1
hdaa1: 19 411111f0 15 0  Speaker       None  1/8     Rear       Black   1
hdaa1: 20 90170110 1  0  Speaker       Fixed Analog  Internal   Unknown 1
hdaa1: 21 0221401f 1  15 Headphones    Jack  1/8     Front      Green   0
hdaa1: 22 01014020 2  0  Line-out      Jack  1/8     Rear       Green   0
hdaa1: 24 02a19031 3  1  Mic           Jack  1/8     Front      Pink    0
hdaa1: 25 01a1903e 3  14 Mic           Jack  1/8     Rear       Pink    0
hdaa1: 26 411111f0 15 0  Speaker       None  1/8     Rear       Black   1
hdaa1: 27 411111f0 15 0  Speaker       None  1/8     Rear       Black   1
hdaa1: 29 40700001 0  1  Modem-handset None  Unknown 0x00       Unknown 0
hdaa1: 30 411111f0 15 0  Speaker       None  1/8     Rear       Black   1
hdaa1: Patching widget caps nid=29 0x00400400 -> 0x00700400
hdaa1: Patched pins configuration:
hdaa1: nid   0x    as seq device       conn  jack    loc        color   misc
hdaa1: 18 90a60140 4  0  Mic           Fixed Digital Internal   Unknown 1
hdaa1: 19 411111f0 15 0  Speaker       None  1/8     Rear       Black   1 DISA
hdaa1: 20 90170110 1  0  Speaker       Fixed Analog  Internal   Unknown 1
hdaa1: 21 0221401f 1  15 Headphones    Jack  1/8     Front      Green   0
hdaa1: 22 01014020 2  0  Line-out      Jack  1/8     Rear       Green   0
hdaa1: 24 02a19031 3  1  Mic           Jack  1/8     Front      Pink    0
hdaa1: 25 01a1903e 3  14 Mic           Jack  1/8     Rear       Pink    0
hdaa1: 26 411111f0 15 0  Speaker       None  1/8     Rear       Black   1 DISA
hdaa1: 27 411111f0 15 0  Speaker       None  1/8     Rear       Black   1 DISA
hdaa1: 30 411111f0 15 0  Speaker       None  1/8     Rear       Black   1 DISA
Kernel page fault with the following non-sleepable locks held:
exclusive sleep mutex hdac1 (HDA driver mutex) r = 0 (0xcffa8c80) locked _at_ /usr/src/sys/dev/sound/pci/hda/hdaa.c:1571
KDB: stack backtrace:
db_trace_self_wrapper(c112e1d4,0,0,3,c14e1064,...) at 0xc0531bca = db_trace_self_wrapper+0x2a/frame 0xc2420500
kdb_backtrace(c1132951,0,cffa8c80,c10e0d7e,623,...) at 0xc0b6233d = kdb_backtrace+0x2d/frame 0xc2420568
witness_warn(5,0,c12eb2f1,c1562788,c116b27a,...) at 0xc0b851cf = witness_warn+0x40f/frame 0xc24205b8
trap_pfault(d05c8077,2,c242067c,c0e0222b,c2792710,...) at 0xc0fb6098 = trap_pfault+0x58/frame 0xc2420630
trap(c242077c) at 0xc0fb5a0e = trap+0x6be/frame 0xc2420770
calltrap() at 0xc0f9fefc = calltrap+0x6/frame 0xc2420770
--- trap 0xc, eip = 0xc08cbfff, esp = 0xc24207bc, ebp = 0xc24208d4 ---
hdaa_configure(d058b880,c10e13ec,1e,411111f0,f,...) at 0xc08cbfff = hdaa_configure+0x14af/frame 0xc24208d4
hdaa_attach(d058b880,d058b880,c2420a00,c112d5c6,80000003,...) at 0xc08c7959 = hdaa_attach+0x12c9/frame 0xc24209c0
device_attach(d058b880,4,c112cfa0,afd,d052de00,...) at 0xc0b57527 = device_attach+0x457/frame 0xc2420a14
bus_generic_attach(d058bb80,cfd0ce80,ffffffff,1be,c0b588ac,...) at 0xc0b5856f = bus_generic_attach+0x4f/frame 0xc2420a30
hdacc_attach(d058bb80,d058bb80,c2420ab0,c112d5c6,80000003,...) at 0xc08d9cfb = hdacc_attach+0x36b/frame 0xc2420a70
device_attach(d058bb80,4,c112cfa0,afd,cffaac00,...) at 0xc0b57527 = device_attach+0x457/frame 0xc2420ac8
bus_generic_attach(cfd94680,0,ffffffff,5f3,c14ad45c,...) at 0xc0b5856f = bus_generic_attach+0x4f/frame 0xc2420ae4
hdac_attach2(cffaac00,0,c112ccb7,75,cf684690,...) at 0xc08d91e6 = hdac_attach2+0x2f6/frame 0xc2420b2c
run_interrupt_driven_config_hooks(0,c1120963,48,c2420b9c,d0140b00,...) at 0xc0b53244 = run_interrupt_driven_config_hooks+0x84/frame 0xc2420b48
boot_run_interrupt_driven_config_hooks(0,0,0,0,cf684710,...) at 0xc0b534a6 = boot_run_interrupt_driven_config_hooks+0x16/frame 0xc2420bcc
mi_startup() at 0xc0ac8fd7 = mi_startup+0x107/frame 0xc2420bf8
begin() at 0xc04b808d = begin+0x22

Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0xd05c8077
fault code              = supervisor read, page not present
instruction pointer     = 0x20:0xc08cbfff
stack pointer           = 0x28:0xc24207bc
frame pointer           = 0x28:0xc24208d4
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 0 (swapper)
....

Peace,
david
-- 
David H. Wolfskill				david_at_catwhisker.org
Those who murder in the name of God or prophet are blasphemous cowards.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

Received on Thu Mar 19 2015 - 13:23:22 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:56 UTC