Hang when playing sounds (82801JI) after upgrading to maverick

Bug #659030 reported by Guillaume Melquiond
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: pulseaudio

I've recently upgraded from Lucid to Maverick and the sound system does not work properly anymore. After a few minutes playing sounds, the sound output will stutter then stop, and the system will become sluggish. If I'm fast enough in killing pulseaudio (pulseaudio -k), I recover a working system and sound too. Otherwise, the system will hang hard; not even SysRq magic is working.

The hardware is a motherboard chipset: 00:1b.0 Audio device: Intel Corporation 82801JI (ICH10 Family) HD Audio Controller.

The working system was kernel 2.6.32-25 and pulseaudio 1:0.9.22~0.9.21+stable-queue-32-g8478-0ubuntu14.
The nonworking system is kernel 2.6.35-22 and pulseaudio 1:0.9.22~0.9.21+stable-queue-32-g8478-0ubuntu21.

Unfortunately, the logs do not contain anything relevant at the time the system breaks down. In case it helps, there is the following message at system start though (which I didn't have in Lucid):

Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: snd_pcm_avail_delay() returned strange values: delay 0 is less than avail 16.
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: Most likely this is a bug in the ALSA driver 'snd_hda_intel'. Please report this issue to the ALSA developers.
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: snd_pcm_dump():
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: Soft volume PCM
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: Control: PCM Playback Volume
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: min_dB: -51
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: max_dB: 0
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: resolution: 256
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: Its setup is:
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: stream : CAPTURE
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: access : MMAP_INTERLEAVED
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: format : S16_LE
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: subformat : STD
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: channels : 2
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: rate : 44100
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: exact rate : 44100 (44100/1)
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: msbits : 16
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: buffer_size : 88192
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: period_size : 44096
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: period_time : 999909
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: tstamp_mode : ENABLE
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: period_step : 1
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: avail_min : 87310
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: period_event : 0
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: start_threshold : -1
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: stop_threshold : 6205960286516543488
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: silence_threshold: 0
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: silence_size : 0
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: boundary : 6205960286516543488
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: Slave: Hardware PCM card 0 'HDA Intel' device 0 subdevice 0
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: Its setup is:
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: stream : CAPTURE
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: access : MMAP_INTERLEAVED
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: format : S16_LE
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: subformat : STD
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: channels : 2
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: rate : 44100
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: exact rate : 44100 (44100/1)
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: msbits : 16
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: buffer_size : 88192
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: period_size : 44096
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: period_time : 999909
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: tstamp_mode : ENABLE
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: period_step : 1
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: avail_min : 87310
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: period_event : 0
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: start_threshold : -1
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: stop_threshold : 6205960286516543488
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: silence_threshold: 0
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: silence_size : 0
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: boundary : 6205960286516543488
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: appl_ptr : 87304
Oct 12 10:08:41 saline pulseaudio[1726]: alsa-util.c: hw_ptr : 87304
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
Architecture: amd64
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', '/dev/snd/controlC1', '/dev/snd/hwC1D0', '/dev/snd/pcmC1D3p', '/dev/snd/controlC0', '/dev/snd/hwC0D2', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', '/dev/snd/pcmC0D1c', '/dev/snd/pcmC0D1p', '/dev/snd/pcmC0D2c', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xfbff8000 irq 51'
   Mixer name : 'Realtek ALC889A'
   Components : 'HDA:10ec0885,1458a002,00100103'
   Controls : 39
   Simple ctrls : 22
Card1.Amixer.info:
 Card hw:1 'Generic'/'HD-Audio Generic at 0xfbafc000 irq 52'
   Mixer name : 'ATI R6xx HDMI'
   Components : 'HDA:1002aa01,00aa0100,00100200'
   Controls : 4
   Simple ctrls : 1
Card1.Amixer.values:
 Simple mixer control 'IEC958',0
   Capabilities: pswitch pswitch-joined penum
   Playback channels: Mono
   Mono: Playback [on]
DistroRelease: Ubuntu 10.10
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
NonfreeKernelModules: fglrx
Package: alsa-driver (not installed)
ProcEnviron:
 PATH=(custom, user)
 LANG=fr_FR.utf8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.35-22.34-generic 2.6.35.4
Tags: maverick
Uname: Linux 2.6.35-22-generic x86_64
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
dmi.bios.date: 05/11/2009
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: F7
dmi.board.name: EX58-UD5
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrF7:bd05/11/2009:svnGigabyteTechnologyCo.,Ltd.:pnEX58-UD5:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnEX58-UD5:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
dmi.product.name: EX58-UD5
dmi.sys.vendor: Gigabyte Technology Co., Ltd.

Revision history for this message
Daniel T Chen (crimsun) wrote : Re: [Bug 659030] [NEW] Hang when playing sounds (82801JI) after upgrading to maverick

This is almost certainly a sound driver (kernel) bug. Please change
the affected package to alsa-driver, then use apport-collect 659030.

Revision history for this message
Guillaume Melquiond (guillaume-melquiond) wrote : AlsaDevices.txt

apport information

affects: pulseaudio (Ubuntu) → alsa-driver (Ubuntu)
tags: added: apport-collected
description: updated
Revision history for this message
Guillaume Melquiond (guillaume-melquiond) wrote : AplayDevices.txt

apport information

Revision history for this message
Guillaume Melquiond (guillaume-melquiond) wrote : ArecordDevices.txt

apport information

Revision history for this message
Guillaume Melquiond (guillaume-melquiond) wrote : BootDmesg.txt

apport information

Revision history for this message
Guillaume Melquiond (guillaume-melquiond) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Guillaume Melquiond (guillaume-melquiond) wrote : Card0.Codecs.codec.2.txt

apport information

Revision history for this message
Guillaume Melquiond (guillaume-melquiond) wrote : Card1.Codecs.codec.0.txt

apport information

Revision history for this message
Guillaume Melquiond (guillaume-melquiond) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Guillaume Melquiond (guillaume-melquiond) wrote : PciMultimedia.txt

apport information

Revision history for this message
Guillaume Melquiond (guillaume-melquiond) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Daniel T Chen (crimsun) wrote :

Thanks. Are you using 2-channel stereo output or surround output? Does appending the following line to /etc/modprobe.d/alsa-base.conf and rebooting help?

options snd-hda-intel position_fix=1

Changed in alsa-driver (Ubuntu):
status: New → Incomplete
Revision history for this message
Guillaume Melquiond (guillaume-melquiond) wrote :

No, it didn't help. I'm using 2-channel output (the profile is called "analog stereo duplex").

During the last occurrence of the issue, pulseaudio -k didn't bring back the system in a completely workable state. The system would stop until I had pressed a few keys, then it would work for a short time and stop again. The duration of each work phase must have been short since it took about 5 sleep/wake cycles between the time I pressed ctrl+alt+del and the time the confirmation dialog box finally popped up. Note that it was really my pressing keys that was making the system wake up.

Looking at dmesg output, there are some differences regarding the "HDA Intel" lines between the old and the new kernel. The old kernel was using irq 22 for the device, while the new one is using irq 51. More importantly perhaps, the new driver is associating irq 52 to device 02:00.1 (the graphic card), while the old driver was leaving it untouched.

Revision history for this message
Daniel T Chen (crimsun) wrote :

Thanks for testing. To further debug, please change the "position_fix=1" to "enable_msi=0", reboot, and reproduce the symptom.

Revision history for this message
Guillaume Melquiond (guillaume-melquiond) wrote :

It didn't change anything (though the irq were back to their old values).

I also tried to disable msi globally, but it didn't help either. In fact, disabling msi globally seemed to cause the issue to appear much sooner, so the bug is perhaps somewhere else in the kernel.

For now, I have gone back to the 2.6.32 kernel, which doesn't have the issue.

Revision history for this message
Daniel T Chen (crimsun) wrote :

Indeed; it looks to be a regression in another part of the kernel. Moving as appropriate.

affects: alsa-driver (Ubuntu) → linux (Ubuntu)
Revision history for this message
carbonariy (carbonariy) wrote :

Confirm on ASUS UL30A notebook with fresh maverick installation (includes all updates).
Also this bag related to https://bugs.launchpad.net/ubuntu/+source/linux/+bug/545065
After installing last kernel from kernel-ppa (2.6.36-rc8) both don't appear

Revision history for this message
carbonariy (carbonariy) wrote :

Also I try to install kernel 2.6.35-7 from kernel-ppa. Same result, sound works fine

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
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.