Re: TeVii S470 dvb-s2 issues - 2nd try ,)

2010-12-19 Thread Boris Cuber
Am Saturday 18 December 2010 schrieben Sie:
> On Sat, 2010-12-18 at 14:40 +0100, Boris Cuber wrote:
> > Am Friday 17 December 2010 schrieben Sie:
> > > On Fri, 2010-12-17 at 12:19 +0100, Boris Cuber wrote:
> > > > Hello linux-media people!
> > > > 
> > > > I have to problems with my dvb card ("TeVii S470"). I already
> > > > filed 2 bug reports some time ago, but no one seems to have
> > > > noticed/read them, so i'm trying it here now.
> > > > If you need a "full" dmesg, then please take a look at
> > > > https://bugzilla.kernel.org/attachment.cgi?id=40552
> > > > 
> > > > 1) "TeVii S470 dvbs-2 card (cx23885) is not usable after
> > > > pm-suspend/resume" https://bugzilla.kernel.org/show_bug.cgi?id=16467
> > > 
> > > The cx23885 driver does not implement power management.  It would
> > > likely take many, many hours of coding and testing to implement it
> > > properly.
> > > 
> > > If you need resume/suspend, use the power management scripts on your
> > > machine to kill all the applications using the TeVii S470, and then
> > > unload the cx23885 module just before suspend.
> > > 
> > > On resume, have the power management scripts reload the cx23885 module.
> > 
> > Well, this doesn't work. If i did tune a channel before or used the dvb
> > card somehow for watching tv, unloading and reloading the cx23885
> > module also makes the card unuseable.
> > In dmesg there's lots of "do_IRQ: 1.161 No irq handler for vector (irq
> > -1)" messages then. This can only be fixed by rebooting the computer.
> 
> That is s a known issue with the CX2388[578] chip and PCIe MSI.
> 
> The CX2388[578] will not accept a different value for its "MSI Data"
> field in its PCI config space, when MSI has been enabled on the hardware
> once.
> 
> The kernel will always try to give a different value for the "MSI Data"
> field to the CX2388[578] chip, on cx23885 module unload and reload.
> 
> So suspend and then resume didn't reset the chip hardware?
> 
> You can set "pci=nomsi" on your kernel command line to prevent the
> cx23885 driver, and your whole system unfortunately, from using MSI.
> 
Ah, now i got it. Simply reloading the module kills the card with that nasty
do_IRQ thing (until reboot), but
-> 1) unloading module 2) suspending 3) resuming 4) loading module 
actually works. It's kinda dirty solution (with some hackish script in
/etc/pm/sleep.d/), but it works somehow.
Perhaps someday there will be a better solution (power management?).

> Regards,
> Andy
Thanks for your time,
Boris

-- 
http://boris64.net 20xx ;)


signature.asc
Description: This is a digitally signed message part.


Re: TeVii S470 dvb-s2 issues - 2nd try ,)

2010-12-18 Thread Boris Cuber
Am Friday 17 December 2010 schrieben Sie:
> On Fri, 2010-12-17 at 12:19 +0100, Boris Cuber wrote:
> > Hello linux-media people!
> > 
> > I have to problems with my dvb card ("TeVii S470"). I already
> > filed 2 bug reports some time ago, but no one seems to have
> > noticed/read them, so i'm trying it here now.
> > If you need a "full" dmesg, then please take a look at
> > https://bugzilla.kernel.org/attachment.cgi?id=40552
> > 
> > 1) "TeVii S470 dvbs-2 card (cx23885) is not usable after
> > pm-suspend/resume" https://bugzilla.kernel.org/show_bug.cgi?id=16467
> 
> The cx23885 driver does not implement power management.  It would likely
> take many, many hours of coding and testing to implement it properly.
> 
> If you need resume/suspend, use the power management scripts on your
> machine to kill all the applications using the TeVii S470, and then
> unload the cx23885 module just before suspend.
> 
> On resume, have the power management scripts reload the cx23885 module.
>
Well, this doesn't work. If i did tune a channel before or used the dvb card
somehow for watching tv, unloading and reloading the cx23885
module also makes the card unuseable.
In dmesg there's lots of "do_IRQ: 1.161 No irq handler for vector (irq -1)"
messages then. This can only be fixed by rebooting the computer.

