Date: Thu, 19 Mar 2015 07:23:19 -0700 From: David Wolfskill <david@catwhisker.org> To: current@freebsd.org Subject: Early panic at boot: exclusive sleep mutex hdac1 (HDA driver mutex) ... Message-ID: <20150319142319.GH1215@albert.catwhisker.org>
next in thread | raw e-mail | index | archive | help
--5MRs3DbAxHy5wbhc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 PD= T 2015 root@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 @ 2.80GHz (2793.59-MHz 686-class CPU) Origin=3D"GenuineIntel" Id=3D0x306c3 Family=3D0x6 Model=3D0x3c Steppi= ng=3D3 Features=3D0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PG= E,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> Features2=3D0x7ffafbff<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,SMX,EST,TM2,S= SSE3,SDBG,FMA,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,TSCDLT,= AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND> AMD Features=3D0x2c100000<NX,Page1GB,RDTSCP,LM> AMD Features2=3D0x21<LAHF,ABM> Structured Extended Features=3D0x27ab<FSGSBASE,TSCADJ,BMI1,AVX2,SMEP,BMI2= ,ERMS,INVPCID> XSAVE Features=3D0x1<XSAVEOPT> VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID TSC: P-state invariant, performance statistics real memory =3D 8589934592 (8192 MB) avail memory =3D 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 =2E.. 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=3D0 NumGPO=3D0 NumGPI=3D0 GPIWake=3D0 GPIUnsol=3D0 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 D= ISA hdaa0: 5 185600f0 15 0 Digital-out Jack Digital 0x18 Unknown 0 hdaa0: 6 585600f0 15 0 Digital-out None Digital 0x18 Unknown 0 D= ISA hdaa0: 7 185600f0 15 0 Digital-out Jack Digital 0x18 Unknown 0 hdaa0: 2 associations found: hdaa0: Association 0 (15) out: hdaa0: Pin nid=3D5 seq=3D0 hdaa0: Association 1 (15) out: hdaa0: Pin nid=3D7 seq=3D0 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:=20 pcm0: nid=3D5 [pin: Digital-out (Jack)] pcm0: + <- nid=3D8 [audio output] [src: pcm] pcm0:=20 pcm0: Mixer "vol" -> "none": child=3D0x00000010 pcm0: Mixer "pcm": parent=3D"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:=20 pcm1: nid=3D7 [pin: Digital-out (Jack)] pcm1: + <- nid=3D9 [audio output] [src: pcm] pcm1:=20 pcm1: Mixer "vol" -> "none": child=3D0x00000010 pcm1: Mixer "pcm": parent=3D"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=3D5 NumGPO=3D0 NumGPI=3D0 GPIWake=3D0 GPIUnsol=3D1 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=3D29 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 D= ISA 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 D= ISA hdaa1: 27 411111f0 15 0 Speaker None 1/8 Rear Black 1 D= ISA hdaa1: 30 411111f0 15 0 Speaker None 1/8 Rear Black 1 D= ISA Kernel page fault with the following non-sleepable locks held: exclusive sleep mutex hdac1 (HDA driver mutex) r =3D 0 (0xcffa8c80) locked = @ /usr/src/sys/dev/sound/pci/hda/hdaa.c:1571 KDB: stack backtrace: db_trace_self_wrapper(c112e1d4,0,0,3,c14e1064,...) at 0xc0531bca =3D db_tra= ce_self_wrapper+0x2a/frame 0xc2420500 kdb_backtrace(c1132951,0,cffa8c80,c10e0d7e,623,...) at 0xc0b6233d =3D kdb_b= acktrace+0x2d/frame 0xc2420568 witness_warn(5,0,c12eb2f1,c1562788,c116b27a,...) at 0xc0b851cf =3D witness_= warn+0x40f/frame 0xc24205b8 trap_pfault(d05c8077,2,c242067c,c0e0222b,c2792710,...) at 0xc0fb6098 =3D tr= ap_pfault+0x58/frame 0xc2420630 trap(c242077c) at 0xc0fb5a0e =3D trap+0x6be/frame 0xc2420770 calltrap() at 0xc0f9fefc =3D calltrap+0x6/frame 0xc2420770 --- trap 0xc, eip =3D 0xc08cbfff, esp =3D 0xc24207bc, ebp =3D 0xc24208d4 --- hdaa_configure(d058b880,c10e13ec,1e,411111f0,f,...) at 0xc08cbfff =3D hdaa_= configure+0x14af/frame 0xc24208d4 hdaa_attach(d058b880,d058b880,c2420a00,c112d5c6,80000003,...) at 0xc08c7959= =3D hdaa_attach+0x12c9/frame 0xc24209c0 device_attach(d058b880,4,c112cfa0,afd,d052de00,...) at 0xc0b57527 =3D devic= e_attach+0x457/frame 0xc2420a14 bus_generic_attach(d058bb80,cfd0ce80,ffffffff,1be,c0b588ac,...) at 0xc0b585= 6f =3D bus_generic_attach+0x4f/frame 0xc2420a30 hdacc_attach(d058bb80,d058bb80,c2420ab0,c112d5c6,80000003,...) at 0xc08d9cf= b =3D hdacc_attach+0x36b/frame 0xc2420a70 device_attach(d058bb80,4,c112cfa0,afd,cffaac00,...) at 0xc0b57527 =3D devic= e_attach+0x457/frame 0xc2420ac8 bus_generic_attach(cfd94680,0,ffffffff,5f3,c14ad45c,...) at 0xc0b5856f =3D = bus_generic_attach+0x4f/frame 0xc2420ae4 hdac_attach2(cffaac00,0,c112ccb7,75,cf684690,...) at 0xc08d91e6 =3D hdac_at= tach2+0x2f6/frame 0xc2420b2c run_interrupt_driven_config_hooks(0,c1120963,48,c2420b9c,d0140b00,...) at 0= xc0b53244 =3D run_interrupt_driven_config_hooks+0x84/frame 0xc2420b48 boot_run_interrupt_driven_config_hooks(0,0,0,0,cf684710,...) at 0xc0b534a6 = =3D boot_run_interrupt_driven_config_hooks+0x16/frame 0xc2420bcc mi_startup() at 0xc0ac8fd7 =3D mi_startup+0x107/frame 0xc2420bf8 begin() at 0xc04b808d =3D begin+0x22 Fatal trap 12: page fault while in kernel mode cpuid =3D 0; apic id =3D 00 fault virtual address =3D 0xd05c8077 fault code =3D supervisor read, page not present instruction pointer =3D 0x20:0xc08cbfff stack pointer =3D 0x28:0xc24207bc frame pointer =3D 0x28:0xc24208d4 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, def32 1, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 0 (swapper) =2E... Peace, david --=20 David H. Wolfskill david@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. --5MRs3DbAxHy5wbhc Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJVCtvWXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4RThEMDY4QTIxMjc1MDZFRDIzODYzRTc4 QTY3RjlDOERFRjQxOTNCAAoJEIpn+cje9Bk77eAP/1Q+Fe+8hwoLNsaV4oZzy0bF ZV90R1GVf+8LAwNa2x0UAKXQQYJ0xqiZfWuwOnBaNkOihIKTgcw8Qpe5FJ+T7/aS gAZvYbqOHDIyfoha2sA1kGVVa6b+S2FMCq3nlFUy0nUuM0QpumAp66cM78Y/rd7N JbWabf1+OauCbuenXCi1OMY820ACaTc1JN8tAamzCkwAVeiCFG2sr5yQdFp5ITvP pgfFWKjoTC+4NJ6FHcJxO85shVeHVmJggsFJ9m28DqnjHXJd9CdPLozSzti/V9if M79v9tX4Ri9KzZAEhvttpXeiiRsO958+wIFq28L0zucdY5mSBZuvQoRtHC8cPgC/ mdqFCFItRZYfzeEgmOYl/r2b6xmdlmsK7yOxk7RrxfHmdQ9eSBkzLCJ6A09SqLNU p8DAce4vvEJunFpo7yF5JJXi0CSMpY2FT3bkstUb/Ivcq4Mvz0ETqXTqljYk6XEn AwW7y/U1TFNqetgOAS+KQaXBG9sQteymJNXlln6kM3/Bv9XZBP0hyKNL4VvnWdrD pf50VBac6P0EmOuCBboy7kH+f04OaZy3AQBmvnLmOrSr2baNXuePzO7bWkjc0e7N +ny0ipzXJXQjF9KFSIGR+2lG71Bhk6rxEHEt4cBCZDz8UANC+ADycjbWqf5Edpp8 aftoZIUdYhOf3l1nywzV =UOws -----END PGP SIGNATURE----- --5MRs3DbAxHy5wbhc--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150319142319.GH1215>