LinHES Forums
http://forum.linhes.org/

pvr-150 recordings have blocking artifacts and flickering
http://forum.linhes.org/viewtopic.php?f=2&t=10677
Page 1 of 2

Author:  randomhtpcguy [ Fri Jun 30, 2006 9:17 pm ]
Post subject:  pvr-150 recordings have blocking artifacts and flickering

I upgraded my two systems (2 week pain in the arse) to R5C7.


The slave backend has a pvr150 that is recording artifacts now but worked fine in R5A30. R5B7 was ok i think, but now in R5C7 the issue is there.

I have a master backend with a dvb (hd5000) whose recordings look great for comparison.

MPEG2 recordings from tuner and svhs with the default profile...
Blocks routinely drop out leaving black squares and there is a frequent static - noisey line at the bottom. The pattern repeats itself with regularity and seems a little less severe just after reboot.

aside--These recordings are almost unwatchable because it freezes every 30 seconds or so until i pause/resume using xvmc. (the frozen video occurs only on the nvidia 6200--xvmc issue, but playback of degraded video is handled with no pausing on the 5200 master although the artifacts can still be seen and are ugly)

The slave is recording to a mounted nfs/xfs/lvm partion from the master.

I would delete and reinstall the pvr150 in the setup but that would mean deleting the HD5000 as well I think and that took about 4 hours to set up so i would hate to have rescan and manually move those settings into the database again.

Is there an easy way to delete a single card from the setup rather than all?

Author:  cesman [ Sat Jul 01, 2006 2:06 pm ]
Post subject: 

With the card highlighted, press 'D'.

Author:  randomhtpcguy [ Wed Jul 05, 2006 11:49 am ]
Post subject: 

Thanks cesman.

Unfortunately, removing then adding back the card didn't fix the artifacts that i am seeing with this card.

I found many others with similar issues. http://ivtvdriver.org/pipermail/ivtv-us ... 00534.html

my corruption block artifacts looks pretty much just like this http://www.geocities.com/drescherjm/Corruption.jpg

http://ivtvdriver.org/trac/ticket/49


I didn't have any problem with R5B7.

I guess its an ivtv bug.



