Ultralite AVB

Talk about your MIDI interfaces, microphones, keyboards...

Moderators: MattKingUSA, khz

User avatar
bluebell
Established Member
Posts: 1334
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland & Frankfurt, Germany

Re: Ultralite AVB

Post by bluebell »

puleglot wrote:
Wed May 06, 2020 12:10 am
Patch for pcm.c with added check for subs->interface >= 0. @bluebell could you test it?
Still freezing when starting Audacity.
Linux – MOTU UltraLite AVB – Qtractor – https://soundcloud.com/suedwestlicht

Drumfix
Established Member
Posts: 255
Joined: Mon Jan 26, 2009 5:15 pm

Re: Ultralite AVB

Post by Drumfix »

I will be on irc freenode, #linuxmusicians this evening from 20:00 CEST. Better and faster to sort out the problems there.

root2
Established Member
Posts: 10
Joined: Wed Apr 15, 2020 9:48 am
Location: Germany

Re: Ultralite AVB

Post by root2 »

I tried the new patch for 5.7.0-rc4 but i am also getting errors and freezes... Is there any hope this patch works with the ESS Version?

Code: Select all

[  706.171383] BUG: scheduling while atomic: aplay/43303/0x00000002
[  706.171840] usb 1-1: Unable to submit urb #2: -2 (urb 00000000ba99161d)
[  706.173508] Modules linked in: tun veth xt_nat xt_tcpudp xt_conntrack xt_MASQUERADE nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo xt_addrtype iptable_filter iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c br_netfilter bridge stp llc overlay cmac algif_hash algif_skcipher af_alg bnep msr input_leds mousedev snd_usb_audio snd_usbmidi_lib snd_rawmidi hid_generic snd_seq_device mc usbhid intel_rapl_msr intel_rapl_common intel_telemetry_pltdrv intel_punit_ipc intel_telemetry_core intel_pmc_ipc x86_pkg_temp_thermal snd_hda_codec_hdmi intel_powerclamp snd_sof_pci snd_sof_intel_byt snd_sof_intel_ipc snd_sof_intel_hda_common coretemp snd_soc_hdac_hda snd_sof_xtensa_dsp snd_sof_intel_hda snd_sof snd_hda_codec_realtek snd_hda_codec_generic snd_soc_skl kvm_intel ledtrig_audio kvm btusb btrtl btbcm snd_soc_sst_ipc btintel snd_soc_sst_dsp nls_iso8859_1 nls_cp437 vfat fat irqbypass bluetooth snd_hda_ext_core snd_soc_acpi_intel_match snd_soc_acpi crct10dif_pclmul macvlan
[  706.173550]  crc32_pclmul
[  706.175632] usb 1-1: Unable to submit urb #3: -2 (urb 000000001bed9969)
[  706.186599]  snd_soc_core i915 iwlmvm ghash_clmulni_intel mac80211 snd_compress libarc4 ac97_bus snd_pcm_dmaengine iwlwifi ecdh_generic ecc snd_hda_intel snd_intel_dspcfg mei_hdcp snd_hda_codec i2c_algo_bit drm_kms_helper snd_hda_core wmi_bmof snd_hwdep r8169 cfg80211 cec aesni_intel snd_pcm mei_me realtek intel_gtt crypto_simd cryptd syscopyarea glue_helper mei snd_timer intel_cstate sysfillrect snd sysimgblt wdat_wdt libphy i2c_hid pcspkr intel_rapl_perf fb_sys_fops i2c_i801 soundcore wmi rfkill tpm_crb ir_rc6_decoder hid rc_rc6_mce tpm_tis ite_cir rc_core tpm_tis_core tpm evdev mac_hid rng_core acpi_cpufreq nfsd usbip_host auth_rpcgss drm nfs_acl lockd usbip_core grace pkcs8_key_parser crypto_user sunrpc agpgart ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 rtsx_pci_sdmmc dm_mod crc32c_intel sdhci_pci cqhci sdhci xhci_pci xhci_hcd mmc_core rtsx_pci
[  706.188685] usb 1-1: Unable to submit urb #4: -2 (urb 00000000fdc0b04c)
[  706.190701] Preemption disabled at:
[  706.190705] [<0000000000000000>] 0x0
[  706.190709] CPU: 0 PID: 43303 Comm: aplay Tainted: G        W         5.7.0-rc4-1-motu-00158-ga811c1fa0a02-dirty #1
[  706.199016] usb 1-1: Unable to submit urb #5: -2 (urb 000000004b5a59a8)
[  706.201078] Hardware name: Intel(R) Client Systems NUC7PJYH/NUC7JYB, BIOS JYGLKCPX.86A.0050.2019.0418.1441 04/18/2019
[  706.201079] Call Trace:
[  706.201088]  dump_stack+0x66/0x90
[  706.201093]  __schedule_bug.cold+0x8e/0x9b
[  706.203135] usb 1-1: Unable to submit urb #6: -2 (urb 000000001b529e6f)
[  706.205100]  __schedule+0x686/0x7b0
[  706.205113]  ? queue_command+0xd3/0x1d0 [xhci_hcd]
[  706.207125] usb 1-1: Unable to submit urb #7: -2 (urb 000000009adf29e0)
[  706.209082]  schedule+0x46/0xf0
[  706.209085]  usb_kill_urb+0x9c/0xd0
[  706.209090]  ? wait_woken+0x70/0x70
[  706.211112] usb 1-1: Unable to submit urb #8: -2 (urb 000000006d0de653)
[  706.213100]  usb_hcd_flush_endpoint+0xac/0x160
[  706.213102]  usb_disable_interface+0x3c/0x50
[  706.213104]  usb_set_interface+0x69/0x2e0
[  706.213118]  snd_usb_substream_playback_trigger+0x92/0xd0 [snd_usb_audio]
[  706.240979]  snd_pcm_do_stop+0x40/0x50 [snd_pcm]
[  706.242988]  snd_pcm_action_single+0x37/0x80 [snd_pcm]
[  706.244997]  snd_pcm_drop+0x52/0x90 [snd_pcm]
[  706.246950]  snd_pcm_release_substream.part.0+0x10/0xa0 [snd_pcm]
[  706.248860]  snd_pcm_release+0x4e/0xb0 [snd_pcm]
[  706.250771]  __fput+0xca/0x230
[  706.252661]  task_work_run+0x5f/0x90
[  706.254546]  exit_to_usermode_loop+0xda/0x100
[  706.256482]  do_syscall_64+0x11f/0x150
[  706.258370]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[  706.260307] RIP: 0033:0x7f2ebdc931cb
[  706.262184] Code: 8b 15 c9 4c 0c 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb 89 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa b8 0b 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 95 4c 0c 00 f7 d8 64 89 01 48
[  706.264179] RSP: 002b:00007ffdfdd646d8 EFLAGS: 00000202 ORIG_RAX: 000000000000000b
[  706.266180] RAX: 0000000000000000 RBX: 0000557eede87d98 RCX: 00007f2ebdc931cb
[  706.268257] RDX: 0000000000000010 RSI: 0000000000001000 RDI: 00007f2ebde85000
[  706.270264] RBP: 0000557eede87b60 R08: 0000557eede6a03e R09: 0000000000000002
[  706.272274] R10: 00000000000000a1 R11: 0000000000000202 R12: 0000000000000000
[  706.274283] R13: 0000557eede88a40 R14: 0000000000000000 R15: 0000000000000400
[  713.556381] xhci_hcd 0000:00:15.0: Timeout while waiting for configure endpoint command
[  713.558434] usb 1-1: Not enough bandwidth for altsetting 0
[  713.560621] xhci_hcd 0000:00:15.0: Command completion event does not match command
[  713.562786] xhci_hcd 0000:00:15.0: ERROR mismatched command completion event
[  713.564922] xhci_hcd 0000:00:15.0: WARN urb submitted to disabled ep
[  713.567018] usb 1-1: Unable to submit urb #9: -2 (urb 00000000819fa833)
[  713.570735] xhci_hcd 0000:00:15.0: xHCI xhci_drop_endpoint called with disabled ep 00000000ee9ecfdc
[  713.582807] xhci_hcd 0000:00:15.0: Trying to add endpoint 0x9 without dropping it.
[  713.585281] usb 1-1: Not enough bandwidth for altsetting 1
[  713.587499] usb 1-1: 1:1: usb_set_interface failed (-22)
[  718.659914] xhci_hcd 0000:00:15.0: Trying to add endpoint 0x9 without dropping it.
[  718.662005] usb 1-1: Not enough bandwidth for altsetting 1
[  718.664116] usb 1-1: 1:1: usb_set_interface failed (-22)
[  718.673374] xhci_hcd 0000:00:15.0: xHCI host not responding to stop endpoint command.
[  718.675575] xhci_hcd 0000:00:15.0: USBSTS:
[  718.677774] xhci_hcd 0000:00:15.0: xHCI host controller not responding, assume dead
[  718.679901] xhci_hcd 0000:00:15.0: HC died; cleaning up
[  718.681984] usb 1-1: USB disconnect, device number 2
[  718.685129] usb 1-3: USB disconnect, device number 3
[  718.687799] usb 1-4: USB disconnect, device number 4
[  718.913850] usb 1-9: USB disconnect, device number 5

