Audio interface (firewire) disappears after idling

Optimize your system for ultimate performance.

Moderators: MattKingUSA, khz

Post Reply
delete000
Established Member
Posts: 45
Joined: Fri Dec 31, 2021 7:48 pm
Has thanked: 12 times
Been thanked: 2 times

Audio interface (firewire) disappears after idling

Post by delete000 »

I have encountered a weird situation where my FW soundcard (RME FireFace400) disappears after the system idles for some time (1 day). Curious thing is, after this happens I have no way of resurrecting it: full reboot is required.

Here are some logs:

Code: Select all

$ ffado-diag
FFADO diagnostic utility 2.4.4

(C) 2008 Pieter Palmers
    2009-2010 Arnold Krille
    2018 Nicolas Boulenguez, Jonathan Woithe

gcc                       /usr/bin/gcc
                          gcc (Debian 10.2.1-6) 10.2.1 20210110
g++                       /usr/bin/g++
                          g++ (Debian 10.2.1-6) 10.2.1 20210110
pyuic4                    None
pyuic5                    None
jackd                     /usr/bin/jackd
                          jackdmp version 1.9.17 tmpdir /dev/shm protocol 8
pkg-config                /usr/bin/pkg-config
jack                      1.9.17
                          -ljack
libraw1394                not found
libavc1394                not found
libiec61883               not found
libxml++-2.6              not found
dbus-1                    1.12.20
                          -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -ldbus-1

Build time info           /usr/lib/x86_64-linux-gnu/libffado/static_info.txt
  gcc                       /usr/bin/gcc
                            gcc (Debian 10.2.1-6) 10.2.1 20210110
  g++                       /usr/bin/g++
                            g++ (Debian 10.2.1-6) 10.2.1 20210110
  pyuic4                    None
  pyuic5                    /usr/bin/pyuic5
                            Python User Interface Compiler 5.15.2 for Qt version 5.15.2
  jackd                     None
  pkg-config                /usr/bin/pkg-config
  jack                      not found
  libraw1394                2.1.2
                            -lraw1394
  libavc1394                not found
  libiec61883               1.2.0
                            -liec61883 -lraw1394
  libxml++-2.6              2.40.1
                            -I/usr/include/libxml++-2.6 -I/usr/lib/x86_64-linux-gnu/libxml++-2.6/include -I/usr/include/libxml2 -I/usr/include/glibmm-2.4 -I/usr/lib/x86_64-linux-gnu/glibmm-2.4/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sigc++-2.0 -I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include -lxml++-2.6 -lxml2 -lglibmm-2.4 -lgobject-2.0 -lglib-2.0 -lsigc-2.0
  dbus-1                    1.12.20
                            -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -ldbus-1

kernel version            5.10.0-11-rt-amd64
Preempt (low latency)     False
RT patched                False
/dev/fw*                  []
User IDs                  uid=1000(ko) gid=1000(ko) groups=1000(ko),7(lp),20(dialout),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),100(users),109(netdev),111(lpadmin),120(scanner),127(sambashare),1001(vboxsf)
uname -a                  Linux stu 5.10.0-11-rt-amd64 #1 SMP PREEMPT_RT Debian 5.10.92-1 (2022-01-18) x86_64 GNU/Linux
lspci                     /usr/bin/lspci
  03:00.0 FireWire (IEEE 1394) [0c00]: LSI Corporation FW643 [TrueFire] PCIe 1394b Controller [11c1:5901] (rev ff) (prog-if ff)
  	!!! Unknown header type 7f
  	Kernel modules: firewire_ohci
