Date: Fri, 23 May 2008 02:50:13 -0400 (EDT) From: mutex@unixtech.info To: freebsd-net@freebsd.org Subject: Atheros 5212 network issues. Message-ID: <52090.74.56.88.177.1211525413.squirrel@webmail.unixtech.info>
next in thread | raw e-mail | index | archive | help
Hello! I am running FreeBSD 7.0 stable. I am having speed issues that I was not experiencing before when I was running 6.3 stable. My wireless connection is now unstable and not as much consistent as it was before. The wired connection is as usual ~7000kb/up and 800kb/down. Each test (~20 per day during 5 days) I did was on a 10 second interval, speed is fluctuating from ~80kb to ~4000kb down and ~80kb to ~300kb up and some tests return both download and upload to be very low. Also, one test can return 300kb down and 80kb up when next one 10 seconds later returns 80kb down and 300kb up. Latency is fluctuating as well. I tried to use another channel, swap disk and wireless card to another machine, cvsup and upgrade again. I didn't changed network settings, firewall rules, and my hostapd config. Here are some more informations on my hardware: FreeBSD 7.0-STABLE #0: Mon May 19 23:10:53 EDT 2008 mutex@xxxxxxx:/usr/obj/usr/src/sys/MUTEX Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Celeron(R) CPU 1.70GHz (1716.91-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf13 Stepping = 3 Features=0x3febfbff<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> real memory = 805240832 (767 MB) avail memory = 774049792 (738 MB) ACPI APIC Table: <GBT AWRDACPI> ioapic0 <Version 2.0> irqs 0-23 on motherboard wlan: mac acl policy registered kbd1 at kbdmux0 ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) acpi0: <GBT AWRDACPI> on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 cpu0: <ACPI CPU> on acpi0 p4tcc0: <CPU Frequency Thermal Control> on cpu0 acpi_button0: <Power Button> on acpi0 acpi_button1: <Sleep Button> on acpi0 pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff,0x4000-0x40bf on acpi0 pci0: <ACPI PCI bus> on pcib0 agp0: <Intel 82845 host to AGP bridge> on hostb0 pcib1: <PCI-PCI bridge> at device 1.0 on pci0 pci1: <PCI bus> on pcib1 vgapci0: <VGA-compatible display> mem 0xe0000000-0xe0ffffff,0xd8000000-0xdfffffff irq 16 at device 0.0 on pci1 uhci0: <Intel 82801DB (ICH4) USB controller USB-A> port 0xd800-0xd81f irq 16 at device 29.0 on pci0 uhci0: [GIANT-LOCKED] uhci0: [ITHREAD] usb0: <Intel 82801DB (ICH4) USB controller USB-A> on uhci0 usb0: USB revision 1.0 uhub0: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0 uhub0: 2 ports with 2 removable, self powered uhci1: <Intel 82801DB (ICH4) USB controller USB-B> port 0xd000-0xd01f irq 19 at device 29.1 on pci0 uhci1: [GIANT-LOCKED] uhci1: [ITHREAD] usb1: <Intel 82801DB (ICH4) USB controller USB-B> on uhci1 usb1: USB revision 1.0 uhub1: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb1 uhub1: 2 ports with 2 removable, self powered uhci2: <Intel 82801DB (ICH4) USB controller USB-C> port 0xd400-0xd41f irq 18 at device 29.2 on pci0 uhci2: [GIANT-LOCKED] uhci2: [ITHREAD] usb2: <Intel 82801DB (ICH4) USB controller USB-C> on uhci2 usb2: USB revision 1.0 uhub2: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb2 uhub2: 2 ports with 2 removable, self powered ehci0: <Intel 82801DB/L/M (ICH4) USB 2.0 controller> mem 0xe4000000-0xe40003ff irq 23 at device 29.7 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb3: EHCI version 1.0 usb3: companion controllers, 2 ports each: usb0 usb1 usb2 usb3: <Intel 82801DB/L/M (ICH4) USB 2.0 controller> on ehci0 usb3: USB revision 2.0 uhub3: <Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb3 uhub3: 6 ports with 6 removable, self powered pcib2: <ACPI PCI-PCI bridge> at device 30.0 on pci0 pci2: <ACPI PCI bus> on pcib2 fxp0: <Intel 82550 Pro/100 Ethernet> port 0xc000-0xc03f mem 0xe3050000-0xe3050fff,0xe3020000-0xe303ffff irq 18 at device 0.0 on pci2 miibus0: <MII bus> on fxp0 inphy0: <i82555 10/100 media interface> PHY 1 on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp0: Ethernet address: 00:02:b3:b6:af:59 fxp0: [ITHREAD] ath0: <Atheros 5212> mem 0xe3040000-0xe304ffff irq 21 at device 1.0 on pci2 ath0: [ITHREAD] ath0: using obsoleted if_watchdog interface ath0: Ethernet address: 00:14:a5:0d:c0:91 ath0: mac 10.5 phy 6.1 radio 6.3 fxp1: <Intel 82550 Pro/100 Ethernet> port 0xc400-0xc43f mem 0xe3052000-0xe3052fff,0xe3000000-0xe301ffff irq 22 at device 2.0 on pci2 miibus1: <MII bus> on fxp1 inphy1: <i82555 10/100 media interface> PHY 1 on miibus1 inphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp1: Ethernet address: 00:02:b3:b6:af:09 fxp1: [ITHREAD] vr0: <VIA VT6102 Rhine II 10/100BaseTX> port 0xc800-0xc8ff mem 0xe3051000-0xe30510ff irq 16 at device 3.0 on pci2 vr0: Quirks: 0x0 vr0: Revision: 0x43 miibus2: <MII bus> on vr0 ukphy0: <Generic IEEE 802.3u media interface> PHY 8 on miibus2 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto vr0: Ethernet address: 00:50:ba:18:ff:5f vr0: [ITHREAD] isab0: <PCI-ISA bridge> at device 31.0 on pci0 isa0: <ISA bus> on isab0 atapci0: <Intel ICH4 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 31.1 on pci0 ata0: <ATA channel 0> on atapci0 ata0: [ITHREAD] ata1: <ATA channel 1> on atapci0 ata1: [ITHREAD] pci0: <serial bus, SMBus> at device 31.3 (no driver attached) pci0: <multimedia, audio> at device 31.5 (no driver attached) fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FILTER] sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio0: [FILTER] sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A sio1: [FILTER] atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0 atkbd0: <AT Keyboard> irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] pmtimer0 on isa0 orm0: <ISA Option ROM> at iomem 0xc0000-0xcc7ff pnpid ORM0000 on isa0 ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppbus0: <Parallel port bus> on ppc0 ppbus0: [ITHREAD] plip0: <PLIP network interface> on ppbus0 lpt0: <Printer> on ppbus0 lpt0: Interrupt-driven port ppi0: <Parallel I/O> on ppbus0 ppc0: [GIANT-LOCKED] ppc0: [ITHREAD] sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 1716911056 Hz quality 800 Timecounters tick every 1.000 msec ad1: 19073MB <Maxtor 5T020H2 TAH71DP0> at ata0-slave UDMA100 acd0: CDROM <LTN403/DU25> at ata1-master PIO4 Trying to mount root from ufs:/dev/ad1s1a pciconf -lv | grep ath ath0@pci0:2:1:0: class=0x020000 card=0x000c17f9 chip=0x001b168c rev=0x01 hdr=0x00 athstats 36879 data frames received 50372 data frames transmit 135 tx frames with an alternate rate 3508 long on-chip tx retries 286 tx failed 'cuz too many retries 18M current transmit rate 1496 tx management frames 949 tx frames discarded prior to association 7427 tx frames with no ack marked 42411 tx frames with short preamble 76570 rx failed 'cuz of bad CRC 1980968 rx failed 'cuz of PHY err 1762216 OFDM timing 3 OFDM restart 218713 CCK timing 36 CCK restart 117021 beacons transmitted 420 periodic calibrations 55 rssi of last ack 29 avg recv rssi -96 rx noise floor 164 switched default/rx antenna Antenna profile: [1] tx 25569 rx 36157 [2] tx 24598 rx 36925 ifconfig: ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290 ether 00:14:a5:0d:c0:91 inet 10.0.3.1 netmask 0xffffff00 broadcast 10.0.3.255 media: IEEE 802.11 Wireless Ethernet autoselect <hostap> (autoselect <hostap>) status: associated ssid mutex channel 1 (2412 Mhz 11g) bssid 00:14:a5:0d:c0:91 authmode WPA privacy MIXED deftxkey 2 TKIP 2:128-bit TKIP 3:128-bit txpower 31.5 scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi11g 7 roam:rate11g 5 protmode CTS burst dtimperiod 1 sysctl: net.wlan.0.%parent: ath0 debug.disablefullpath: 0 hw.ath.hal.swba_backoff: 0 hw.ath.hal.sw_brt: 10 hw.ath.hal.dma_brt: 2 hw.ath.hal.version: 0.9.20.3 hw.ath.txbuf: 200 hw.ath.rxbuf: 40 hw.ath.regdomain: 0 hw.ath.countrycode: 0 hw.ath.xchanmode: 1 hw.ath.outdoor: 1 hw.ath.calibrate: 30 user.cs_path: /usr/bin:/bin:/usr/sbin:/sbin: dev.npx.0.%desc: math processor dev.ath.0.%desc: Atheros 5212 dev.ath.0.%driver: ath dev.ath.0.%location: slot=1 function=0 dev.ath.0.%pnpinfo: vendor=0x168c device=0x001b subvendor=0x17f9 subdevice=0x000c cl ass=0x020000 dev.ath.0.%parent: pci2 dev.ath.0.smoothing_rate: 95 dev.ath.0.sample_rate: 10 dev.ath.0.countrycode: 0 dev.ath.0.regdomain: 16 dev.ath.0.slottime: 9 dev.ath.0.acktimeout: 48 dev.ath.0.ctstimeout: 48 dev.ath.0.softled: 0 dev.ath.0.ledpin: 0 dev.ath.0.ledon: 0 dev.ath.0.ledidle: 2700 dev.ath.0.txantenna: 0 dev.ath.0.rxantenna: 2 dev.ath.0.diversity: 0 dev.ath.0.txintrperiod: 5 dev.ath.0.diag: 0 dev.ath.0.tpscale: 0 dev.ath.0.tpc: 0 dev.ath.0.tpack: 63 dev.ath.0.tpcts: 63 dev.ath.0.fftxqmin: 2 dev.ath.0.fftxqmax: 50 dev.ath.0.monpass: 24 /etc/sysctl.conf *I didn't changed any other sysctl option* net.inet.ip.forwarding=1 Lines added to Generic kernel: # PF device pf device pflog device pfsync # ALTQ options ALTQ options ALTQ_CBQ # Class Bases Queuing (CBQ) options ALTQ_RED # Random Early Detection (RED) options ALTQ_RIO # RED In/Out options ALTQ_HFSC # Hierarchical Packet Scheduler (HFSC) options ALTQ_PRIQ # Priority Queuing (PRIQ) options ALTQ_NOPCC # Required for SMP build Please help me troubleshoot and resolve this issue. Regards, Mutex. pub 4096R/C4CE4832 2007-02-01 Key fingerprint = 8DAE C29D 44B7 CA85 28A3 AF0A BE37 B1E2 C4CE 4832
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52090.74.56.88.177.1211525413.squirrel>