Moderator Control Panel ]

TBS Driver on Fed x86_64 3.9.11 Breaks existing ngene driver

TBS Driver on Fed x86_64 3.9.11 Breaks existing ngene driver

Postby pinsb » Mon Aug 05, 2013 3:19 pm

I have a machine with....

2 x 2400i Terratec Cinergy Dual Tuner cards fitted

I added a TBS 6280 for HD

I use the cards with MythTV

When compiling the TBS v4l driver I get the problem reported elsewhere as soon as I try to access any of the cards (terratec or TBS) and dmesg spews out.....

[ 77.975901] SELinux: initialized (dev fuse, type fuse), uses genfs_contexts
[ 392.700011] BUG: unable to handle kernel NULL pointer dereference at 0000000000000002
[ 392.700018] IP: [<0000000000000002>] 0x1
[ 392.700027] PGD 195f36067 PUD 178785067 PMD 0
[ 392.700032] Oops: 0010 [#1] SMP
[ 392.700035] Modules linked in: fuse ebtable_nat ipt_MASQUERADE nf_conntrack_netbios_ns nf_conntrack_broadcast bnep bluetooth rfkill ip6table_mangle ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 iptable_nat nf_nat_ipv4 nf_nat iptable_mangle nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack ebtable_filter ebtables ip6table_filter ip6_tables be2iscsi iscsi_boot_sysfs bnx2i cnic uio cxgb4i cxgb4 cxgb3i cxgb3 mdio libcxgbi ib_iser rdma_cm ib_addr iw_cm ib_cm ib_sa ib_mad ib_core iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi hwmon_vid lm90 nvidia(POF) tbs62x0fe(POF) dvb_pll iTCO_wdt iTCO_vendor_support drxd snd_hda_codec_analog raid456 async_raid6_recov async_memcpy async_pq raid6_pq async_xor xor async_tx acpi_cpufreq mperf coretemp rc_tbs_nec(OF) microcode serio_raw i2c_i801 lpc_ich mfd_core
[ 392.700086] r8169 snd_hda_intel mii snd_hda_codec snd_hwdep snd_seq snd_seq_device snd_pcm ir_lirc_codec(OF) lirc_dev(OF) ir_mce_kbd_decoder(OF) saa716x_tbs_dvb(OF) tbs6982fe(POF) tbs6680fe(POF) ir_sony_decoder(OF) tbs6923fe(POF) tbs6928se(POF) ir_jvc_decoder(OF) ir_rc6_decoder(OF) tbs6982se(POF) tbs6991fe(POF) snd_page_alloc tbs6618fe(POF) ir_rc5_decoder(OF) saa716x_core(OF) i7core_edac tbs6922fe(POF) tbs6928fe(POF) snd_timer ir_nec_decoder(OF) stv090x snd edac_core rc_core(OF) i2c_algo_bit soundcore ngene dvb_core(OF) i2c_core asus_atk0110 vhost_net tun macvtap macvlan kvm_intel kvm uinput ata_generic pata_acpi mxm_wmi crc32c_intel mpt2sas pata_marvell raid_class scsi_transport_sas wmi
[ 392.700126] CPU 0
[ 392.700131] Pid: 2375, comm: mythtv-setup Tainted: PF O 3.9.11-200.fc18.x86_64 #1 System manufacturer System Product Name/P6T6 WS REVOLUTION
[ 392.700134] RIP: 0010:[<0000000000000002>] [<0000000000000002>] 0x1
[ 392.700139] RSP: 0018:ffff88017e3e7c10 EFLAGS: 00010246
[ 392.700142] RAX: 0000000000000002 RBX: ffff8801b6ac1000 RCX: 0000000000000000
[ 392.700144] RDX: ffff8801b1d05e00 RSI: 0000000080a86f3d RDI: ffff8801b6ac1000
[ 392.700146] RBP: ffff88017e3e7d18 R08: 0000000000016d20 R09: ffffffffa014aaa0
[ 392.700148] R10: ffff8801b9002300 R11: 0000000000000000 R12: 0000000080a86f3d
[ 392.700150] R13: ffff8801ab195000 R14: ffff8801b1d05e00 R15: 0000000080a86f3d
[ 392.700153] FS: 00007fa196e4b880(0000) GS:ffff8801bfc00000(0000) knlGS:0000000000000000
[ 392.700155] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 392.700157] CR2: 0000000000000002 CR3: 000000017e358000 CR4: 00000000000007f0
[ 392.700159] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 392.700161] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[ 392.700164] Process mythtv-setup (pid: 2375, threadinfo ffff88017e3e6000, task ffff880195e40000)
[ 392.700166] Stack:
[ 392.700167] ffffffffa01534dc ffff88017e3e7c58 ffffffff811a1fbb ffff8801b1c40900
[ 392.700171] ffff880178792540 ffff880178792500 0000000000000000 ffff880178792510
[ 392.700175] ffff8801b1c40900 ffff88017e3e7c88 ffffffff811bb399 ffff88017e3e7c98
[ 392.700179] Call Trace:
[ 392.700192] [<ffffffffa01534dc>] ? dvb_frontend_ioctl_legacy.isra.10+0x5c/0xc10 [dvb_core]
[ 392.700198] [<ffffffff811a1fbb>] ? chrdev_open+0x9b/0x180
[ 392.700202] [<ffffffff811bb399>] ? mntput_no_expire+0x49/0x130
[ 392.700205] [<ffffffff811bb4a6>] ? mntput+0x26/0x40
[ 392.700208] [<ffffffff811a7462>] ? path_put+0x22/0x30
[ 392.700212] [<ffffffff811a7e6d>] ? terminate_walk+0x3d/0x50
[ 392.700216] [<ffffffff811abcf1>] ? do_last+0x291/0xe50
[ 392.700226] [<ffffffffa0154900>] ? dvb_frontend_thread+0x6d0/0x760 [dvb_core]
[ 392.700236] [<ffffffffa0154ad2>] dvb_frontend_ioctl+0x142/0xd20 [dvb_core]
[ 392.700241] [<ffffffff811854b5>] ? __kmalloc+0x55/0x250
[ 392.700250] [<ffffffffa014aaa0>] ? dvb_usercopy+0xf0/0x1b0 [dvb_core]
[ 392.700260] [<ffffffffa0154990>] ? dvb_frontend_thread+0x760/0x760 [dvb_core]
[ 392.700269] [<ffffffffa014aa27>] dvb_usercopy+0x77/0x1b0 [dvb_core]
[ 392.700274] [<ffffffff812a2b55>] ? selinux_inode_getattr+0x45/0x50
[ 392.700283] [<ffffffffa014ab83>] dvb_generic_ioctl+0x23/0x40 [dvb_core]
[ 392.700287] [<ffffffff811af057>] do_vfs_ioctl+0x97/0x580
[ 392.700293] [<ffffffff8129ebfa>] ? inode_has_perm.isra.32.constprop.62+0x2a/0x30
[ 392.700297] [<ffffffff812a0287>] ? file_has_perm+0x97/0xb0
[ 392.700301] [<ffffffff811af5d1>] sys_ioctl+0x91/0xb0
[ 392.700306] [<ffffffff81667f99>] system_call_fastpath+0x16/0x1b
[ 392.700308] Code: Bad RIP value.
[ 392.700313] RIP [<0000000000000002>] 0x1
[ 392.700318] RSP <ffff88017e3e7c10>
[ 392.700320] CR2: 0000000000000002
[ 392.700323] ---[ end trace 3250deb5c43960bb ]---