[/dmesg]
Dec 18 14:33:09 localhost kernel: [  943.911488] cx23885 driver version 0.0.2 
loaded
Dec 18 14:33:09 localhost kernel: [  943.911525] cx23885 :04:00.0: PCI INT 
A -> GSI 16 (level, low) -> IRQ 16   
Dec 18 14:33:09 localhost kernel: [  943.911949] CORE cx23885[0]: subsystem: 
d470:9022, board: TeVii S470 [card=15,autodetected]
Dec 18 14:33:09 localhost kernel: [  944.039513] cx23885_dvb_register() 
allocating 1 frontend(s)

Dec 18 14:33:09 localhost kernel: [  944.039515] cx23885[0]: cx23885 based dvb 
card 
Dec 18 14:33:09 localhost kernel: [  944.041022] DS3000 chip version: 0.192 
attached.   
Dec 18 14:33:09 localhost kernel: [  944.041025] DVB: registering new adapter 
(cx23885[0])  
Dec 18 14:33:09 localhost kernel: [  944.041027] DVB: registering adapter 0 
frontend 0 (Montage Technology DS3000/TS2020)...
Dec 18 14:33:09 localhost kernel: [  944.069473] TeVii S470 MAC= 
00:18:bd:5b:2d:bc   
   
Dec 18 14:33:09 localhost kernel: [  944.069479] cx23885_dev_checkrevision() 
Hardware revision = 0xb0   
Dec 18 14:33:09 localhost kernel: [  944.069487] cx23885[0]/0: found at 
:04:00.0, rev: 2, irq: 16, latency: 0, mmio: 0xfea0 

Dec 18 14:33:09 localhost kernel: [  944.069496] cx23885 :04:00.0: setting 
latency timer to 64  
Dec 18 14:33:09 localhost kernel: [  944.069572] cx23885 :04:00.0: irq 42 
for MSI/MSI-X  
Dec 18 14:33:09 localhost kernel: [  944.069496] cx23885 :04:00.0: setting 
latency timer to 64  
Dec 18 14:33:09 localhost kernel: [  944.069572] cx23885 :04:00.0: irq 42 
for MSI/MSI-X 
Dec 18 14:33:14 localhost kernel: [  948.624193] do_IRQ: 1.161 No irq handler 
for vector (irq -1)   
Dec 18 14:33:15 localhost kernel: [  949.604243] do_IRQ: 1.161 No irq handler 
for vector (irq -1)   
Dec 18 14:33:16 localhost kernel: [  950.606246] do_IRQ: 2.161 No irq handler 
for vector (irq -1)   
...
[/dmesg]


> > 2) "cx23885: ds3000_writereg: writereg error on =kernel-2.6.36-rc with
> > TeVii" S470 dvb-s2 card
> > -> https://bugzilla.kernel.org/show_bug.cgi?id=18832
> > 
> > These error messages show up in dmesg while switching channels in
> > mplayer/kaffeine.
> > [dmesg output]
> > [  919.789976] ds3000_writereg: writereg error(err == -6, reg == 0x03,
> > value == 0x11)
> 
> They look like I2C bus errors; error -6 is ENXIO, which is probably
> coming from cx23885-i2c.c.
> 
> The device handled by the ds3000 driver is not responding properly to
> the CX23885.  It could be that some other device on that I2C bus is hung
> up or the ds3000 

TeVii S470 dvb-s2 issues - 2nd try ,)

2010-12-17 Thread Boris Cuber
,
value == 0x11)
[  933.297017] ds3000_writereg: writereg error(err == -6, reg == 0x03,
value == 0x11)
[  933.594630] ds3000_writereg: writereg error(err == -6, reg == 0x03,
value == 0x12)
[/dmesg output]


Are these issues known? If so, are there any fixes yet? When will these
get into mainline? Could somebody point me into the right direction.
Can i help somehow to debug these problems?

Thank you in advance.

Regards,
Boris Cuber

PS: Thank Emanuel for helping me out with this mail ,)


signature.asc
Description: This is a digitally signed message part.


TeVii S470 dvb-s2 issues