lscpu                     /usr/bin/lscpu
  Architecture:                    x86_64
  CPU op-mode(s):                  32-bit, 64-bit
  Byte Order:                      Little Endian
  Address sizes:                   39 bits physical, 48 bits virtual
  CPU(s):                          4
  On-line CPU(s) list:             0-3
  Thread(s) per core:              1
  Core(s) per socket:              4
  Socket(s):                       1
  NUMA node(s):                    1
  Vendor ID:                       GenuineIntel
  CPU family:                      6
  Model:                           126
  Model name:                      Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz
  Stepping:                        5
  CPU MHz:                         1300.000
  BogoMIPS:                        2995.20
  Virtualization:                  VT-x
  L1d cache:                       192 KiB
  L1i cache:                       128 KiB
  L2 cache:                        2 MiB
  L3 cache:                        8 MiB
  NUMA node0 CPU(s):               0-3
  Vulnerability Itlb multihit:     KVM: Mitigation: VMX disabled
  Vulnerability L1tf:              Not affected
  Vulnerability Mds:               Not affected
  Vulnerability Meltdown:          Not affected
  Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp
  Vulnerability Spectre v1:        Mitigation; usercopy/swapgs barriers and __user pointer sanitization
  Vulnerability Spectre v2:        Mitigation; Enhanced IBRS, IBPB conditional, RSB filling
  Vulnerability Srbds:             Not affected
  Vulnerability Tsx async abort:   Not affected
  Flags:                           fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid avx512f avx512dq rdseed adx smap avx512ifma clflushopt intel_pt avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves split_lock_detect dtherm arat pln pts hwp hwp_act_window hwp_epp hwp_pkg_req avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid fsrm md_clear flush_l1d arch_capabilities

Hardware interrupts
  IRQ   0 PID      count           6,0,0,0 Sched     priority     drivers IR-IO-APIC,2-edge,timer
  IRQ   1 PID      count        0,0,0,4268 Sched     priority     drivers IR-IO-APIC,1-edge,i8042
  IRQ   8 PID      count           0,0,0,0 Sched     priority     drivers IR-IO-APIC,8-edge,rtc0
  IRQ   9 PID      count      0,295497,0,0 Sched     priority     drivers IR-IO-APIC,9-fasteoi,acpi
  IRQ  12 PID      count          0,0,77,0 Sched     priority     drivers IR-IO-APIC,12-edge,i8042
  IRQ  14 PID      count      0,0,177593,0 Sched     priority     drivers IR-IO-APIC,14-fasteoi,INT3455:00
  IRQ  16 PID      count          0,50,0,0 Sched     priority     drivers IR-IO-APIC,16-fasteoi,intel_ish_ipc,,idma64.0,,i801_smbus,,i2c_designware.0
  IRQ  17 PID      count    0,0,11417977,0 Sched     priority     drivers IR-IO-APIC,17-fasteoi,idma64.1,,i2c_designware.1
  IRQ  20 PID      count           0,5,0,0 Sched     priority     drivers IR-IO-APIC,20-fasteoi,idma64.2
  IRQ 120 PID      count           0,0,0,0 Sched     priority     drivers DMAR-MSI,0-edge,dmar0
  IRQ 121 PID      count           0,0,0,0 Sched     priority     drivers DMAR-MSI,1-edge,dmar1
  IRQ 122 PID      count          0,0,0,12 Sched     priority     drivers IR-PCI-MSI,114688-edge,PCIe,PME,,pciehp
  IRQ 123 PID      count           0,0,0,0 Sched     priority     drivers IR-PCI-MSI,118784-edge,PCIe,PME,,pciehp
  IRQ 124 PID      count           0,0,0,0 Sched     priority     drivers IR-PCI-MSI,475136-edge,PCIe,PME
  IRQ 125 PID      count           0,0,0,0 Sched     priority     drivers IR-PCI-MSI,489472-edge,PCIe,PME,,pciehp
  IRQ 127 PID      count       0,0,16071,0 Sched     priority     drivers IR-PCI-MSI,217088-edge,thunderbolt
  IRQ 128 PID      count       0,0,0,16090 Sched     priority     drivers IR-PCI-MSI,217089-edge,thunderbolt
  IRQ 143 PID      count           6,0,0,0 Sched     priority     drivers IR-PCI-MSI,46137344-edge,rtsx_pci
  IRQ 144 PID      count  0,3477295662,0,0 Sched     priority     drivers IR-PCI-MSI,1572864-edge,firewire_ohci
  IRQ 145 PID      count         0,0,745,0 Sched     priority     drivers IR-PCI-MSI,45613056-edge,nvme0q0
  IRQ 146 PID      count      0,0,0,190157 Sched     priority     drivers IR-PCI-MSI,212992-edge,xhci_hcd
  IRQ 147 PID      count      0,0,177593,0 Sched     priority     drivers INT3455:00,35,DLL096D:01
  IRQ 148 PID      count        7148,0,0,0 Sched     priority     drivers IR-PCI-MSI,327680-edge,xhci_hcd
  IRQ 149 PID      count      138112,0,0,0 Sched     priority     drivers IR-PCI-MSI,45613057-edge,nvme0q1
  IRQ 150 PID      count      0,137499,0,0 Sched     priority     drivers IR-PCI-MSI,45613058-edge,nvme0q2
  IRQ 151 PID      count      0,0,160213,0 Sched     priority     drivers IR-PCI-MSI,45613059-edge,nvme0q3
  IRQ 152 PID      count      0,0,0,150693 Sched     priority     drivers IR-PCI-MSI,45613060-edge,nvme0q4
  IRQ 153 PID      count         0,0,0,432 Sched     priority     drivers IR-PCI-MSI,219136-edge,thunderbolt
  IRQ 154 PID      count         470,0,0,0 Sched     priority     drivers IR-PCI-MSI,219137-edge,thunderbolt
  IRQ 169 PID      count          0,48,0,0 Sched     priority     drivers IR-PCI-MSI,360448-edge,mei_me
  IRQ 172 PID      count      0,0,412243,0 Sched     priority     drivers IR-PCI-MSI,333824-edge,iwlwifi:,default,queue
  IRQ 173 PID      count       63199,0,0,0 Sched     priority     drivers IR-PCI-MSI,333825-edge,iwlwifi:,queue,1
  IRQ 174 PID      count       0,38077,0,0 Sched     priority     drivers IR-PCI-MSI,333826-edge,iwlwifi:,queue,2
  IRQ 175 PID      count       0,0,28439,0 Sched     priority     drivers IR-PCI-MSI,333827-edge,iwlwifi:,queue,3
  IRQ 176 PID      count       0,0,0,27377 Sched     priority     drivers IR-PCI-MSI,333828-edge,iwlwifi:,queue,4
  IRQ 177 PID      count           0,0,0,3 Sched     priority     drivers IR-PCI-MSI,333829-edge,iwlwifi:,exception
  IRQ 178 PID      count    20301893,0,0,0 Sched     priority     drivers IR-PCI-MSI,32768-edge,i915
  IRQ 179 PID      count        0,2815,0,0 Sched     priority     drivers IR-PCI-MSI,514048-edge,snd_hda_intel:card0

