From mboxrd@z Thu Jan 1 00:00:00 1970 From: noreply@alsa-project.org Subject: [ALSA - driver 0000344]: usx2y driver causes kernel oops Date: Tue, 29 Jun 2004 10:45:10 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: <87d3a5af006fd59a014539f5979d9a7d@bugtrack.alsa-project.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org A BUGNOTE has been added to this bug. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D https://bugtrack.alsa-project.org/alsa-bug/bug_view_page.php?bug_id=3D000= 0344 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Reported By: maggoi Assigned To: karsten =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Project: ALSA - driver Bug ID: 344 Category: USB - usb-usx2y Reproducibility: always Severity: major Priority: normal Status: assigned Distribution: Gentoo Kernel Version: 2.6.6 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Date Submitted: 06-24-2004 18:06 CEST Last Modified: 06-29-2004 10:45 CEST =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Summary: usx2y driver causes kernel oops Description:=20 While playing a soundfile using my Tascam us-122 (Alsa Module snd-usx2y) after a few seconds the sound stutters and i get an Kernel oops.=20 This is not happening if I use Jack. I'm using the latest alsa drivers 1.0.5. With kernel 2.6.6.=20 dmesg: Debug: sleeping function called from invalid context at mm/slab.c:1996 in_atomic():1, irqs_disabled():1 [] __might_sleep+0xb7/0xe0 [] __kmalloc+0xa3/0xb0 [] usb_alloc_urb+0x21/0x60 [] snd_usX2Y_substream_prepare+0xd5/0x1c0 [snd_usb_usx2y] [] snd_usX2Y_urb_play_start+0xa7/0x170 [snd_usb_usx2y] [] snd_usX2Y_pcm_play_trigger+0x3f/0x50 [snd_usb_usx2y] [] snd_pcm_do_start+0x28/0x30 [snd_pcm] [] snd_pcm_action_single+0x39/0x70 [snd_pcm] [] snd_pcm_action_lock_irq+0x92/0x1e0 [snd_pcm] [] do_page_fault+0x34c/0x54e [] snd_pcm_common_ioctl1+0x167/0x2f0 [snd_pcm] [] snd_pcm_playback_ioctl1+0x60/0x3b0 [snd_pcm] [] vfs_write+0xd2/0x130 [] sys_ioctl+0x100/0x270 [] syscall_call+0x7/0xb =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ---------------------------------------------------------------------- karsten - 06-24-2004 22:17 CEST=20 ---------------------------------------------------------------------- As a test please replace all occurrences of GFP_KERNEL in=20 function snd_usX2Y_substream_prepare() with GFP_ATOMIC. That function is in alsa-driver/usb/usx2y/usbusx2yaudio.c. Thanks for debugging. ---------------------------------------------------------------------- maggoi - 06-28-2004 09:51 CEST=20 ---------------------------------------------------------------------- Thank's a lot, this has solved the issue. Will you include this fix in further versions? ---------------------------------------------------------------------- maggoi - 06-28-2004 10:34 CEST=20 ---------------------------------------------------------------------- Sorry i was to fast. The old error message has gone, but after aprox. 10 min. of listening to a mp3 file by xmms (alsa plugin) the sound becomes completely distorted. I don't if this dmesg output is alsa related: ALSA /var/tmp/portage/alsa-driver-1.0.5a/work/alsa-driver-1.0.5a/alsa-kernel/u= sb/usbmidi.c:149: urb status -108 ALSA /var/tmp/portage/alsa-driver-1.0.5a/work/alsa-driver-1.0.5a/alsa-kernel/u= sb/usbmidi.c:134: usb_submit_urb: -32 ACPI-0279: *** Error: Looking up [BST0] in namespace, AE_ALREADY_EXISTS ACPI-1133: *** Error: Method execution failed [\_SB_.BAT0._BST] (Node f7fbe928), AE_ALREADY_EXISTS ---------------------------------------------------------------------- karsten - 06-28-2004 21:04 CEST=20 ---------------------------------------------------------------------- The "ALSA......" lines are indeed ALSA-related. That issue is fixed in cv= s and shouldn't harm pcm playback. The ACPI errors could cause distortion. Please switch off the acpi-deamon. Here I would do this as su with "/etc/init.d/acpid stop". You could also use the kernel boot option acpi=3Doff. And yes, there will be a fix for the "Debug: sleeping function called fro= m invalid context" error. It will be a rearangement of some functions; more complicated than this test-fix. ---------------------------------------------------------------------- maggoi - 06-29-2004 10:45 CEST=20 ---------------------------------------------------------------------- Sorry, with alsa related i meant the acpi lines. But anyway, does this me= an that the usx2y driver will not work with acpi at all? I used my tascam us-122 under WinXP and had also issues with drop outs while acpi was switched on. Thanks for your efford. Bug History Date Modified Username Field Change = =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 06-24-04 18:06 maggoi New Bug = =20 06-24-04 18:06 maggoi Distribution =3D> Gentoo = =20 06-24-04 18:06 maggoi Kernel Version =3D> 2.6.6 = =20 06-24-04 22:17 karsten Bugnote Added: 0001337 = =20 06-28-04 09:51 maggoi Bugnote Added: 0001343 = =20 06-28-04 10:34 maggoi Bugnote Added: 0001344 = =20 06-28-04 21:04 karsten Bugnote Added: 0001346 = =20 06-29-04 10:45 maggoi Bugnote Added: 0001347 = =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com