So I removed /lib/modules......./media as requested and recompiled the TBS driver

The TBS driver now fully works, including with Myth, however it looks like you've either removed or are using an old version of the ngene/micronas driver....

[ 16.988814] DVB: registering new adapter (nGene)
[ 16.988944] DVB: registering adapter 1 frontend 0 (Micronas DRXD DVB-T)...
[ 17.025813] DVB: registering new adapter (nGene)
[ 17.025946] DVB: registering adapter 2 frontend 0 (Micronas DRXD DVB-T)...

Is what I get on native Fedora x86_64 3.9.11-200 kernel without compiling any drivers

but with your driver the 2400i cards aren't seen at all.

Please update your driver to include the latest kernel/v4l updates for the ngene/micronas DRXD driver.
pinsb
 
Posts: 13
Joined: Mon Aug 05, 2013 7:30 am

Re: TBS Driver on Fed x86_64 3.9.11 Breaks existing ngene dr

Postby cody » Mon Aug 05, 2013 6:40 pm

could you, please, clarity the problem and support request - do i understand correctly the problem is that your 2400i Terratec Cinergy Dual Tuner cards are not working when you install TBS driver package? thank you
cody
 
Posts: 627
Joined: Tue Apr 13, 2010 11:20 pm

Re: TBS Driver on Fed x86_64 3.9.11 Breaks existing ngene dr

Postby pinsb » Mon Aug 05, 2013 8:15 pm

