Hi, ?? Since upating to r354241 a few days ago I've been experiencing more frequent complete system lockups, with around 4 happening over the last couple of days. Prior to this I would get the occasional lockup, perhaps once a month on my laptop which is used daily. ? I'm finding it hard to determine the issue as it seems completely random, and the only course of action left open once it occurs is to hard power down the machine, which *always* seems to lead to filesystem inconsistencies upon restarting, (the file system is UFS with SU+J). ? Can anyone offer some advice as to how I can track down this issue? # uname -a FreeBSD macbook 12.1-STABLE FreeBSD 12.1-STABLE r354241 GENERIC amd64 # dmesg ---<<BOOT>>--- Copyright (c) 1992-2019 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 12.1-STABLE r354241 GENERIC amd64 FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based on LLVM 8.0.1) VT(efifb): resolution 1440x900 CPU: Intel(R) Core(TM) i7-5650U CPU @ 2.20GHz (2200.05-MHz K8-class CPU) ? Origin="GenuineIntel"? Id=0x306d4? Family=0x6? Model=0x3d Stepping=4 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=0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM> ? AMD Features2=0x121<LAHF,ABM,Prefetch> ? Structured Extended Features=0x21c2fbb<FSGSBASE,TSCADJ,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,NFPUSG,RDSEED,ADX,SMAP,PROCTRACE> ? Structured Extended Features3=0x9c000400<MD_CLEAR,IBPB,STIBP,L1DFL,SSBD> ? 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 = 8154464256 (7776 MB) Event timer "LAPIC" quality 600 ACPI APIC Table: <APPLE? Apple00> FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs FreeBSD/SMP: 1 package(s) x 2 core(s) x 2 hardware threads random: unblocking device. ioapic0 <Version 2.0> irqs 0-39 on motherboard Launching APs: 1 2 3 Timecounter "TSC-low" frequency 1100025386 Hz quality 1000 random: entropy device external interface kbd0 at kbdmux0 000.000023 [4336] netmap_init?????????????? netmap: loaded module [ath_hal] loaded module_register_init: MOD_LOAD (vesa, 0xffffffff81131fa0, 0) error 19 random: registering fast source Intel Secure Key RNG random: fast provider: "Intel Secure Key RNG" nexus0 efirtc0: <EFI Realtime Clock> on motherboard efirtc0: registered as a time-of-day clock, resolution 1.000000s cryptosoft0: <software crypto> on motherboard acpi0: <APPLE Apple00> on motherboard acpi_ec0: <Embedded Controller: GPE 0x4e, ECDT> port 0x62,0x66 on acpi0 acpi0: Power Button (fixed) hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed03fff irq 0,8 on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 950 Event timer "HPET" frequency 14318180 Hz quality 550 Event timer "HPET1" frequency 14318180 Hz quality 440 Event timer "HPET2" frequency 14318180 Hz quality 440 Event timer "HPET3" frequency 14318180 Hz quality 440 Event timer "HPET4" frequency 14318180 Hz quality 440 cpu0: <ACPI CPU> on acpi0 atrtc0: <AT realtime clock> port 0x70-0x77 on acpi0 atrtc0: registered as a time-of-day clock, resolution 1.000000s Event timer "RTC" frequency 32768 Hz quality 0 attimer0: <AT timer> port 0x40-0x43,0x50-0x53 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1808-0x180b on acpi0 pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0 pci0: <ACPI PCI bus> on pcib0 vgapci0: <VGA-compatible display> port 0x3000-0x303f mem 0xc0000000-0xc0ffffff,0xb0000000-0xbfffffff at device 2.0 on pci0 vgapci0: Boot video device hdac0: <Intel Broadwell HDA Controller> mem 0xc1610000-0xc1613fff at device 3.0 on pci0 xhci0: <Broadwell Integrated PCH-LP chipset USB 3.0 controller> mem 0xc1600000-0xc160ffff at device 20.0 on pci0 xhci0: 32 bytes context size, 64-bit DMA xhci0: Port routing mask set to 0xffffffff usbus0 on xhci0 usbus0: 5.0Gbps Super Speed USB v3.0 pci0: <simple comms> at device 22.0 (no driver attached) hdac1: <Intel Broadwell HDA Controller> mem 0xc1614000-0xc1617fff at device 27.0 on pci0 pcib1: <ACPI PCI-PCI bridge> at device 28.0 on pci0 pci1: <ACPI PCI bus> on pcib1 pcib2: <ACPI PCI-PCI bridge> at device 28.1 on pci0 pci2: <ACPI PCI bus> on pcib2 pci2: <multimedia> at device 0.0 (no driver attached) pcib3: <ACPI PCI-PCI bridge> at device 28.2 on pci0 pci3: <ACPI PCI bus> on pcib3 pci3: <network> at device 0.0 (no driver attached) pcib4: <ACPI PCI-PCI bridge> at device 28.4 on pci0 pci4: <ACPI PCI bus> on pcib4 pcib5: <ACPI PCI-PCI bridge> at device 28.5 on pci0 pci5: <ACPI PCI bus> on pcib5 ahci0: <AHCI SATA controller> mem 0xc1300000-0xc1301fff at device 0.0 on pci5 ahci0: AHCI v1.30 with 1 6Gbps ports, Port Multiplier not supported ahcich0: <AHCI channel> at channel 0 on ahci0 isab0: <PCI-ISA bridge> at device 31.0 on pci0 isa0: <ISA bus> on isab0 battery0: <ACPI Control Method Battery> on acpi0 acpi_acad0: <AC Adapter> on acpi0 acpi_lid0: <Control Method Lid Switch> on acpi0 acpi_button0: <Power Button> on acpi0 acpi_button1: <Sleep Button> on acpi0 asmc0: <Apple SMC MacBook Air 13-inch (Early 2015)> port 0x300-0x31f iomem 0xfef00000-0xfef0ffff irq 6 on acpi0 uart0: <8250 or 16450 or compatible> at port 0x3f8 irq 4 flags 0x10 on isa0 uart0: non-PNP ISA device will be removed from GENERIC in FreeBSD 12. coretemp0: <CPU On-Die Thermal Sensors> on cpu0 est0: <Enhanced SpeedStep Frequency Control> on cpu0 Timecounters tick every 1.000 msec hdacc0: <Intel Broadwell HDA CODEC> at cad 0 on hdac0 hdaa0: <Intel Broadwell Audio Function Group> at nid 1 on hdacc0 pcm0: <Intel Broadwell (HDMI/DP 8ch)> at nid 3 on hdaa0 hdacc1: <Cirrus Logic (0x4208) HDA CODEC> at cad 0 on hdac1 hdaa1: <Cirrus Logic (0x4208) Audio Function Group> at nid 1 on hdacc1 pcm1: <Cirrus Logic (0x4208) (Analog 2.0+HP/2.0)> at nid 18,16 and 24 on hdaa1 ugen0.1: <0x8086 XHCI root HUB> at usbus0 uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: <APPLE SSD SM0512G BXW1JA0Q> ATA8-ACS SATA 3.x device ada0: Serial Number S1W3NYAG303254 ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes) ada0: Command Queueing enabled ada0: 477102MB (977105060 512 byte sectors) Trying to mount root from ufs:/dev/ada0p5 [rw,noatime]... drmn0: <drmn> on vgapci0 vgapci0: child drmn0 requested pci_enable_io vgapci0: child drmn0 requested pci_enable_io [drm] Unable to create a private tmpfs mount, hugepage support will be disabled(-19). Failed to add WC MTRR for [0xb0000000-0xbfffffff]: -22; performance may suffer [drm] Got stolen memory base 0x8c000000, size 0x4000000 [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [drm] Driver supports precise vblank timestamp query. [drm] Connector eDP-1: get mode from tunables: [drm]?? - kern.vt.fb.modes.eDP-1 [drm]?? - kern.vt.fb.default_mode [drm] Connector DP-1: get mode from tunables: [drm]?? - kern.vt.fb.modes.DP-1 [drm]?? - kern.vt.fb.default_mode [drm] Connector HDMI-A-1: get mode from tunables: [drm]?? - kern.vt.fb.modes.HDMI-A-1 [drm]?? - kern.vt.fb.default_mode [drm] Connector DP-2: get mode from tunables: [drm]?? - kern.vt.fb.modes.DP-2 [drm]?? - kern.vt.fb.default_mode [drm] Connector HDMI-A-2: get mode from tunables: [drm]?? - kern.vt.fb.modes.HDMI-A-2 [drm]?? - kern.vt.fb.default_mode [drm] Initialized i915 1.6.0 20171222 for drmn0 on minor 0 uhub0: 15 ports with 15 removable, self powered VT: Replacing driver "efifb" with new "fb". start FB_INFO: type=11 height=900 width=1440 depth=32 cmsize=16 size=5185536 pbase=0xb0006000 vbase=0xfffff800b0006000 name=drmn0 flags=0x0 stride=5760 bpp=32 cmap[0]=0 cmap[1]=7f0000 cmap[2]=7f00 cmap[3]=c4a000 end FB_INFO drmn0: fb0: inteldrmfb frame buffer device lo0: link state changed to UP ugen0.2: <Apple Inc. Apple USB Ethernet Adapter> at usbus0 ugen0.3: <Apple Inc. BRCM20702 Hub> at usbus0 ugen0.4: <Apple Inc. Apple Internal Keyboard / Trackpad> at usbus0 ukbd0 on uhub0 ukbd0: <Keyboard / Boot> on usbus0 kbd1 at ukbd0 wsp0 on uhub0 wsp0: <Trackpad / Boot> on usbus0 ugen0.5: <Apple Card Reader> at usbus0 umass0 on uhub0 umass0: <Apple Card Reader, class 0/0, rev 3.00/8.20, addr 4> on usbus0 umass0:? SCSI over Bulk-Only; quirks = 0x4000 umass0:1:0: Attached to scbus1 (probe0:umass-sim0:0:0:0): REPORT LUNS. CDB: a0 00 00 00 00 00 00 00 00 10 00 00 (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error (probe0:umass-sim0:0:0:0): SCSI status: Check Condition (probe0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (probe0:umass-sim0:0:0:0): Error 6, Unretryable error da0 at umass-sim0 bus 0 scbus1 target 0 lun 0 da0: <APPLE SD Card Reader 3.00> Removable Direct Access SPC-4 SCSI device da0: Serial Number 000000000820 da0: 400.000MB/s transfers da0: Attempt to query device size failed: NOT READY, Medium not present da0: quirks=0x2<NO_6_BYTE> axe0 on uhub0 axe0: <0> on usbus0 uhid0 on uhub0 uhid0: <Device Management> on usbus0 CPU: Intel(R) Core(TM) i7-5650U CPU @ 2.20GHz (2200.05-MHz K8-class CPU) ? Origin="GenuineIntel"? Id=0x306d4? Family=0x6? Model=0x3d Stepping=4 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=0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM> ? AMD Features2=0x121<LAHF,ABM,Prefetch> ? Structured Extended Features=0x21c2fbb<FSGSBASE,TSCADJ,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,NFPUSG,RDSEED,ADX,SMAP,PROCTRACE> ? Structured Extended Features3=0x9c000400<MD_CLEAR,IBPB,STIBP,L1DFL,SSBD> ? XSAVE Features=0x1<XSAVEOPT> ? VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID ? TSC: P-state invariant, performance statistics hdac0: Unexpected unsolicited response from address 0: 00000000
Julian Elischer
2019-Nov-06 23:42 UTC
Random system lockups with 12.1-STABLE r354241 amd64
On 11/6/19 2:58 PM, James Wright wrote:> Hi, > > [...] > > ? Can anyone offer some advice as to how I can track down this issue?The first question which I couldn't see from your dmesg is "do you have ht krnel debugger configured into your kernel?"