From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from v-smtpgw2.han.skanova.net ([81.236.60.205]:60507 "EHLO v-smtpgw2.han.skanova.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932484AbcBPXM6 (ORCPT ); Tue, 16 Feb 2016 18:12:58 -0500 Subject: Re: DVBSky T980C CI issues (kernel 4.0.x) To: Olli Salonen References: <1436697509.2446.14.camel@xs4all.nl> <1440352250.13381.3.camel@xs4all.nl> <55F332FE.7040201@mbox200.swipnet.se> <1442041326.2442.2.camel@xs4all.nl> <1454007436.13371.4.camel@xs4all.nl> <56ADCBE4.6050609@mbox200.swipnet.se> Cc: Jurgen Kramer , Mauro Carvalho Chehab , linux-media From: Torbjorn Jansson Message-ID: <56C3ACF6.1030106@mbox200.swipnet.se> Date: Wed, 17 Feb 2016 00:12:54 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-media-owner@vger.kernel.org List-ID: Perfect. Looks like i have some more testing to do in the next few days. something else, when testing my 4650 card i cant get it to tune properly to dvb-t2 muxes. but i'm not yet sure if this is a driver issue or if i made a mistake with the tuning parameters since the file i use that came with the dvbv5 programs was missing the t2 mux so i had to put that one in manually. so more testing is needed first and with your patch for the T980C card i can probably test both things at the same time. On 2016-02-16 21:20, Olli Salonen wrote: > Hi all, > > Found the issue and submitted a patch. > > The I2C buses for T980C/T2-4500CI were crossed when CI registration > was moved to its own function. > > Cheers, > -olli > > On 31 January 2016 at 10:55, Torbjorn Jansson > wrote: >> this ci problem is the reason i decided to buy the CT2-4650 usb based device >> instead. >> but the 4650 was a slightly newer revision needing a patch i submitted >> earlier. >> and also this 4650 device does not have auto switching between dvb-t and t2 >> like the dvbsky card have, so i also need an updated version of mythtv. >> >> my long term wish is to not have to patch things or build custom kernels or >> modules. >> so anything done to improve the dvbsky card or the 4650 is much appreciated. >> >> >> On 2016-01-28 20:42, Olli Salonen wrote: >>> >>> Hi Jürgen & Mauro, >>> >>> I did bisect this and it seems this rather big patch broke it: >>> >>> 2b0aac3011bc7a9db27791bed4978554263ef079 is the first bad commit >>> commit 2b0aac3011bc7a9db27791bed4978554263ef079 >>> Author: Mauro Carvalho Chehab >>> Date: Tue Dec 23 13:48:07 2014 -0200 >>> >>> [media] cx23885: move CI/MAC registration to a separate function >>> >>> As reported by smatch: >>> drivers/media/pci/cx23885/cx23885-dvb.c:2080 dvb_register() >>> Function too hairy. Giving up. >>> >>> This is indeed a too complex function, with lots of stuff inside. >>> Breaking this into two functions makes it a little bit less hairy. >>> >>> Signed-off-by: Mauro Carvalho Chehab >>> >>> It's getting a bit late, so I'll call it a day now and have a look at >>> the patch to see what goes wrong there. >>> >>> Cheers, >>> -olli >>> >>> On 28 January 2016 at 20:57, Jurgen Kramer wrote: >>>> >>>> Hi Olli, >>>> >>>> On Thu, 2016-01-28 at 19:26 +0200, Olli Salonen wrote: >>>>> >>>>> Hi Jürgen, >>>>> >>>>> Did you get anywhere with this? >>>>> >>>>> I have a clone of your card and was just starting to look at this >>>>> issue. Kernel 3.19 seems to work ok, but 4.3 not. Did you have any >>>>> time to try to pinpoint this more? >>>> >>>> No, unfortunately not. I have spend a few hours adding printk's but it >>>> did not get me any closer what causes the issue. This really needs >>>> investigation from someone who is more familiar with linux media. >>>> >>>> Last thing I tried was the latest (semi open) drivers from dvbsky on a >>>> 4.3 kernel. Here the CI and CAM registered successfully. >>>> >>>> Greetings, >>>> Jurgen >>>> >>>>> Cheers, >>>>> -olli >>>>> >>>>> On 12 September 2015 at 10:02, Jurgen Kramer >>>>> wrote: >>>>>> >>>>>> On Fri, 2015-09-11 at 22:01 +0200, Torbjorn Jansson wrote: >>>>>>> >>>>>>> On 2015-08-23 19:50, Jurgen Kramer wrote: >>>>>>>> >>>>>>>> >>>>>>>> On Sun, 2015-07-12 at 12:38 +0200, Jurgen Kramer wrote: >>>>>>>>> >>>>>>>>> I have been running a couple of DVBSky T980C's with CIs with >>>>>>>>> success >>>>>>>>> using an older kernel (3.17.8) with media-build and some >>>>>>>>> added patches >>>>>>>>> from the mailing list. >>>>>>>>> >>>>>>>>> I thought lets try a current 4.0 kernel to see if I no longer >>>>>>>>> need to be >>>>>>>>> running a custom kernel. Everything works just fine except >>>>>>>>> the CAM >>>>>>>>> module. I am seeing these: >>>>>>>>> >>>>>>>>> [ 456.574969] dvb_ca adapter 0: Invalid PC card inserted :( >>>>>>>>> [ 456.626943] dvb_ca adapter 1: Invalid PC card inserted :( >>>>>>>>> [ 456.666932] dvb_ca adapter 2: Invalid PC card inserted :( >>>>>>>>> >>>>>>>>> The normal 'CAM detected and initialised' messages to do show >>>>>>>>> up with >>>>>>>>> 4.0.8 >>>>>>>>> >>>>>>>>> I am not sure what changed in the recent kernels, what is >>>>>>>>> needed to >>>>>>>>> debug this? >>>>>>>>> >>>>>>>>> Jurgen >>>>>>>> >>>>>>>> Retest. I've isolated one T980C on another PC with kernel >>>>>>>> 4.1.5, still the same 'Invalid PC card inserted :(' message. >>>>>>>> Even after installed today's media_build from git no >>>>>>>> improvement. >>>>>>>> >>>>>>>> Any hints where to start looking would be appreciated! >>>>>>>> >>>>>>>> cimax2.c|h do not seem to have changed. There are changes to >>>>>>>> dvb_ca_en50221.c >>>>>>>> >>>>>>>> Jurgen >>>>>>>> >>>>>>> >>>>>>> did you get it to work? >>>>>> >>>>>> >>>>>> No, it needs a thorough debug session. So far no one seems able to >>>>>> help... >>>>>> >>>>>>> i got a dvbsky T980C too for dvb-t2 reception and so far the only >>>>>>> drivers that have worked at all is the ones from dvbsky directly. >>>>>>> >>>>>>> i was very happy when i noticed that recent kernels have support >>>>>>> for it >>>>>>> built in but unfortunately only the modules and firmware loads >>>>>>> but then >>>>>>> nothing actually works. >>>>>>> i use mythtv and it complains a lot about the signal, running >>>>>>> femon also >>>>>>> produces lots of errors. >>>>>>> >>>>>>> so i had to switch back to kernel 4.0.4 with mediabuild from >>>>>>> dvbsky. >>>>>>> >>>>>>> if there were any other dvb-t2 card with ci support that had >>>>>>> better >>>>>>> drivers i would change right away. >>>>>>> >>>>>>> one problem i have with the mediabuilt from dvbsky is that at >>>>>>> boot the >>>>>>> cam never works and i have to first tune a channel, then remove >>>>>>> and >>>>>>> reinstert the cam to get it to work. >>>>>>> without that nothing works. >>>>>>> >>>>>>> and finally a problem i ran into when i tried mediabuilt from >>>>>>> linuxtv.org. >>>>>>> fedora uses kernel modules with .ko.xz extension so when you >>>>>>> install the >>>>>>> mediabuilt modulels you get one modulename.ko and one >>>>>>> modulename.ko.xz >>>>>>> >>>>>>> before a make install from mediabuild overwrote the needed >>>>>>> modules. >>>>>>> any advice on how to handle this now? >>>>>>> >>>>>>>