ivtv: version 0.4.4 (tagged release) loading
ivtv: Linux version: 2.6.15-chw-2 SMP preempt 586 gcc-3.3
ivtv: In case of problems please include the debug info between
ivtv: the START INIT IVTV and END INIT IVTV lines, along with
ivtv: any module options, when mailing the ivtv-users mailinglist.
ivtv0: Autodetected WinTV PVR 150 card (cx23416 based)
ACPI: PCI Interrupt Link [APC1] enabled at IRQ 16
ACPI: PCI Interrupt 0000:01:0a.0[A] -> Link [APC1] -> GSI 16 (level, high) -> IRQ 20
ivtv0: Unreasonably low latency timer, setting to 64 (was 32)
ivtv0: i2c attach to card #0 ok [client=tveeprom, addr=50]
tuner 2-0061: chip found @ 0xc2 (ivtv i2c driver #0)
ivtv0: i2c attach to card #0 ok [client=(tuner unset), addr=61]
cx25840 2-0044: cx25843-23 found @ 0x88 (ivtv i2c driver #0)
cx25840 2-0044: loaded v4l-cx25840.fw firmware (14264 bytes)
ivtv0: i2c attach to card #0 ok [client=cx25840, addr=44]
wm8775 2-001b: chip found @ 0x36 (ivtv i2c driver #0)
ivtv0: i2c attach to card #0 ok [client=wm8775, addr=1b]
tda9887 2-0043: chip found @ 0x86 (ivtv i2c driver #0)
ivtv0: i2c attach to card #0 ok [client=tda9887, addr=43]
tveeprom 2-0050: Hauppauge model 26552, rev C268, serial# #####
tveeprom 2-0050: tuner model is LG TAPE H001F MK3 (idx 68, type 47)
tveeprom 2-0050: TV standards NTSC(M) (eeprom 0x08)
tveeprom 2-0050: audio processor is CX25843 (idx 37)
tveeprom 2-0050: decoder processor is CX25843 (idx 30)
tveeprom 2-0050: has radio, has no IR remote
ivtv0: loaded v4l-cx2341x-enc.fw firmware (262144 bytes)
ivtv0: Encoder revision: 0x02050032
ivtv0: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total)
ivtv0: Allocate DMA encoder YUV stream: 194 x 10800 buffers (2048KB total)
ivtv0: Allocate DMA encoder VBI stream: 120 x 17472 buffers (2048KB total)
ivtv0: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB total)
ivtv0: Create encoder radio stream
tuner 2-0061: type set to 47 (LG NTSC (TAPE series))
ivtv0: Initialized WinTV PVR 150, card #0
ivtv: ==================== END INIT IVTV ====================
cx2388x v4l2 driver version 0.0.5 loaded

Author:  steven_ellis [ Sat Jul 08, 2006 6:40 pm ]
Post subject: 

Been having these problems on R5B7 for a while and it appears to relate to DMA timing issues. Try running the following as root

Code:
grep DMA /var/log/messages


and see if you get any output similar to the following

Code:
Jul  8 19:42:28 mythtv kernel: ivtv0 warning: ENC: (0) DMA Error 0x0000000b
Jul  8 20:42:55 mythtv kernel: ivtv0 warning: ENC: (0) DMA Error 0x0000000b
Jul  8 20:43:08 mythtv kernel: ivtv0 warning: ENC: (0) DMA Error 0x0000000b


Usually once I start to see these errors then I need to do a reboot to reset the card.

A couple of things appear to make it more likely to happen
    Dynamic CPU Scalling
    Bios support to auto overclock cpu
    Deleting a very large local file during a capture

We need to work with the ivtv team - In particular Hans - to get this resolved. At the moment i've been playing with the BIOS settings on my box to reduce the number of DMA level devices.

Also the problem seems to occur a lot more on PVR150 and 250 units than the 500. I have a bunch of customers with PVR500s that have never seen the issue and we all run exactly the same code base.

What might be useful is to keep track of the underlying affected hardware as I never saw this on my Athlon 2800+ on a Gigabyte VAXP motherboard

Affected Hardware as follows
Motherboard - Asus A8N-VM CSM
CPU - Athlon64 3000+
RAM - 1x512Mb DDR
Video - Onboard NForce 6150 sharing 32Mb of system RAM.
Capture - Hauppauge PVR150 MCE (PAL)
Capture - FreeCom USB DVB-T stick
Disk - Local 200Gb Seagate 7200.8 IDE Drive

Steve

Author:  ethernut [ Sat Jul 08, 2006 11:31 pm ]
Post subject: 

I have the exact same problem.. Except no DMA issues in message log.. From what I can tell its the ivtv driver. I didn't have the issue in R5A30, it showed up in B7. I'm also experiencing a constant audio stutter after I pause and resume, either live tv or recorded shows. If I exit out of the show or live tv then reenter it's fine. I'm assuming this is related as well. I would *love* to know what to do to fix it...

Author:  randomhtpcguy [ Tue Jul 11, 2006 7:24 am ]
Post subject: 

root@mythtvslave:~# grep DMA /var/log/messages
Jul 10 20:39:22 mythtvslave kernel: NFORCE2: 0000:00:09.0 (rev a2) UDMA133 controller
Jul 10 20:39:22 mythtvslave kernel: ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:DMA, hdb:DMA
Jul 10 20:39:22 mythtvslave kernel: ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:DMA, hdd:DMA
Jul 10 20:39:22 mythtvslave kernel: hda: 80043264 sectors (40982 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(100)
Jul 10 20:39:22 mythtvslave kernel: hdc: ATAPI 48X CD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)
Jul 10 20:39:22 mythtvslave kernel: parport0: PC-style at 0x378 (0x778), irq 7, dma 3 [PCSPP,TRISTATE,COMPAT,ECP,DMA]
Jul 10 20:39:29 mythtvslave kernel: ivtv0: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total)
Jul 10 20:39:29 mythtvslave kernel: ivtv0: Allocate DMA encoder YUV stream: 194 x 10800 buffers (2048KB total)
Jul 10 20:39:29 mythtvslave kernel: ivtv0: Allocate DMA encoder VBI stream: 120 x 17472 buffers (2048KB total)
Jul 10 20:39:29 mythtvslave kernel: ivtv0: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB total)

Author:  tjc [ Tue Jul 11, 2006 8:14 pm ]
Post subject: 

Try (case insensitive):
Code:
grep -i dma /var/log/messages
That might turn up more...

Author:  randomhtpcguy [ Tue Jul 11, 2006 9:46 pm ]
Post subject: 

root@mythtvslave:~# grep -i dma /var/log/messages
Jul 10 20:39:22 mythtvslave kernel: NFORCE2: 0000:00:09.0 (rev a2) UDMA133 controller
Jul 10 20:39:22 mythtvslave kernel: ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:DMA, hdb:DMA
Jul 10 20:39:22 mythtvslave kernel: ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:DMA, hdd:DMA
Jul 10 20:39:22 mythtvslave kernel: hda: 80043264 sectors (40982 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(100)
Jul 10 20:39:22 mythtvslave kernel: hdc: ATAPI 48X CD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)
Jul 10 20:39:22 mythtvslave kernel: parport0: PC-style at 0x378 (0x778), irq 7, dma 3 [PCSPP,TRISTATE,COMPAT,ECP,DMA]
Jul 10 20:39:29 mythtvslave kernel: ivtv0: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total)
Jul 10 20:39:29 mythtvslave kernel: ivtv0: Allocate DMA encoder YUV stream: 194 x 10800 buffers (2048KB total)
Jul 10 20:39:29 mythtvslave kernel: ivtv0: Allocate DMA encoder VBI stream: 120 x 17472 buffers (2048KB total)
Jul 10 20:39:29 mythtvslave kernel: ivtv0: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB total)
root@mythtvslave:~#

