Modify

Opened 5 years ago

Closed 3 years ago

#13549 closed defect (worksforme)

ath9k causes significant switch/ethernet latency on Buffalo WBMR-HP-G300H

Reported by: debwalker Owned by: developers
Priority: highest Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:

Description

There is a strange bug that is causing really high latency on the ethernet switch when the wireless adapter is enabled. I noticed this bug in barrier breaker trunk and was able to solve the issue by putting the wireless network into G mode only. I tried with the latest attitude adjustment trunk to be sure it wasn't the build but the problem remains and can only be worked around by disabling the wireless interface completely.

Some ping statistics follow.. this is done from a *wired* connection.

With the wireless turned on:

PING google.co.uk (173.194.41.95): 48 data bytes
56 bytes from 173.194.41.95: icmp_seq=0 ttl=52 time=106.357 ms
56 bytes from 173.194.41.95: icmp_seq=1 ttl=52 time=70.705 ms
56 bytes from 173.194.41.95: icmp_seq=2 ttl=52 time=86.639 ms
56 bytes from 173.194.41.95: icmp_seq=3 ttl=52 time=114.963 ms
--- google.co.uk ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/stddev = 70.705/94.666/114.963/17.228 ms

Without the wireless:

PING google.co.uk (173.194.41.95): 48 data bytes
56 bytes from 173.194.41.95: icmp_seq=0 ttl=52 time=7.586 ms
56 bytes from 173.194.41.95: icmp_seq=1 ttl=52 time=8.109 ms
56 bytes from 173.194.41.95: icmp_seq=2 ttl=52 time=8.629 ms
56 bytes from 173.194.41.95: icmp_seq=3 ttl=52 time=7.710 ms
--- google.co.uk ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/stddev = 7.586/8.008/8.629/0.407 ms

Including dmesg output in case it's useful:

[ 0.000000] Linux version 3.3.8 (luke@L-PC) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Mon May 20 12:22:45 UTC 2013
[ 0.000000] SoC: AR9 rev 1.2
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 0001954c (MIPS 34Kc)
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone PFN ranges:
[ 0.000000] Normal 0x00000000 -> 0x00004000
[ 0.000000] Movable zone start PFN for each node
[ 0.000000] Early memory PFN ranges
[ 0.000000] 0: 0x00000000 -> 0x00004000
[ 0.000000] On node 0 totalpages: 16384
[ 0.000000] free_area_init_node: node 0, pgdat 802adcf0, node_mem_map 81000000
[ 0.000000] Normal zone: 128 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 16256 pages, LIFO batch:3
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: console=ttyLTQ1,115200 rootfstype=squashfs,jffs2 machtype=WBMR
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
[ 0.000000] Writing ErrCtl register=00070200
[ 0.000000] Readback ErrCtl register=00070200
[ 0.000000] Memory: 61792k/65536k available (2340k kernel code, 3744k reserved, 395k data, 172k init, 0k highmem)
[ 0.000000] NR_IRQS:256
[ 0.000000] CPU Clock: 333MHz
[ 0.000000] Calibrating delay loop... 221.18 BogoMIPS (lpj=442368)
[ 0.040000] pid_max: default: 32768 minimum: 301
[ 0.044000] Mount-cache hash table entries: 512
[ 0.052000] NET: Registered protocol family 16
[ 0.060000] gpiochip_add: registered GPIOs 0 to 15 on device: ltq_gpio
[ 0.064000] gpiochip_add: registered GPIOs 16 to 31 on device: ltq_gpio
[ 0.068000] gpiochip_add: registered GPIOs 32 to 47 on device: ltq_gpio
[ 0.072000] gpiochip_add: registered GPIOs 48 to 55 on device: ltq_gpio
[ 0.076000] MIPS: machine is WBMR
[ 0.104000] bio: create slab <bio-0> at 0
[ 0.112000] PCI host bridge to bus 0000:00
[ 0.116000] pci_bus 0000:00: root bus resource [mem 0x18000000-0x19ffffff]
[ 0.120000] pci_bus 0000:00: root bus resource [io 0x1ae00000-0x1affffff]
[ 0.124000] pci 0000:00:0e.0: [168c:0029] type 0 class 0x000280
[ 0.124000] pci 0000:00:0e.0: reg 10: [mem 0x00000000-0x0000ffff]
[ 0.124000] pci 0000:00:0e.0: PME# supported from D0 D3hot
[ 0.124000] pci 0000:00:0e.0: BAR 0: assigned [mem 0x18000000-0x1800ffff]
[ 0.128000] pci 0000:00:0e.0: SLOT:14 PIN:1 IRQ:30
[ 0.132000] Switching to clocksource MIPS
[ 0.140000] NET: Registered protocol family 2
[ 0.144000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.152000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.160000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.164000] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.172000] TCP reno registered
[ 0.176000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.180000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.188000] NET: Registered protocol family 1
[ 0.192000] PCI: CLS 0 bytes, default 32
[ 0.192000] gptu: totally 6 16-bit timers/counters
[ 0.200000] gptu: misc_register on minor 63
[ 0.204000] gptu: succeeded to request irq 126
[ 0.208000] gptu: succeeded to request irq 127
[ 0.212000] gptu: succeeded to request irq 128
[ 0.216000] gptu: succeeded to request irq 129
[ 0.220000] gptu: succeeded to request irq 130
[ 0.224000] gptu: succeeded to request irq 131
[ 0.232000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.240000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.248000] msgmni has been set to 120
[ 0.252000] io scheduler noop registered
[ 0.256000] io scheduler deadline registered (default)
[ 0.260000] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[ 0.268000] ltq_asc.1: ttyLTQ1 at MMIO 0x1e100c00 (irq = 112) is a ltq_asc
[ 0.276000] console [ttyLTQ1] enabled, bootconsole disabled
[ 0.288000] ltq_nor: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x00227e
[ 0.296000] Amd/Fujitsu Extended Query Table at 0x0040
[ 0.304000] Amd/Fujitsu Extended Query version 1.3.
[ 0.308000] number of CFI chips: 1
[ 0.312000] Creating 4 MTD partitions on "ltq_nor":
[ 0.316000] 0x000000000000-0x000000040000 : "uboot"
[ 0.324000] 0x000000040000-0x000000060000 : "uboot-env"
[ 0.332000] 0x000000060000-0x000001f80000 : "linux"
[ 0.336000] found squashfs behind kernel
[ 0.340000] Creating 2 MTD partitions on "ltq_nor":
[ 0.344000] 0x000000060000-0x000000152711 : "kernel"
[ 0.348000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[ 0.364000] 0x000000152711-0x000001f80000 : "rootfs"
[ 0.368000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[ 0.384000] mtd: partition "rootfs" set to be root filesystem
[ 0.388000] mtd: partition "rootfs_data" created automatically, ofs=380000, len=1C00000
[ 0.396000] 0x000000380000-0x000001f80000 : "rootfs_data"
[ 0.404000] 0x000001fe0000-0x000002000000 : "calibration"
[ 0.556000] ltq_mii: probed
[ 0.580000] eth0: Atheros AR8316 switch driver attached.
[ 0.584000] ar8316: Using port 4 as switch port
[ 5.708000] eth0: attached PHY [Atheros AR8216/AR8236/AR8316] (phy_addr=ltq_etop-fffffff:00, irq=-1)
[ 5.720000] Registered led device: soc:blue:movie
[ 5.720000] Registered led device: soc:red:internet
[ 5.720000] Registered led device: soc:green:internet
[ 5.720000] Registered led device: soc:green:adsl
[ 5.720000] Registered led device: soc:green:wlan
[ 5.720000] Registered led device: soc:red:security
[ 5.724000] Registered led device: soc:green:power
[ 5.724000] Registered led device: soc:red:power
[ 5.724000] Registered led device: soc:green:usb
[ 5.724000] TCP cubic registered
[ 5.728000] NET: Registered protocol family 17
[ 5.732000] 8021q: 802.1Q VLAN Support v1.8
[ 5.740000] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[ 5.748000] Freeing unused kernel memory: 172k freed
[ 13.184000] Compat-drivers backport release: compat-drivers-2013-01-21-1
[ 13.192000] Backport based on wireless-testing.git master-2013-02-22
[ 13.196000] compat.git: wireless-testing.git
[ 13.392000] cfg80211: Calling CRDA to update world regulatory domain
[ 13.400000] cfg80211: World regulatory domain updated:
[ 13.404000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 13.412000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 13.420000] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 13.428000] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 13.436000] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 13.444000] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 13.880000] usbcore: registered new interface driver usbfs
[ 13.884000] usbcore: registered new interface driver hub
[ 13.892000] usbcore: registered new device driver usb
[ 14.760000] PCI: Enabling device 0000:00:0e.0 (0000 -> 0002)
[ 16.324000] ath: EEPROM regdomain: 0x0
[ 16.324000] ath: EEPROM indicates default country code should be used
[ 16.324000] ath: doing EEPROM country->regdmn map search
[ 16.324000] ath: country maps to regdmn code: 0x3a
[ 16.324000] ath: Country alpha2 being used: US
[ 16.324000] ath: Regpair used: 0x3a
[ 16.332000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 16.340000] Registered led device: ath9k-phy0
[ 16.340000] ieee80211 phy0: Atheros AR9280 Rev:2 mem=0xb8000000, irq=30
[ 16.348000] cfg80211: Calling CRDA for country: US
[ 16.352000] cfg80211: Regulatory domain changed to country: US
[ 16.356000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 16.364000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
[ 16.372000] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
[ 16.380000] cfg80211: (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 16.388000] cfg80211: (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 16.396000] cfg80211: (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 16.404000] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
[ 16.428000] NET: Registered protocol family 8
[ 16.432000] NET: Registered protocol family 20
[ 16.464000] Button Hotplug driver version 0.4.1
[ 16.504000] PPP generic driver version 2.4.2
[ 16.840000] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 17.256000] nf_conntrack version 0.5.0 (968 buckets, 3872 max)
[ 17.652000] IFX MEI Version 5.00.00
[ 17.676000]
[ 17.676000] Infineon CPE API Driver version: DSL CPE API V3.24.4.4
[ 17.704000] ATM (A1) firmware version 1.0.19
[ 17.708000] ifxmips_atm: ATM init succeed
[ 17.724000] input: gpio-keys-polled as /devices/platform/gpio-keys-polled/input/input0
[ 23.036000] device eth0 entered promiscuous mode
[ 23.040000] br-lan: port 1(eth0) entered forwarding state
[ 23.044000] br-lan: port 1(eth0) entered forwarding state
[ 25.048000] br-lan: port 1(eth0) entered forwarding state
[ 46.764000] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[ 46.780000] jffs2_build_filesystem(): unlocking the mtd device... done.
[ 46.784000] jffs2_build_filesystem(): erasing all blocks after the end marker... done.
[ 219.784000] JFFS2 notice: (1167) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan
) found.
[ 236.376000] [DSL_BSP_Showtime 916]: Datarate US intl = 0, fast = 448000
[ 237.876000] ------------[ cut here ]------------
[ 237.876000] WARNING: at kernel/softirq.c:159 0x8001e1dc()
[ 237.876000] Modules linked in: gpio_keys_polled lantiq_atm(O) drv_dsl_cpe_api(O) lantiq_mei(O) ledtrig_usbdev nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_conntrack_ft
p ipt_MASQUERADE iptable_nat nf_nat xt_conntrack xt_CT xt_NOTRACK iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack pppoatm ipt_REJECT xt_TCPMSS ipt_L
OG xt_comment xt_multiport xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables ppp_async ppp_generic slhc button_hotplug(O) br2684 atm ath9k(O)
ath9k_common(O) ath9k_hw(O) ath(O) mac80211(O) usbcore usb_common nls_base crc_ccitt cfg80211(O) compat(O) arc4 aes_generic crypto_algapi
[ 237.876000] Call Trace:[<80245b04>] 0x80245b04
[ 237.876000] [<80245b04>] 0x80245b04
[ 237.876000] [<80017a80>] 0x80017a80
[ 237.876000] [<8001e1dc>] 0x8001e1dc
[ 237.876000] [<80017ac4>] 0x80017ac4
[ 237.876000] [<801ab060>] 0x801ab060
[ 237.876000] [<83372bd0>] 0x83372bd0
[ 237.876000] [<8001e1dc>] 0x8001e1dc
[ 237.876000] [<833e43a0>] 0x833e43a0
[ 237.876000] [<80077fc0>] 0x80077fc0
[ 237.876000] [<8004fa0c>] 0x8004fa0c
[ 237.876000] [<80023b10>] 0x80023b10
[ 237.876000] [<800540b8>] 0x800540b8
[ 237.876000] [<8004fc40>] 0x8004fc40
[ 237.876000] [<80052620>] 0x80052620
[ 237.876000] [<8004f2b8>] 0x8004f2b8
[ 237.876000] [<800082b4>] 0x800082b4
[ 237.876000] [<800031f8>] 0x800031f8
[ 237.876000] [<800067cc>] 0x800067cc
[ 237.876000] [<8001c138>] 0x8001c138
[ 237.876000]
[ 237.876000] ---[ end trace 69cffc6726793b0c ]---
[ 350.468000] cfg80211: Calling CRDA for country: GB
[ 350.472000] cfg80211: Regulatory domain changed to country: GB
[ 350.476000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 350.484000] cfg80211: (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[ 350.492000] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[ 350.500000] cfg80211: (5250000 KHz - 5330000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[ 350.508000] cfg80211: (5490000 KHz - 5710000 KHz @ 40000 KHz), (N/A, 2700 mBm)
[ 352.908000] device wlan0 entered promiscuous mode
[ 353.352000] br-lan: port 2(wlan0) entered forwarding state
[ 353.356000] br-lan: port 2(wlan0) entered forwarding state
[ 355.360000] br-lan: port 2(wlan0) entered forwarding state
[ 409.188000] device wlan0 left promiscuous mode
[ 409.192000] br-lan: port 2(wlan0) entered disabled state
[ 411.720000] device wlan0 entered promiscuous mode
[ 412.188000] br-lan: port 2(wlan0) entered forwarding state
[ 412.192000] br-lan: port 2(wlan0) entered forwarding state
[ 414.196000] br-lan: port 2(wlan0) entered forwarding state
[ 805.188000] device wlan0 left promiscuous mode
[ 805.192000] br-lan: port 2(wlan0) entered disabled state
[ 849.420000] device wlan0 entered promiscuous mode
[ 849.880000] br-lan: port 2(wlan0) entered forwarding state
[ 849.884000] br-lan: port 2(wlan0) entered forwarding state
[ 851.888000] br-lan: port 2(wlan0) entered forwarding state

The last trailing 'entered forwarding'.. etc are just where I tested the issue by disabling/enabling the wireless.

This was a pretty much standard build from svn changing nothing significant in the configuration.

Attachments (0)

Change History (2)

comment:1 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

comment:2 Changed 3 years ago by nbd

  • Resolution set to worksforme
  • Status changed from new to closed

should be fixed in current versions

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.