Software interrupts

module directory          /lib/modules/5.10.0-11-rt-amd64
Old 1394 stack
  ieee1394 not present
  ieee1394 not loaded
  ohci1394 not present
  ohci1394 not loaded
  raw1394 not present
  raw1394 not loaded
stack active              False
statically linked         False
New 1394 stack
  firewire-core present
  firewire-core loaded
  firewire-ohci present
  firewire-ohci loaded
stack active              True
statically linked         False
Kernel support:
  The new FireWire kernel stack is loaded.
  If running a kernel earlier than 2.6.37 and problems are experienced, either
  try with the old Firewire kernel stack or upgrade to a newer kernel
  (preferrably 2.6.37 or later).

Code: Select all

$ lsmod | grep fire
snd_fireface           40960  0
snd_firewire_lib       53248  1 snd_fireface
snd_rawmidi            45056  3 snd_seq_midi,snd_firewire_lib,snd_fireface
snd_hwdep              16384  2 snd_hda_codec,snd_fireface
snd_pcm               135168  11 snd_hda_codec_hdmi,snd_hda_intel,snd_firewire_lib,snd_hda_codec,soundwire_intel,snd_sof,snd_fireface,snd_sof_intel_hda_common,snd_compress,snd_soc_core,snd_hda_core
snd                   110592  14 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_fireface,snd_timer,snd_compress,snd_soc_core,snd_pcm,snd_rawmidi
firewire_ohci          45056  0
firewire_core          81920  7 snd_firewire_lib,snd_fireface,firewire_ohci
crc_itu_t              16384  1 firewire_core

Suspicious dmesg output:

Code: Select all

$ dmesg | grep fire
[1294614.762362] snd_fireface fw1.0: transaction failed: timeout

Any ideas?

delete000
Established Member
Posts: 45
Joined: Fri Dec 31, 2021 7:48 pm
Has thanked: 12 times
Been thanked: 2 times

Re: Audio interface (firewire) disappears after idling

Post by delete000 »

Code: Select all

