On 2013/05/13 14:28, Martin Kjær Jørgensen wrote:
> Hi
> Im running OpenBSD 5.3 generic on Soekris 6501, with a TL-WDN4800
> (AR9380) NIC. When running "ifconfig athn0 up" the kernel panics and
> goes to ddb everytime I try the command.
> Other interface commands like "mediaopts" and "nwid" works. 
> I also noted from dmesg that the device is recognized as a:
>  "AR9380 rev 3 (1T2R)"
> I'm no expert in this hardware but I'm pretty sure it's a 3T3R device.

Looking at cvs log, the code for AR9380 was preliminary and not tested yet
as there was no hardware available at the time.

athn0: AR9380 rev 3 (1T2R), ROM rev 0, address 00:00:ef:be:ad:de
                                                     ^^^^^^^^^^^

this is coming from 0xdeadbeef as commonly used to fill free pages.


> 
> ifconfig athn0 up
> 
> kernel: integer divide fault trap, code=0
> Stopped at      ar9003_set_delta_slope+0x33:    idivl   %ecx,%eax
> ddb{0}>
> 
> "show panic" output:
> the kernel did not panic
> 
> "trace" output:
> ar9003_set_delta_slope() at ar9003_set_delta_slope+0x33
> athn_hw_reset() at athn_hw_reset+0x20e
> athn_init() at athn_init+0x11b
> 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+0xba1
> sys_ioctl() at sys_ioctl+0x150
> syscall() at syscall+0x249
> --- syscall (number 54) ---
> end of kernel
> end trace frame: 0x7f7fffff2830, count: -13
> acpi_pdirpa+0x408c22:
> 
> "ps" output:
>    PID   PPID   PGRP    UID  S       FLAGS  WAIT          COMMAND
> *16602  24966  16602      0  7           0                ifconfig
>  24966      1  24966      0  3        0x88  pause         ksh
>   4608      1   4608      0  3        0x80  select        cron
>  11632      1  11632     77  3        0x80  poll          dhcpd
>  15367      1  15367      0  3        0x80  select        sshd
>  18693  21342  21342     70  3        0x80  select        named
>  21342      1  21342      0  3        0x80  netio         named
>   5381   3094   3094     74  3        0x80  bpf           pflogd
>   3094      1   3094      0  3        0x80  netio         pflogd
>  25465  21302  21302     73  3        0x80  poll          syslogd
>  21302      1  21302      0  3        0x80  netio         syslogd
>     16      0      0      0  3    0x100200  aiodoned      aiodoned
>     15      0      0      0  3    0x100200  syncer        update
>     14      0      0      0  3    0x100200  cleaner       cleaner
>     13      0      0      0  3    0x100200  reaper        reaper
>     12      0      0      0  3    0x100200  pgdaemon      pagedaemon
>     11      0      0      0  3    0x100200  bored         srdis
>     10      0      0      0  3    0x100200  bored         crypto
>      9      0      0      0  3    0x100200  pftm          pfpurge
>      8      0      0      0  3    0x100200  mmctsk        sdmmc1
>      7      0      0      0  3    0x100200  mmctsk        sdmmc0
>      6      0      0      0  3    0x100200  usbtsk        usbtask
>      5      0      0      0  3    0x100200  usbatsk       usbatsk
>      4      0      0      0  7  0x40100200                idle1
>      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" output:
> ds                                 0
> es                            0x40f1    mp_pdirpa+0x200a
> fs                                 0
> gs                                 0
> rdi               0xffff800000165000
> rsi               0xffff80002134482c
> rbp               0xffff800021344850
> rbx               0xffff800000165000
> rdx                                0
> rcx                                0
> rax                       0x64000000
> r8                                 0
> r9                               0x1
> r10                              0x3
> r11               0xffffffff80458760    x86_bus_space_mem_write_4
> r12               0xffff800021344828
> r13               0xffff80002134482c
> r14                              0x1
> r15               0xffff800000165556
> rip               0xffffffff801e7293    ar9003_set_delta_slope+0x33
> cs                               0x8
> rflags                       0x10282    acpi_pdirpa+0xbd7a
> rsp               0xffff800021344820
> ss                              0x10
> ar9003_set_delta_slope+0x33:    idivl   %ecx,%eax
> 
> 
> "dmesg" output:
> OpenBSD 5.3 (GENERIC.MP) #62: Tue Mar 12 18:21:20 MDT 2013
>     [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 2146304000 (2046MB)
> avail mem = 2066735104 (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,PBEF
> cpu0: 512KB 64b/line 8-way L2 cache
> cpu0: apic clock running at 100MHz
> cpu1 at mainbus0: apid 1 (application processor)
> cpu1: Genuine Intel(R) CPU @ 1.60GHz, 1599.99 MHz
> cpu1:
> 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,PBEF
> cpu1: 512KB 64b/line 8-way L2 cache
> 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 0x0614101b0600101d
> cpu0: using only highest, current and lowest power states
> cpu0: Enhanced SpeedStep 1600 MHz: speeds: 1600, 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
> ahci0: stopping the port, softreset slot 31 was still active.
> sd0 at scsibus0 targ 0 lun 0: <ATA, WDC WD2500BPVT-2, 01.0> SCSI3
> 0/direct fixed naa.50014ee6ad72b751
> sd0: 238475MB, 512 bytes/sector, 488397168 sectors
> sd1 at scsibus0 targ 1 lun 0: <ATA, WDC WD2500BPVT-2, 01.0> SCSI3
> 0/direct fixed naa.50014ee6ad72b45f
> sd1: 238475MB, 512 bytes/sector, 488397168 sectors
> 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
> com2 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
> com3 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
> com4 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
> com5 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 PRO/1000 MT (82574L)" rev 0x00:
> msi, address 00:00:24:cf:29:40
> ppb5 at pci4 dev 3 function 0 "IDT 89HPES4T4" rev 0x0e
> pci6 at ppb5 bus 6
> em1 at pci6 dev 0 function 0 "Intel PRO/1000 MT (82574L)" rev 0x00:
> msi, address 00:00:24:cf:29:41
> 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 PRO/1000 MT (82574L)" rev 0x00:
> msi, address 00:00:24:cf:29:42
> ppb10 at pci9 dev 3 function 0 "IDT 89HPES4T4" rev 0x0e
> pci11 at ppb10 bus 11
> em3 at pci11 dev 0 function 0 "Intel PRO/1000 MT (82574L)" rev 0x00:
> msi, address 00:00:24:cf:29:43
> 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:ef:be:ad: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
> softraid0: sd2 was not shutdown properly
> sd2 at scsibus2 targ 1 lun 0: <OPENBSD, SR RAID 1, 005> SCSI2 0/direct
> fixed
> sd2: 238339MB, 512 bytes/sector, 488118449 sectors
> root on sd2a (f8ac080ff91bb58a.a) swap on sd2b dump on sd2b
> WARNING: / was not properly unmounted

Reply via email to