Hello openbsd-misc,

Long time OpenBSD user here.  I was getting sick of using an external AP
for my pf based firewall and decided to try and get an athn device working
in AP mode. I am getting a panic on my Soekris 6501 with an Atheros
AR9380.  Model - TP-LINK TL-WDN4800 Dual Band Wireless N900 PCI Express
Adapter,2.4GHz 450Mbps/5Ghz 450Mbps.

I know FreeBSD has made some progress with this chipset in 10 and even are
now supporting N.  It would be great to see this working under OpenBSD.
Please let me know how I can assist or test with efforts on my part.

This looks very similar to the thread started by Mark Hellewell:
http://marc.info/?t=140937623100002&r=1&w=2

ddb> show panic
kernel diagnostic assertion "pin < sc->ngpiopins" failed: file
"../../../../dev/ic/ar9003.c", line 515

Trace:
Debugger() at Debugger+0x5
panic() at panic+0xe4
__assert() at __assert+0x21
ar9003_gpio_write() at ar9003_gpio_write+0x9d
athn_init() at athn_init+0xfa
athn_ioctl() at athn_ioctl+0x1e6
in6_ifinit() at in6_ifinit+0xc1
in6_update_ifa() at in6_update_ifa+0x1dd
in6_ifattach_linklocal() at in6_ifattach_linklocal+0x113
in6_ifattach() at in6_ifattach+0x104
in6_if_up() at in6_if_up+0x15
if_up() at if_up+0x78
ifioctl() at ifioctl+0xb91
sys_ioctl() at sys_ioctl+0x150
syscall() at syscall+0x162
--- syscall (number 54) ---
end of kernel
end trace frame: 0x7f7ffffb49a0, count: -15
acpi_pdirpa+0x408b4a:

ps:
   PID   PPID   PGRP    UID  S       FLAGS  WAIT          COMMAND
*29030  27343  29030      0  7           0                ifconfig
 27343      1  27343   1000  3        0x88  pause         ksh
 27641      1  27641      0  3        0x80  select        cron
  5171      1   5171      0  3        0x80  kqread        apmd
 15129      1  15129    601  3        0x80  kqread        unbound
 19154      1  19154     99  3        0x80  poll          sndiod
 19605      1  19605     71  3        0x80  kqread        ftp-proxy
 15238      1  15238      0  3        0x80  select        sendmail
 12228      1  12228     77  3        0x80  poll          dhcpd
  3638      1   3638      0  3        0x80  select        sshd
  3487  31462  26491     83  3        0x80  poll          ntpd
 31462  26491  26491     83  3        0x80  poll          ntpd
 26491      1  26491      0  3        0x80  poll          ntpd
 11316     16     16     74  3        0x80  bpf           pflogd
    16      1     16      0  3        0x80  netio         pflogd
 12721   5068   5068     73  2           0                syslogd
  5068      1   5068      0  3        0x80  netio         syslogd
 22255      1  22255     77  2        0x80                dhclient
 15940      1  15940      0  3        0x80  poll          dhclient
    14      0      0      0  3    0x100200  aiodoned      aiodoned
    13      0      0      0  3    0x100200  syncer        update
    12      0      0      0  3    0x100200  cleaner       cleaner
    11      0      0      0  3    0x100200  reaper        reaper
    10      0      0      0  3    0x100200  pgdaemon      pagedaemon
     9      0      0      0  3    0x100200  bored         crypto
     8      0      0      0  3    0x100200  pftm          pfpurge
     7      0      0      0  3    0x100200  mmctsk        sdmmc1
     6      0      0      0  3    0x100200  mmctsk        sdmmc0
     5      0      0      0  3    0x100200  usbtsk        usbtask
     4      0      0      0  3    0x100200  usbatsk       usbatsk
     3      0      0      0  3    0x100200  bored         syswq
     2      0      0      0  3  0x40100200                idle0
     1      0      1      0  3        0x80  wait          init
     0     -1      0      0  3       0x200  scheduler     swapper

