ath5k_pci sudden high cpu ussage causes audio skips

Bug #293453 reported by Dimitrio Jacobo Rusell
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
PulseAudio
New
Undecided
Unassigned
linux (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

When playing audio using audacious and pulseaudio backend there are skips caused by a sudden high cpu usage by atheros driver. tried to increase the buffer to 5000 ms on audacious no change, this is a minor anoyance otherwise wireless network works great

jaime@jaime-laptop:~$ lspci
00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 03)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 (rev 03)
00:1c.3 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3)
00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA AHCI Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 03)
05:00.0 Ethernet controller: Broadcom Corporation NetLink BCM5906M Fast Ethernet PCI Express (rev 02)
06:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)

jaime@jaime-laptop:~$ pstree
init─┬─NetworkManager─┬─dhclient
     │ └─{NetworkManager}
     ├─acpid
     ├─audacious───5*[{audacious}]
     ├─avahi-daemon───avahi-daemon
     ├─console-kit-dae───63*[{console-kit-dae}]
     ├─cron
     ├─cupsd
     ├─2*[dbus-daemon]
     ├─dbus-launch
     ├─dd
     ├─firefox───5*[{firefox}]
     ├─gam_server
     ├─gconfd-2
     ├─gdm───gdm─┬─Xorg
     │ └─sh───xfce4-session─┬─Thunar───{Thunar}
     │ ├─update-notifier
     │ ├─xfce4-panel───xfce4-menu-plug
     │ ├─xfdesktop─┬─pidgin
     │ │ ├─xfce4-terminal─┬─bash───pstree
     │ │ │ └─gnome-pty-helpe
     │ │ └─{xfdesktop}
     │ └─xfwm4
     ├─6*[getty]
     ├─gksu───synaptic
     ├─gnome-keyring-d
     ├─gnome-power-man
     ├─gnome-screensav
     ├─gtk-gnutella───gtk-gnutella
     ├─gvfs-fuse-daemo───3*[{gvfs-fuse-daemo}]
     ├─gvfs-gphoto2-vo
     ├─gvfs-hal-volume
     ├─gvfsd
     ├─hald───hald-runner─┬─hald-addon-acpi
     │ ├─hald-addon-inpu
     │ └─hald-addon-stor
     ├─klogd
     ├─nm-applet
     ├─nm-system-setti
     ├─pulseaudio─┬─gconf-helper
     │ └─2*[{pulseaudio}]
     ├─ssh-agent
     ├─syslogd
     ├─system-tools-ba
     ├─trackerd───2*[{trackerd}]
     ├─udevd
     ├─wpa_supplicant
     └─xfce-mcs-manage

Revision history for this message
Dimitrio Jacobo Rusell (tarundi) wrote :

important information.

my laptop connects to a wireless router over a password protected (authenticated) connection, I was checking the system log and noticed many backtraces from the kernel relating to the wireless driver, went to network mannager applet, edit connection, filled in the BSSID setting and check the box that says system setting, after this I open a couple of network aware applications (gtk-gnutella, bittorrent client) open a totem window start to listen stream radio, no skips, seems to me the wpa disosiation and reasociation was taking place too often causing the driver to spike the cpu ussage and therefore causing skips on the sound system.

Revision history for this message
Dimitrio Jacobo Rusell (tarundi) wrote :

update

seems that the network connection with the access point does time out then it has to re associate causing the sound skipping (again|), this happens when the network is heavily loaded

Revision history for this message
Dimitrio Jacobo Rusell (tarundi) wrote :

more information

changed pulseaudio daemon.conf settings to give more buffer to address the problem

default-fragments = 16
default-fragment-size-msec = 25

test under heavy network usage and audio is skip free

Revision history for this message
Dimitrio Jacobo Rusell (tarundi) wrote :

behavior still takes place under heavy network usage eg download ubuntu iso image

arky (arky)
affects: ubuntu → linux (Ubuntu)
Revision history for this message
kernel-janitor (kernel-janitor) wrote :

Hi Dimitrio,

This bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? Can you try with the latest development release of Ubuntu? ISO CD images are available from http://cdimage.ubuntu.com/releases/karmic .

If it remains an issue, could you run the following command from a Terminal (Applications->Accessories->Terminal). It will automatically gather and attach updated debug information to this report.

apport-collect -p linux 293453

Also, if you could test the latest upstream kernel available that would be great. It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text. Please let us know your results.

Thanks in advance.

