Bug 788978
Summary: | snd_vortex_dev_free() BUG: unable to handle kernel NULL pointer dereference at 00000000000000f0 | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Andrew Vagin <avagin> | ||||||
Component: | kernel | Assignee: | Kernel Maintainer List <kernel-maint> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 16 | CC: | avagin, gansalmon, itamar, jonathan, kernel-maint, madhu.chinakonda, superquad.vortex2 | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | x86_64 | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | abrt_hash:1540cc8d10ed2d03c985d2d3a82215ddf88f28b4 | ||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2012-09-17 18:57:56 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Andrew Vagin
2012-02-09 13:14:16 UTC
>> :Sometimes my host doesn't play music. In this case I try to reload the module snd_au8830. >> This bug occured when I loaded the module snd_au8830 in the second time. can you post the output of alsa-info.sh ? Created attachment 565914 [details]
alsa-info.txt
!!ALSA Version !!------------ Driver version: 1.0.24 Library version: Utilities version: 1.0.25 why alsa-driver is still 1.0.24 ? APLAY **** List of PLAYBACK Hardware Devices **** card 0: au8830 [Aureal Vortex au8830], device 0: Aureal Vortex 2 ADB [au8830 adb] Subdevices: 32/32 if you still have 32 subdevices, this mean that you are not using alsa-driver-1.0.25 since it have been reduced to 16 !!PCI Soundcards installed in the system !!-------------------------------------- 00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02) 06:00.0 Multimedia audio controller: Aureal Semiconductor Vortex 2 (rev fa) [ 12.657863] snd_hda_intel 0000:00:1b.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22 [ 12.659223] snd_hda_intel 0000:00:1b.0: irq 48 for MSI/MSI-X [ 12.660521] snd_hda_intel 0000:00:1b.0: setting latency timer to 64 [ 12.670024] ALSA sound/pci/hda/hda_intel.c:2837 no codecs found! [ 12.671307] snd_hda_intel 0000:00:1b.0: PCI INT A disabled even if your hda-codec is not supported, it should try hda-codec-generic can you provide the step to reproduce the bug ? did you stop pulseaudio or related service before remove snd-au8830 ? : [<ffffffffa01badf3>] snd_card_free+0xa3/0xc0 [snd] : [<ffffffffa0261b8f>] ? snd_ac97_bus+0xaf/0x130 [snd_ac97_codec] : [<ffffffffa04e6a9f>] snd_vortex_probe+0x1c40/0x1d09 [snd_au8830] : [<ffffffff812db37c>] local_pci_probe+0x5c/0xd0 : [<ffffffff812dcc19>] pci_device_probe+0x109/0x130 : [<ffffffff813932cc>] driver_probe_device+0x9c/0x300 : [<ffffffff813935db>] __driver_attach+0xab/0xb0 : [<ffffffff81393530>] ? driver_probe_device+0x300/0x300 : [<ffffffff81393530>] ? driver_probe_device+0x300/0x300 : [<ffffffff8139214c>] bus_for_each_dev+0x5c/0x90 : [<ffffffff81392ede>] driver_attach+0x1e/0x20 : [<ffffffff81392ae0>] bus_add_driver+0x1b0/0x2a0 can you add printk statement to dump the value of 'err' returned by snd_ac97_bus ? - if ((err = snd_ac97_bus(vortex->card, 0, &ops, NULL, &pbus)) < 0) + if ((err = snd_ac97_bus(vortex->card, 0, &ops, NULL, &pbus)) < 0) { + printk("snd_ac97_bus err %d\n",err); return err; + } Sometimes my sound card hangs up (It do not produce sounds. Applications which try to play something hangs).
In this case I try to reload modules and get this bug.
# killall pulseaudio; rmmod snd_au8830 snd_hda_intel snd_seq snd_ac97_codec ac97_bus snd_hda_codec snd_hwdep snd_mpu401_uart snd_pcm snd_rawmidi snd_seq_device snd_pcm snd_timer snd_page_alloc snd
# modprobe snd_au8830
This bug was reproduced again.
Linux dhcp-10-30-19-46.sw.ru 3.2.7-1.fc16.x86_64 #1 SMP Tue Feb 21 01:40:47 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
Driver version: 1.0.24
Library version:
Utilities version: 1.0.25
>> can you add printk statement to dump the value of 'err' returned by
snd_ac97_bus ?
Yes, I can. I will add information when it's produced again.
http://git.alsa-project.org/?p=alsa-kernel.git&a=search&h=HEAD&st=commit&s=au88x0 There are several patches related to au88x0 but I am not sure that your alsa-driver-1.0.24 contain all those patches 1) Did you still get "IRQ FIFO error" in system log when you play stereo stream aplay -Dhw:0,0 stereo.wav 2) Did front and rear channels still swaps after first play ? speaker-test -c 4 -Dhw:0,0 -t wav As you still have 32 playback subdevices, it seem that you did not have this commit 49b9c40e9b5e47ef64f8601b84981fa45c3c4f86 >> Sometimes my sound card hangs up (It do not produce sounds. Applications which try to play something hangs). >> In this case I try to reload modules and get this bug. Have you try restart pulseaudio server ? This can be due to many reason 1) did the pulseaudio server abort and unable to respwan ? 2) it is known that au88x0 still does not support suspend/resume you have to check any error messages in system log similar to https://bugzilla.redhat.com/show_bug.cgi?id=789156 Refer to those log , it seem that au88x0 gameport is not loaded do you have any step which can reproduce the no sound problem ? can you provide a pulseaudio log when there is no sound ? i.e. open a terminal and wait until there is no sound pulseaudio -k; pulseaudio -vvvv does any error appear in pulseaudio log when aplay -v -D pulse --period-size=32 --buffer-size=96 any.wav >> :Sometimes my host doesn't play music.
It seem that pulseaudio mute the other switches (e.g. PCM and Surround) when you mute "Master Playback Volume" of ac97 codec using any alsa application (e.g. amixer, alsamixer, qasmixer, gnome-alsamixer) if your sound card with ac97 codec is set as default sound card
~$ amixer -c0
Simple mixer control 'Master',0
Capabilities: pvolume pswitch pswitch-joined penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 31 [100%] [0.00dB] [on]
Front Right: Playback 31 [100%] [0.00dB] [on]
Simple mixer control 'PCM',0
Capabilities: pvolume pswitch pswitch-joined penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 31 [100%] [12.00dB] [on]
Front Right: Playback 31 [100%] [12.00dB] [on]
Simple mixer control 'Surround',0
Capabilities: pvolume pswitch penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 31 [100%] [0.00dB] [on]
Front Right: Playback 31 [100%] [0.00dB] [on]
~$ amixer -c0 set Master mute
Simple mixer control 'Master',0
Capabilities: pvolume pswitch pswitch-joined penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 31 [100%] [0.00dB] [off]
Front Right: Playback 31 [100%] [0.00dB] [off]
~$ amixer -c 0
Simple mixer control 'Master',0
Capabilities: pvolume pswitch pswitch-joined penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 31 [100%] [0.00dB] [off]
Front Right: Playback 31 [100%] [0.00dB] [off]
Simple mixer control 'PCM',0
Capabilities: pvolume pswitch pswitch-joined penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 31 [100%] [12.00dB] [off]
Front Right: Playback 31 [100%] [12.00dB] [off]
Simple mixer control 'Surround',0
Capabilities: pvolume pswitch penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 31 [100%] [0.00dB] [off]
Front Right: Playback 31 [100%] [0.00dB] [off]
~$ amixer -c0 set Master unmute
Simple mixer control 'Master',0
Capabilities: pvolume pswitch pswitch-joined penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 31 [100%] [0.00dB] [on]
Front Right: Playback 31 [100%] [0.00dB] [on]
~$ amixer -c 0
Simple mixer control 'Master',0
Capabilities: pvolume pswitch pswitch-joined penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 31 [100%] [0.00dB] [on]
Front Right: Playback 31 [100%] [0.00dB] [on]
Simple mixer control 'PCM',0
Capabilities: pvolume pswitch pswitch-joined penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 31 [100%] [12.00dB] [off]
Front Right: Playback 31 [100%] [12.00dB] [off]
Simple mixer control 'Surround',0
Capabilities: pvolume pswitch penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 31 [100%] [0.00dB] [off]
Front Right: Playback 31 [100%] [0.00dB] [off]
Created attachment 596161 [details]
Force Pulseaudio don't mute pcm playback switch when alsa mixer mute master playback switch
The patch fix the pulseaudio server mute "PCM playback switch" when any mixer application mute "Master Playback Switch" when au88x0 or any ac97 controlers with ac97 codec which has "PCM Playback Switch" when the sound is set as the default sink
A number of Raymond's fixes went into the 3.4 kernel. Are you still seeing issues with the 3.4 or 3.5 kernel updates? No, I am not seeing it, because I've changed my computer. Thank you for attempts to fix this bug. Thank you for letting us know. I'm going to make an assumption that Raymond's upstream work has fixed this for vortex users and close this out now. |