cody Wrote:could you, please, clarity the problem and support request - do i understand correctly the problem is that your 2400i Terratec Cinergy Dual Tuner cards are not working when you install TBS driver package? thank you


Yes Cody that is correct....

Option 1.

Install TBS driver, leaving original /lib/modules......./media intact causes the crash shown in dmesg above.

2400i cards are seen in dmesg (before access and crash) though.

Optopn 2.

Remove /lib/modules......./media directory, reinstall TBS driver means TBS card now recognised and working properly.

However 2400i cards are now not seen in dmesg so not usable.

Therefore my conclusion is you're using an earlier version of the v4l code for the 2400i card (seen as Micronas DRDX DVB-T) in dmesg if used without TBS driver.
pinsb
 
Posts: 13
Joined: Mon Aug 05, 2013 7:30 am

Re: TBS Driver on Fed x86_64 3.9.11 Breaks existing ngene dr

Postby cody » Mon Aug 05, 2013 10:20 pm

as far as i can tell support for 2400i is pretty simple - just a patch to the existing code:

https://linuxtv.org/patch/13519/

https://linuxtv.org/patch/13520/

indeed those patches are not included in TBS Linux driver package, but it shouldn't be a problem to include them in the next update or for the time being you manually apply those patches - if that's hard for you i can apply them and put here version of TBS Linux driver package with those patches applied.
cody
 
Posts: 627
Joined: Tue Apr 13, 2010 11:20 pm

Re: TBS Driver on Fed x86_64 3.9.11 Breaks existing ngene dr

Postby pinsb » Mon Aug 05, 2013 11:29 pm

cody Wrote:as far as i can tell support for 2400i is pretty simple - just a patch to the existing code:

https://linuxtv.org/patch/13519/

https://linuxtv.org/patch/13520/

indeed those patches are not included in TBS Linux driver package, but it shouldn't be a problem to include them in the next update or for the time being you manually apply those patches - if that's hard for you i can apply them and put here version of TBS Linux driver package with those patches applied.


Cody

That's kind of you but when is your next scheduled driver update?
pinsb
 
Posts: 13
Joined: Mon Aug 05, 2013 7:30 am

Re: TBS Driver on Fed x86_64 3.9.11 Breaks existing ngene dr

Postby cody » Tue Aug 06, 2013 2:47 am

i already applied the above patches i mentioned and so you can download TBS driver package with them applied from here:

http://wikisend.com/download/195282/lin ... 01.tar.bz2

please, test the above and give us your feedback - if it works then we will keep that change for the next official update.
cody
 
Posts: 627
Joined: Tue Apr 13, 2010 11:20 pm

Re: TBS Driver on Fed x86_64 3.9.11 Breaks existing ngene dr

Postby pinsb » Tue Aug 06, 2013 3:41 am

cody Wrote:i already applied the above patches i mentioned and so you can download TBS driver package with them applied from here:

http://wikisend.com/download/195282/lin ... 01.tar.bz2

please, test the above and give us your feedback - if it works then we will keep that change for the next official update.


Hi Cody

Thanks for that, tried the 2400i patched version above and my 2400i's are still not seen properly in dmesg as the frontend isn't loading (the firmware file is there before you ask)

dmesg | grep ngene
[ 16.386103] ngene: Found Terratec Integra/Cinergy2400i Dual DVB-T
[ 16.386551] ngene: Device version 1
[ 16.406699] ngene: Loading firmware file ngene_15.fw.


[ 18.814942] ngene: Command timeout cmd=03 prev=04
[ 18.815080] host_to_ngene (c000): 03 07 e0 32 42 00 00 02
[ 18.815215] ngene_to_host (c100): 00 00 00 00 00 00 00 00
[ 18.815340] dev->hosttongene (ffff880036418000): 03 07 e0 32 42 00 00 02
[ 18.815466] dev->ngenetohost (ffff880036418100): 00 00 00 00 00 00 00 00
[ 18.929647] No pll(19) found!
[ 18.929908] drxd: not found
[ 18.930040] No DRXD found!


They are seen in lspci

