Author Topic: Tascam US-122 kernel bug: testers needed.  (Read 6951 times)

0 Members and 1 Guest are viewing this topic.

Offline trulan

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 910
  • Karma: +1/-0
Re: Tascam US-122 kernel bug: testers needed.
« Reply #60 on: April 30, 2013, 08:35:51 PM »
@zkonik: Here's one more test kernel (think of it as a bonus):
http://www.bandshed.net/kernels/testing/linux-image-3.7.0-00001-gf0d607d_3.7.0-00001-gf0d607d-112_i386.deb
It's a vanilla 3.7.0 kernel with the offending patch reverted.

Offline GMaq

  • Administrator
  • Hero Member
  • *****
  • Posts: 2459
  • Karma: +5/-0
  • A/V 'Nixer
    • www.bandshed.net
Re: Tascam US-122 kernel bug: testers needed.
« Reply #61 on: April 30, 2013, 08:40:11 PM »
Hi,

I agree probably waiting is the best plan, it would be nice if the ALSA devs could be informed specifically that both TASCAM units are affected and that the symptoms are different. If 3.8.0 was the default for AV 6.0.1 I would want to press on, but the fact is that even despite the US-122 issues 3.8.0 still freaks out on the development box I'm Remastering from (although it seems fine on a Netbook and a Franken-computer made of spare parts here...)

Sounds like 3.8.0 and beyond are just not ready for prime-time audio work for all potential users at the present time for various reasons unfortunately...

Again Trulan thanks so much to you and zkonik for troubleshooting this! :howdy:
« Last Edit: April 30, 2013, 08:41:47 PM by GMaq »
AV Linux, Proudly created with Remastersys: http://www.bandshed.net/AVLinux.html

Offline zkonik

  • Full Member
  • ***
  • Posts: 32
  • Karma: +0/-0
Re: Tascam US-122 kernel bug: testers needed.
« Reply #62 on: April 30, 2013, 08:57:37 PM »
uname -r 3.7.0-00001-gf0d607d   Works like a charm :)

Offline trulan

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 910
  • Karma: +1/-0
Re: Tascam US-122 kernel bug: testers needed.
« Reply #63 on: April 30, 2013, 09:25:39 PM »
@zkonik, thanks again for hanging in there with the kernel tests, I really appreciate it! 

@GMaq, my laptop has Intel graphics, as does your development machine if I recall correctly.  If I get a chance I just might install AV Linux 6 on a USB hard drive and see if I can reproduce the ugliness you are seeing on 3.8.  I fully understand that 3.8 is off the table for AV 6.0.1 but I would like to know what is going on on that front as well.

Offline GMaq

  • Administrator
  • Hero Member
  • *****
  • Posts: 2459
  • Karma: +5/-0
  • A/V 'Nixer
    • www.bandshed.net
Re: Tascam US-122 kernel bug: testers needed.
« Reply #64 on: April 30, 2013, 11:42:36 PM »
@trulan

Actually you are partially correct, I have a DELL laptop that is my 'studio' computer with Intel Graphics, I don't mess with it much so I haven't tried 3.8.0 on it. AV Linux gets spun off a Desktop with an Intel Q6600 with nVidia GeForce 9600GT Graphics (running Nouveau to simplify Remastering). The Desktop is the one that doesn't like it, strange to me that it's kicking up a fuss because it has a really good Intel mobo on it with all Intel chipsets (other than Video)...
« Last Edit: April 30, 2013, 11:46:35 PM by GMaq »
AV Linux, Proudly created with Remastersys: http://www.bandshed.net/AVLinux.html

Offline kjolie

  • Full Member
  • ***
  • Posts: 21
  • Karma: +0/-0
Re: Tascam US-122 kernel bug: testers needed.
« Reply #65 on: May 02, 2013, 11:58:17 AM »
Sorry...late to the party here...

I downloaded 3.6.0-09629 from testing

here were my results...

