Moderator Control Panel ]

[SOLVED] Gentoo NULL pointer dereference & DVBv3 call issues

[SOLVED] Gentoo NULL pointer dereference & DVBv3 call issues

Postby bolausson » Wed Apr 10, 2013 3:34 pm

Hello TBS,

as already discussed via mail, my forum account is now activated an I transfer my issue to the forum.

I got three issues:

A - doesn't know how to handle a DVBv3 call)
Code: Select All Code
SAA716x TBS 0000:02:00.0: dvb_frontend_ioctl_legacy: doesn't know how to handle a DVBv3 call to delivery system 144


B - kernel NULL pointer dereference)
Code: Select All Code
[   14.577618] BUG: unable to handle kernel NULL pointer dereference at           (null)
[   14.577630] IP: [<ffffffffa002d4e1>] tbs6618fe_set_tps+0x21/0x5d0 [tbs6618fe]
[   14.577639] PGD 0
[   14.577643] Oops: 0000 [#1] SMP
[   14.577647] Modules linked in: nvidia(PO) saa716x_tbs_dvb(O) tbs6982fe(PO) tbs6680fe(PO) tbs6923fe(PO) tbs6991fe(PO) tbs6618fe(PO) saa716x_core(O) tbs6922fe(PO) tbs6928fe(PO) stv090x(O)
[   14.577662] CPU 3
[   14.577667] Pid: 4146, comm: kdvb-ad-0-fe-0 Tainted: P           O 3.8.6 #11                  /DZ75ML-45K
[   14.577673] RIP: 0010:[<ffffffffa002d4e1>]  [<ffffffffa002d4e1>] tbs6618fe_set_tps+0x21/0x5d0 [tbs6618fe]
[   14.577681] RSP: 0018:ffff880115c8fdc8  EFLAGS: 00010292
[   14.577684] RAX: ffffffffa002d4c0 RBX: ffff880114b89c00 RCX: 000000000000000c
[   14.577688] RDX: 00000000000000f0 RSI: 0000000000000000 RDI: ffff880114b89c10
[   14.577691] RBP: ffff880115c8fe18 R08: 0000000000000000 R09: 0000000000000001
[   14.577695] R10: 0000000000000000 R11: 0000000000000004 R12: ffff880114b89800
[   14.577699] R13: ffff880114b899b8 R14: 0000000000000000 R15: ffff88011932c530
[   14.577703] FS:  0000000000000000(0000) GS:ffff88011ed80000(0000) knlGS:0000000000000000
[   14.577707] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   14.577711] CR2: 0000000000000000 CR3: 0000000001e0b000 CR4: 00000000001407e0
[   14.577714] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[   14.577718] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[   14.577722] Process kdvb-ad-0-fe-0 (pid: 4146, threadinfo ffff880115c8e000, task ffff88011932c530)
[   14.577726] Stack:
[   14.577728]  ffffffffffffffff 0000000000000000 0000000000000000 0000000000000282
[   14.577734]  ffff880115c8fe18 ffff880114b89c10 ffff880114b89800 ffff880114b899b8
[   14.577739]  0000000000000000 ffff88011932c530 ffff880115c8feb8 ffffffff8162b37e
[   14.577745] Call Trace:
[   14.577753]  [<ffffffff8162b37e>] dvb_frontend_thread+0x1fe/0x530
[   14.577760]  [<ffffffff8109f6d0>] ? finish_wait+0x80/0x80
[   14.577765]  [<ffffffff8162b180>] ? dvb_register_frontend+0x1a0/0x1a0
[   14.577771]  [<ffffffff8109f06b>] kthread+0xbb/0xc0
[   14.577776]  [<ffffffff8109efb0>] ? kthread_create_on_node+0x120/0x120
[   14.577782]  [<ffffffff8199306c>] ret_from_fork+0x7c/0xb0
[   14.577787]  [<ffffffff8109efb0>] ? kthread_create_on_node+0x120/0x120
[   14.577790] Code: 66 2e 0f 1f 84 00 00 00 00 00 55 ba f0 00 00 00 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 ec 28 48 89 75 b8 48 8b 9f f0 02 00 00 <44> 8b 3e be 17 00 00 00 48 89 df e8 0f fc ff ff ba 6b 00 00 00
[   14.577832] RIP  [<ffffffffa002d4e1>] tbs6618fe_set_tps+0x21/0x5d0 [tbs6618fe]
[   14.577838]  RSP <ffff880115c8fdc8>
[   14.577841] CR2: 0000000000000000
[   14.577845] ---[ end trace 1c1eb1d5675717dd ]---