04:00.0 Multimedia video controller [0400]: Micronas Semiconductor Holding AG nGene PCI-Express Multimedia Controller [18c3:0720]
Subsystem: TERRATEC Electronic GmbH Device [153b:1167]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 24
Region 0: Memory at f8df0000 (32-bit, non-prefetchable) [size=64K]
Region 1: Memory at f8de0000 (64-bit, non-prefetchable) [size=64K]
Capabilities: [40] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [48] MSI: Enable- Count=1/1 Maskable- 64bit+
Address: 0000000000000000 Data: 0000
Capabilities: [58] Express (v1) Endpoint, MSI 00
DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <64ns, L1 <1us
ExtTag- AttnBtn- AttnInd- PwrInd- RBE- FLReset-
DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+
MaxPayload 128 bytes, MaxReadReq 512 bytes
DevSta: CorrErr- UncorrErr+ FatalErr- UnsuppReq+ AuxPwr- TransPend-
LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s, Latency L0 unlimited, L1 unlimited
ClockPM- Surprise- LLActRep- BwNot-
LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk-
ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
Capabilities: [100 v1] Device Serial Number 00-00-00-07-20-3c-11-00
Capabilities: [400 v1] Virtual Channel
Caps: LPEVC=0 RefClk=100ns PATEntryBits=1
Arb: Fixed- WRR32- WRR64- WRR128-
Ctrl: ArbSelect=Fixed
Status: InProgress-
VC0: Caps: PATOffset=00 MaxTimeSlots=1 RejSnoopTrans-
Arb: Fixed- WRR32- WRR64- WRR128- TWRR128- WRR256-
Ctrl: Enable+ ID=0 ArbSelect=Fixed TC/VC=ff
Status: NegoPending- InProgress-
Kernel driver in use: ngene
pinsb
 
Posts: 13
Joined: Mon Aug 05, 2013 7:30 am

Re: TBS Driver on Fed x86_64 3.9.11 Breaks existing ngene dr

Postby cody » Tue Aug 06, 2013 9:54 pm

thanks for the provided information of what happens - i'm looking at it - i will get back to you in few hours.

[EDIT] please, try the following new test version:

http://wikisend.com/download/453134/lin ... 02.tar.bz2

http://www.basicupload.com/phik5sijgipl

and report back. so, i see almost no differences between 2400i driver source code of the current kernel versions and what's inside TBS driver package and if it doesn't work again, what i'm missing should be really very small, but with few trials and errors we should get it running.
cody
 
Posts: 627
Joined: Tue Apr 13, 2010 11:20 pm

Re: TBS Driver on Fed x86_64 3.9.11 Breaks existing ngene dr

Postby pinsb » Wed Aug 07, 2013 7:46 am

cody Wrote:thanks for the provided information of what happens - i'm looking at it - i will get back to you in few hours.

[EDIT] please, try the following new test version:

http://wikisend.com/download/453134/lin ... 02.tar.bz2

http://www.basicupload.com/phik5sijgipl

and report back. so, i see almost no differences between 2400i driver source code of the current kernel versions and what's inside TBS driver package and if it doesn't work again, what i'm missing should be really very small, but with few trials and errors we should get it running.


Hi Cody

Still no go I'm afraid......


[ 16.784881] nGene PCIE bridge driver, Copyright (C) 2005-2007 Micronas
[ 16.785072] ngene: Found Terratec Integra/Cinergy2400i Dual DVB-T
[ 16.785520] ngene: Device version 1
[ 16.792034] ngene: Loading firmware file ngene_15.fw.


[ 19.891708] ngene: Command timeout cmd=03 prev=04
[ 19.891848] host_to_ngene (c000): 03 07 e0 32 42 00 00 02
[ 19.891984] ngene_to_host (c100): 00 00 00 00 00 00 00 00
[ 19.892110] dev->hosttongene (ffff880036418000): 03 07 e0 32 42 00 00 02
[ 19.892238] dev->ngenetohost (ffff880036418100): 00 00 00 00 00 00 00 00
[ 20.004115] No pll(19) found!
[ 20.004360] drxd: not found
[ 20.004479] No DRXD found!
pinsb
 
Posts: 13
Joined: Mon Aug 05, 2013 7:30 am

Re: TBS Driver on Fed x86_64 3.9.11 Breaks existing ngene dr

Postby cody » Thu Aug 08, 2013 5:25 pm

hmm, can you revert back to kernel drivers in which it's working and check if the same firmware file is loaded, i.e. "ngene: Loading firmware file ngene_15.fw.", in the mean time i will compare again the code in 3.9.11 kernel for "ngene" driver with what's inside TBS package - as i mentioned there are almost no differences and that's why i expect it's something very small - maybe even my idea i've just mentioned that different than "ngene_15.fw" firmware file is loaded.
cody
 
Posts: 627
Joined: Tue Apr 13, 2010 11:20 pm

Next

Return to Linux

Who is online

Users browsing this forum: No registered users and 1 guest

cron