[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: kernel-sound
tags: added: needs-kernel-logs
tags: added: needs-upstream-testing
tags: added: kj-triage
Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
André (andrenm) wrote :

Hi,
I bought a tp-link wireless pci adapter (tl-wn551g) that use ath5k driver, and i have the same problems when i am using totem or vlc, either i am connected or not (if i plug the adapter the sound start to skip).
An interesting fact is that wine (from winehq) works fine, so i believe that its pulseaudio.

Revision history for this message
André (andrenm) wrote : apport-collect data

Architecture: i386
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: andre 1945 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'SB'/'HDA ATI SB at 0xfbaf4000 irq 16'
   Mixer name : 'Realtek ALC1200'
   Components : 'HDA:10ec0888,104382fe,00100101'
   Controls : 41
   Simple ctrls : 23
Card1.Amixer.info:
 Card hw:1 'HDMI'/'HDA ATI HDMI at 0xfbce8000 irq 19'
   Mixer name : 'ATI RS690/780 HDMI'
   Components : 'HDA:1002791a,00791a00,00100000'
   Controls : 4
   Simple ctrls : 1
Card1.Amixer.values:
 Simple mixer control 'IEC958',0
   Capabilities: pswitch pswitch-joined
   Playback channels: Mono
   Mono: Playback [off]
DistroRelease: Ubuntu 9.10
HibernationDevice: RESUME=UUID=376f2bee-4a95-4e76-bc7f-cd5c34081005
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
MachineType: System manufacturer System Product Name
NonfreeKernelModules: fglrx
Package: linux (not installed)
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.31-14-generic root=UUID=71051ce7-7744-42b8-ab0b-5f24538df990 ro quiet splash
ProcEnviron:
 SHELL=/bin/bash
 LANG=pt_BR.UTF-8
 LANGUAGE=pt_BR.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
RelatedPackageVersions:
 linux-backports-modules-2.6.31-14-generic N/A
 linux-firmware 1.24
RfKill:
 0: phy0: Wireless LAN
  Soft blocked: no
  Hard blocked: no
Uname: Linux 2.6.31-14-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare vboxusers
dmi.bios.date: 07/14/2009
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1902
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: M3A78-EM
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev X.0x
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr1902:bd07/14/2009:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKComputerINC.:rnM3A78-EM:rvrRevX.0x:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: System Product Name
dmi.product.version: System Version
dmi.sys.vendor: System manufacturer

Revision history for this message
André (andrenm) wrote : AlsaDevices.txt
Revision history for this message
André (andrenm) wrote : AplayDevices.txt
Revision history for this message
André (andrenm) wrote : ArecordDevices.txt
Revision history for this message
André (andrenm) wrote : BootDmesg.txt
Revision history for this message
André (andrenm) wrote : Card0.Amixer.values.txt
Revision history for this message
André (andrenm) wrote : Card0.Codecs.codec.0.txt
Revision history for this message
André (andrenm) wrote : Card1.Codecs.codec.0.txt
Revision history for this message
André (andrenm) wrote : CurrentDmesg.txt
Revision history for this message
André (andrenm) wrote : IwConfig.txt
Revision history for this message
André (andrenm) wrote : Lspci.txt
Revision history for this message
André (andrenm) wrote : Lsusb.txt
Revision history for this message
André (andrenm) wrote : PciMultimedia.txt
Revision history for this message
André (andrenm) wrote : ProcCpuinfo.txt
Revision history for this message
André (andrenm) wrote : ProcInterrupts.txt
Revision history for this message
André (andrenm) wrote : ProcModules.txt
Revision history for this message
André (andrenm) wrote : UdevDb.txt
Revision history for this message
André (andrenm) wrote : UdevLog.txt
Revision history for this message
André (andrenm) wrote : WifiSyslog.txt
Revision history for this message
André (andrenm) wrote : XsessionErrors.txt
Changed in linux (Ubuntu):
status: Incomplete → New
tags: added: apport-collected
Revision history for this message
chazn85 (chaz-n) wrote :

This bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? Can you try with the latest development release of Ubuntu? ISO CD images are available from http://cdimage.ubuntu.com/daily-live/current

If it remains an issue, could you run the following command from a Terminal (Applications->Accessories->Terminal). It will automatically gather and attach updated debug information to this report.
apport-collect -p linux 293453

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
David Henningsson (diwic) wrote :

Hmm, I've seen this issue before, in bug #579117 . He solved it by installing a newer kernel from http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.34-lucid/
Perhaps that will work for you as well?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.