$ ffado-test Discover
-----------------------------------------------
FFADO test and diagnostic utility
Part of the FFADO project -- www.ffado.org
Version: 2.4.4
(C) 2008, Daniel Wagner, Pieter Palmers
This program comes with ABSOLUTELY NO WARRANTY.
-----------------------------------------------

Could not initialize device manager
1699411437007545: Fatal (devicemanager.cpp)[ 187] initialize: No firewire adapters (ports) found.
no message buffer overruns
User avatar
bluebell
Established Member
Posts: 1927
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland, Germany
Has thanked: 113 times
Been thanked: 122 times

Re: Audio interface (firewire) disappears after idling

Post by bluebell »

Does it help removing the kernel module snd_fireface and reloading it?

Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/

delete000
Established Member
Posts: 45
Joined: Fri Dec 31, 2021 7:48 pm
Has thanked: 12 times
Been thanked: 2 times

Re: Audio interface (firewire) disappears after idling

Post by delete000 »

bluebell wrote: Wed Nov 08, 2023 7:28 am

Does it help removing the kernel module snd_fireface and reloading it?

No, I reloaded both snd_fireface and snd_firewire_lib and the issue persists.

User avatar
bluebell
Established Member
Posts: 1927
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland, Germany
Has thanked: 113 times
Been thanked: 122 times

Re: Audio interface (firewire) disappears after idling

Post by bluebell »

Do you get messages with dmesg after unloading/loading?

Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/

delete000
Established Member
Posts: 45
Joined: Fri Dec 31, 2021 7:48 pm
Has thanked: 12 times
Been thanked: 2 times

Re: Audio interface (firewire) disappears after idling

Post by delete000 »

Nothing in dmesg after reloading modules.

Here's some more dmesg output:

Code: Select all