2010-12-16 Thread Boris Cuber
Hello linux-media people!

I have to problems with my dvb card ("TeVii S470"). I already
filed 2 bug reports some time ago, but no one seems to have
noticed/read them, so i'm trying it here now.

1) "TeVii S470 dvbs-2 card (cx23885) is not usable after pm-suspend/resume"
https://bugzilla.kernel.org/show_bug.cgi?id=16467

2) "cx23885: ds3000_writereg: writereg error on >=kernel-2.6.36-rc with TeVii" 
S470 dvb-s2 card
-> https://bugzilla.kernel.org/show_bug.cgi?id=18832

Are these issues known? If so, are there any fixes yet? When will these
get into mainline? Could somebody point me into the right direction.
Can i help somehow to debug these problems?
Where is the correct place to report bugs about dvb/v4l kernel stuff?

Thank you in advance.

Regards,
Boris Cuber

-- 
http://boris64.net 20xx ;)


signature.asc
Description: This is a digitally signed message part.


Re: [Bugme-new] [Bug 15826] New: WARNING: at fs/proc/generic.c:317 __xlate_proc_name+0xbd/0xe0()

2010-07-08 Thread Boris Cuber
Still present in kernel-2.6.34.1.
The dvb card itself has been installed to another computer,
different os (archlinux instead of gentoo), warning is still there.

[dmesg]...
b2c2-flexcop: B2C2 FlexcopII/II(b)/III digital TV receiver chip loaded 
successfully
flexcop-pci: will use the HW PID filter.
flexcop-pci: card revision 2
b2c2_flexcop_pci :00:0b.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
[ cut here ]
WARNING: at fs/proc/generic.c:317 __xlate_proc_name+0xb3/0xc0()
Hardware name: System Name
name 'Technisat/B2C2 FlexCop II/IIb/III Digital TV PCI Driver'
Modules linked in: b2c2_flexcop_pci(+) i2c_viapro snd(+) soundcore 
b2c2_flexcop dvb_core cx24123 cx24113 via_ircc uhci_hcd s5h1420 button thermal 
processor irda crc_ccitt ehci_hcd usbcore via_agp firewire_ohci firewire_core 
crc_itu_t shpchp pci_hotplug evdev psmouse via_rhine mii emu10k1_gp gameport 
sg serio_raw pcspkr rtc_cmos rtc_core rtc_lib ext4 mbcache jbd2 crc16 sr_mod 
cdrom sd_mod pata_via ata_generic pata_acpi floppy libata scsi_mod radeon ttm 
drm_kms_helper drm agpgart i2c_algo_bit i2c_core
Pid: 1187, comm: modprobe Not tainted 2.6.34-ARCH #1
Call Trace:
 [] warn_slowpath_common+0x6d/0xa0
 [] ? __xlate_proc_name+0xb3/0xc0
 [] ? __xlate_proc_name+0xb3/0xc0
 [] warn_slowpath_fmt+0x26/0x30
 [] __xlate_proc_name+0xb3/0xc0
 [] __proc_create+0x59/0x100
 [] proc_mkdir_mode+0x23/0x50
 [] proc_mkdir+0xf/0x20
 [] register_handler_proc+0xeb/0x110
 [] __setup_irq+0x19f/0x2f0
 [] ? kmem_cache_alloc_notrace+0x7c/0xb0
 [] ? flexcop_pci_isr+0x0/0x140 [b2c2_flexcop_pci]
 [] request_threaded_irq+0xde/0x1c0
 [] ? ioremap_nocache+0x16/0x20
 [] flexcop_pci_probe+0x160/0x2b0 [b2c2_flexcop_pci]
 [] pci_device_probe+0x56/0x80
 [] driver_probe_device+0x77/0x180
 [] __driver_attach+0x79/0x80
 [] bus_for_each_dev+0x43/0x70
 [] driver_attach+0x19/0x20
 [] ? __driver_attach+0x0/0x80
 [] bus_add_driver+0xbd/0x2d0
 [] ? pci_device_remove+0x0/0x40
 [] driver_register+0x65/0x110
 [] __pci_register_driver+0x40/0xb0
 [] flexcop_pci_module_init+0x17/0x19 [b2c2_flexcop_pci]
 [] do_one_initcall+0x2d/0x190
 [] ? flexcop_pci_module_init+0x0/0x19 [b2c2_flexcop_pci]
 [] sys_init_module+0xad/0x210
 [] ? sys_mmap_pgoff+0x89/0x110
 [] sysenter_do_call+0x12/0x28
