Subject: ath(4) packet loss problem
To: NetBSD current-users <current-users@netbsd.org>
From: Andreas Wrede <andreas@planix.com>
List: current-users
Date: 07/11/2007 14:15:20
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--Apple-Mail-13--287909223
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

I have a Soekris 4801 with a Atheros AR5212 mini-pci running -current  
as of a week ago.

I can successfully establish a WPA connection to an Apple 802.11n ap  
(in ..11g mode).  With almost no other traffic over the wireless,  
pinging the ap will result in a packet loss of about 60% to 90%.  As  
soon as there is more traffic the packet loss rate drops to usable  
level. A ping -f, for example, shows over 1000 pkts/sec with a loss  
of 0.2%.

netstat -i show substantial Ierrs, about one for every 3 Ipkts. The  
console displays an occasional 'ath0: device timeout', which  
correlates to the number of Oerrs.

Any idea what I could try?

-- 
     aew

# netstat -I ath0
Name  Mtu   Network       Address              Ipkts Ierrs    Opkts  
Oerrs Colls
ath0  1500  <Link>        00:02:6f:20:f5:4a   522197 154767     
91558   148     0
ath0  1500  fe80::/64     fe80::202:6fff:fe   522197 154767     
91558   148     0
ath0  1500  10.99/16      10.99.254.240       522197 154767     
91558   148     0

# ifconfig ath0
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
         ssid Planix nwkey 65536:"", 
0xca3c921618a3fe1b833b65ba192be8b3,"",""
         powersave off
         bssid 00:19:e3:33:c7:1b chan 1
         address: 00:02:6f:20:f5:4a
         media: IEEE802.11 autoselect (OFDM18 mode 11g)
         status: active
         inet 10.99.254.240 netmask 0xffff0000 broadcast 10.99.255.255
         inet6 fe80::202:6fff:fe20:f54a%ath0 prefixlen 64 scopeid 0x4

# dmesg
NetBSD 4.99.22 (GENERIC) #17: Tue Jul  3 07:32:48 EDT 2007
         root@woffi.wrede.pvt:/u2/netbsd-current/obj.i386/sys/arch/ 
i386/compile/GENERIC
total memory = 127 MB
rbus: rbus_min_start set to 0x20000000
avail memory = 114 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
BIOS32 rev. 0 found at 0xf7840
mainbus0 (root)
ACPI Error (tbxfroot-0775): No valid RSDP was found [20060217]
ACPI Exception (tbxfroot-0531): AE_NOT_FOUND, RSDP structure not  
found - Flags=8 [20060217]
ACPI Exception (tbxface-0162): AE_NO_ACPI_TABLES, Could not get the  
RSDP [20060217]
ACPI Exception (tbxface-0211): AE_NO_ACPI_TABLES, Could not load  
tables [20060217]
ACPI: unable to load tables: AE_NO_ACPI_TABLES
cpu0 at mainbus0: (uniprocessor)
cpu0: National Semiconductor Geode GX1 (586-class), 266.67 MHz, id 0x540
cpu0: features 808131<FPU,TSC,MSR,CX8>
cpu0: features 808131<CMOV,MMX>
cpu0: "Geode(TM) Integrated Processor by National Semi"
cpu0: ITLB 1 4 KB entries 112-way
WARNING: broken TSC disabled
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Cyrix MediaGX Built-in PCI Host Controller (rev. 0x00)
sip0 at pci0 dev 6 function 0: NatSemi DP83815 10/100 Ethernet, rev 00
sip0: interrupting at irq 10
sip0: Ethernet address 00:00:24:c1:cf:18
nsphyter0 at sip0 phy 0: DP83815 10/100 media interface, rev. 1
nsphyter0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sip1 at pci0 dev 7 function 0: NatSemi DP83815 10/100 Ethernet, rev 00
sip1: interrupting at irq 10
sip1: Ethernet address 00:00:24:c1:cf:19
nsphyter1 at sip1 phy 0: DP83815 10/100 media interface, rev. 1
nsphyter1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sip2 at pci0 dev 8 function 0: NatSemi DP83815 10/100 Ethernet, rev 00
sip2: interrupting at irq 10
sip2: Ethernet address 00:00:24:c1:cf:1a
nsphyter2 at sip2 phy 0: DP83815 10/100 media interface, rev. 1
nsphyter2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ath0 at pci0 dev 14 function 0
ath0: interrupting at irq 11
ath0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps  
24Mbps 36Mbps 48Mbps 54Mbps
ath0: turboA rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps  
54Mbps
ath0: mac 5.6 phy 4.1 5 GHz radio 1.7 2 GHz radio 2.3
pcib0 at pci0 dev 18 function 0
pcib0: National Semiconductor SC1100 PCI-ISA bridge (rev. 0x00)
National Semiconductor SC1100 SMI/ACPI (miscellaneous bridge) at pci0  
dev 18 function 1 not configured
geodeide0 at pci0 dev 18 function 2
geodeide0: AMD Geode SC1100 IDE controller (rev. 0x01)
geodeide0: bus-master DMA support present
geodeide0: primary channel wired to compatibility mode
geodeide0: primary channel interrupting at irq 14
atabus0 at geodeide0 channel 0
geodeide0: secondary channel wired to compatibility mode
geodeide0: secondary channel interrupting at irq 15
atabus1 at geodeide0 channel 1
geodegcb0 at pci0 dev 18 function 5: AMD Geode GCB (rev. 0x03)
geodewdog0 at geodegcb0: AMD Geode SC1100 Watchdog Timer
geodecntr0 at geodegcb0: AMD Geode SC1100 27Mhz Counter
timecounter: Timecounter "geodecounter" frequency 27000000 Hz quality  
1000
ohci0 at pci0 dev 19 function 0: Compaq USB Controller (rev. 0x08)
ohci0: interrupting at irq 5
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Compaq OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
attimer0 at isa0 port 0x40-0x43: AT Timer
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker (CPU-intensive output)
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff
npx0: reported by CPUID; using exception 16
pcppi0: attached to attimer0
isapnp0: no ISA Plug 'n Play devices found
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
Kernelized RAIDframe activated
wd0 at atabus0 drive 0: <IBM-DMDM-10340>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 342 MB, 695 cyl, 16 head, 63 sec, 512 bytes/sect x 700560 sectors
wd0: 32-bit data port
wd0(geodeide0:0:0): using PIO mode 0
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
ath0: device timeout


--Apple-Mail-13--287909223
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFGlR47Eh/h9J/TQyERAp/MAJ9juup0nQq97K3z4+kKEged9E7DIwCfTm6H
q4QZRXgP8z3sDQvMph9uCrc=
=U/ad
-----END PGP SIGNATURE-----

--Apple-Mail-13--287909223--