On Sun, Jan 15, 2017 at 12:03:18PM +0200, [email protected] wrote:
> >Synopsis:    apu2b4 drops to ddb after upgrading latest snapshot
> >Category:    kernel
> >Environment:
>       System      : OpenBSD 6.0
>       Details     : OpenBSD 6.0-current (GENERIC.MP) #142: Sat Jan 14 
> 20:29:59 MST 2017
>                        
> [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> 
>       Architecture: OpenBSD.amd64
>       Machine     : amd64
> >Description:
>       System drops to ddb at random intervals after upgrading to latest 
> snapshot.
>       This seems to be related to 11n changes.
>       I got following from ddb:

Can you show me the list of associated clients (client MAC addresses)
before it crashes?
I would like to see if I can find a client device which triggers this bug.

While the interface is running in hostap mode, run 'ifconfig athn0 scan'
to get this list.
Alternatively you could run 'ifconfig athn0 debug' before bringing
the hostap up. Then send me the extra lines it prints in dmesg / console.

> ddb{0}> trace
> ieee80211_input_ba() at ieee80211_input_ba+0x1af
> ar5008_rx_intr() at ar5008_rx_intr+0x2de
> ar5008_intr() at ar5008_intr+0x22d
> intr_handler() at intr_handler+0x67
> Xintr_ioapic_level0() at Xintr_ioapic_level0+0xcd
> --- interrupt ---
> acpicpu_idle() at acpicpu_idle+0x13c
> cpu_idle_cycle() at cpu_idle_cycle+0x10
> end trace frame: 0x0, count: -7
> ddb{0}> ps
>    PID   PPID   PGRP    UID  S       FLAGS  WAIT          COMMAND
>  68101  98912  68101   1000  3    0x100083  ttyin         ksh
>  98912  76995  76995   1000  3        0x90  select        sshd
>  76995  65705  76995      0  3        0x92  poll          sshd
>  99714  16339  99714   1000  3    0x100083  ttyin         ksh
>  16339  99429  99429   1000  3        0x90  select        sshd
>  99429  65705  99429      0  3        0x82  poll          sshd
>  78031      1  78031      0  3    0x100083  ttyin         getty
>  63662      1  63662      0  3    0x100098  poll          cron
>  33010      1  33010      0  3        0x80  kqread        apmd
>   5933      1   5933    688  3        0x90  kqread        dnscrypt-proxy
>  68952      1  68952    658  3        0x80  nanosleep     vnstatd
>  33945  20640  33945    587  3        0x90  netio         darkstat
>  20640      1  20640    587  3        0x90  select        darkstat
>  98910      1  98910    688  3        0x90  kqread        dnscrypt-proxy
>  92318      1  92318      0  3        0x80  nanosleep     downtimed
>  96044  88058  88058      0  3        0x92  kqread        log
>  27216  88058  88058    518  3        0x92  kqread        anvil
>  88058      1  88058      0  3        0x80  kqread        dovecot
>   1263      1   1263     99  3    0x100090  poll          sndiod
>   9220      1   9220    110  3    0x100090  poll          sndiod
>  76659      1  76659     62  3    0x100090  bpf           spamlogd
>  61138  37055  37055     62  3    0x100090  piperd        spamd
>  28389  37055  37055     62  3    0x100090  poll          spamd
>  37055      1  37055     62  3    0x100090  nanosleep     spamd
>  43460      1  43460     79  3    0x100090  kqread        tftpd
>  20803      1  20803      0  3    0x100080  kqread        httpd
>  81085      1  81085     67  3    0x100092  kqread        httpd
>  73321      1  73321     67  3    0x100092  kqread        httpd
>  57664      1  57664     67  3    0x100092  kqread        httpd
>  71478      1  71478     67  3    0x100092  kqread        httpd
>  86799  62595  62595     95  3    0x100092  kqread        smtpd
>  18302  62595  62595    103  3    0x100092  kqread        smtpd
>  23885  62595  62595     95  3    0x100092  kqread        smtpd
>  76356  62595  62595     95  3    0x100092  kqread        smtpd
>  43876  62595  62595     95  3    0x100092  kqread        smtpd
>  31247  62595  62595     95  3    0x100092  kqread        smtpd
>  62595      1  62595      0  3    0x100080  kqread        smtpd
>  92861      1  92861     77  3    0x100090  poll          dhcpd
>  65705      1  65705      0  3        0x80  select        sshd
>  47497  56017   8849     83  3    0x100092  poll          ntpd
>  56017   8849   8849     83  3    0x100092  poll          ntpd
>   8849      1   8849      0  3    0x100080  poll          ntpd
>  70469      1  70469     53  3        0x90  kqread        unbound
>  44742  84171  43205     97  3    0x100090  kqread        nsd
>  84171  43205  43205     97  3    0x100090  poll          nsd
>  43205      1  43205     97  3    0x100090  kqread        nsd
>  60454  17795  17795     74  3    0x100090  bpf           pflogd
>  17795      1  17795      0  3        0x80  netio         pflogd
>  31613  90683  90683     73  2    0x100090                syslogd
>  90683      1  90683      0  3    0x100082  netio         syslogd
>  19812      1  19812     77  3    0x100090  poll          dhclient
>  22121      1  22121      0  3        0x80  poll          dhclient
>  12446      0      0      0  3     0x14200  pgzero        zerothread
>  76610      0      0      0  3     0x14200  aiodoned      aiodoned
>  56208      0      0      0  3     0x14200  syncer        update
>  85665      0      0      0  3     0x14200  cleaner       cleaner
>   6101      0      0      0  3     0x14200  reaper        reaper
>  66692      0      0      0  3     0x14200  pgdaemon      pagedaemon
>  40070      0      0      0  3     0x14200  bored         crynlk
>  31994      0      0      0  3     0x14200  bored         crypto
>  87538      0      0      0  3     0x14200  pftm          pfpurge
>  18044      0      0      0  3     0x14200  bored         sensors
>  44074      0      0      0  3     0x14200  mmctsk        sdmmc0
>  66146      0      0      0  3     0x14200  usbtsk        usbtask
>  53862      0      0      0  3     0x14200  usbatsk       usbatsk
>    162      0      0      0  3  0x40014200  acpi0         acpi0
>   7076      0      0      0  7  0x40014200                idle3
>  93155      0      0      0  7  0x40014200                idle2
>  81107      0      0      0  7  0x40014200                idle1
>  30850      0      0      0  3     0x14200  bored         softnet
>  18016      0      0      0  3     0x14200  bored         systqmp
>   6922      0      0      0  3     0x14200  bored         systq
>  69050      0      0      0  3  0x40014200  bored         softclock
> * 2556      0      0      0  7  0x40014200                idle0
>  35000      0      0      0  3     0x14200  bored         sbar
>      1      0      1      0  3        0x82  wait          init
>      0     -1      0      0  3     0x10200  scheduler     swapper
> 
> ddb{0}> show panic
> the kernel did not panic
> 
> >How-To-Repeat:
>       Run system with athn in hostap mode.
>       Also seems to trigger when manually setting mode to 11g.
> >Fix:
>       Unplug athn from system.
> 
> 
> dmesg:
> OpenBSD 6.0-current (GENERIC.MP) #142: Sat Jan 14 20:29:59 MST 2017
>     [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 4261076992 (4063MB)
> avail mem = 4127358976 (3936MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xdffb7020 (7 entries)
> bios0: vendor coreboot version "APU2A_20150928-19-gbc96368-dirty" date 
> 02/11/2016
> bios0: PC Engines apu2
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S1 S2 S3 S4 S5
> acpi0: tables DSDT FACP SSDT APIC HEST SSDT SSDT HPET
> acpi0: wakeup devices PWRB(S4) PBR4(S4) PBR5(S4) PBR6(S4) PBR7(S4) PBR8(S4) 
> UOH1(S3) UOH3(S3) UOH5(S3) XHC0(S4)
> acpitimer0 at acpi0: 3579545 Hz, 32 bits
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: AMD GX-412TC SOC, 998.27 MHz
> cpu0: 
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1
> cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB 64b/line 
> 16-way L2 cache
> cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
> cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
> cpu0: TSC frequency 998265390 Hz
> cpu0: smt 0, core 0, package 0
> mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> cpu0: apic clock running at 99MHz
> cpu0: mwait min=64, max=64, IBE
> cpu1 at mainbus0: apid 1 (application processor)
> cpu1: AMD GX-412TC SOC, 998.15 MHz
> cpu1: 
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1
> cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB 64b/line 
> 16-way L2 cache
> cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
> cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
> cpu1: smt 0, core 1, package 0
> cpu2 at mainbus0: apid 2 (application processor)
> cpu2: AMD GX-412TC SOC, 998.25 MHz
> cpu2: 
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1
> cpu2: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB 64b/line 
> 16-way L2 cache
> cpu2: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
> cpu2: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
> cpu2: smt 0, core 2, package 0
> cpu3 at mainbus0: apid 3 (application processor)
> cpu3: AMD GX-412TC SOC, 998.15 MHz
> cpu3: 
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1
> cpu3: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB 64b/line 
> 16-way L2 cache
> cpu3: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
> cpu3: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
> cpu3: smt 0, core 3, package 0
> ioapic0 at mainbus0: apid 4 pa 0xfec00000, version 21, 24 pins
> ioapic1 at mainbus0: apid 5 pa 0xfec20000, version 21, 32 pins
> acpihpet0 at acpi0: 14318180 Hz
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus -1 (PBR4)
> acpiprt2 at acpi0: bus 1 (PBR5)
> acpiprt3 at acpi0: bus 2 (PBR6)
> acpiprt4 at acpi0: bus 3 (PBR7)
> acpiprt5 at acpi0: bus 4 (PBR8)
> acpicpu0 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS
> acpicpu1 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS
> acpicpu2 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS
> acpicpu3 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS
> acpibtn0 at acpi0: PWRB
> "PNP0501" at acpi0 not configured
> cpu0: 998 MHz: speeds: 1000 800 600 MHz
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "AMD AMD64 16h Root Complex" rev 0x00
> pchb1 at pci0 dev 2 function 0 "AMD AMD64 16h Host" rev 0x00
> ppb0 at pci0 dev 2 function 2 "AMD AMD64 16h PCIE" rev 0x00: msi
> pci1 at ppb0 bus 1
> em0 at pci1 dev 0 function 0 "Intel I210" rev 0x03: msi, address 
> 00:0d:b9:40:7d:4c
> ppb1 at pci0 dev 2 function 3 "AMD AMD64 16h PCIE" rev 0x00: msi
> pci2 at ppb1 bus 2
> em1 at pci2 dev 0 function 0 "Intel I210" rev 0x03: msi, address 
> 00:0d:b9:40:7d:4d
> ppb2 at pci0 dev 2 function 4 "AMD AMD64 16h PCIE" rev 0x00: msi
> pci3 at ppb2 bus 3
> em2 at pci3 dev 0 function 0 "Intel I210" rev 0x03: msi, address 
> 00:0d:b9:40:7d:4e
> ppb3 at pci0 dev 2 function 5 "AMD AMD64 16h PCIE" rev 0x00: msi
> pci4 at ppb3 bus 4
> athn0 at pci4 dev 0 function 0 "Atheros AR9281" rev 0x01: apic 5 int 16
> athn0: AR9280 rev 2 (2T2R), ROM rev 22, address 04:f0:21:16:93:cc
> "AMD CCP" rev 0x00 at pci0 dev 8 function 0 not configured
> xhci0 at pci0 dev 16 function 0 "AMD Bolton xHCI" rev 0x11: msi
> usb0 at xhci0: USB revision 3.0
> uhub0 at usb0 configuration 1 interface 0 "AMD xHCI root hub" rev 3.00/1.00 
> addr 1
> ahci0 at pci0 dev 17 function 0 "AMD Hudson-2 SATA" rev 0x40: apic 4 int 19, 
> AHCI 1.3
> ahci0: port 0: 6.0Gb/s
> scsibus1 at ahci0: 32 targets
> sd0 at scsibus1 targ 0 lun 0: <ATA, TS32GMSA370, O091> SCSI3 0/direct fixed 
> t10.ATA_TS32GMSA370_C682220802_
> sd0: 30533MB, 512 bytes/sector, 62533296 sectors, thin
> ehci0 at pci0 dev 19 function 0 "AMD Hudson-2 USB2" rev 0x39: apic 4 int 18
> usb1 at ehci0: USB revision 2.0
> uhub1 at usb1 configuration 1 interface 0 "AMD EHCI root hub" rev 2.00/1.00 
> addr 1
> piixpm0 at pci0 dev 20 function 0 "AMD Hudson-2 SMBus" rev 0x42: SMBus 
> disabled
> pcib0 at pci0 dev 20 function 3 "AMD Hudson-2 LPC" rev 0x11
> sdhc0 at pci0 dev 20 function 7 "AMD Bolton SD/MMC" rev 0x01: apic 4 int 16
> sdhc0: SDHC 2.0, 63 MHz base clock
> sdmmc0 at sdhc0: 4-bit, sd high-speed, mmc high-speed, dma
> pchb2 at pci0 dev 24 function 0 "AMD AMD64 16h Link Cfg" rev 0x00
> pchb3 at pci0 dev 24 function 1 "AMD AMD64 16h Address Map" rev 0x00
> pchb4 at pci0 dev 24 function 2 "AMD AMD64 16h DRAM Cfg" rev 0x00
> km0 at pci0 dev 24 function 3 "AMD AMD64 16h Misc Cfg" rev 0x00
> pchb5 at pci0 dev 24 function 4 "AMD AMD64 16h CPU Power" rev 0x00
> pchb6 at pci0 dev 24 function 5 "AMD AMD64 16h Misc Cfg" rev 0x00
> isa0 at pcib0
> isadma0 at isa0
> com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> com0: console
> com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> lpt0 at isa0 port 0x378/4 irq 7
> wbsio0 at isa0 port 0x2e/2: NCT5104D rev 0x52
> vmm at mainbus0 not configured
> uhub2 at uhub1 port 1 configuration 1 interface 0 "Advanced Micro Devices 
> product 0x7900" rev 2.00/0.18 addr 2
> vscsi0 at root
> scsibus2 at vscsi0: 256 targets
> softraid0 at root
> scsibus3 at softraid0: 256 targets
> root on sd0a (ee35732c3afeb54c.a) swap on sd0b dump on sd0b
> WARNING: / was not properly unmounted
> Process (pid 1) got signal 31
> 
> usbdevs:
> Controller /dev/usb0:
> addr 1: super speed, self powered, config 1, xHCI root hub(0x0000), 
> AMD(0x1022), rev 1.00
>  port 1 disabled
>  port 2 disabled
>  port 3 disabled
>  port 4 disabled
> Controller /dev/usb1:
> addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), 
> AMD(0x1022), rev 1.00
>  port 1 addr 2: high speed, self powered, config 1, product 0x7900(0x7900), 
> Advanced Micro Devices(0x0438), rev 0.18
>   port 1 powered
>   port 2 powered
>   port 3 powered
>   port 4 powered
>  port 2 powered
> 

Reply via email to