Author:  randomhtpcguy [ Tue Jul 11, 2006 9:50 pm ]
Post subject: 

the problem is still there after rebooting for me.

the blocks and lines are usually in the same couple of places. they may be a little quicker though after reboot.

did ivtv get an update from R5A30 to R5C7? i should look

i would think that if the problem is widespread the beta testers would have noticed.

Author:  tjc [ Tue Jul 11, 2006 10:21 pm ]
Post subject: 

Yes, ivtv and the kernel both got updated. R5C7 uses kernel 2.6.15-chw-2 and ivtv 0.4.4. I don't remember there being any serious problems like this reported during testing, but I have seen similar issues testing ivtv 0.4.6 and 0.7.0.

Author:  randomhtpcguy [ Wed Jul 12, 2006 7:17 pm ]
Post subject: 

somebody on gossamer threads refered someone with similar problems
here http://www.mythtv.org/wiki/index.php/PC ... _PVR_Cards

I don't have time to try it just yet.

By the way, would it be wise to downgrade ivtv and if so to what version?
Code:
root@mythtvslave:/usr/src# lspci -v
0000:00:00.0 Host bridge: nVidia Corporation nForce2 AGP (different version?) (r                                             ev c1)
        Subsystem: Asustek Computer, Inc.: Unknown device 80ac
        Flags: bus master, 66MHz, fast devsel, latency 0
        Memory at d4000000 (32-bit, prefetchable) [size=64M]
        Capabilities: [40] AGP version 3.0
        Capabilities: [60] #08 [2001]

0000:00:00.1 RAM memory: nVidia Corporation nForce2 Memory Controller 0 (rev c1)
        Subsystem: Asustek Computer, Inc.: Unknown device 80ac
        Flags: 66MHz, fast devsel

0000:00:00.2 RAM memory: nVidia Corporation nForce2 Memory Controller 4 (rev c1)
        Subsystem: Asustek Computer, Inc.: Unknown device 80ac
        Flags: 66MHz, fast devsel

0000:00:00.3 RAM memory: nVidia Corporation nForce2 Memory Controller 3 (rev c1)
        Subsystem: Asustek Computer, Inc.: Unknown device 80ac
        Flags: 66MHz, fast devsel

0000:00:00.4 RAM memory: nVidia Corporation nForce2 Memory Controller 2 (rev c1)
        Subsystem: Asustek Computer, Inc.: Unknown device 80ac
        Flags: 66MHz, fast devsel

0000:00:00.5 RAM memory: nVidia Corporation nForce2 Memory Controller 5 (rev c1)
        Subsystem: Asustek Computer, Inc.: Unknown device 80ac
        Flags: 66MHz, fast devsel

0000:00:01.0 ISA bridge: nVidia Corporation nForce2 ISA Bridge (rev a4)
        Subsystem: Asustek Computer, Inc. A7N8X Mainboard
        Flags: bus master, 66MHz, fast devsel, latency 0
        Capabilities: [48] #08 [01e1]

0000:00:01.1 SMBus: nVidia Corporation nForce2 SMBus (MCP) (rev a2)
        Subsystem: Asustek Computer, Inc.: Unknown device 0c11
        Flags: 66MHz, fast devsel, IRQ 11
        I/O ports at ec00 [size=32]
        Capabilities: [44] Power Management version 2

0000:00:02.0 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4)                                              (prog-if 10 [OHCI])
        Subsystem: Asustek Computer, Inc. A7N8X Mainboard
        Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 16
        Memory at db002000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: [44] Power Management version 2

0000:00:02.1 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4)                                              (prog-if 10 [OHCI])
        Subsystem: Asustek Computer, Inc. A7N8X Mainboard
        Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 17
        Memory at db003000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: [44] Power Management version 2

0000:00:02.2 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4)                                              (prog-if 20 [EHCI])
        Subsystem: Asustek Computer, Inc. A7N8X Mainboard
        Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 16
        Memory at db004000 (32-bit, non-prefetchable) [size=256]
        Capabilities: [44] #0a [2080]
        Capabilities: [80] Power Management version 2

