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

0 Members and 2 Guests are viewing this topic.

Offline trulan

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 910
  • Karma: +1/-0
Tascam US-122 kernel bug: testers needed.
« on: April 18, 2013, 08:49:59 PM »
There seems to be a bug that breaks using the Tascam US-122 (with JACK at least) with any kernels newer than the 3.6 series.  If this is going to be fixed, somebody needs to hunt down the specific change that caused it.  The breakage happened between 3.6 and 3.7-rc1, so it will take about thirteen test kernels to find the offending commit.  I'm willing to do the git bisect and the kernel builds, if somebody (or somebodies) will help me out with some testing.

Please note:  These are pre-rc1 kernels, so there will be bugs.  YOU HAVE BEEN WARNED!!  I won't upload anything that I haven't first booted on my system, but there are no guarantees beyond that.

How you can help:
If you have a US-122 that works on an existing installation of AV Linux, and would like to test, here's how it works:
1. Install the most recent 3.6 testing kernel (posted in this thread), and boot into it.
2. Try to start JACK with your Tascam US-122.
3. Reboot into your normal stable kernel.
4. Post here with your results (working or not working).  Please include the output of 'uname r' on the testing kernel with your results.

As soon as I get a working / not working report on a kernel, I can proceed with the next build.

Here's the first git bisect build:
linux-image-3.6.0-05487-g24d7b40_3.6.0-05487-g24d7b40-96_i386.deb

Testing log:
Kernel revision:                                    US-122L(zkonik):      US-122(GMaq):
3.6.0-05487-g24d7b40                          good
3.6.0-08280-g21c8715                           good
3.6.0-08939-g50e0d10                          good
3.6.0-08938-g5180da4                          good
3.6.0-08942-g0b173bc                          good
3.6.0-08944-ge9714ac                          good
3.6.0-08945-g0103bd1
3.6.0-08946-g314e51b                           bad
3.6.0-08947-gd741c9c                            bad
3.6.0-08965-g637e3a2                           bad
3.6.0-09002-g46b6135                           bad
3.6.0-09075-ga16cee1                           bad                          good
3.6.0-09232-gfc81c03                             bad                         good
3.6.0-09629-g23d5385                           bad                         good
3.7-rc1                                                                             good
3.7.0                                                                                good
3.8.0                                                                                  bad
3.8.0-avl9                                                                          bad
« Last Edit: April 30, 2013, 05:43:13 AM by trulan »

Offline GMaq

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

I will test, I just need a few days to get the time needed, If it saves you any time I can confirm the US-122 works with your 3.6.6-rt Kernel in the testing repo so hopefully that will eliminate the need for you to build somewhat less than the 13 testing kernels.
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 #2 on: April 19, 2013, 06:04:38 AM »
Thanks GMaq, I certainly don't want to take you away from your work or from AV Linux development.  Mainline kernel development (Linus's tree) goes from 3.6.0 to 3.7-rc1.  If this worked in 3.6.0 but was broken in 3.6.6, that would be easy to find, but since it broke between 3.6 and 3.7-rc1 (in the 3.7 merge window), we need to sort through 10,409 revisions to find the offender, which will take about thirteen builds.
« Last Edit: April 27, 2013, 09:15:04 AM by trulan »

Offline zkonik

  • Full Member
  • ***
  • Posts: 32
  • Karma: +0/-0
Re: Tascam US-122 kernel bug: testers needed.
« Reply #3 on: April 24, 2013, 07:21:15 PM »
Tested the first bisect build. It worked.

Offline trulan

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 910
  • Karma: +1/-0
Re: Tascam US-122 kernel bug: testers needed.
« Reply #4 on: April 24, 2013, 08:52:26 PM »
Thanks!  So that's a 'bisect good', I'll get the next kernel rolling.

...and, here it is:
linux-image-3.6.0-08280-g21c8715_3.6.0-08280-g21c8715-98_i386.deb
« Last Edit: April 25, 2013, 06:26:03 PM by trulan »

Offline zkonik

  • Full Member
  • ***
  • Posts: 32
  • Karma: +0/-0