Code: Select all

[   82.792115] BUG: scheduling while atomic: aplay/585/0x00000002
[   82.792117] Modules linked in: tun veth xt_nat xt_tcpudp xt_conntrack xt_MASQUERADE nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo xt_addrtype iptable_filter iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c br_netfilter bridge stp llc overlay cmac algif_hash algif_skcipher af_alg bnep msr input_leds mousedev snd_usb_audio snd_usbmidi_lib snd_rawmidi hid_generic snd_seq_device mc usbhid intel_rapl_msr intel_rapl_common intel_telemetry_pltdrv intel_punit_ipc intel_telemetry_core intel_pmc_ipc x86_pkg_temp_thermal snd_hda_codec_hdmi intel_powerclamp snd_sof_pci snd_sof_intel_byt snd_sof_intel_ipc snd_sof_intel_hda_common coretemp snd_soc_hdac_hda snd_sof_xtensa_dsp snd_sof_intel_hda snd_sof snd_hda_codec_realtek snd_hda_codec_generic snd_soc_skl kvm_intel ledtrig_audio kvm btusb btrtl btbcm snd_soc_sst_ipc btintel snd_soc_sst_dsp nls_iso8859_1 nls_cp437 vfat fat irqbypass bluetooth snd_hda_ext_core snd_soc_acpi_intel_match snd_soc_acpi crct10dif_pclmul macvlan
[   82.792159]  crc32_pclmul snd_soc_core i915 iwlmvm ghash_clmulni_intel mac80211 snd_compress libarc4 ac97_bus snd_pcm_dmaengine iwlwifi ecdh_generic ecc snd_hda_intel snd_intel_dspcfg mei_hdcp snd_hda_codec i2c_algo_bit drm_kms_helper snd_hda_core wmi_bmof snd_hwdep r8169 cfg80211 cec aesni_intel snd_pcm mei_me realtek intel_gtt crypto_simd cryptd syscopyarea glue_helper mei snd_timer intel_cstate sysfillrect snd sysimgblt wdat_wdt libphy i2c_hid pcspkr intel_rapl_perf fb_sys_fops i2c_i801 soundcore wmi rfkill tpm_crb ir_rc6_decoder hid rc_rc6_mce tpm_tis ite_cir rc_core tpm_tis_core tpm evdev mac_hid rng_core acpi_cpufreq nfsd usbip_host auth_rpcgss drm nfs_acl lockd usbip_core grace pkcs8_key_parser crypto_user sunrpc agpgart ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 rtsx_pci_sdmmc dm_mod crc32c_intel sdhci_pci cqhci sdhci xhci_pci xhci_hcd mmc_core rtsx_pci
[   82.792208] Preemption disabled at:
[   82.792212] [<0000000000000000>] 0x0
[   82.792215] CPU: 1 PID: 585 Comm: aplay Not tainted 5.7.0-rc4-1-motu-00158-ga811c1fa0a02-dirty #1
[   82.792216] Hardware name: Intel(R) Client Systems NUC7PJYH/NUC7JYB, BIOS JYGLKCPX.86A.0050.2019.0418.1441 04/18/2019
[   82.792217] Call Trace:
[   82.792226]  dump_stack+0x66/0x90
[   82.792230]  __schedule_bug.cold+0x8e/0x9b
[   82.792234]  __schedule+0x686/0x7b0
[   82.792247]  ? queue_command+0xd3/0x1d0 [xhci_hcd]
[   82.792250]  schedule+0x46/0xf0
[   82.792254]  usb_kill_urb+0x9c/0xd0
[   82.792258]  ? wait_woken+0x70/0x70
[   82.792260]  usb_hcd_flush_endpoint+0xac/0x160
[   82.792262]  usb_disable_interface+0x3c/0x50
[   82.792264]  usb_set_interface+0x69/0x2e0
[   82.792278]  snd_usb_substream_playback_trigger+0x92/0xd0 [snd_usb_audio]
[   82.792287]  snd_pcm_do_stop+0x40/0x50 [snd_pcm]
[   82.792294]  snd_pcm_action_single+0x37/0x80 [snd_pcm]
[   82.792300]  snd_pcm_drop+0x52/0x90 [snd_pcm]
[   82.792306]  snd_pcm_release_substream.part.0+0x10/0xa0 [snd_pcm]
[   82.792311]  snd_pcm_release+0x4e/0xb0 [snd_pcm]
[   82.792315]  __fput+0xca/0x230
[   82.792319]  task_work_run+0x5f/0x90
[   82.792323]  exit_to_usermode_loop+0xda/0x100
[   82.792326]  do_syscall_64+0x11f/0x150
[   82.792328]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[   82.792331] RIP: 0033:0x7fea9b3431cb
[   82.792333] Code: 8b 15 c9 4c 0c 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb 89 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa b8 0b 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 95 4c 0c 00 f7 d8 64 89 01 48
[   82.792334] RSP: 002b:00007ffea52c7ec8 EFLAGS: 00000202 ORIG_RAX: 000000000000000b
[   82.792336] RAX: 0000000000000000 RBX: 0000560e602f2d98 RCX: 00007fea9b3431cb
[   82.792337] RDX: 0000000000000010 RSI: 0000000000001000 RDI: 00007fea9b535000
[   82.792338] RBP: 0000560e602f2b60 R08: 0000560e602d503e R09: 0000000000000002
[   82.792339] R10: 00000000000000a1 R11: 0000000000000202 R12: 0000000000000000
[   82.792339] R13: 0000560e602f3a40 R14: 0000000000000000 R15: 0000000000000400
[   82.792586] xhci_hcd 0000:00:15.0: WARN urb submitted to disabled ep
[   82.792591] usb 1-1: Unable to submit urb #9: -2 (urb 000000007a39718b)
[   82.793586] xhci_hcd 0000:00:15.0: WARN urb submitted to disabled ep
[   82.793589] usb 1-1: Unable to submit urb #10: -2 (urb 000000008c320f3c)
[   82.794584] xhci_hcd 0000:00:15.0: WARN urb submitted to disabled ep
[   82.794587] usb 1-1: Unable to submit urb #11: -2 (urb 00000000429fd5a7)
[   82.795270] ------------[ cut here ]------------
[   82.795314] DEBUG_LOCKS_WARN_ON(val > preempt_count())
[   82.795322] WARNING: CPU: 1 PID: 585 at kernel/sched/core.c:3811 preempt_count_sub+0x5a/0x90
[   82.795388] Modules linked in: tun veth xt_nat xt_tcpudp xt_conntrack xt_MASQUERADE nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo xt_addrtype iptable_filter iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c br_netfilter bridge stp llc overlay cmac algif_hash algif_skcipher af_alg bnep msr input_leds mousedev snd_usb_audio snd_usbmidi_lib snd_rawmidi hid_generic snd_seq_device mc usbhid intel_rapl_msr intel_rapl_common intel_telemetry_pltdrv intel_punit_ipc intel_telemetry_core intel_pmc_ipc x86_pkg_temp_thermal snd_hda_codec_hdmi intel_powerclamp snd_sof_pci snd_sof_intel_byt snd_sof_intel_ipc snd_sof_intel_hda_common coretemp snd_soc_hdac_hda snd_sof_xtensa_dsp snd_sof_intel_hda snd_sof snd_hda_codec_realtek snd_hda_codec_generic snd_soc_skl kvm_intel ledtrig_audio kvm btusb btrtl btbcm snd_soc_sst_ipc btintel snd_soc_sst_dsp nls_iso8859_1 nls_cp437 vfat fat irqbypass bluetooth snd_hda_ext_core snd_soc_acpi_intel_match snd_soc_acpi crct10dif_pclmul macvlan
[   82.795415]  crc32_pclmul snd_soc_core i915 iwlmvm ghash_clmulni_intel mac80211 snd_compress libarc4 ac97_bus snd_pcm_dmaengine iwlwifi ecdh_generic ecc snd_hda_intel snd_intel_dspcfg mei_hdcp snd_hda_codec i2c_algo_bit drm_kms_helper snd_hda_core wmi_bmof snd_hwdep r8169 cfg80211 cec aesni_intel snd_pcm mei_me realtek intel_gtt crypto_simd cryptd syscopyarea glue_helper mei snd_timer intel_cstate sysfillrect snd sysimgblt wdat_wdt libphy i2c_hid pcspkr intel_rapl_perf fb_sys_fops i2c_i801 soundcore wmi rfkill tpm_crb ir_rc6_decoder hid rc_rc6_mce tpm_tis ite_cir rc_core tpm_tis_core tpm evdev mac_hid rng_core acpi_cpufreq nfsd usbip_host auth_rpcgss drm nfs_acl lockd usbip_core grace pkcs8_key_parser crypto_user sunrpc agpgart ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 rtsx_pci_sdmmc dm_mod crc32c_intel sdhci_pci cqhci sdhci xhci_pci xhci_hcd mmc_core rtsx_pci
[   82.796155] CPU: 1 PID: 585 Comm: aplay Tainted: G        W         5.7.0-rc4-1-motu-00158-ga811c1fa0a02-dirty #1
[   82.796202] Hardware name: Intel(R) Client Systems NUC7PJYH/NUC7JYB, BIOS JYGLKCPX.86A.0050.2019.0418.1441 04/18/2019
[   82.796251] RIP: 0010:preempt_count_sub+0x5a/0x90
[   82.796274] Code: 63 f5 72 c3 e8 d7 2a 3c 00 85 c0 74 f6 8b 15 4d 62 4a 01 85 d2 75 ec 48 c7 c6 76 8c 13 8e 48 c7 c7 4a 1e 12 8e e8 28 fa fc ff <0f> 0b c3 84 c0 75 c9 e8 aa 2a 3c 00 85 c0 74 c9 8b 05 20 62 4a 01
[   82.796357] RSP: 0018:ffffa1848084fe38 EFLAGS: 00010282
[   82.796382] RAX: 0000000000000000 RBX: ffff958ca8f66000 RCX: 0000000000000000
[   82.796415] RDX: 0000000000000001 RSI: ffffffff8eb1586a RDI: 0000000000000246
[   82.796448] RBP: ffff958ca9bfe200 R08: 0000001346fc3daa R09: 000000000000002a
[   82.796481] R10: ffffffff8eb15c20 R11: 000000008eb15853 R12: ffff958caa2fba00
[   82.796514] R13: ffff958ca9afbdf0 R14: ffff958caab45f48 R15: ffff958cad814ca0
[   82.796548] FS:  00007fea9b0ee740(0000) GS:ffff958cb0080000(0000) knlGS:0000000000000000
[   82.796586] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   82.796613] CR2: 00007ffea52c4c58 CR3: 000000045b79e000 CR4: 0000000000340ee0
[   82.796646] Call Trace:
[   82.796661]  _raw_spin_unlock_irq+0x1d/0x30
[   82.796688]  snd_pcm_drop+0x5a/0x90 [snd_pcm]
[   82.796716]  snd_pcm_release_substream.part.0+0x10/0xa0 [snd_pcm]
[   82.796750]  snd_pcm_release+0x4e/0xb0 [snd_pcm]
[   82.796774]  __fput+0xca/0x230
[   82.796792]  task_work_run+0x5f/0x90
[   82.796812]  exit_to_usermode_loop+0xda/0x100
[   82.796835]  do_syscall_64+0x11f/0x150
[   82.796856]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[   82.796881] RIP: 0033:0x7fea9b3431cb
[   82.796900] Code: 8b 15 c9 4c 0c 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb 89 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa b8 0b 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 95 4c 0c 00 f7 d8 64 89 01 48
[   82.796983] RSP: 002b:00007ffea52c7ec8 EFLAGS: 00000202 ORIG_RAX: 000000000000000b
[   82.797018] RAX: 0000000000000000 RBX: 0000560e602f2d98 RCX: 00007fea9b3431cb
[   82.797051] RDX: 0000000000000010 RSI: 0000000000001000 RDI: 00007fea9b535000
[   82.797084] RBP: 0000560e602f2b60 R08: 0000560e602d503e R09: 0000000000000002
[   82.797117] R10: 00000000000000a1 R11: 0000000000000202 R12: 0000000000000000
[   82.797150] R13: 0000560e602f3a40 R14: 0000000000000000 R15: 0000000000000400
[   82.797186] ---[ end trace f497bb5dbf346404 ]---

