smallint / tbs-usb

Standalone TBS USB linux drivers
2 stars 1 forks source link

TBS 5990 - Kernel stalls when activating second tuner #3

Open gersch07 opened 2 years ago

gersch07 commented 2 years ago

Hi everyone,

first of all, thanks to @smallint for this very nice work - it saves really a lot of compilation time compared to the full media stack! Has anybody tried building the kernel module with a dual-tuner TBS 5990 and a recent version of the Raspberry Pi kernel (e.g. 5.10 / 5.15 - I am using the 8GB version of the 4B model)? Compiling and installing worked without issues, but activating the second tuner produces the kernel crash mentioned by smallint in the README. The same error xhci_hcd 0000:01:00.0: rejecting DMA map of vmalloc memory also occurs with the most recent TBS open source driver (I opened a related issue at https://github.com/tbsdtv/linux_media/issues/279 ).

@smallint: Which version of the Raspberry Pi did you test with the TBS 5990? Did you have to change something in the kernel module itself to get the second tuner operational and, if yes, could it be that a more recent commit in the module has reverted that fix?

Thanks in advance for any help!

smallint commented 2 years ago

Hi, thank you for the feedback. I am currently running the driver with ArchLinux 32bit and its recent kernel. The second tuner works for me. Years ago I have figured that with the author of the module. Maybe a cold reset of the device will help?

I have actually the problem with the RPi kernel that the driver crashes after some time (days to weeks) and that playback on the Pi with Kodi does not work. As soon as I record from the tbs and try to playback (even another video from disk) then the usb fails and needs some time to recover before I can use the tbs again. Otherwise it will complain about lost signal or no data. Only remote access works through e.g. vdr with both tuners. I think that this is related to the USB stack of RPi which seems to be buggy. Unfortunately I have no proof for this and I don't know how to debug it to give the developers useful hints as this device is not wide spread.

I have never tested it with 64bit on the RPi, just on x86 and that worked.