07:53:33.505 Patchbay deactivated.
07:53:33.507 Statistics reset.
07:53:33.509 ALSA connection change.
07:53:33.513 ALSA connection graph change.
07:53:43.888 JACK is starting...
07:53:43.888 /usr/bin/jackd -v -dalsa -dhw:1,0 -r44100 -p1024 -n2
jackd 0.121.3
Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
getting driver descriptor from /usr/lib/jack/jack_net.so
getting driver descriptor from /usr/lib/jack/jack_firewire.so
07:53:43.898 JACK was started with PID=3403.
getting driver descriptor from /usr/lib/jack/jack_dummy.so
getting driver descriptor from /usr/lib/jack/jack_oss.so
getting driver descriptor from /usr/lib/jack/jack_alsa.so
JACK compiled with System V SHM support.
server `default' registered
registered builtin port type 32 bit float mono audio
registered builtin port type 8 bit raw midi
clock source = system clock via clock_gettime
loading driver ..
start poll on 3 fd's
apparent rate = 44100
creating alsa driver ... hw:1,0|hw:1,0|1024|2|44100|0|0|nomon|swmeter|-|32bit
new client: alsa_pcm, id = 1 type 1 @ 0x9a07f30 fd = -1
control device hw:1
configuring for 44100Hz, period = 1024 frames (23.2 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 24bit little-endian
ALSA: use 2 periods for capture
ALSA: final selected sample format for playback: 24bit little-endian
ALSA: use 2 periods for playback
ALSA: cannot set hardware parameters for playback
ALSA: cannot configure playback channel
cannot load driver module alsa
starting server engine shutdown
freeing shared port segments
stopping server thread
server thread back from poll
last xrun delay: 0.000 usecs
max delay reported by backend: 0.000 usecs
freeing engine shared memory
max usecs: 0.000, engine deleted
cleaning up shared memory
cleaning up files
unregistering server `default'
no message buffer overruns
07:53:43.945 JACK was stopped successfully.
07:53:45.925 Could not connect to JACK server as client. - Overall operation failed. - Unable to connect to server. Please check the messages window for more info.

Offline trulan

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 910
  • Karma: +1/-0
Re: Tascam US-122 kernel bug: testers needed.
« Reply #66 on: May 02, 2013, 06:51:49 PM »
Sorry...late to the party here...

I downloaded 3.6.0-09629 from testing

here were my results...
You have a US-122, not a US-122L, correct?  If so, that kernel should work, at least it might work.  I would be interested in seeing your results with 3.7.0, or 3.7.0-00001-gf0d607d.  I can't get either the 122 or the 122L to work on anything newer than a 3.7 kernel, so if they both fail for you you may have to wait until there is a proper fix.

Offline kjolie

  • Full Member
  • ***
  • Posts: 21
  • Karma: +0/-0
Re: Tascam US-122 kernel bug: testers needed.
« Reply #67 on: May 03, 2013, 09:57:30 AM »
Yes I have the US-122

I'll post for the other kernel versions as well - later tonight probably

Offline millerthegorilla

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: Tascam US-122 kernel bug: testers needed.
« Reply #68 on: June 02, 2013, 07:55:44 AM »
Hi, I have some spare time on my hands and also use a us122l so if you need testers (I have development experience as well) then let me know.

Cheers.

Offline Sim987

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: Tascam US-122 kernel bug: testers needed.
« Reply #69 on: June 20, 2013, 03:05:55 PM »
Hey folks,

i just got my Tascam US122l working again with this tiny 1-line patch on the snd-usb-us122l module of kernel 3.8.0-25 (most recent kernel for Ubuntu 13.04):

Code: [Select]
--- sound/usb/usx2y/us122l.c.bak 2013-06-19 21:58:20.854702978 +0200
+++ sound/usb/usx2y/us122l.c 2013-06-19 21:59:00.814703468 +0200
@@ -262,7 +262,7 @@
  }
 
  area->vm_ops = &usb_stream_hwdep_vm_ops;
- area->vm_flags |= VM_DONTEXPAND | VM_DONTDUMP;
+ area->vm_flags |= VM_IO;
  area->vm_private_data = us122l;
  atomic_inc(&us122l->mmap_count);
 out:

As you see, all it does is to replace the flag combination "VM_DONTEXPAND | VM_DONTDUMP" with the flag "VM_IO". To be honest I know not much about the kernel's memory management and vma's, but this one just seemed to make sense as Konstantin stated in the description of the relevant commit (https://patchwork.kernel.org/patch/1258951/):

Quote
Thus VM_RESERVED can be replaced with VM_IO or pair VM_DONTEXPAND | VM_DONTDUMP.

Note that this only touches the module snd-usb-us122l and I only have a US122l, so I can't tell, if there is such an easy fix for the US122 as well.

Thank you guys very much for doing all the hard work, bisecting the kernel and finding the critical commit!
I would like to hear if this little fix works for you as well... Meanwhile I will go ahead and post this on the kernel bug report.

Cheers

Offline trulan

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 910
  • Karma: +1/-0
Re: Tascam US-122 kernel bug: testers needed.
« Reply #70 on: June 20, 2013, 06:03:25 PM »
Thank you!  I'll get a kernel building directly.  That commit only breaks the US122L, the US122 is broken by something else that landed in the 3.8 merge window, which we have not yet bisected.
« Last Edit: June 20, 2013, 06:09:00 PM by trulan »

Offline trulan

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 910
  • Karma: +1/-0
Re: Tascam US-122 kernel bug: testers needed.
« Reply #71 on: June 21, 2013, 05:52:06 AM »
In the true spirit of testing, here's a hot-off-the-press 3.10-rc5, with Sim987's patch:
http://www.bandshed.net/kernels/testing/linux-image-3.10.0-rc5v1+_3.10.0-rc5v1+-1_i386.deb
In addition to testing the US122L, I would be curious to see if the US122 remains broken on a 3.10 kernel.

Offline GMaq

  • Administrator
  • Hero Member
  • *****
  • Posts: 2459
  • Karma: +5/-0
  • A/V 'Nixer
    • www.bandshed.net
Re: Tascam US-122 kernel bug: testers needed.
« Reply #72 on: June 21, 2013, 10:35:51 AM »
Thanks Trulan  :howdy:,

Will test with US-122 ASAP

**EDIT**

Hit a bump here with the install, anyone else notice this?

Code: [Select]
root@av6devdesk:/home/glen/Downloads/tmp# dpkg -i *.deb
(Reading database ... 250498 files and directories currently installed.)
Preparing to replace linux-image-3.10.0-rc5v1+ 3.10.0-rc5v1+-1 (using linux-image-3.10.0-rc5v1+_3.10.0-rc5v1+-1_i386.deb) ...
Unpacking replacement linux-image-3.10.0-rc5v1+ ...
Setting up linux-image-3.10.0-rc5v1+ (3.10.0-rc5v1+-1) ...
update-initramfs: Generating /boot/initrd.img-3.10.0-rc5v1+
WARNING: could not open /tmp/mkinitramfs_BPKVdn/lib/modules/3.10.0-rc5v1+/modules.builtin: No such file or directory
/etc/default/grub: line 20: unexpected EOF while looking for matching ``'
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
dpkg: error processing linux-image-3.10.0-rc5v1+ (--install):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 linux-image-3.10.0-rc5v1+
root@av6devdesk:/home/glen/Downloads/tmp#
« Last Edit: June 21, 2013, 02:56:33 PM by GMaq »
AV Linux, Proudly created with Remastersys: http://www.bandshed.net/AVLinux.html

Offline heix

  • Full Member
  • ***
  • Posts: 47
  • Karma: +1/-0
Re: Tascam US-122 kernel bug: testers needed.
« Reply #73 on: June 21, 2013, 10:52:51 PM »
Quote
Hit a bump here with the install, anyone else notice this?
I get the warning and my dkms modules don't build without linux-headers-3.10, but the kernel installs fine. If you can trust the error message, there seems to be a problem with your /etc/default/grub (missing quote?).

Offline GMaq

  • Administrator
  • Hero Member
  • *****
  • Posts: 2459
  • Karma: +5/-0
  • A/V 'Nixer
    • www.bandshed.net
Re: Tascam US-122 kernel bug: testers needed.
« Reply #74 on: June 22, 2013, 03:03:57 PM »
Hi heix,

You were right, I was missing a quote, however I'm puzzled because this was a fresh install so I hadn't made any modifications to etc/grub/default... weird..

OK so now with the kernel installed the situation with US-122 is unchanged, it still refuses to work with JACK as before unfortunately.
« Last Edit: June 22, 2013, 03:37:36 PM by GMaq »
AV Linux, Proudly created with Remastersys: http://www.bandshed.net/AVLinux.html

Offline trulan

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 910
  • Karma: +1/-0
Re: Tascam US-122 kernel bug: testers needed.
« Reply #75 on: June 22, 2013, 08:28:38 PM »
Sadly, I'm not surprised.  Sometime if you wanna bisect the issue, I can either build kernels for you or get you started on the bisect so you can do it yourself.  Just ask and I'll do what I can to help.

Offline oaces

  • Sr. Member
  • ****
  • Posts: 53
  • Karma: +0/-0
Re: Tascam US-122 kernel bug: testers needed.
« Reply #76 on: June 22, 2013, 08:54:24 PM »
I tested with the US122L and it seems to work fine.  I tested audio as well as midi.  So far, no hiccups.

Thanks 

Offline Ergor

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: Tascam US-122 kernel bug: testers needed.
« Reply #77 on: June 29, 2013, 04:16:37 AM »
Great work guys!

My US-122L works OK now with this kernel. I only tested audio playback thus far.

Thanks!

$ lsb_release -a && uname -r
LSB Version:   core-2.0-ia32:core-2.0-noarch:core-3.0-ia32:core-3.0-noarch:core-3.1-ia32:core-3.1-noarch:core-3.2-ia32:core-3.2-noarch:core-4.0-ia32:core-4.0-noarch:cxx-3.0-ia32:cxx-3.0-noarch:cxx-3.1-ia32:cxx-3.1-noarch:cxx-3.2-ia32:cxx-3.2-noarch:cxx-4.0-ia32:cxx-4.0-noarch:desktop-3.1-ia32:desktop-3.1-noarch:desktop-3.2-ia32:desktop-3.2-noarch:desktop-4.0-ia32:desktop-4.0-noarch:graphics-2.0-ia32:graphics-2.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch:graphics-3.1-ia32:graphics-3.1-noarch:graphics-3.2-ia32:graphics-3.2-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-3.2-ia32:printing-3.2-noarch:printing-4.0-ia32:printing-4.0-noarch:qt4-3.1-ia32:qt4-3.1-noarch
Distributor ID:   Ubuntu
Description:   Ubuntu 13.04
Release:   13.04
Codename:   raring
3.10.0-rc5v1+

Offline foweler

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: Tascam US-122 kernel bug: testers needed.
« Reply #78 on: July 31, 2013, 12:24:04 AM »
Hi,
Really appreciate the work you are doing.
I have a couple of 122's and would be happy to try different kernels.
I am multibooting 3 flavors of Mint15 and AV Linux 6.01. And constantly trying different distros.

I am a bit of a newb to linux. Getting a lot better but still haven't found a good resource telling me how to switch between pre-compiled kernels easily. Any direction would be much appreciated.
I'd like to be able to select the last kernel the 122 works with in grub in any of my distros at will anytime I feel like doing audio.
Do I just download the kernels and put them in the /boot directory and update grub?

I sure hope you can get the newer kernels working for these old interfaces.
Thanks again

Offline trulan

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 910
  • Karma: +1/-0
Re: Tascam US-122 kernel bug: testers needed.
« Reply #79 on: July 31, 2013, 06:04:07 AM »
You may or may not be able to find precompiled kernels in various versions for Mint, they may have a kernel ppa with different versions available, but typically distros ship one kernel version with each release.  If you want different versions, it's usually simplest to just compile them yourself.

As far as booting different kernels, you can have as many kernels installed as you want (and as long as you have room on your hard drive), just reboot and select the one you want to boot from Grub.  If you have multiple distros on the same computer, you will likely need to reboot into whichever distro was install most recently and run 'update-grub' as root to get the other distro's kernels to show up in Grub.

If you are interested in testing a bunch of kernels to bisect the problem for the US122, I can try to do the builds again like we did for the US122L.  Or, if you don't want to wait on me and really want to do some Linux learning, you could learn to do the bisect yourself, though that may be a bit daunting if you're new to compiling stuff from source, and if you have no experience with git.