---[ end trace d65de7b15fba8e1f ]---
DVB: registering new adapter (FlexCop Digital TV device)
b2c2-flexcop: MAC address = 00:d0:d7:0f:30:58
CX24123: cx24123_i2c_readreg: reg=0x0 (error=-121)
CX24123: wrong demod revision: 87
usb 2-2: new low speed USB device using uhci_hcd and address 3
b2c2-flexcop: found 'ST STV0299 DVB-S' .
DVB: registering adapter 0 frontend 0 (ST STV0299 DVB-S)...
b2c2-flexcop: initialization of 'Sky2PC/SkyStar 2 DVB-S rev 2.6' at the 'PCI' 
bus controlled by a 'FlexCopIIb' complete
...
[dmesg]


Am Dienstag, 27. April 2010 schrieb Andrew Morton:
> (switched to email.  Please respond via emailed reply-to-all, not via the
> bugzilla web interface).
> 
> On Wed, 21 Apr 2010 12:21:18 GMT
> 
> bugzilla-dae...@bugzilla.kernel.org wrote:
> > https://bugzilla.kernel.org/show_bug.cgi?id=15826
> > 
> >Summary: WARNING: at fs/proc/generic.c:317
> >
> > __xlate_proc_name+0xbd/0xe0()
> >
> >Product: v4l-dvb
> >Version: unspecified
> > 
> > Kernel Version: 2.6.34-rc5
> > 
> >   Platform: All
> > 
> > OS/Version: Linux
> > 
> >   Tree: Mainline
> > 
> > Status: NEW
> >   
> >   Severity: normal
> >   Priority: P1
> >  
> >  Component: dvb-core
> > 
> > AssignedTo: v4l-dvb_dvb-c...@kernel-bugs.osdl.org
> > ReportedBy: bugzilla.kernel@boris64.net
> > Regression: No
> > 
> > Created an attachment (id=26077)
> > 
> >  --> (https://bugzilla.kernel.org/attachment.cgi?id=26077)
> > 
> > full dmesg
> > 
> > I keep getting this warning on boot. It seems to
> > happen when the dvb driver for my "technisat skystar2"
> > card is loaded (correct me if i'm wrong).
> > 
> > If you need more infos or debug stuff inside
> > my kernel config, please tell me what i need to include.
> > 
> > Thank you in advance.
> > 
> > 
> > ...
> > [0.739420] b2c2-flexcop: B2C2 FlexcopII/II(b)/III digital TV receiver
> > chip loaded successfully
> > [0.739435] flexcop-pci: will use the HW PID filter.
> > [0.739438] flexcop-pci: card revision 2
> > [0.739442] b2c2_flexcop_pci :04:01.0: PCI INT A -> GSI 17 (level,
> > low) -> IRQ 17
> > [0.739459] [ cut here ]
> > [0.739463] WARNING: at fs/proc/generic.c:317
> > __xlate_proc_name+0xbd/0xe0()
> 
> Alexey, this sucks.  A developer goes to the warning site:
> 
> static int __xlate_proc_name(const char *name, struct proc_dir_entry **ret,
>const char **residual)
> {
>   const char  *cp = name, *next;
>   struc

Re: [GIT PATCHES for 2.6.31] V4L/DVB fixes

2009-07-13 Thread Boris Cuber
Am Montag, 13. Juli 2009 schrieben Sie:
> Am Montag 13 Juli 2009 14:13:50 schrieben Sie:
> > On Sonntag, 12. Juli 2009, Boris Cuber wrote:
> > > Hi kernel folks!
> > >
> > > Problem:
> > > Since kernel-2.6.31-rc* my dvb-s adapter (Technisat SkyStar2 DVB card)
> > > refuses to work (worked fine in every kernel up to 2.6.30.1).
> > > So anything pulled into the new kernel seems to have broken
> > > something (at least for me :/).
> > >
> > > I opened a detailed bug report here:
> > > http://bugzilla.kernel.org/show_bug.cgi?id=13709
> > > Please let me know if i can help in finding a solution
> > > or testing a patch /whatever.
> >
> > This looks like it is related to this patch:
> >
> > commit d66b94b4aa2f40e134f8c07c58ae74ef3d523ee0
> > Author: Patrick Boettcher 
> > Date:   Wed May 20 05:08:26 2009 -0300
> >
> > V4L/DVB (11829): Rewrote frontend-attach mechanism to gain noise-less
> > deactivation of submodules
> >
> > This patch is reorganizing the frontend-attach mechanism in order to
> > gain noise-less (superflous prints) deactivation of submodules.
> >
> > Credits go to Uwe Bugla for helping to clean and test the code.
> >
> > Signed-off-by: Uwe Bugla 
> > Signed-off-by: Patrick Boettcher 
> > Signed-off-by: Mauro Carvalho Chehab 
> >
> >
> >
> > All frontend-attach related code is wrapped by ifdefs like this:
> > #if defined(CONFIG_DVB_MT312_MODULE) ||
> > defined(CONFIG_DVB_STV0299_MODULE) 
> > #endif
> >
> > So this code will only be compiled if one of the two drivers is compiled
> > as a module, having them compiled in will omit this code.

Hi Matthias

thank you for your help. I manually edited 
those #ifdefs to temporary get around my problem.
My dvb adapter is working again ;)


>
> Yes. And that's exactly the way things were planned and should also stay,
> even if there exist a thousands of "Boris64" who do not have the slightest
> idea about what kernel compilation is or could be.

Well, i always thought compiling your own kernel is about choice.
And _my_ choice always was:
I don't want use modules, because booting a monolithic 
kernel on my computer is slightly faster.


>
> No matter if we're talking about the main module, the frontend, the backend
> or whatever other part of not only a DVB driver:
> None of them is permanently needed while the machine is running. So kmod
> can kick them out of the memory if they aren't needed, if they were
> compiled as module.
>
> But if you compile them into the kernel you are wasting system resources
> because the main kernel becomes too big (I'd call that a "Windoze-effect").
>
> So compiling those drivers a module is gold, and any other choice is simply
> nonsense.
>
> > Trent Piepho seems to already have a patch for this, but it is not yet
> > merged into the kernel.
>
> May Trent Piepho do whatever he likes. I do not think that any further
> patch is necessary for that driver section.
>
> It would rather be necessary for some quirky users to enlarge their limited
> brain and understand what kernel compilation means and is here for.
>
> > Regards
> > Matthias
>
> CU
>
> cyber.bogh
>
> P. S.: The other part that really makes me utmost angry about the "Boris's"
> in that world:
>
> If you're doing really hard for months to enhance things, and you urgently
> need testers to help and invest brain those Boris's aren't visible at all.
> Nowhere!

Those "Boris's" can't remember that anyone ever asked'em to help.
And "they" didn't subscribe to this list until "their" dvb card(s) didn't
work anymore for some reason.


>
> Once things are done they come back and all they have got to do then is to
> complain for stupid nonsense...
>
> How did Lou Reed say?
> "Stick a fork in their ass, turn it over and they're done!"
>

Have a nice day,
regards, Boris


signature.asc
Description: This is a digitally signed message part.


Re: [GIT PATCHES for 2.6.31] V4L/DVB fixes

2009-07-12 Thread Boris Cuber
Hi kernel folks!

Problem:
Since kernel-2.6.31-rc* my dvb-s adapter (Technisat SkyStar2 DVB card)
refuses to work (worked fine in every kernel up to 2.6.30.1).
So anything pulled into the new kernel seems to have broken 
something (at least for me :/).

I opened a detailed bug report here:
http://bugzilla.kernel.org/show_bug.cgi?id=13709
Please let me know if i can help in finding a solution
or testing a patch /whatever.

Thank you for your attention ;)

PS: As i'm not subscribed to this mailing list, please
answer to my address or cc me.

-- 
http://boris64.net 20xx ;)


signature.asc
Description: This is a digitally signed message part.