0000:00:04.0 Ethernet controller: nVidia Corporation nForce2 Ethernet Controller                                              (rev a1)
        Subsystem: Asustek Computer, Inc. A7N8X Mainboard onboard nForce2 Ethern                                             et
        Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 18
        Memory at db000000 (32-bit, non-prefetchable) [size=4K]
        I/O ports at e000 [size=8]
        Capabilities: [44] Power Management version 2

0000:00:08.0 PCI bridge: nVidia Corporation nForce2 External PCI Bridge (rev a3)                                              (prog-if 00 [Normal decode])
        Flags: bus master, 66MHz, fast devsel, latency 0
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
        I/O behind bridge: 0000d000-0000dfff
        Prefetchable memory behind bridge: d0000000-d3ffffff

0000:00:09.0 IDE interface: nVidia Corporation nForce2 IDE (rev a2) (prog-if 8a                                              [Master SecP PriP])
        Subsystem: Asustek Computer, Inc.: Unknown device 0c11
        Flags: bus master, 66MHz, fast devsel, latency 0
        I/O ports at f000 [size=16]
        Capabilities: [44] Power Management version 2

0000:00:1e.0 PCI bridge: nVidia Corporation nForce2 AGP (rev c1) (prog-if 00 [No                                             rmal decode])
        Flags: bus master, 66MHz, medium devsel, latency 32
        Bus: primary=00, secondary=02, subordinate=02, sec-latency=32
        Memory behind bridge: d8000000-daffffff
        Prefetchable memory behind bridge: c0000000-cfffffff

0000:01:07.0 Multimedia audio controller: VIA Technologies Inc. VT1720/24 [Envy2                                             4PT/HT] PCI Multi-Channel Audio Controller (rev 01)
        Subsystem: Unknown device 4933:4553
        Flags: bus master, medium devsel, latency 32, IRQ 19
        I/O ports at d000 [size=32]
        I/O ports at d400 [size=128]
        Capabilities: [80] Power Management version 1

0000:01:0a.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23                                             416) MPEG-2 Encoder (rev 01)
        Subsystem: Hauppauge computer works Inc.: Unknown device 8801
        Flags: bus master, medium devsel, latency 64, IRQ 20
        Memory at d0000000 (32-bit, prefetchable) [size=64M]
        Capabilities: [44] Power Management version 2

0000:02:00.0 VGA compatible controller: nVidia Corporation: Unknown device 0221                                              (rev a1) (prog-if 00 [VGA])
        Subsystem: Micro-Star International Co., Ltd.: Unknown device 0130
        Flags: bus master, 66MHz, medium devsel, latency 248, IRQ 19
        Memory at d8000000 (32-bit, non-prefetchable) [size=16M]
        Memory at c0000000 (32-bit, prefetchable) [size=256M]
        Memory at d9000000 (32-bit, non-prefetchable) [size=16M]
        Expansion ROM at da000000 [disabled] [size=128K]
        Capabilities: [60] Power Management version 2
        Capabilities: [44] AGP version 3.0

root@mythtvslave:/usr/src#

Author:  tjc [ Wed Jul 12, 2006 11:26 pm ]
Post subject: 

randomhtpcguy wrote:
By the way, would it be wise to downgrade ivtv and if so to what version?

Unfortunately you can only go back so far before you run into kernel incompatibilities, or find your tuner chip unrecognized, whichever comes first.

Author:  randomhtpcguy [ Sat Jul 15, 2006 8:21 am ]
Post subject: 

i took out the pvr-150 (deleted it first) replaced it with my old pvr-250
and added it (although it is now calling it card 4 instead of 3 i guess it remembers the pvr150).

Anyway, this one works well no problems (except the picture on the svhs input especially seems darker and a little fuzzy).

I'll add the other one back and see if it still has the problems but I bet it does and the firmware or ivtv with the newer pvr-150 is the issue. Better to stick with the old pvr-250 due to slow developement i guess

edit-- now after a week of uptime i have the problem with the pvr-250. However, rebooted and it looks good after 3 days still. i was happy to stablize my system enough to go for a week between crashes. So a reboot once a week would be a great improvement.

Author:  modemboy [ Wed Oct 25, 2006 5:14 pm ]
Post subject: 

Any update on this? I just upgraded my machine with a MSI K8NGM2-FID motherboard and am having this exact issue. It is a nvidia 6150 chipset just like the A8n-vm you have. I am running both a pvr-150 and 250. Both exhibit the problem but the ivtv0 warning: ENC: (0) DMA Error 0x0000000b errors come from only one tuner, haven't looked which yet. It is making me thing the issue is related to the chipset. I am running r5d1 and using the onboard DVI connection. Let me know if you have any help, this is driving me nuts.

Author:  modemboy [ Wed Oct 25, 2006 5:40 pm ]
Post subject: 

Just found this:
http://www.morph3ous.net/2006/08/26/ivt ... om-author/

Dunno if it's related to the same issue...

Page 1 of 2 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/