Date: Thu, 11 Mar 2021 19:57:36 -0800 From: Alastair Hogge <agh@riseup.net> To: freebsd-current@freebsd.org Subject: Re: Asus E45M1-M PRO (panic: malloc(M_WAITOK) with sleeping prohibited) Message-ID: <3db68a3f1944fa9e099796ff45f1b1a2@riseup.net> In-Reply-To: <d443584b3dffa12b03e2dc89bf19f9e2@riseup.net> References: <d443584b3dffa12b03e2dc89bf19f9e2@riseup.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Turns out, EFI boot stopped working. The following boots but fails with umass0:6:0: Attached to scbus6 Root mount waiting for: usbus5 CAM panic: malloc(M_WAITOK) with sleeping prohibited Tested with FreeBSD-14.0-CURRENT-amd64-20210311-15565e0a217-257277-mini-memstick.img OK boot [176/1976] Loading kernel... /boot/kernel/kernel text=0x17f580 text=0xe09440 text=0x6a7ae4 data=0x140 data=0x1c2648+0x43c9b8 syms=[0x8+0x187d28+0x8+0x1a8351] Loading configured modules... can't find '/boot/entropy' can't find '/etc/hostid' GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb ---<<BOOT>>--- Copyright (c) 1992-2021 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 14.0-CURRENT #0 main-n245383-15565e0a217: Thu Mar 11 06:32:09 UTC 2021 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 FreeBSD clang version 11.0.1 (git@github.com:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c3fe) WARNING: WITNESS option enabled, expect reduced performance. VT(vga): resolution 640x480 CPU: AMD E-450 APU with Radeon(tm) HD Graphics (1649.98-MHz K8-class CPU) Origin="AuthenticAMD" Id=0x500f20 Family=0x14 Model=0x2 Stepping=0 Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT> Features2=0x802209<SSE3,MON,SSSE3,CX16,POPCNT> AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM> AMD Features2=0x35ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,IBS,SKINIT,WDT> SVM: NP,NRIP,NAsids=8 TSC: P-state invariant, performance statistics real memory = 8589934592 (8192 MB) avail memory = 7845748736 (7482 MB) Event timer "LAPIC" quality 100 ACPI APIC Table: <ALASKA A M I> FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: 1 package(s) x 2 core(s) arc4random: WARNING: initial seeding bypassed the cryptographic random device because it was not yet seeded and the knob 'bypass_before_seeding' was enabled. Firmware Warning (ACPI): Optional FADT field Pm2ControlBlock has valid Length but zero Address: 0x0000000000000000/0x1 (20210105/tbfadt-796) ioapic0: MADT APIC ID 0 != hw id 3 ioapic0 <Version 2.1> irqs 0-23 Launching APs: 1 Timecounter "TSC" frequency 1649980197 Hz quality 800 random: entropy device external interface WARNING: Device "kbd" is Giant locked and may be deleted before FreeBSD 14.0. kbd1 at kbdmux0 mlx5en: Mellanox Ethernet driver 3.6.0 (December 2020) vtvga0: <VT VGA driver> smbios0: <System Management BIOS> at iomem 0xf0460-0xf047e smbios0: Version: 2.6, BCD Revision: 2.6 aesni0: No AES or SHA support. acpi0: <ALASKA A M I> acpi0: Power Button (fixed) cpu0: <ACPI CPU> on acpi0 attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0 atrtc0: registered as a time-of-day clock, resolution 1.000000s Event timer "RTC" frequency 32768 Hz quality 0 hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 950 Event timer "HPET" frequency 14318180 Hz quality 550 Event timer "HPET1" frequency 14318180 Hz quality 450 Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 acpi_timer0: <32-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0 pci0: <ACPI PCI bus> on pcib0 vgapci0: <VGA-compatible display> port 0xf000-0xf0ff mem 0xd0000000-0xdfffffff,0xfeb00000-0xfeb3ffff irq 18 at device 1.0 on pci0 vgapci0: Boot video device hdac0: <ATI (0x1314) HDA Controller> mem 0xfeb44000-0xfeb47fff irq 19 at device 1.1 on pci0 pcib1: <ACPI PCI-PCI bridge> irq 16 at device 4.0 on pci0 pci1: <ACPI PCI bus> on pcib1 igb0: <Intel(R) PRO/1000 PCI-Express Network Driver> mem 0xfe600000-0xfe6fffff,0xfe784000-0xfe787fff irq 16 at device 0.0 on pci1 igb0: Using 1024 TX descriptors and 1024 RX descriptors igb0: Using 2 RX queues 2 TX queues igb0: Using MSI-X interrupts with 3 vectors igb0: Ethernet address: a0:36:9f:07:d9:58 [103/1976] igb0: netmap queues/slots: TX 2/1024, RX 2/1024 igb1: <Intel(R) PRO/1000 PCI-Express Network Driver> mem 0xfe500000-0xfe5fffff,0xfe780000-0xfe783fff irq 17 at device 0.1 on pci1 igb1: Using 1024 TX descriptors and 1024 RX descriptors igb1: Using 2 RX queues 2 TX queues igb1: Using MSI-X interrupts with 3 vectors igb1: Ethernet address: a0:36:9f:07:d9:59 igb1: netmap queues/slots: TX 2/1024, RX 2/1024 ahci0: <AMD SB7x0/SB8x0/SB9x0 AHCI SATA controller> port 0xf140-0xf147,0xf130-0xf133,0xf120-0xf127,0xf110-0xf113,0xf100-0xf10f mem 0xfeb4f000-0xfeb4f3ff irq 19 at device 17.0 on pci0 ahci0: AHCI v1.20 with 6 6Gbps ports, Port Multiplier supported ahci0: quirks=0x22000<ATI_PMP_BUG,1MSI> ahcich0: <AHCI channel> at channel 0 on ahci0 ahcich1: <AHCI channel> at channel 1 on ahci0 ahcich2: <AHCI channel> at channel 2 on ahci0 ahcich3: <AHCI channel> at channel 3 on ahci0 ahcich4: <AHCI channel> at channel 4 on ahci0 ahcich5: <AHCI channel> at channel 5 on ahci0 ohci0: <AMD SB7x0/SB8x0/SB9x0 USB controller> mem 0xfeb4e000-0xfeb4efff irq 18 at device 18.0 on pci0 usbus0 on ohci0 usbus0: 12Mbps Full Speed USB v1.0 ehci0: <AMD SB7x0/SB8x0/SB9x0 USB 2.0 controller> mem 0xfeb4d000-0xfeb4d0ff irq 17 at device 18.2 on pci0 usbus1: EHCI version 1.0 usbus1 on ehci0 usbus1: 480Mbps High Speed USB v2.0 ohci1: <AMD SB7x0/SB8x0/SB9x0 USB controller> mem 0xfeb4c000-0xfeb4cfff irq 18 at device 19.0 on pci0 usbus2 on ohci1 usbus2: 12Mbps Full Speed USB v1.0 ehci1: <AMD SB7x0/SB8x0/SB9x0 USB 2.0 controller> mem 0xfeb4b000-0xfeb4b0ff irq 17 at device 19.2 on pci0 usbus3: EHCI version 1.0 usbus3 on ehci1 usbus3: 480Mbps High Speed USB v2.0 hdac1: <ATI SB600 HDA Controller> mem 0xfeb40000-0xfeb43fff irq 16 at device 20.2 on pci0 isab0: <PCI-ISA bridge> at device 20.3 on pci0 isa0: <ISA bus> on isab0 pcib2: <ACPI PCI-PCI bridge> at device 20.4 on pci0 pci2: <ACPI PCI bus> on pcib2 ohci2: <AMD SB7x0/SB8x0/SB9x0 USB controller> mem 0xfeb4a000-0xfeb4afff irq 18 at device 20.5 on pci0 usbus4 on ohci2 usbus4: 12Mbps Full Speed USB v1.0 pcib3: <ACPI PCI-PCI bridge> at device 21.0 on pci0 pci3: <ACPI PCI bus> on pcib3 pcib4: <PCI-PCI bridge> irq 16 at device 0.0 on pci3 pci4: <PCI bus> on pcib4 pci4: <serial bus, FireWire> at device 4.0 (no driver attached) pcib5: <ACPI PCI-PCI bridge> at device 21.2 on pci0 pci5: <ACPI PCI bus> on pcib5 pcib6: <ACPI PCI-PCI bridge> irq 18 at device 0.0 on pci5 pci6: <ACPI PCI bus> on pcib6 pci6: <serial bus, FireWire> at device 2.0 (no driver attached) pcib7: <ACPI PCI-PCI bridge> at device 21.3 on pci0 pci7: <ACPI PCI bus> on pcib7 xhci0: <ASMedia ASM1042 USB 3.0 controller> mem 0xfe800000-0xfe807fff irq 19 at device 0.0 on pci7 xhci0: 32 bytes context size, 32-bit DMA usbus5 on xhci0 usbus5: 5.0Gbps Super Speed USB v3.0 ohci3: <AMD SB7x0/SB8x0/SB9x0 USB controller> mem 0xfeb49000-0xfeb49fff irq 18 at device 22.0 on pci0 usbus6 on ohci3 usbus6: 12Mbps Full Speed USB v1.0 ehci2: <AMD SB7x0/SB8x0/SB9x0 USB 2.0 controller> mem 0xfeb48000-0xfeb480ff irq 17 at device 22.2 on pci0 usbus7: EHCI version 1.0 usbus7 on ehci2 usbus7: 480Mbps High Speed USB v2.0 acpi_button0: <Power Button> on acpi0 uart2: <16550 or compatible> port 0x3f8-0x3ff irq 4 on acpi0 uart2: console (115200,n,8,1) orm0: <ISA Option ROM> at iomem 0xce800-0xcf7ff pnpid ORM0000 on isa0 atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0 atkbd0: <AT Keyboard> irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbdc0: non-PNP ISA device will be removed from GENERIC in FreeBSD 14. hwpstate0: <Cool`n'Quiet 2.0> on cpu0 Timecounters tick every 1.000 msec hdacc0: <ATI R6xx HDA CODEC> at cad 0 on hdac0 [30/1976] hdaa0: <ATI R6xx Audio Function Group> at nid 1 on hdacc0 pcm0: <ATI R6xx (HDMI)> at nid 3 on hdaa0 hdacc1: <Realtek ALC887 HDA CODEC> at cad 0 on hdac1 hdaa1: <Realtek ALC887 Audio Function Group> at nid 1 on hdacc1 pcm1: <Realtek ALC887 (Rear Analog)> at nid 20 and 24,26 on hdaa1 pcm2: <Realtek ALC887 (Front Analog)> at nid 27 and 25 on hdaa1 pcm3: <Realtek ALC887 (Rear Digital)> at nid 30 on hdaa1 pcm4: <Realtek ALC887 (Onboard Digital)> at nid 17 on hdaa1 WARNING: WITNESS option enabled, expect reduced performance. ugen7.1: <ATI EHCI root HUB> at usbus7 ugen6.1: <ATI OHCI root HUB> at usbus6 uhub0 on usbus7 uhub1 on usbus6 uhub0: <ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus7 uhub1: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus6 ugen4.1: <ATI OHCI root HUB> at usbus4 ugen5.1: <0x1b21 XHCI root HUB> at usbus5 uhub2 on usbus4 uhub3 on usbus5 uhub3: <0x1b21 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus5 uhub2: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus4 ugen2.1: <ATI OHCI root HUB> at usbus2 ugen3.1: <ATI EHCI root HUB> at usbus3 uhub4 on usbus2 uhub5 on usbus3 uhub5: <ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus3 uhub4: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2 ugen0.1: <ATI OHCI root HUB> at usbus0 ugen1.1: <ATI EHCI root HUB> at usbus1 uhub6 on usbus0 uhub6: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0 uhub7 on usbus1 uhub7: <ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1 Trying to mount root from ufs:/dev/ufs/FreeBSD_Install [ro,noatime]... Root mount waiting for: CAM usbus0ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: <CT250MX500SSD1 M3CR023> ACS-3 ATA SATA 3.x device ada0: Serial Number 20442B2AE044 ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 512bytes) ada0: Command Queueing enabled ada0: 238475MB (488397168 512 byte sectors) usbus1 usbus2 usbus3 usbus4 usbus5 usbus6 usbus7 uhub2: 2 ports with 2 removable, self powered uhub1: 4 ports with 4 removable, self powered uhub4: 5 ports with 5 removable, self powered uhub6: 5 ports with 5 removable, self powered uhub3: 4 ports with 4 removable, self powered ugen5.2: <VIA Labs, Inc. USB3.0 Hub> at usbus5 uhub8 on uhub3 uhub8: <VIA Labs, Inc. USB3.0 Hub, class 9/0, rev 3.00/90.91, addr 1> on usbus5 Root mount waiting for: usbus1 usbus3 usbus5 usbus7 uhub0: 4 ports with 4 removable, self powered uhub8: 4 ports with 4 removable, self powered uhub5: 5 ports with 5 removable, self powered uhub7: 5 ports with 5 removable, self powered ugen7.2: <USB SanDisk 3.2Gen1> at usbus7 umass0 on uhub0 umass0: <USB SanDisk 3.2Gen1, class 0/0, rev 2.10/1.00, addr 2> on usbus7 umass0: SCSI over Bulk-Only; quirks = 0x4001 umass0:6:0: Attached to scbus6 Root mount waiting for: usbus5 CAM panic: malloc(M_WAITOK) with sleeping prohibited cpuid = 0 time = 4 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0081dcf5f0 vpanic() at vpanic+0x181/frame 0xfffffe0081dcf640 panic() at panic+0x43/frame 0xfffffe0081dcf6a0 malloc_dbg() at malloc_dbg+0xd4/frame 0xfffffe0081dcf6c0 malloc() at malloc+0x34/frame 0xfffffe0081dcf720 disk_alloc() at disk_alloc+0x1c/frame 0xfffffe0081dcf740 daregister() at daregister+0x3f4/frame 0xfffffe0081dcf9c0 cam_periph_alloc() at cam_periph_alloc+0x57b/frame 0xfffffe0081dcfa90 daasync() at daasync+0x2c2/frame 0xfffffe0081dcfb00 xpt_async_process_dev() at xpt_async_process_dev+0x152/frame 0xfffffe0081dcfb50 xpt_async_process() at xpt_async_process+0x334/frame 0xfffffe0081dcfc60 xpt_done_process() at xpt_done_process+0x3a3/frame 0xfffffe0081dcfca0 xpt_done_td() at xpt_done_td+0xf5/frame 0xfffffe0081dcfcf0 fork_exit() at fork_exit+0x80/frame 0xfffffe0081dcfd30 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe0081dcfd30 --- trap 0, rip = 0, rsp = 0, rbp = 0 --- KDB: enter: panic [ thread pid 6 tid 100043 ] Stopped at kdb_enter+0x37: movq $0,0x128bbde(%rip) db> bt Tracing pid 6 tid 100043 td 0xfffffe0010b40700 kdb_enter() at kdb_enter+0x37/frame 0xfffffe0081dcf5f0 vpanic() at vpanic+0x1b2/frame 0xfffffe0081dcf640 panic() at panic+0x43/frame 0xfffffe0081dcf6a0 malloc_dbg() at malloc_dbg+0xd4/frame 0xfffffe0081dcf6c0 malloc() at malloc+0x34/frame 0xfffffe0081dcf720 disk_alloc() at disk_alloc+0x1c/frame 0xfffffe0081dcf740 daregister() at daregister+0x3f4/frame 0xfffffe0081dcf9c0 cam_periph_alloc() at cam_periph_alloc+0x57b/frame 0xfffffe0081dcfa90 daasync() at daasync+0x2c2/frame 0xfffffe0081dcfb00 xpt_async_process_dev() at xpt_async_process_dev+0x152/frame 0xfffffe0081dcfb50 xpt_async_process() at xpt_async_process+0x334/frame 0xfffffe0081dcfc60 xpt_done_process() at xpt_done_process+0x3a3/frame 0xfffffe0081dcfca0 xpt_done_td() at xpt_done_td+0xf5/frame 0xfffffe0081dcfcf0 fork_exit() at fork_exit+0x80/frame 0xfffffe0081dcfd30 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe0081dcfd30 --- trap 0, rip = 0, rsp = 0, rbp = 0 --- db>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3db68a3f1944fa9e099796ff45f1b1a2>