Re: Tascam US-122 kernel bug: testers needed.
« Reply #5 on: April 25, 2013, 12:49:23 AM »
Another bisect good

Offline trulan

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 910
  • Karma: +1/-0
Re: Tascam US-122 kernel bug: testers needed.
« Reply #6 on: April 25, 2013, 06:25:32 PM »
Next one:
linux-image-3.6.0-09629-g23d5385_3.6.0-09629-g23d5385-99_i386.deb
« Last Edit: April 26, 2013, 05:06:14 PM by trulan »

Offline zkonik

  • Full Member
  • ***
  • Posts: 32
  • Karma: +0/-0
Re: Tascam US-122 kernel bug: testers needed.
« Reply #7 on: April 25, 2013, 07:22:54 PM »
The last one didn't work!!!!! ALSA/USX2Y: mmap: Bad address

Offline trulan

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 910
  • Karma: +1/-0
Re: Tascam US-122 kernel bug: testers needed.
« Reply #8 on: April 25, 2013, 10:58:25 PM »
Great!! (You know we're messed up when we're excited that it doesn't work...)

Next one (give it until 11:30 EDT to finish uploading - I gotta get some sleep):
linux-image-3.6.0-08939-g50e0d10_3.6.0-08939-g50e0d10-100_i386.deb
« Last Edit: April 26, 2013, 05:07:09 PM by trulan »

Offline zkonik

  • Full Member
  • ***
  • Posts: 32
  • Karma: +0/-0
Re: Tascam US-122 kernel bug: testers needed.
« Reply #9 on: April 26, 2013, 12:07:04 AM »
You are probably sleeping now, but the last one was good :)

Offline trulan

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 910
  • Karma: +1/-0
Re: Tascam US-122 kernel bug: testers needed.
« Reply #10 on: April 26, 2013, 05:21:29 PM »
Next kernel:
linux-image-3.6.0-09232-gfc81c03_3.6.0-09232-gfc81c03-101_i386.deb
« Last Edit: April 27, 2013, 07:54:57 AM by trulan »

Offline zkonik

  • Full Member
  • ***
  • Posts: 32
  • Karma: +0/-0
Re: Tascam US-122 kernel bug: testers needed.
« Reply #11 on: April 26, 2013, 10:34:30 PM »
It didn't work!!

Offline trulan

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 910
  • Karma: +1/-0

Offline zkonik

  • Full Member
  • ***
  • Posts: 32
  • Karma: +0/-0
Re: Tascam US-122 kernel bug: testers needed.
« Reply #13 on: April 27, 2013, 09:14:58 AM »
Not working!!!

Offline GMaq

  • Administrator
  • Hero Member
  • *****
  • Posts: 2478
  • Karma: +5/-0
  • A/V 'Nixer
    • www.bandshed.net
Re: Tascam US-122 kernel bug: testers needed.
« Reply #14 on: April 27, 2013, 09:37:42 AM »
Hi,

Sorry to join the party late but I fear we need a broader testing base, the last kernel works for me. I don't have an 'L', I have the older US-122. If I am correct US-122L doesn't work without a custom .asoundrc ? If so then they must be treated a little differently by ALSA. I put a post on the Ardour forum directing testers to this thread, so far it looks like we have no new takers.

Thanks very much Trulan and zkonik for taking your time with this  :howdy:

OK so my kernel version... 3.6.0-09075-ga16cee1

My JACK output:

Code: [Select]
04:30:07.866 Patchbay deactivated.
04:30:07.867 Statistics reset.
04:30:07.880 ALSA connection change.
04:30:07.938 ALSA connection graph change.
04:30:17.317 JACK is starting...
04:30:17.318 /usr/bin/jackd -dalsa -dhw:2 -r44100 -p512 -n3
jackd 0.122.1
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
04:30:17.338 JACK was started with PID=3101.
JACK compiled with System V SHM support.
loading driver ..
apparent rate = 44100
creating alsa driver ... hw:2|hw:2|512|3|44100|0|0|nomon|swmeter|-|32bit
configuring for 44100Hz, period = 512 frames (11.6 ms), buffer = 3 periods
ALSA: final selected sample format for capture: 24bit little-endian
ALSA: use 3 periods for capture
ALSA: final selected sample format for playback: 24bit little-endian
ALSA: use 3 periods for playback
04:30:19.346 JACK connection change.
04:30:19.363 Server configuration saved to "/home/pcuser/.jackdrc".
04:30:19.363 Statistics reset.
04:30:19.582 Client activated.
04:30:19.587 Buffer size change (512).
« Last Edit: April 27, 2013, 09:40:17 AM 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 #15 on: April 27, 2013, 10:03:50 AM »
Rats... I guess I got a little aggressive in removing the 'tested' kernels.  Should have left them up so GMaq could back up a notch.

