tbsdtv / linux_media

TBS linux open source drivers
https://github.com/tbsdtv/linux_media/wiki
Other
174 stars 81 forks source link

TBS5280 tuner not recognised, seems to trigger an Oops kernel exception. #75

Open hurenkam opened 7 years ago

hurenkam commented 7 years ago

After building & installing these drivers on an Ubuntu 17.04 machine (kernel 4.10.0-32-generic), the drivers do not seem to recognize the device below:

[ 23.569079] cx25840 1-0044: loaded v4l-cx231xx-avcore-01.fw firmware (16382 bytes) [ 23.625243] cx231xx 5-2:1.1: v4l2 driver version 0.0.3 [ 23.719676] cx231xx 5-2:1.1: Unknown tuner type configuring SIF [ 23.764634] BUG: unable to handle kernel NULL pointer dereference at 0000000000000048

Is there a way to figure out what tuner I have, and try and get it supported?

Find attached the output of 'lsusb -v' and a larger part of 'dmesg' output related to loading of the driver modules. Do let me know if i can be of any help fixing this.

tbs5280-dmesg-partial.txt tbs5280-lsusb-v.txt

hurenkam commented 7 years ago

Tried a more recent kernel, on Ubuntu 17.10 beta; but still no luck. Can anyone shed some light on this error? I do have some coding skills, and can patch & test some fixes if pointed in the right direction. Would love to get this device to work, as my TBS6284 is performing great in this system (and with these drivers), and I would really like to add these dual tuners to the pool.