C - IR not working)
I can't get the IR remote to work at all.
Code: Select All Code
irrecord --driver=devinput -d /dev/input/event14 ir.conf

Just shows that it can't determin the gap.
A simple:
Code: Select All Code
/dev/input/event14

doesn't yield any output.
At least ir-keytable shows the device.
Code: Select All Code
Found /sys/class/rc/rc0/ (/dev/input/event3) with:
        Driver rc-loopback, table rc-empty
        Supported protocols: NEC RC-5 RC-6 JVC SONY SANYO LIRC RC-5-SZ other
        Enabled protocols: NEC RC-5 RC-6 JVC SONY SANYO LIRC RC-5-SZ other
        Repeat delay = 500 ms, repeat period = 125 ms
Found /sys/class/rc/rc1/ (/dev/input/event14) with:
        Driver saa716x, table rc-tbs-nec
        Supported protocols: other
        Enabled protocols: other
        Repeat delay = 500 ms, repeat period = 125 ms


I also tried it via evdev:
Code: Select All Code
Section "InputDevice"
        Identifier  "IR0"
        Driver      "evdev"
        Option      "Name" "TBS remote"
        Option      "XkbRules" "xorg" 
        Option      "XkbModel" "evdev"
        Option      "Device" "/dev/input/event14"
        #Option      "Device" "/dev/input/by-path/pci-0000:02:00.0-event-ir"
        #Option     "Phys" "usb-*/input1"
        Option      "Protocol" "evdev"   
EndSection

But nothing.

The remote is working - at least I can see the IR emitting diode flash when I aim at my mobile phones camera.

Thanks a lot for your support,
Bjoern
Attachments
tbs-logs.tar.bz2
Logs: dmesg, ir-keytable, uname, irrecord, kernel-config, lsmod, lspci and uname
(44.2 KiB) Downloaded 295 times
Last edited by bolausson on Thu Apr 11, 2013 9:38 pm, edited 2 times in total.
bolausson
 
Posts: 12
Joined: Mon Apr 08, 2013 3:39 pm

Re: Gentoo - NULL pointer dereference and DVBv3 call issues

Postby bolausson » Wed Apr 10, 2013 4:58 pm

Okay, tried Mythbuntu and it seems to work. At least no Oops and not DVBv3 call messages.

Code: Select All Code
[...]
[    9.244712] Registered IR keymap rc-tbs-nec
[    9.244765] input: saa716x IR (TurboSight TBS 6618) as /devices/pci0000:00/0000:00:1c.0/0000:02:00.0/rc/rc0/input5
[    9.244823] rc0: saa716x IR (TurboSight TBS 6618) as /devices/pci0000:00/0000:00:1c.0/0000:02:00.0/rc/rc0
[    9.244895] input: MCE IR Keyboard/Mouse (saa716x) as /devices/virtual/input/input6
[    9.245205] rc rc0: lirc_dev: driver ir-lirc-codec (saa716x) registered at minor = 0
[    9.245208] DVB: registering new adapter (SAA716x dvb adapter)
[...]
[    9.477454] TurboSight TBS6618 DVB-C card MAC=00:22:ab:b2:01:5c
[    9.492787] tbsci: Initializing TBS 6618 CI slot
[    9.492899] tbsci: Adapter 0 CI slot initialized
[    9.492902] DVB: registering adapter 0 frontend 0 (TurboSight TBS 6618 DVBC frontend)...
[...]


One difference:
The firmware is not included directly into the Kernel. I will undo this in my Gentoo installation and see what happens.

Cheers,
Bjoern
bolausson
 
Posts: 12
Joined: Mon Apr 08, 2013 3:39 pm

Re: Gentoo - NULL pointer dereference and DVBv3 call issues