show registers:
ds                            0xb03c    acpi_pdirpa+0x6adc
es                               0xd
fs                            0x9770    acpi_pdirpa+0x5210
gs                            0xe4d0    acpi_pdirpa+0x9f70
rdi                              0x1
rsi                              0x5
rbp               0xffff800021339760
rbx               0xffffffff8175e4d0    addrmask+0x2f30
rdx                              0x7
rcx                            0x292
rax                              0x1
r8                0xffff800021339680
r9                                 0
r10               0xffff800021339638
r11                              0x8
r12                            0x100
r13               0xffff800021339770
r14               0xffff80000015e562
r15                              0x7
rip               0xffffffff813a0515    Debugger+0x5
cs                               0x8
rflags                         0x202
rsp               0xffff800021339760
ss                              0x10
Debugger+0x5:   leave

dmesg:
OpenBSD 5.4 (GENERIC) #37: Tue Jul 30 15:24:05 MDT 2013
    dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 2130575360 (2031MB)
avail mem = 2066227200 (1970MB)
mainbus0 at root
bios0 at mainbus0
acpi at bios0 not configured
mpbios0 at bios0: Intel MP Specification 1.4
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Genuine Intel(R) CPU @ 1.60GHz, 1600.22 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,NXE,LF
cpu0: 512KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
cpu0: apic clock running at 99MHz
cpu at mainbus0: not configured
mpbios0: bus 0 is type PCI
mpbios0: bus 64 is type ISA
ioapic0 at mainbus0: apid 0 pa 0xfec00000, version 20, 24 pins
cpu0: unknown Enhanced SpeedStep CPU, msr 0x0613101a0600101a
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 1600 MHz: speeds: 1600, 600 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel E600 Host" rev 0x05
pchb1 at pci0 dev 1 function 0 "Intel E600 Config" rev 0x00
ppb0 at pci0 dev 23 function 0 "Intel E600 PCIE" rev 0x00
pci1 at ppb0 bus 1
ppb1 at pci1 dev 0 function 0 "Intel EG20T PCIE" rev 0x01
pci2 at ppb1 bus 2
"Intel EG20T Packet Hub" rev 0x01 at pci2 dev 0 function 0 not configured
"Intel EG20T Ethernet" rev 0x01 at pci2 dev 0 function 1 not configured
"Intel EG20T GPIO" rev 0x00 at pci2 dev 0 function 2 not configured
ohci0 at pci2 dev 2 function 0 "Intel EG20T USB" rev 0x01: apic 0 int 19,
version 1.0, legacy support
ohci1 at pci2 dev 2 function 1 "Intel EG20T USB" rev 0x01: apic 0 int 19,
version 1.0, legacy support
ohci2 at pci2 dev 2 function 2 "Intel EG20T USB" rev 0x01: apic 0 int 19,
version 1.0, legacy support
ehci0 at pci2 dev 2 function 3 "Intel EG20T USB" rev 0x01: apic 0 int 19
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
"Intel EG20T USB Client" rev 0x01 at pci2 dev 2 function 4 not configured
sdhc0 at pci2 dev 4 function 0 "Intel EG20T SDIO" rev 0x01: apic 0 int 18
sdmmc0 at sdhc0
sdhc1 at pci2 dev 4 function 1 "Intel EG20T SDIO" rev 0x01: apic 0 int 18
sdmmc1 at sdhc1
ahci0 at pci2 dev 6 function 0 "Intel EG20T AHCI" rev 0x01: msi, AHCI 1.1
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0: <ATA, INTEL SSDMAEXC02, 9CV1> SCSI3 0/direct
fixed naa.5001517bb2876eaf
sd0: 19087MB, 512 bytes/sector, 39091248 sectors, thin
ohci3 at pci2 dev 8 function 0 "Intel EG20T USB" rev 0x01: apic 0 int 16,
version 1.0, legacy support
ohci4 at pci2 dev 8 function 1 "Intel EG20T USB" rev 0x01: apic 0 int 16,
version 1.0, legacy support
ohci5 at pci2 dev 8 function 2 "Intel EG20T USB" rev 0x01: apic 0 int 16,
version 1.0, legacy support
ehci1 at pci2 dev 8 function 3 "Intel EG20T USB" rev 0x01: apic 0 int 16
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
"Intel EG20T DMA" rev 0x00 at pci2 dev 10 function 0 not configured
puc0 at pci2 dev 10 function 1 "Intel EG20T Serial" rev 0x00: ports: 1 com
com4 at puc0 port 0 apic 0 int 19: ti16750, 64 byte fifo
puc1 at pci2 dev 10 function 2 "Intel EG20T Serial" rev 0x00: ports: 1 com
com5 at puc1 port 0 apic 0 int 19: ti16750, 64 byte fifo
puc2 at pci2 dev 10 function 3 "Intel EG20T Serial" rev 0x00: ports: 1 com
com6 at puc2 port 0 apic 0 int 19: ti16750, 64 byte fifo
puc3 at pci2 dev 10 function 4 "Intel EG20T Serial" rev 0x00: ports: 1 com
com7 at puc3 port 0 apic 0 int 19: ti16750, 64 byte fifo
"Intel EG20T DMA" rev 0x00 at pci2 dev 12 function 0 not configured
"Intel EG20T SPI" rev 0x00 at pci2 dev 12 function 1 not configured
"Intel EG20T I2C" rev 0x00 at pci2 dev 12 function 2 not configured
"Intel EG20T CAN" rev 0x00 at pci2 dev 12 function 3 not configured
"Intel EG20T 1588" rev 0x01 at pci2 dev 12 function 4 not configured
usb2 at ohci0: USB revision 1.0
uhub2 at usb2 "Intel OHCI root hub" rev 1.00/1.00 addr 1
usb3 at ohci1: USB revision 1.0
uhub3 at usb3 "Intel OHCI root hub" rev 1.00/1.00 addr 1
usb4 at ohci2: USB revision 1.0
uhub4 at usb4 "Intel OHCI root hub" rev 1.00/1.00 addr 1
usb5 at ohci3: USB revision 1.0
uhub5 at usb5 "Intel OHCI root hub" rev 1.00/1.00 addr 1
usb6 at ohci4: USB revision 1.0
uhub6 at usb6 "Intel OHCI root hub" rev 1.00/1.00 addr 1
usb7 at ohci5: USB revision 1.0
uhub7 at usb7 "Intel OHCI root hub" rev 1.00/1.00 addr 1
ppb2 at pci0 dev 24 function 0 "Intel E600 PCIE" rev 0x00
pci3 at ppb2 bus 3
ppb3 at pci3 dev 0 function 0 "IDT 89HPES4T4" rev 0x0e
pci4 at ppb3 bus 4
ppb4 at pci4 dev 2 function 0 "IDT 89HPES4T4" rev 0x0e
pci5 at ppb4 bus 5
em0 at pci5 dev 0 function 0 "Intel 82574L" rev 0x00: msi, address
00:00:24:cf:26:44
ppb5 at pci4 dev 3 function 0 "IDT 89HPES4T4" rev 0x0e
pci6 at ppb5 bus 6
em1 at pci6 dev 0 function 0 "Intel 82574L" rev 0x00: msi, address
00:00:24:cf:26:45
ppb6 at pci4 dev 4 function 0 "IDT 89HPES4T4" rev 0x0e
pci7 at ppb6 bus 7
ppb7 at pci0 dev 25 function 0 "Intel E600 PCIE" rev 0x00
pci8 at ppb7 bus 8
ppb8 at pci8 dev 0 function 0 "IDT 89HPES4T4" rev 0x0e
pci9 at ppb8 bus 9
ppb9 at pci9 dev 2 function 0 "IDT 89HPES4T4" rev 0x0e
pci10 at ppb9 bus 10
em2 at pci10 dev 0 function 0 "Intel 82574L" rev 0x00: msi, address
00:00:24:cf:26:46
ppb10 at pci9 dev 3 function 0 "IDT 89HPES4T4" rev 0x0e
pci11 at ppb10 bus 11
em3 at pci11 dev 0 function 0 "Intel 82574L" rev 0x00: msi, address
00:00:24:cf:26:47
ppb11 at pci9 dev 4 function 0 "IDT 89HPES4T4" rev 0x0e
pci12 at ppb11 bus 12
ppb12 at pci0 dev 26 function 0 "Intel E600 PCIE" rev 0x00
pci13 at ppb12 bus 13
athn0 at pci13 dev 0 function 0 "Atheros AR9300" rev 0x01: apic 0 int 19
athn0: AR9380 rev 3 (1T2R), ROM rev 0, address 00:00:ad:be:af:de
tcpcib0 at pci0 dev 31 function 0 "Intel E600 LPC" rev 0x00: 14318179 Hz
timer, watchdog
isa0 at tcpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ti16750, 64 byte fifo
com0: console
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
mtrr: Pentium Pro MTRR support
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on sd0a (cb1256879bb0a012.a) swap on sd0b dump on sd0b


Thanks-
Marc Suttle

Reply via email to