Drumfix
Established Member
Posts: 255
Joined: Mon Jan 26, 2009 5:15 pm

Re: Ultralite AVB

Post by Drumfix »

Yes, there is hope.

The reason why i did not get the scheduling bug was, because i compiled the kernel without preemption.
Now that i compile it as low-latency kernel i also get the "scheduling while atomic" bug (but without a hardlock), so i can have a look whats happening.
Btw, for the new Ultralite, we would need the output of lsusb -v.

root2
Established Member
Posts: 10
Joined: Wed Apr 15, 2020 9:48 am
Location: Germany

Re: Ultralite AVB

Post by root2 »

That sound's great. I really wanna keep my Ultralite!

I also experienced the "scheduling while atomic" bug without hardlock. First time stopping/starting playback -> hardlock. Second and third time without hardlock.
My Motu isn't plugged in right now, i'll send you the output of lsusb -v later, thanks!

root2
Established Member
Posts: 10
Joined: Wed Apr 15, 2020 9:48 am
Location: Germany

Re: Ultralite AVB

Post by root2 »

I forgot to mention that even with your kernel patch applied i got channel hopping modulo 8 :(
Here's the output of lsusb -v:

Code: Select all

Bus 001 Device 006: ID 07fd:0005 Mark of the Unicorn UltraLite AVB
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass          239 Miscellaneous Device
  bDeviceSubClass         2
  bDeviceProtocol         1 Interface Association
  bMaxPacketSize0        64
  idVendor           0x07fd Mark of the Unicorn
  idProduct          0x0005
  bcdDevice            2.00
  iManufacturer           1 MOTU
  iProduct                2 UltraLite AVB
  iSerial                 3 0001f2fffe010a3f
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x017f
    bNumInterfaces          8
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x40
      (Missing must-be-set bit!)
      Self Powered
    MaxPower                0mA
    Interface Association:
      bLength                 8
      bDescriptorType        11
      bFirstInterface         0
      bInterfaceCount         5
      bFunctionClass          1 Audio
      bFunctionSubClass       0
      bFunctionProtocol      32
      iFunction               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      1 Control Device
      bInterfaceProtocol     32
      iInterface              0
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      1 (HEADER)
        bcdADC               2.00
        bCategory               8
        wTotalLength       0x004b
        bmControls           0x00
      AudioControl Interface Descriptor:
        bLength                 8
        bDescriptorType        36
        bDescriptorSubtype     10 (CLOCK_SOURCE)
        bClockID                1
        bmAttributes            3 Internal programmable clock
        bmControls           0x07
          Clock Frequency Control (read/write)
          Clock Validity Control (read-only)
        bAssocTerminal         16
        iClockSource            5 Internal Clock
      AudioControl Interface Descriptor:
        bLength                17
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID            16
        wTerminalType      0x0101 USB Streaming
        bAssocTerminal          0
        bCSourceID              1
        bNrChannels            24
        bmChannelConfig    0x00000000
        iChannelNames           9 Audio Out 1
        bmControls         0x0000
        iTerminal               7 Audio Out
      AudioControl Interface Descriptor:
        bLength                12
        bDescriptorType        36
        bDescriptorSubtype      3 (OUTPUT_TERMINAL)
        bTerminalID            36
        wTerminalType      0x0602 Digital Audio Interface
        bAssocTerminal          0
        bSourceID              16
        bCSourceID              1
        bmControls         0x0000
        iTerminal               0
      AudioControl Interface Descriptor:
        bLength                17
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID            20
        wTerminalType      0x0602 Digital Audio Interface
        bAssocTerminal          0
        bCSourceID              1
        bNrChannels            24
        bmChannelConfig    0x00000000
        iChannelNames          73 Audio In 1
        bmControls         0x0000
        iTerminal               8 Audio In
      AudioControl Interface Descriptor:
        bLength                12
        bDescriptorType        36
        bDescriptorSubtype      3 (OUTPUT_TERMINAL)
        bTerminalID            32
        wTerminalType      0x0101 USB Streaming
        bAssocTerminal          0
        bSourceID              20
        bCSourceID              1
        bmControls         0x0000
        iTerminal               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0006  1x 6 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol     32
      iInterface              7 Audio Out
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       1
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol     32
      iInterface              7 Audio Out
      AudioStreaming Interface Descriptor:
        bLength                16
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink          16
        bmControls           0x00
        bFormatType             1
        bmFormats          0x00000001
          PCM
        bNrChannels            24
        bmChannelConfig    0x00000000
        iChannelNames           9 Audio Out 1
      AudioStreaming Interface Descriptor:
        bLength                 6
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bSubslotSize            3
        bBitResolution         24
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x09  EP 9 OUT
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0ba8  2x 936 bytes
        bInterval               1
        AudioStreaming Endpoint Descriptor:
          bLength                 8
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bmControls           0x00
          bLockDelayUnits         0 Undefined
          wLockDelay         0x0000
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol     32
      iInterface              8 Audio In
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       1
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol     32
      iInterface              8 Audio In
      AudioStreaming Interface Descriptor:
        bLength                16
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink          32
        bmControls           0x00
        bFormatType             1
        bmFormats          0x00000001
          PCM
        bNrChannels            24
        bmChannelConfig    0x00000000
        iChannelNames          73 Audio In 1
      AudioStreaming Interface Descriptor:
        bLength                 6
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bSubslotSize            3
        bBitResolution         24
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x87  EP 7 IN
        bmAttributes           37
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Implicit feedback Data
        wMaxPacketSize     0x0ba8  2x 936 bytes
        bInterval               1
        AudioStreaming Endpoint Descriptor:
          bLength                 8
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bmControls           0x00
          bLockDelayUnits         0 Undefined
          wLockDelay         0x0000
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass         1 Audio
      bInterfaceSubClass      1 Control Device
      bInterfaceProtocol      0
      iInterface              0
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      1 (HEADER)
        bcdADC               1.00
        wTotalLength       0x0009
        bInCollection           1
        baInterfaceNr(0)        4
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        4
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         1 Audio
      bInterfaceSubClass      3 MIDI Streaming
      bInterfaceProtocol      0
      iInterface              0
      MIDIStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (HEADER)
        bcdADC               1.00
        wTotalLength       0x0025
      MIDIStreaming Interface Descriptor:
        bLength                 6
        bDescriptorType        36
        bDescriptorSubtype      2 (MIDI_IN_JACK)
        bJackType               1 Embedded
        bJackID               116
        iJack                   0
      MIDIStreaming Interface Descriptor:
        bLength                 6
        bDescriptorType        36
        bDescriptorSubtype      2 (MIDI_IN_JACK)
        bJackType               2 External
        bJackID               124
        iJack                   0
      MIDIStreaming Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      3 (MIDI_OUT_JACK)
        bJackType               1 Embedded
        bJackID               100
        bNrInputPins            1
        baSourceID( 0)        124
        BaSourcePin( 0)         1
        iJack                   0
      MIDIStreaming Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      3 (MIDI_OUT_JACK)
        bJackType               2 External
        bJackID               108
        bNrInputPins            1
        baSourceID( 0)        116
        BaSourcePin( 0)         1
        iJack                   0
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x85  EP 5 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        MIDIStreaming Endpoint Descriptor:
          bLength                 5
          bDescriptorType        37
          bDescriptorSubtype      1 (GENERAL)
          bNumEmbMIDIJack         1
          baAssocJackID( 0)     100
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x06  EP 6 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        MIDIStreaming Endpoint Descriptor:
          bLength                 5
          bDescriptorType        37
          bDescriptorSubtype      1 (GENERAL)
          bNumEmbMIDIJack         1
          baAssocJackID( 0)     116
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        5
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      4
      bInterfaceProtocol      1
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x04  EP 4 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        6
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      4
      bInterfaceProtocol      2
      iInterface              0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        6
      bAlternateSetting       1
      bNumEndpoints           1
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      4
      bInterfaceProtocol      2
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x09  EP 9 OUT
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0b84  2x 900 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        7
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      4
      bInterfaceProtocol      2
      iInterface              0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        7
      bAlternateSetting       1
      bNumEndpoints           1
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      4
      bInterfaceProtocol      2
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x87  EP 7 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0b84  2x 900 bytes
        bInterval               1
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass          239 Miscellaneous Device
  bDeviceSubClass         2
  bDeviceProtocol         0
  bMaxPacketSize0        64
  bNumConfigurations      0
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0000
  (Bus Powered)

Drumfix
Established Member
Posts: 255
Joined: Mon Jan 26, 2009 5:15 pm

Re: Ultralite AVB

Post by Drumfix »

One more try
You do not have the required permissions to view the files attached to this post.

User avatar
bluebell
Established Member
Posts: 1334
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland & Frankfurt, Germany

Re: Ultralite AVB

Post by bluebell »

Drumfix wrote:
Fri May 08, 2020 7:15 pm
One more try
No crash/freeze.
Even with 2 interfaces connected.

No input channel hopping after changing jackd's bufsize on the fly.

I think I'll try the most recent MOTU firmware and will report if the output channel hopping occurs.
Linux – MOTU UltraLite AVB – Qtractor – https://soundcloud.com/suedwestlicht

User avatar
bluebell
Established Member
Posts: 1334
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland & Frankfurt, Germany

Re: Ultralite AVB

Post by bluebell »

Drumfix wrote:
Fri May 08, 2020 7:15 pm
One more try
It's nearly perfect. I installed the most recent firmware 1.3.5+626

- no output or input channel hopping

But when changing jackd's bufsize on the fly I get strange results:

- sometimes no input at all. It once came back when I switches bufsize back, but not always
- sometimes no output at all.

In both cases I can connect all inputs or outputs to jackd, no sound. So it's not the already known modulo 8 channel hopping.

But besides this, my MOTU UltraLite AVB is fully usable with recent firmware and your patches. I tried for an hour with Qtractor and Audacity and no glitches so far.

EDIT:
Had a one time output channel hopping modulo 8, maybe because I played around with mixer settings.

EDIT2:
Left the PC on overnight. In the morning I found the output channels having hopped to +8: playback_1 -> playback_9, playback_2 -> playback_10
Linux – MOTU UltraLite AVB – Qtractor – https://soundcloud.com/suedwestlicht

root2
Established Member
Posts: 10
Joined: Wed Apr 15, 2020 9:48 am
Location: Germany

Re: Ultralite AVB

Post by root2 »

I left my Motu powered overnight and it switched channels again :(
Anyway, no distortion in 12h runtime is very promising! Thanks @Drumfix

Edit: After some days of usage i got multiple Distortions. Sometimes it recovers automatically after 1-3 minutes.

User avatar
bluebell
Established Member
Posts: 1334
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland & Frankfurt, Germany

Re: Ultralite AVB

Post by bluebell »

I got no distortion by now.

But my outputs hopped in the meantime from 1 to 17 and 2 to 18.
Linux – MOTU UltraLite AVB – Qtractor – https://soundcloud.com/suedwestlicht

root2
Established Member
Posts: 10
Joined: Wed Apr 15, 2020 9:48 am
Location: Germany

Re: Ultralite AVB

Post by root2 »

I was wrong about the distortion, sorry about that. My Server rebooted and i didn't realize it booted back to the unpatched realtime kernel. If i play via alsa on channel 16 it hops to 24.

trakuna
Posts: 1
Joined: Tue Jan 07, 2020 10:12 pm

Re: Ultralite AVB

Post by trakuna »

Hi there,
I recently bought an Motu 8Pre-Es and ran into the same problems. AFAIU all Motu AVB devices use the same PID and the same implicit feedback system (for firmware >=v1.3), so the patches by Drumfix should also address my specific device, right?

Kernel compilation is new to me, but being a dev myself that should not be a big deal. Where I'm kinda lost is which patch to apply. Right now I guess it's: and Is anything needed from Thanks for the extensive investigation so far!
Last edited by trakuna on Wed May 27, 2020 11:16 am, edited 1 time in total.

ChrisCaracas
Posts: 1
Joined: Thu May 28, 2020 5:22 am

Re: Ultralite AVB

Post by ChrisCaracas »

Hi ! I'm new to the forum, but a Linux user since 1997 and sound engineer since... a lot of time.
At the moment and since years, I'm using a Alesis HD24 with analog consoles (Amek) for recording LIVE sessions. But I bought a Motu 1248 in 2018 and of course, had the same problems with channel hoping.
I hope the Drumfix patches will give us a solution and will be pushed in Linux kernel one day !!

Cheers and thanks for the brilliant work !

Post Reply