Postby bolausson » Wed Apr 10, 2013 5:38 pm

No luck with different Kernel config regarding the firmware.

Please find attached my current Kernel config for vanilla 3.8.6 Kernel.

Cheers,
Bjoern
Attachments
kernel-config.tar.gz
vanilla 3.8.6 Kernel config (without TBS fw build-in)
(21.7 KiB) Downloaded 321 times
bolausson
 
Posts: 12
Joined: Mon Apr 08, 2013 3:39 pm

Re: Gentoo - NULL pointer dereference and DVBv3 call issues

Postby bolausson » Wed Apr 10, 2013 7:38 pm

Regarding problem A):

It looks like it might be an mythtv issue since those messages appear when it queries the HW, for example when adding a new Card.
Also it only lists the card when I select the card type "DVB DTV TV-Karte (v3.x)". Then it lists my two cards as
Code: Select All Code
/dev/dvb/adapter0/frontend0
/dev/dvb/adapter1/frontend0


It shows the Frontend-ID as follows:
Code: Select All Code
TurboSight TBS 6681 DVBC frontend


Interestingly it shows the subtype as
Code: Select All Code
DVB-T


The same test in Mythbuntu went smooth like butter...
Mythbunto correctly discovers the card as DVB-C and I can perform a channel scan (alo I do not jet have DVB-C)

Also no DVBv3 and NULL pointer messages in Mythbuntu...

I have no clue whether this is now all related to the driver messed up by my Gentoo environment or a messed up MytTV installation on my Gentoo box :?

Cheers,
Bjoern
bolausson
 
Posts: 12
Joined: Mon Apr 08, 2013 3:39 pm

Re: Gentoo - NULL pointer dereference and DVBv3 call issues

Postby bolausson » Thu Apr 11, 2013 8:49 pm

Just to make clear:
The hardware is working properly in Mythbuntu (Ubuntu derivate with pre installed MythTV).

Cheers,
Bjoern
bolausson
 
Posts: 12
Joined: Mon Apr 08, 2013 3:39 pm

Re: Gentoo - NULL pointer dereference and DVBv3 call issues

Postby bolausson » Thu Apr 11, 2013 9:35 pm

Okay, I killed the entire multimediasupport from my kernel
Code: Select All Code
Device Drivers  --->
< > Multimedia support  --->


So far it looks good.

Looks a hell lot different:
Code: Select All Code
Module                  Size  Used by
rc_tbs_nec              1164  0
ir_lirc_codec           4323  0
lirc_dev                8943  1 ir_lirc_codec
saa716x_tbs_dvb        42810  2
ir_mce_kbd_decoder      4190  0
tbs6982fe              13029  1 saa716x_tbs_dvb
tbs6680fe               8313  1 saa716x_tbs_dvb
ir_sony_decoder         2003  0
tbs6923fe              12965  1 saa716x_tbs_dvb
ir_jvc_decoder          2161  0
tbs6991fe              10932  1 saa716x_tbs_dvb
tbs6618fe               8313  1 saa716x_tbs_dvb
saa716x_core           37343  5 saa716x_tbs_dvb
ir_rc6_decoder          2705  0
tbs6922fe              12549  1 saa716x_tbs_dvb
ir_rc5_decoder          2161  0
tbs6928fe              10484  1 saa716x_tbs_dvb
stv090x                50951  1 saa716x_tbs_dvb
ir_nec_decoder          2513  0
dvb_core               87458  2 saa716x_core,saa716x_tbs_dvb
rc_core                14560  11 ir_lirc_codec,ir_rc5_decoder,ir_nec_decoder,ir_sony_decoder,rc_tbs_nec,saa716x_tbs_dvb,ir_mce_kbd_decoder,ir_jvc_decoder,ir_rc6_decoder
nvidia               9119115  0


Code: Select All Code
root@enterprise $ ir-keytable
Found /sys/class/rc/rc0/ (/dev/input/event8) with:
        Driver saa716x, table rc-tbs-nec
        Supported protocols: NEC RC-5 RC-6 JVC SONY LIRC other
        Enabled protocols:
        Repeat delay = 500 ms, repeat period = 125 ms
