please help me on the following problem:
ZoneMinder v1.24.2
Using the latest 'tw68-v2' driver. (July2010)
Ubuntu 10.04, kernel 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:09:38 UTC 2010 x86_64 GNU/Linux
AMD Athlon(tm) II X2 240 Processor, Asus M2N68-AM SE2
Using a 4 channel DVR card having four Techwell TW6802B chips, one for each channel. All the channels are up when it is started. But after going well for a few seconds, all channels, not together but separately, goes blank and returns repeatedly. After being like this for not more than 10 minutes it all goes permanently down. Stopping Zoneminder and reloading the 'tw68.ko' driver brings back the video again.
Also found that there is no such problems while watching the channels using xawtv.
The same setup worked fine with a different card (BT878) and a USB webcam (via 'motion', sourced as 'remote' IP cam).
I've tried changing the following options, that i got read about from this forum:
* ZoneMinder->options->CAPTURES_PER_FRAME
* ZoneMinder->options->V4L_MULTI_BUFFER
* kernel.shmall = 268435456, kernel.shmmax = 268435456
* booting with kernel parameter 'irqpoll'
* and tried a different machine.
None of them have any effect over the problem. Please tell me if there is anything else that might solve this.
Code: Select all
$ lspci
01:06.0 PCI bridge: Tundra Semiconductor Corp. Device 8140 (rev 01)
02:04.0 Multimedia video controller: Techwell Inc. Device 6804 (rev 10)
02:04.1 Multimedia controller: Techwell Inc. Device 6805 (rev 10)
02:05.0 Multimedia video controller: Techwell Inc. Device 6804 (rev 10)
02:05.1 Multimedia controller: Techwell Inc. Device 6805 (rev 10)
02:06.0 Multimedia video controller: Techwell Inc. Device 6804 (rev 10)
02:06.1 Multimedia controller: Techwell Inc. Device 6805 (rev 10)
02:07.0 Multimedia video controller: Techwell Inc. Device 6804 (rev 10)
02:07.1 Multimedia controller: Techwell Inc. Device 6805 (rev 10)
Code: Select all
$ dmesg |grep tw68
[ 14.241177] tw68: v4l2 driver version 0.0.4 loaded
[ 14.251273] tw68 0000:02:04.0: PCI INT A -> Link[LNKA] -> GSI 7 (level, low) -> IRQ 7
[ 14.251280] tw6804[0]: found at 0000:02:04.0, rev: 16, irq: 7, latency: 64, mmio: 0xdffffc00
[ 14.251286] tw6804[0]: subsystem: 1797:6804, board: GENERIC [card=0,autodetected]
[ 14.251301] tw6804[0]: Unable to determine board type, using generic values
[ 14.360089] IRQ 7/tw6804[0]: IRQF_DISABLED is not guaranteed on shared IRQs
[ 14.360167] tw6804[0]: registered device video0 [v4l2]
[ 14.360184] tw6804[0]: registered device vbi0
[ 14.361403] tw68 0000:02:05.0: PCI INT A -> Link[LNKB] -> GSI 11 (level, low) -> IRQ 11
[ 14.361410] tw6804[1]: found at 0000:02:05.0, rev: 16, irq: 11, latency: 64, mmio: 0xdffff400
[ 14.361416] tw6804[1]: subsystem: 1797:6804, board: GENERIC [card=0,autodetected]
[ 14.361433] tw6804[1]: Unable to determine board type, using generic values
[ 14.470061] IRQ 11/tw6804[1]: IRQF_DISABLED is not guaranteed on shared IRQs
[ 14.470143] tw6804[1]: registered device video1 [v4l2]
[ 14.470163] tw6804[1]: registered device vbi1
[ 14.470603] tw68 0000:02:06.0: PCI INT A -> Link[LNKC] -> GSI 10 (level, low) -> IRQ 10
[ 14.470609] tw6804[2]: found at 0000:02:06.0, rev: 16, irq: 10, latency: 64, mmio: 0xdfffec00
[ 14.470615] tw6804[2]: subsystem: 1797:6804, board: GENERIC [card=0,autodetected]
[ 14.470631] tw6804[2]: Unable to determine board type, using generic values
[ 14.580058] IRQ 10/tw6804[2]: IRQF_DISABLED is not guaranteed on shared IRQs
[ 14.580142] tw6804[2]: registered device video2 [v4l2]
[ 14.580163] tw6804[2]: registered device vbi2
[ 14.581604] tw68 0000:02:07.0: PCI INT A -> Link[LNKD] -> GSI 5 (level, low) -> IRQ 5
[ 14.581611] tw6804[3]: found at 0000:02:07.0, rev: 16, irq: 5, latency: 64, mmio: 0xdfffe400
[ 14.581617] tw6804[3]: subsystem: 1797:6804, board: GENERIC [card=0,autodetected]
[ 14.581636] tw6804[3]: Unable to determine board type, using generic values
[ 14.690063] IRQ 5/tw6804[3]: IRQF_DISABLED is not guaranteed on shared IRQs
[ 14.690145] tw6804[3]: registered device video3 [v4l2]
[ 14.690164] tw6804[3]: registered device vbi3
------------------------------
[11951.970071] tw6804[3]/0: [ffff8800105bc600/4] timeout - dma=0x13bca000
[11951.970076] tw6804[3]/0: [ffff8800105bc800/5] timeout - dma=0x1ffb0000
[12401.300027] tw6804[2]/0: [ffff88001392f800/6] timeout - dma=0x09028000
[12401.300032] tw6804[2]/0: [ffff88001392f000/7] timeout - dma=0x3994b000
[12401.300035] tw6804[2]/0: [ffff88002fee4600/0] timeout - dma=0x23347000
[12401.300038] tw6804[2]/0: [ffff88001eb03600/1] timeout - dma=0x17fd2000
[12401.300041] tw6804[2]/0: [ffff88001eb03400/2] timeout - dma=0x17c1b000
[12401.300044] tw6804[2]/0: [ffff88001ea9f600/3] timeout - dma=0x09382000
[12401.300047] tw6804[2]/0: [ffff8800138d7c00/4] timeout - dma=0x2f4bd000
[12401.300049] tw6804[2]/0: [ffff88001392fa00/5] timeout - dma=0x283c0000
[12455.650035] tw6804[1]/0: [ffff88002f733200/6] timeout - dma=0x392be000
[12455.650041] tw6804[1]/0: [ffff880039c7a400/7] timeout - dma=0x39252000
[12455.650043] tw6804[1]/0: [ffff88003992e400/0] timeout - dma=0x13a1d000
[12455.650045] tw6804[1]/0: [ffff88003992e200/1] timeout - dma=0x39947000
[12455.650046] tw6804[1]/0: [ffff88003992ec00/2] timeout - dma=0x17f8c000
[12455.650048] tw6804[1]/0: [ffff88003992e800/3] timeout - dma=0x13bdb000
[12455.650050] tw6804[1]/0: [ffff88003992e000/4] timeout - dma=0x17fea000
[12455.650051] tw6804[1]/0: [ffff88003992ee00/5] timeout - dma=0x2fc93000
[12573.690032] tw6804[3]/0: [ffff880013b9ee00/1] timeout - dma=0x1060b000