$ dmesg | grep fire
[1294614.762362] snd_fireface fw1.0: transaction failed: timeout
[1294784.062512]  ? for_each_fw_node+0x169/0x240 [firewire_core]
[1294784.062534]  fw_core_remove_card+0x166/0x1b0 [firewire_core]
[1294784.062546]  ? dummy_read_phy_reg+0x10/0x10 [firewire_core]
[1294784.062552]  ? dummy_update_phy_reg+0x10/0x10 [firewire_core]
[1294784.062558]  ? fw_card_release+0x10/0x10 [firewire_core]
[1294784.062564]  ? dummy_send_request+0x20/0x20 [firewire_core]
[1294784.062570]  ? dummy_cancel_packet+0x10/0x10 [firewire_core]
[1294784.062576]  ? dummy_enable_phys_dma+0x10/0x10 [firewire_core]
[1294784.062582]  ? pci_resume+0x130/0x130 [firewire_ohci]
[1294784.062600]  ? dummy_allocate_iso_context+0x10/0x10 [firewire_core]
[1294784.062606]  ? dummy_start_iso+0x10/0x10 [firewire_core]
[1294784.062612]  ? dummy_set_iso_channels+0x10/0x10 [firewire_core]
[1294784.062618]  ? dummy_queue_iso+0x10/0x10 [firewire_core]
[1294784.062624]  ? dummy_flush_queue_iso+0x10/0x10 [firewire_core]
[1294784.062630]  ? context_get_descriptors+0xb0/0xb0 [firewire_ohci]
[1294784.062635]  pci_remove+0x57/0x220 [firewire_ohci]
[1294904.898604]  ? for_each_fw_node+0x169/0x240 [firewire_core]
[1294904.898627]  fw_core_remove_card+0x166/0x1b0 [firewire_core]
[1294904.898639]  ? dummy_read_phy_reg+0x10/0x10 [firewire_core]
[1294904.898646]  ? dummy_update_phy_reg+0x10/0x10 [firewire_core]
[1294904.898652]  ? fw_card_release+0x10/0x10 [firewire_core]
[1294904.898658]  ? dummy_send_request+0x20/0x20 [firewire_core]
[1294904.898664]  ? dummy_cancel_packet+0x10/0x10 [firewire_core]
[1294904.898670]  ? dummy_enable_phys_dma+0x10/0x10 [firewire_core]
[1294904.898675]  ? pci_resume+0x130/0x130 [firewire_ohci]
[1294904.898681]  ? dummy_allocate_iso_context+0x10/0x10 [firewire_core]
[1294904.898687]  ? dummy_start_iso+0x10/0x10 [firewire_core]
[1294904.898693]  ? dummy_set_iso_channels+0x10/0x10 [firewire_core]
[1294904.898698]  ? dummy_queue_iso+0x10/0x10 [firewire_core]
[1294904.898704]  ? dummy_flush_queue_iso+0x10/0x10 [firewire_core]
[1294904.898710]  ? context_get_descriptors+0xb0/0xb0 [firewire_ohci]
[1294904.898715]  pci_remove+0x57/0x220 [firewire_ohci]
[1295025.726681]  ? for_each_fw_node+0x169/0x240 [firewire_core]
[1295025.726704]  fw_core_remove_card+0x166/0x1b0 [firewire_core]
[1295025.726715]  ? dummy_read_phy_reg+0x10/0x10 [firewire_core]
[1295025.726722]  ? dummy_update_phy_reg+0x10/0x10 [firewire_core]
[1295025.726728]  ? fw_card_release+0x10/0x10 [firewire_core]
[1295025.726734]  ? dummy_send_request+0x20/0x20 [firewire_core]
[1295025.726739]  ? dummy_cancel_packet+0x10/0x10 [firewire_core]
[1295025.726745]  ? dummy_enable_phys_dma+0x10/0x10 [firewire_core]
[1295025.726752]  ? pci_resume+0x130/0x130 [firewire_ohci]
[1295025.726757]  ? dummy_allocate_iso_context+0x10/0x10 [firewire_core]
[1295025.726763]  ? dummy_start_iso+0x10/0x10 [firewire_core]
[1295025.726769]  ? dummy_set_iso_channels+0x10/0x10 [firewire_core]
[1295025.726775]  ? dummy_queue_iso+0x10/0x10 [firewire_core]
[1295025.726781]  ? dummy_flush_queue_iso+0x10/0x10 [firewire_core]
[1295025.726787]  ? context_get_descriptors+0xb0/0xb0 [firewire_ohci]
[1295025.726791]  pci_remove+0x57/0x220 [firewire_ohci]
[1295146.558802]  ? for_each_fw_node+0x169/0x240 [firewire_core]
[1295146.558826]  fw_core_remove_card+0x166/0x1b0 [firewire_core]
[1295146.558837]  ? dummy_read_phy_reg+0x10/0x10 [firewire_core]
[1295146.558844]  ? dummy_update_phy_reg+0x10/0x10 [firewire_core]
[1295146.558850]  ? fw_card_release+0x10/0x10 [firewire_core]
[1295146.558856]  ? dummy_send_request+0x20/0x20 [firewire_core]
[1295146.558862]  ? dummy_cancel_packet+0x10/0x10 [firewire_core]
[1295146.558868]  ? dummy_enable_phys_dma+0x10/0x10 [firewire_core]
[1295146.558873]  ? pci_resume+0x130/0x130 [firewire_ohci]
[1295146.558879]  ? dummy_allocate_iso_context+0x10/0x10 [firewire_core]
[1295146.558885]  ? dummy_start_iso+0x10/0x10 [firewire_core]
[1295146.558891]  ? dummy_set_iso_channels+0x10/0x10 [firewire_core]
[1295146.558897]  ? dummy_queue_iso+0x10/0x10 [firewire_core]
[1295146.558903]  ? dummy_flush_queue_iso+0x10/0x10 [firewire_core]
[1295146.558909]  ? context_get_descriptors+0xb0/0xb0 [firewire_ohci]
[1295146.558913]  pci_remove+0x57/0x220 [firewire_ohci]
jean-emmanuel
Established Member
Posts: 29
Joined: Tue Sep 21, 2021 4:47 pm
Has thanked: 1 time
Been thanked: 13 times

Re: Audio interface (firewire) disappears after idling

Post by jean-emmanuel »

Just in case, did you try with another cable ?

delete000
Established Member
Posts: 45
Joined: Fri Dec 31, 2021 7:48 pm
Has thanked: 12 times
Been thanked: 2 times

Re: Audio interface (firewire) disappears after idling

Post by delete000 »

I think the issue is the combination of USB C -> Thunderbolt -> Firewire I use to connect to my laptop (Dell XPS 13) and the rt-preempt kernel. Using a non-rt liquorix kernel seems to mitigate this issue.

Post Reply