Found /sys/class/rc/rc1/ (/dev/input/event10) with:
        Driver saa716x, table rc-tbs-nec
        Supported protocols: NEC RC-5 RC-6 JVC SONY LIRC other
        Enabled protocols:
        Repeat delay = 500 ms, repeat period = 125 ms


Code: Select All Code
[   38.115181] X (4369) used greatest stack depth: 4104 bytes left
[   58.280401] IR NEC protocol handler initialized
[   58.281999] IR RC5(x) protocol handler initialized
[   58.283986] IR RC6 protocol handler initialized
[   58.285763] IR JVC protocol handler initialized
[   58.287369] IR Sony protocol handler initialized
[   58.288979] IR MCE Keyboard/mouse protocol handler initialized
[   58.291287] lirc_dev: IR Remote Control driver registered, major 249
[   58.292021] IR LIRC bridge handler initialized
[   58.319770] Registered IR keymap rc-tbs-nec
[   58.319856] input: saa716x IR (TurboSight TBS 6618) as /devices/pci0000:00/0000:00:1c.0/0000:02:00.0/rc/rc0/input8
[   58.319971] rc0: saa716x IR (TurboSight TBS 6618) as /devices/pci0000:00/0000:00:1c.0/0000:02:00.0/rc/rc0
[   58.320157] input: MCE IR Keyboard/Mouse (saa716x) as /devices/virtual/input/input9
[   58.320406] rc rc0: lirc_dev: driver ir-lirc-codec (saa716x) registered at minor = 0
[   58.320411] DVB: registering new adapter (SAA716x dvb adapter)
[   58.499517] TurboSight TBS6618 DVB-C card MAC=00:22:ab:b2:01:5c
[   58.502854] tbsci: Initializing TBS 6618 CI slot
[   58.503097] tbsci: Adapter 0 CI slot initialized
[   58.503102] DVB: registering adapter 0 frontend 0 (TurboSight TBS 6618 DVBC frontend)...
[   58.510694] Registered IR keymap rc-tbs-nec
[   58.510774] input: saa716x IR (TurboSight TBS 6618) as /devices/pci0000:00/0000:00:1c.6/0000:03:00.0/rc/rc1/input10
[   58.510885] rc1: saa716x IR (TurboSight TBS 6618) as /devices/pci0000:00/0000:00:1c.6/0000:03:00.0/rc/rc1
[   58.511040] input: MCE IR Keyboard/Mouse (saa716x) as /devices/virtual/input/input11
[   58.511158] rc rc1: lirc_dev: driver ir-lirc-codec (saa716x) registered at minor = 1
[   58.511162] DVB: registering new adapter (SAA716x dvb adapter)
[   58.691463] TurboSight TBS6618 DVB-C card MAC=00:22:ab:b2:01:5d
[   58.694772] tbsci: Initializing TBS 6618 CI slot
[   58.695009] tbsci: Adapter 1 CI slot initialized
[   58.695014] DVB: registering adapter 1 frontend 0 (TurboSight TBS 6618 DVBC frontend)...
[  745.119328] Loading kernel module for a network device with CAP_SYS_MODULE (deprecated).  Use CAP_NET_ADMIN and alias netdev- instead.
[  745.121702] Loading kernel module for a network device with CAP_SYS_MODULE (deprecated).  Use CAP_NET_ADMIN and alias netdev- instead.
[  775.592843] Loading kernel module for a network device with CAP_SYS_MODULE (deprecated).  Use CAP_NET_ADMIN and alias netdev- instead.
[  789.476450] Loading kernel module for a network device with CAP_SYS_MODULE (deprecated).  Use CAP_NET_ADMIN and alias netdev- instead.


No more errors also no more errors after starting Mythbackend.
In mythtv-setup the card is now detected as DVB-C.

Problem Solved!

Cheers,
Bjoern
Attachments
kernel-config.tar.bz2
Kernel config (No multimedia support)
(17.26 KiB) Downloaded 308 times
bolausson
 
Posts: 12
Joined: Mon Apr 08, 2013 3:39 pm


Return to Linux

Who is online

Users browsing this forum: No registered users and 1 guest

cron