@zkonik: Are you sure your latest test was on 3.6.0-09075-ga16cee1?  The one before that was 3.6.0-09232-gfc81c03, which will show up first in the grub menu if you haven't removed the previous kernel.  Test again and check 'uname -a' to make sure you are on the correct kernel.

@GMaq:  I'm rebuilding 09232-gfc81c03, hopefully you can test that one if zkonik doesn't reply before you get it done.  This will get a lot messier if he and you have different results on the exact same kernel and I want to completely eliminate that possibility before I completely go bonkers.
« Last Edit: April 27, 2013, 10:37:06 AM by trulan »

Offline zkonik

  • Full Member
  • ***
  • Posts: 32
  • Karma: +0/-0
Re: Tascam US-122 kernel bug: testers needed.
« Reply #16 on: April 27, 2013, 10:34:55 AM »
Installed it again. Didn't work.     ALSA/USX2Y: mmap: Bad address

Offline trulan

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 910
  • Karma: +1/-0
Re: Tascam US-122 kernel bug: testers needed.
« Reply #17 on: April 27, 2013, 10:39:35 AM »
OK, I'm gonna need a 'uname -r' output with each test result from here on out.  Otherwise this project will become useless really fast...

Thanks again for your help!  This is fun, really, just a bit maddening at the moment...

@GMaq: is that the same error you are seeing on 3.8?
« Last Edit: April 27, 2013, 10:46:11 AM by trulan »

Offline zkonik

  • Full Member
  • ***
  • Posts: 32
  • Karma: +0/-0
Re: Tascam US-122 kernel bug: testers needed.
« Reply #18 on: April 27, 2013, 10:47:43 AM »
Sure. uname -r 3.6.0-09075-ga16cee1

Offline trulan

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 910
  • Karma: +1/-0
Re: Tascam US-122 kernel bug: testers needed.
« Reply #19 on: April 27, 2013, 10:58:23 AM »
OK thanks, I'll keep going with zkonik's bisect then.  Unfortunately it looks like there may be a separate issue with the US-122 and the US-122l.  GMaq, if you can work backwards through the tests and establish working and non-working git revisions, I'll start a separate bisect for you.  Unfortunately I've been deleting the old builds so I have to rebuild them...fortunately git was made for stuff exactly like this.

Offline zkonik

  • Full Member
  • ***
  • Posts: 32
  • Karma: +0/-0
Re: Tascam US-122 kernel bug: testers needed.
« Reply #20 on: April 27, 2013, 11:07:02 AM »
Very thankful for your time and effort, Trulan!

Offline trulan

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 910
  • Karma: +1/-0
Re: Tascam US-122 kernel bug: testers needed.
« Reply #21 on: April 27, 2013, 11:08:49 AM »
Right now I really wish I had [1] a faster internet connection, and [2] a much much faster computer...

Offline GMaq

  • Administrator
  • Hero Member
  • *****
  • Posts: 2478
  • Karma: +5/-0
  • A/V 'Nixer
    • www.bandshed.net
Re: Tascam US-122 kernel bug: testers needed.
« Reply #22 on: April 27, 2013, 12:12:57 PM »
trulan,

OK I'll gladly back test, I'll check the thread here regularly and I have a separate spare parts machine set up here without Proprietary Vid drivers so it's pretty quick and easy now to test without risking anything on my development box. I'll try the 3.8 again later today, IIRC that wasn't the error message I got though... will post back later.