[ 3.498250] usb 5-2: new high-speed USB device number 3 using xhci_hcd [ 3.653335] usb 5-2: New USB device found, idVendor=734c, idProduct=5280 [ 3.654792] usb 5-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 3.655926] usb 5-2: Manufacturer: Turbosight Technolog [ 3.702103] EXT4-fs (vdc): mounted filesystem with ordered data mode. Opts: (null) [ 3.903024] ip_tables: (C) 2000-2006 Netfilter Core Team [ 3.924347] systemd[1]: systemd 234 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN default-hierarchy=hybrid) [ 3.929483] systemd[1]: Detected virtualization kvm. [ 3.932175] systemd[1]: Detected architecture x86-64. [ 3.944200] systemd[1]: Set hostname to . [ 4.564514] systemd[1]: Reached target Remote File Systems. [ 4.567514] systemd[1]: Listening on fsck to fsckd communication Socket. [ 4.571173] systemd[1]: Listening on LVM2 poll daemon socket. [ 4.574804] systemd[1]: Created slice User and Session Slice. [ 4.578696] systemd[1]: Started Forward Password Requests to Wall Directory Watch. [ 4.583096] systemd[1]: Created slice System Slice. [ 4.687598] lp: driver loaded but no devices found [ 4.708820] ppdev: user-space parallel port driver [ 5.559042] EXT4-fs (vdc): re-mounted. Opts: errors=remount-ro [ 5.725937] rc_core: loading out-of-tree module taints kernel. [ 5.725938] rc_core: loading out-of-tree module taints kernel. [ 5.741212] systemd-journald[332]: Received request to flush runtime journal from PID 1 [ 5.765324] piix4_smbus 0000:00:01.3: SMBus Host Controller at 0x700, revision 0 [ 5.778045] rc_core: module verification failed: signature and/or required key missing - tainting kernel [ 5.838885] WARNING: You are using an experimental version of the media stack. As the driver is backported to an older kernel, it doesn't offer enough quality for its usage in production. Use it with care. Latest git patches (needed if you report a bug to linux-media@vger.kernel.org): 7d6b850cafaaa6f7c54f1a16bd95914eb1793224 Merge pull request #71 from tako035/patch-1 [ 6.021439] Bluetooth: Core ver 2.22 [ 6.021459] NET: Registered protocol family 31 [ 6.021460] Bluetooth: HCI device and connection manager initialized [ 6.021463] Bluetooth: HCI socket layer initialized [ 6.021465] Bluetooth: L2CAP socket layer initialized [ 6.021470] Bluetooth: SCO socket layer initialized [ 6.082604] lirc_dev: IR Remote Control driver registered, major 243 [ 6.162096] Adding 1048572k swap on /dev/vdb. Priority:-1 extents:1 across:1048572k FS [ 6.184683] IR LIRC bridge handler initialized [ 6.382077] Registered IR keymap rc-rc6-mce [ 6.405969] IR RC6 protocol handler initialized [ 6.454073] rc rc0: TurboSight TBS 5280 (cx231xx) MCE IR (734c:5280) as /devices/pci0000:00/0000:00:0d.0/usb5/5-2/5-2:1.0/rc/rc0 [ 6.454121] input: TurboSight TBS 5280 (cx231xx) MCE IR (734c:5280) as /devices/pci0000:00/0000:00:0d.0/usb5/5-2/5-2:1.0/rc/rc0/input6 [ 6.457048] rc rc0: lirc_dev: driver ir-lirc-codec (mceusb) registered at minor = 0 [ 6.458486] usbcore: registered new interface driver btusb [ 6.518917] snd_hda_codec_generic hdaudioC0D0: autoconfig for Generic: line_outs=1 (0x3/0x0/0x0/0x0/0x0) type:line [ 6.518918] snd_hda_codec_generic hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0) [ 6.518919] snd_hda_codec_generic hdaudioC0D0: hp_outs=0 (0x0/0x0/0x0/0x0/0x0) [ 6.518920] snd_hda_codec_generic hdaudioC0D0: mono: mono_out=0x0 [ 6.518921] snd_hda_codec_generic hdaudioC0D0: inputs: [ 6.518922] snd_hda_codec_generic hdaudioC0D0: Line=0x5 [ 6.746186] mceusb 5-2:1.0: Registered Turbosight Technolog with mce emulator interface version 1 [ 6.746188] mceusb 5-2:1.0: 2 tx ports (0x0 cabled) and 2 rx sensors (0x1 active) [ 6.746256] usbcore: registered new interface driver mceusb [ 6.750733] media: Linux media interface: v0.10 [ 6.760964] Linux video capture interface: v2.00 [ 6.760966] WARNING: You are using an experimental version of the media stack. As the driver is backported to an older kernel, it doesn't offer enough quality for its usage in production. Use it with care. Latest git patches (needed if you report a bug to linux-media@vger.kernel.org): 7d6b850cafaaa6f7c54f1a16bd95914eb1793224 Merge pull request #71 from tako035/patch-1 [ 6.821766] cx231xx 5-2:1.1: New device Turbosight Technolog @ 480 Mbps (734c:5280) with 8 interfaces [ 6.822351] cx231xx 5-2:1.1: Identified as TurboSight TBS 5280 (card=25) [ 6.823480] i2c i2c-2: Added multiplexed i2c bus 4 [ 6.823533] i2c i2c-2: Added multiplexed i2c bus 5 [ 6.994435] EXT4-fs (vda1): mounted filesystem with ordered data mode. Opts: (null) [ 7.022672] cx25840 1-0044: cx23102 A/V decoder found @ 0x88 (cx231xx #0-0) [ 7.029285] EXT4-fs (vdd): mounted filesystem with ordered data mode. Opts: (null) [ 8.218862] audit: type=1400 audit(1506001882.974:2): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-senddoc" pid=646 comm="apparmor_parser" [ 8.218865] audit: type=1400 audit(1506001882.974:3): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-oopslash" pid=645 comm="apparmor_parser" [ 8.218903] audit: type=1400 audit(1506001882.974:4): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-xpdfimport" pid=648 comm="apparmor_parser" [ 8.219383] audit: type=1400 audit(1506001882.975:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/snapd/snap-confine" pid=650 comm="apparmor_parser" [ 8.219385] audit: type=1400 audit(1506001882.975:6): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/snapd/snap-confine//mount-namespace-capture-helper" pid=650 comm="apparmor_parser"[ 8.232527] audit: type=1400 audit(1506001882.988:7): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/sbin/dhclient" pid=644 comm="apparmor_parser" [ 8.232530] audit: type=1400 audit(1506001882.988:8): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=644 comm="apparmor_parser" [ 8.232531] audit: type=1400 audit(1506001882.988:9): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-helper" pid=644 comm="apparmor_parser" [ 8.232532] audit: type=1400 audit(1506001882.988:10): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/connman/scripts/dhclient-script" pid=644 comm="apparmor_parser" [ 8.234474] audit: type=1400 audit(1506001882.990:11): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-soffice" pid=647 comm="apparmor_parser" [ 9.605975] cx25840 1-0044: loaded v4l-cx231xx-avcore-01.fw firmware (16382 bytes) [ 9.658499] cx231xx 5-2:1.1: v4l2 driver version 0.0.3 [ 9.756669] IPv6: ADDRCONF(NETDEV_UP): ens3: link is not ready [ 9.771341] cx231xx 5-2:1.1: Unknown tuner type configuring SIF [ 9.853235] cx231xx 5-2:1.1: Registered video device video0 [v4l2] [ 9.853310] cx231xx 5-2:1.1: Registered VBI device vbi0 [ 9.853313] cx231xx 5-2:1.1: video EndPoint Addr 0x84, Alternate settings: 5 [ 9.853316] cx231xx 5-2:1.1: VBI EndPoint Addr 0x85, Alternate settings: 2 [ 9.853324] cx231xx 5-2:1.1: sliced CC EndPoint Addr 0x86, Alternate settings: 2 [ 9.853327] cx231xx 5-2:1.1: TS EndPoint Addr 0x81, Alternate settings: 6 [ 9.853329] cx231xx 5-2:1.1: TS EndPoint Addr 0x82, Alternate settings: 6 [ 9.853526] usbcore: registered new interface driver cx231xx [ 9.878642] WARNING: You are using an experimental version of the media stack. As the driver is backported to an older kernel, it doesn't offer enough quality for its usage in production. Use it with care. Latest git patches (needed if you report a bug to linux-media@vger.kernel.org): 7d6b850cafaaa6f7c54f1a16bd95914eb1793224 Merge pull request #71 from tako035/patch-1 [ 10.029559] cxd2820r 5-006c: Sony CXD2820R successfully identified [ 10.041761] refcount_t: underflow; use-after-free. [ 10.041796] ------------[ cut here ]------------ [ 10.041808] WARNING: CPU: 4 PID: 848 at /build/linux-cK2WUa/linux-4.12.0/lib/refcount.c:184 refcount_sub_and_test+0x45/0x50 [ 10.041809] Modules linked in: tda18212(OE) cxd2820r(OE) cx231xx_dvb_ci(OE+) tas2101(OE) dvb_core(OE) cx25840(OE) cx231xx(OE) videobuf_vmalloc(OE) tveeprom(OE) cx2341x(OE) videobuf_core(OE) v4l2_common(OE) i2c_mux videodev(OE) media(OE) snd_hda_codec_generic snd_hda_intel snd_hda_codec btusb ir_rc6_decoder(OE) snd_hda_core btrtl btbcm snd_hwdep kvm_intel rc_rc6_mce(OE) snd_pcm snd_timer ir_lirc_codec(OE) kvm irqbypass btintel input_leds snd lirc_dev(OE) bluetooth joydev soundcore mceusb(OE) mac_hid rc_core(OE) qemu_fw_cfg i2c_piix4 ecdh_generic serio_raw parport_pc ppdev lp parport ip_tables x_tables autofs4 hid_generic usbhid qxl hid ttm drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops ahci libahci virtio_net pata_acpi drm psmouse virtio_blk floppy [ 10.041842] CPU: 4 PID: 848 Comm: modprobe Tainted: G OE 4.12.0-13-generic #14-Ubuntu [ 10.041843] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.10.2-0-g5f4c7b1-prebuilt.qemu-project.org 04/01/2014 [ 10.041844] task: ffff9701b69bbfc0 task.stack: ffffbe2881870000 [ 10.041845] RIP: 0010:refcount_sub_and_test+0x45/0x50 [ 10.041846] RSP: 0018:ffffbe2881873af8 EFLAGS: 00010282 [ 10.041847] RAX: 0000000000000026 RBX: ffff9701b86b4828 RCX: 0000000000000000 [ 10.041848] RDX: 0000000000000000 RSI: ffff9701bfd0dcc8 RDI: ffff9701bfd0dcc8 [ 10.041848] RBP: ffffbe2881873af8 R08: 0000000000000001 R09: 00000000000002a6 [ 10.041849] R10: fffff04944d9b580 R11: 0000000000000000 R12: 0000000000000000 [ 10.041850] R13: ffff9701b9b78000 R14: 0000000000000000 R15: ffff9701ad5e4ce0 [ 10.041851] FS: 00007f9cca6ed740(0000) GS:ffff9701bfd00000(0000) knlGS:0000000000000000 [ 10.041852] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 10.041852] CR2: 0000556c411be008 CR3: 0000000139a57000 CR4: 00000000000006e0 [ 10.041855] Call Trace: [ 10.041864] refcount_dec_and_test+0x11/0x20 [ 10.041871] dvb_frontend_put+0x16/0x60 [dvb_core] [ 10.041874] dvb_frontend_detach+0x7c/0x90 [dvb_core] [ 10.041878] dvb_init.part.4+0x1837/0x1a00 [cx231xx_dvb_ci] [ 10.041883] ? __wake_up_common+0x4d/0x80 [ 10.041886] dvb_init+0x17/0x20 [cx231xx_dvb_ci] [ 10.041891] cx231xx_register_extension+0x60/0xa0 [cx231xx] [ 10.041893] ? 0xffffffffc057f000 [ 10.041895] cx231xx_dvb_register+0x10/0x1000 [cx231xx_dvb_ci] [ 10.041897] do_one_initcall+0x50/0x1a0 [ 10.041904] ? __vunmap+0x81/0xb0 [ 10.041908] ? kfree+0x14a/0x160 [ 10.041910] ? kmem_cache_alloc_trace+0x150/0x1b0 [ 10.041913] ? do_init_module+0x27/0x1ee [ 10.041915] do_init_module+0x5f/0x1ee [ 10.041918] load_module+0x1864/0x1e20 [ 10.041926] ? ima_post_read_file+0x7e/0xa0 [ 10.041934] ? security_kernel_post_read_file+0x6b/0x80 [ 10.041936] SYSC_finit_module+0xf6/0x110 [ 10.041937] ? SYSC_finit_module+0xf6/0x110 [ 10.041938] SyS_finit_module+0xe/0x10 [ 10.041949] entry_SYSCALL_64_fastpath+0x1e/0xa9 [ 10.041950] RIP: 0033:0x7f9cca222929 [ 10.041951] RSP: 002b:00007ffd0443fbf8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 10.041952] RAX: ffffffffffffffda RBX: 00007ffd0443ebf0 RCX: 00007f9cca222929 [ 10.041953] RDX: 0000000000000000 RSI: 0000557c61e9fcee RDI: 0000000000000002 [ 10.041954] RBP: 0000000000000002 R08: 0000000000000000 R09: 0000000000000000 [ 10.041954] R10: 0000000000000002 R11: 0000000000000246 R12: 0000557c622aefa0 [ 10.041955] R13: 0000000000000005 R14: 00007ffd0443ebd0 R15: 0000000000000005 [ 10.041956] Code: 75 e6 85 d2 0f 94 c0 c3 31 c0 c3 80 3d f0 97 bb 00 00 75 f4 55 48 c7 c7 88 d1 ed 99 c6 05 df 97 bb 00 01 48 89 e5 e8 4c 33 d4 ff <0f> ff 31 c0 5d c3 0f 1f 44 00 00 55 48 89 fe bf 01 00 00 00 48 [ 10.041976] ---[ end trace e4503bdeb0d64d07 ]---