From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from v-smtpgw2.han.skanova.net ([81.236.60.205]:43965 "EHLO v-smtpgw2.han.skanova.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752067AbcAaIzD (ORCPT ); Sun, 31 Jan 2016 03:55:03 -0500 Subject: Re: DVBSky T980C CI issues (kernel 4.0.x) To: Olli Salonen , Jurgen Kramer , Mauro Carvalho Chehab 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> Cc: linux-media From: Torbjorn Jansson Message-ID: <56ADCBE4.6050609@mbox200.swipnet.se> Date: Sun, 31 Jan 2016 09:55:00 +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: 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? >>>>> >>>>> >>>> >>>> >>>> -- >>>> To unsubscribe from this list: send the line "unsubscribe linux- >>>> media" in >>>> the body of a message to majordomo@vger.kernel.org >>>> More majordomo info at http://vger.kernel.org/majordomo-info.html