Don't be stressed, we're all in good hands with your stable or 3.6.6-rt Kernel so no need to feel rushed  ;)
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 #23 on: April 27, 2013, 01:02:51 PM »
@GMaq, 3.6.0-09232-gfc81c03 is back up again.  You've already confirmed that 3.6.0-09075-ga16cee1 works for you, so as soon as we can establish a not-working point we're back in business.
http://www.bandshed.net/kernels/testing/linux-image-3.6.0-09232-gfc81c03_3.6.0-09232-gfc81c03-103_i386.deb

Offline zkonik

  • Full Member
  • ***
  • Posts: 32
  • Karma: +0/-0
Re: Tascam US-122 kernel bug: testers needed.
« Reply #24 on: April 27, 2013, 03:14:57 PM »
@Trulan I have all the packages of the kernel images so far. Could I try to upload them to a repo?

Offline trulan

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 910
  • Karma: +1/-0
Re: Tascam US-122 kernel bug: testers needed.
« Reply #25 on: April 27, 2013, 03:33:02 PM »
@zkonik Here's your next build:
http://www.bandshed.net/kernels/testing/linux-image-3.6.0-09002-g46b6135_3.6.0-09002-g46b6135-104_i386.deb

and if you want to upload a kernel or two for GMaq to test, that would be helpful, at least until we find one that doesn't work for him.  I've uploaded 3.6.0-09232-gfc81c03 for him, and if that one works, he'll need to test 3.6.0-09629-g23d5385.  And after that, we're up to 3.7-rc1, so that's really the only one I might need yet.  All the kernels that worked for you will work for him too since they are earlier revisions.  I don't really have a place for you to upload to, sorry.

Offline zkonik

  • Full Member
  • ***
  • Posts: 32
  • Karma: +0/-0
Re: Tascam US-122 kernel bug: testers needed.
« Reply #26 on: April 27, 2013, 04:00:37 PM »
The last build didn't work for me!!!  uname -r 3.6.0-09002-g46b6135

Offline GMaq

  • Administrator
  • Hero Member
  • *****
  • Posts: 2478
  • Karma: +5/-0
  • A/V 'Nixer
    • www.bandshed.net
Re: Tascam US-122 kernel bug: testers needed.
« Reply #27 on: April 27, 2013, 04:25:29 PM »
OK,

Going back one still working here

Kernel: 3.6.0-09232-gfc81c03


JACK Output:

Code: [Select]
11:22:14.279 Patchbay deactivated.
11:22:14.281 Statistics reset.
11:22:14.293 ALSA connection change.
11:22:14.329 ALSA connection graph change.
11:22:21.092 JACK is starting...
11:22:21.093 /usr/bin/jackd -dalsa -dhw:2 -r44100 -p512 -n3
jackd 0.122.1
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
11:22:21.219 JACK was started with PID=3081.
JACK compiled with System V SHM support.
loading driver ..
apparent rate = 44100
creating alsa driver ... hw:2|hw:2|512|3|44100|0|0|nomon|swmeter|-|32bit
configuring for 44100Hz, period = 512 frames (11.6 ms), buffer = 3 periods
ALSA: final selected sample format for capture: 24bit little-endian
ALSA: use 3 periods for capture
ALSA: final selected sample format for playback: 24bit little-endian
ALSA: use 3 periods for playback
11:22:23.226 JACK connection change.
11:22:23.227 Server configuration saved to "/home/pcuser/.jackdrc".
11:22:23.228 Statistics reset.
11:22:23.430 Client activated.
11:22:23.436 Buffer size change (512).
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 #28 on: April 27, 2013, 04:31:33 PM »
Do you need me to rebuild 3.6.0-09629-g23d5385, or do you have a way of getting a copy?

Offline GMaq

  • Administrator
  • Hero Member
  • *****
  • Posts: 2478
  • Karma: +5/-0
  • A/V 'Nixer
    • www.bandshed.net
Re: Tascam US-122 kernel bug: testers needed.
« Reply #29 on: April 27, 2013, 04:38:50 PM »
Hi,

If it isn't still in the FTP or zkonik or you don't still have a package you can put up somewhere I'm afraid you'll need to re-compile it  :(
AV Linux, Proudly created with Remastersys: http://www.bandshed.net/AVLinux.html