I used to get DMA errors after < 45mins of playing out the PVR-350's TV-out in MythTV, so here's what happened with 0.3.2j:

Out-Of-Memory errors after ~2.5 hours of constant playback.

Abit BP-6 (66Mhz bus) dual Celeron 500
384Mb of RAM, 2Gb of Swap
Vanilla Linux 2.6.11 SMP Preempt
PVR-350

Attached are my syslog with the OOM errors, and dmesg with ivtv info. Hope it helps.
-Rick


Mar 22 14:00:47 tube kernel: ivtv: ==================== START INIT IVTV 
====================
Mar 22 14:00:47 tube kernel: ivtv: Linux version: 2.6.11 SMP preempt PENTIUMII 
gcc-3.3
Mar 22 14:00:47 tube kernel: ivtv: In case of problems please include the debug 
info
Mar 22 14:00:47 tube kernel: ivtv: between the START INIT IVTV and END INIT 
IVTV lines when
Mar 22 14:00:47 tube kernel: ivtv: mailing the ivtv-devel mailinglist.
Mar 22 14:00:47 tube kernel: ivtv: i2c attach [client=tveeprom[0],ok]
Mar 22 14:00:47 tube kernel: ivtv: Tuner Type 2, Tuner formats 0x00001000, 
Radio: yes, Model 0x00a93493, Revision 0x00000001
Mar 22 14:00:47 tube kernel: ivtv: NTSC tuner detected
Mar 22 14:00:47 tube kernel: ivtv: Radio detected
Mar 22 14:00:47 tube kernel: tuner: Ignoring new-style parameters in presence 
of obsolete ones
Mar 22 14:00:47 tube kernel: tuner: chip found at addr 0xc2 i2c-bus ivtv i2c 
driver #0
Mar 22 14:00:47 tube kernel: ivtv: i2c attach [client=(tuner unset),ok]
Mar 22 14:00:47 tube kernel: ivtv: i2c attach [client=saa7115[0],ok]
Mar 22 14:00:47 tube kernel: saa7127: Ignoring new-style parameters in presence 
of obsolete ones
Mar 22 14:00:47 tube kernel: ivtv: i2c attach [client=saa7127[0],ok]
Mar 22 14:00:48 tube kernel: ivtv: i2c attach [client=MSP3448W-A2,ok]
Mar 22 14:00:49 tube kernel: ivtv: Encoder revision: 0x02040011
Mar 22 14:00:49 tube kernel: ivtv: Decoder revision: 0x02020023
Mar 22 14:00:49 tube kernel: tuner: type set to 2 (Philips NTSC (FI1236,FM1236 
and compatibles)) by ivtv i2c driver #0
Mar 22 14:00:49 tube kernel: ivtv: ivtv_enc_thread: pid = 2689, itv = 0xd8a48c80
Mar 22 14:00:49 tube kernel: ivtv: ivtv_dec_thread: pid = 2690, itv = 0xd8a48c80
Mar 22 14:00:49 tube kernel: ivtv: Setting audio matrix to input 3, output 1
Mar 22 14:00:49 tube kernel: ivtv: Switching standard to NTSC.
Mar 22 14:00:49 tube kernel: ivtv: ====================  END INIT IVTV  
====================
Mar 22 14:00:51 tube pppd[2325]: Cannot determine ethernet address for proxy ARP
Mar 22 14:14:33 tube kernel: ivtv-osd: Framebuffer is at decoder-relative 
address 0x00510000 and has 1704960 bytes.
Mar 22 15:42:48 tube kernel: oom-killer: gfp_mask=0xd0
Mar 22 15:42:48 tube kernel: DMA per-cpu:
Mar 22 15:42:48 tube kernel: cpu 0 hot: low 2, high 6, batch 1
Mar 22 15:42:48 tube kernel: cpu 0 cold: low 0, high 2, batch 1
Mar 22 15:42:48 tube kernel: cpu 1 hot: low 2, high 6, batch 1
Mar 22 15:42:48 tube kernel: cpu 1 cold: low 0, high 2, batch 1
Mar 22 15:42:48 tube kernel: Normal per-cpu:
Mar 22 15:42:48 tube kernel: cpu 0 hot: low 32, high 96, batch 16
Mar 22 15:42:48 tube kernel: cpu 0 cold: low 0, high 32, batch 16
Mar 22 15:42:48 tube kernel: cpu 1 hot: low 32, high 96, batch 16
Mar 22 15:42:48 tube kernel: cpu 1 cold: low 0, high 32, batch 16
Mar 22 15:42:48 tube kernel: HighMem per-cpu: empty
Mar 22 15:42:48 tube kernel: 
Mar 22 15:42:48 tube kernel: Free pages:       18152kB (0kB HighMem)
Mar 22 15:42:48 tube kernel: Active:78035 inactive:2449 dirty:6 writeback:0 
unstable:0 free:4538 slab:9755 mapped:80262 pagetables:395
Mar 22 15:42:48 tube kernel: DMA free:2144kB min:676kB low:844kB high:1012kB 
active:9580kB inactive:0kB present:16384kB pages_scanned:9620 
all_unreclaimable? yes
Mar 22 15:42:48 tube kernel: lowmem_reserve[]: 0 367 367
Mar 22 15:42:48 tube kernel: Normal free:16008kB min:15604kB low:19504kB 
high:23404kB active:302560kB inactive:9796kB present:376768kB pages_scanned:0 
all_unreclaimable? no
Mar 22 15:42:48 tube kernel: lowmem_reserve[]: 0 0 0
Mar 22 15:42:48 tube kernel: HighMem free:0kB min:128kB low:160kB high:192kB 
active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
Mar 22 15:42:48 tube kernel: lowmem_reserve[]: 0 0 0
Mar 22 15:42:48 tube kernel: DMA: 0*4kB 0*8kB 0*16kB 1*32kB 1*64kB 0*128kB 
0*256kB 0*512kB 0*1024kB 1*2048kB 0*4096kB = 2144kB
Mar 22 15:42:48 tube kernel: Normal: 84*4kB 15*8kB 0*16kB 0*32kB 1*64kB 1*128kB 
0*256kB 0*512kB 1*1024kB 1*2048kB 3*4096kB = 16008kB
Mar 22 15:42:48 tube kernel: HighMem: empty
Mar 22 15:42:48 tube kernel: Swap cache: add 38445, delete 37384, find 
9046/11275, race 0+0
Mar 22 15:42:48 tube kernel: Free swap  = 1930284kB
Mar 22 15:42:48 tube kernel: Total swap = 1975984kB
Mar 22 15:42:48 tube kernel: Out of Memory: Killed process 2276 (httpd).
Mar 22 15:42:57 tube kernel: oom-killer: gfp_mask=0xd0
Mar 22 15:42:57 tube kernel: DMA per-cpu:
Mar 22 15:42:57 tube kernel: cpu 0 hot: low 2, high 6, batch 1
Mar 22 15:42:57 tube kernel: cpu 0 cold: low 0, high 2, batch 1
Mar 22 15:42:57 tube kernel: cpu 1 hot: low 2, high 6, batch 1
Mar 22 15:42:57 tube kernel: cpu 1 cold: low 0, high 2, batch 1
Mar 22 15:42:57 tube kernel: Normal per-cpu:
Mar 22 15:42:57 tube kernel: cpu 0 hot: low 32, high 96, batch 16
Mar 22 15:42:57 tube kernel: cpu 0 cold: low 0, high 32, batch 16
Mar 22 15:42:57 tube kernel: cpu 1 hot: low 32, high 96, batch 16
Mar 22 15:42:57 tube kernel: cpu 1 cold: low 0, high 32, batch 16
Mar 22 15:42:57 tube kernel: HighMem per-cpu: empty
Mar 22 15:42:57 tube kernel: 
Mar 22 15:42:57 tube kernel: Free pages:       18544kB (0kB HighMem)
Mar 22 15:42:57 tube kernel: Active:66642 inactive:13745 dirty:0 writeback:1 
unstable:0 free:4636 slab:9747 mapped:80088 pagetables:389
Mar 22 15:42:57 tube kernel: DMA free:2144kB min:676kB low:844kB high:1012kB 
active:9580kB inactive:0kB present:16384kB pages_scanned:9785 
all_unreclaimable? yes
Mar 22 15:42:57 tube kernel: lowmem_reserve[]: 0 367 367
Mar 22 15:42:57 tube kernel: Normal free:16400kB min:15604kB low:19504kB 
high:23404kB active:256988kB inactive:54980kB present:376768kB pages_scanned:0 
all_unreclaimable? no
Mar 22 15:42:57 tube kernel: lowmem_reserve[]: 0 0 0
Mar 22 15:42:57 tube kernel: HighMem free:0kB min:128kB low:160kB high:192kB 
active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
Mar 22 15:42:57 tube kernel: lowmem_reserve[]: 0 0 0
Mar 22 15:42:57 tube kernel: DMA: 0*4kB 0*8kB 0*16kB 1*32kB 1*64kB 0*128kB 
0*256kB 0*512kB 0*1024kB 1*2048kB 0*4096kB = 2144kB
Mar 22 15:42:57 tube kernel: Normal: 154*4kB 27*8kB 1*16kB 0*32kB 1*64kB 
1*128kB 0*256kB 0*512kB 1*1024kB 1*2048kB 3*4096kB = 16400kB
Mar 22 15:42:57 tube kernel: HighMem: empty
Mar 22 15:42:57 tube kernel: Swap cache: add 42605, delete 41279, find 
9203/11589, race 0+0
Mar 22 15:42:57 tube kernel: Free swap  = 1920104kB
Mar 22 15:42:57 tube kernel: Total swap = 1975984kB
Mar 22 15:42:57 tube kernel: Out of Memory: Killed process 2894 (httpd).
Mar 22 15:44:19 tube kernel: oom-killer: gfp_mask=0xd2
Mar 22 15:44:19 tube kernel: DMA per-cpu:
Mar 22 15:44:19 tube kernel: cpu 0 hot: low 2, high 6, batch 1
Mar 22 15:44:19 tube kernel: cpu 0 cold: low 0, high 2, batch 1
Mar 22 15:44:19 tube kernel: cpu 1 hot: low 2, high 6, batch 1
Mar 22 15:44:19 tube kernel: cpu 1 cold: low 0, high 2, batch 1
Mar 22 15:44:19 tube kernel: Normal per-cpu:
Mar 22 15:44:19 tube kernel: cpu 0 hot: low 32, high 96, batch 16
Mar 22 15:44:19 tube kernel: cpu 0 cold: low 0, high 32, batch 16
Mar 22 15:44:19 tube kernel: cpu 1 hot: low 32, high 96, batch 16
Mar 22 15:44:19 tube kernel: cpu 1 cold: low 0, high 32, batch 16
Mar 22 15:44:19 tube kernel: HighMem per-cpu: empty
Mar 22 15:44:19 tube kernel: 
Mar 22 15:44:19 tube kernel: Free pages:       18168kB (0kB HighMem)
Mar 22 15:44:19 tube kernel: Active:41381 inactive:39182 dirty:0 writeback:0 
unstable:0 free:4542 slab:9680 mapped:80277 pagetables:389
Mar 22 15:44:19 tube kernel: DMA free:2144kB min:676kB low:844kB high:1012kB 
active:9596kB inactive:0kB present:16384kB pages_scanned:10312 
all_unreclaimable? yes
Mar 22 15:44:19 tube kernel: lowmem_reserve[]: 0 367 367
Mar 22 15:44:19 tube kernel: Normal free:16024kB min:15604kB low:19504kB 
high:23404kB active:155928kB inactive:156728kB present:376768kB pages_scanned:0 
all_unreclaimable? no
Mar 22 15:44:19 tube kernel: lowmem_reserve[]: 0 0 0
Mar 22 15:44:19 tube kernel: HighMem free:0kB min:128kB low:160kB high:192kB 
active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
Mar 22 15:44:19 tube kernel: lowmem_reserve[]: 0 0 0
Mar 22 15:44:19 tube kernel: DMA: 0*4kB 0*8kB 0*16kB 1*32kB 1*64kB 0*128kB 
0*256kB 0*512kB 0*1024kB 1*2048kB 0*4096kB = 2144kB
Mar 22 15:44:19 tube kernel: Normal: 96*4kB 7*8kB 2*16kB 0*32kB 3*64kB 2*128kB 
1*256kB 1*512kB 0*1024kB 1*2048kB 3*4096kB = 16024kB
Mar 22 15:44:19 tube kernel: HighMem: empty
Mar 22 15:44:19 tube kernel: Swap cache: add 74876, delete 65300, find 
14522/20208, race 0+0
Mar 22 15:44:19 tube kernel: Free swap  = 1869048kB
Mar 22 15:44:19 tube kernel: Total swap = 1975984kB
Mar 22 15:44:19 tube kernel: Out of Memory: Killed process 2272 (httpd).
Linux video capture interface: v1.00
ivtv: ==================== START INIT IVTV ====================
ivtv: version 0.3.2 (k) loading
ivtv: Linux version: 2.6.11 SMP preempt PENTIUMII gcc-3.3
ivtv: In case of problems please include the debug info
ivtv: between the START INIT IVTV and END INIT IVTV lines when
ivtv: mailing the ivtv-devel mailinglist.
ivtv: Autodetected WinTV PVR 350 card
ivtv: Found an iTVC15 based chip
ACPI: PCI interrupt 0000:00:0f.0[A] -> GSI 16 (level, low) -> IRQ 193
ivtv: Unreasonably low latency timer, setting to 64 (was 32)
ivtv: XXX PCI device: 0x7190 vendor: 0x8086
tveeprom: Hauppauge: model = 48132, rev = J323, serial# = 6813565
tveeprom: tuner = Philips FM1236 (idx = 23, type = 2)
tveeprom: tuner fmt = NTSC(M) (eeprom = 0x08, v4l2 = 0x00001000)
tveeprom: audio_processor = MSP3440 (type = 11)
ivtv: i2c attach [client=tveeprom[0],ok]
ivtv: Tuner Type 2, Tuner formats 0x00001000, Radio: yes, Model 0x00a93493, 
Revision 0x00000001
ivtv: NTSC tuner detected
ivtv: Radio detected
tuner: Ignoring new-style parameters in presence of obsolete ones
tuner: chip found at addr 0xc2 i2c-bus ivtv i2c driver #0
ivtv: i2c attach [client=(tuner unset),ok]
saa7115: starting probe for adapter ivtv i2c driver #0 (0x10005)
saa7115: detecting saa7115 client on address 0x42
saa7115: writing init values
ivtv: i2c attach [client=saa7115[0],ok]
saa7115: status: (1E) 0x48, (1F) 0xc0
saa7127: Ignoring new-style parameters in presence of obsolete ones
saa7127: video encoder driver version V 0.3 loaded
saa7127: detecting saa7127 client on address 0x88
saa7127: Selecting NTSC video Standard
saa7127: Selecting S-Video+Composite
saa7127: Turn WSS off
saa7127: Widescreen Mode 4:3 Full Format
saa7127: Selecting Normal Encoder Input
saa7127: Enable Video Output
ivtv: i2c attach [client=saa7127[0],ok]
msp34xx: ivtv version
msp34xx: init: chip=MSP3448W-A2, has NICAM support, simple (D) mode, simpler 
(G) no-thread mode
msp34xx: $Id$ compiled on: Mar 22 2005 12:42:49
ivtv: i2c attach [client=MSP3448W-A2,ok]
ivtv: Encoder revision: 0x02040011
ivtv: Decoder revision: 0x02020023
ivtv: Configuring WinTV PVR 350 card with 10 streams
ivtv: Registered v4l2 device, streamtype 0 minor 0
ivtv: Create DMA stream 0 using 1024 16384 byte buffers  0 kbytes total
ivtv: Allocate DMA stream 0 using 1024 16384 byte buffers  16777216 kbytes total
ivtv: Registered v4l2 device, streamtype 1 minor 32
ivtv: Create DMA stream 1 
ivtv: Allocate DMA stream 1 
ivtv: Registered v4l2 device, streamtype 2 minor 224
ivtv: Create stream 2 using 40 52224 byte buffers  0 kbytes total
ivtv: Allocate stream 2 using 40 52224 byte buffers  2097152 kbytes total
ivtv: Registered v4l2 device, streamtype 3 minor 24
ivtv: Create DMA stream 3 using 455 4608 byte buffers  0 kbytes total
ivtv: Allocate DMA stream 3 using 455 4608 byte buffers  2097152 kbytes total
ivtv: Registered v4l2 device, streamtype 4 minor 64
ivtv: Create stream 4 
ivtv: Allocate stream 4 
ivtv: Registered v4l2 device, streamtype 5 minor 16
ivtv: Create DMA stream 5 using 16 65536 byte buffers  0 kbytes total
ivtv: Allocate DMA stream 5 using 16 65536 byte buffers  1048576 kbytes total
ivtv: Registered v4l2 device, streamtype 6 minor 228
ivtv: Create stream 6 using 1024 2048 byte buffers  0 kbytes total
ivtv: Allocate stream 6 using 1024 2048 byte buffers  262144 kbytes total
ivtv: Registered v4l2 device, streamtype 7 minor 232
ivtv: Create stream 7 
ivtv: Allocate stream 7 
ivtv: Registered v4l2 device, streamtype 8 minor 48
ivtv: Create DMA stream 8 using 6 86400 byte buffers  0 kbytes total
ivtv: Allocate DMA stream 8 using 6 86400 byte buffers  518400 kbytes total
ivtv: Create DMA stream 9 using 32 65536 byte buffers  0 kbytes total
ivtv: Setting Tuner 2
tuner: type set to 2 (Philips NTSC (FI1236,FM1236 and compatibles)) by ivtv i2c 
driver #0
saa7115: decoder set input (4)
saa7115: now setting Composite input
ivtv: ivtv_enc_thread: pid = 2689, itv = 0xd8a48c80
ivtv: ivtv_dec_thread: pid = 2690, itv = 0xd8a48c80
ivtv: Setting audio matrix to input 3, output 1
ivtv: Switching standard to NTSC.
saa7115: decoder set norm NTSC
saa7115: set audio: 0x01
saa7127: Setting Encoder Video Standard
saa7127: Set NTSC Video Mode
saa7127: Selecting NTSC video Standard
ivtv: Initialized WinTV PVR 350, card #0
ivtv: ====================  END INIT IVTV  ====================
saa7115: decoder set picture bright=128 contrast=63 saturation=64 hue=0
saa7115: decoder set picture bright=128 contrast=63 saturation=63 hue=0
saa7115: decoder set picture bright=127 contrast=63 saturation=63 hue=0
saa7115: decoder set picture bright=127 contrast=63 saturation=63 hue=0
saa7115: decoder disable output
saa7115: decoder enable output
hdd: DMA disabled
ivtv-osd: Framebuffer module loaded (attached to ivtv card id 0)
ivtv-osd: Framebuffer is at decoder-relative address 0x00510000 and has 1704960 
bytes.
ivtv-osd: screen coords: [0 0] -> [720 480]
ivtv-osd: original global alpha = 208
ivtv-osd: current OSD state = 39
ivtv-osd: new global alpha = 208 (1 255 0)
ivtv-osd: framebuffer at 0xd5510000, mapped to 0xd9890000, size 1350k
ivtv-osd: mode is 720x480x32, linelength=2880
ivtv-osd: fb0: iTVC15 TV out frame buffer device
ivtv: Allocate DMA stream 9 using 32 65536 byte buffers  2097152 kbytes total
saa7115: decoder set picture bright=127 contrast=63 saturation=63 hue=0
saa7115: decoder set picture bright=127 contrast=63 saturation=63 hue=0
saa7115: decoder set picture bright=127 contrast=63 saturation=63 hue=0
saa7115: decoder set picture bright=127 contrast=63 saturation=63 hue=0
saa7115: decoder set size
saa7115: decoder disable output
saa7115: decoder enable output


---
Ricardo Miguel Lugo

On Mar 22, 2005, at 11:48 AM, Chris Kennedy wrote:

This has the last couple patches and some small fixes to the DMA
changes, and cleanup of unused DMA code, consolidating the DMA
code even more.  Also I have decided to run Lindent on the entire
ivtv source, so now everything is indented standard like the Linux
Kernel style calls for.

I am really curious how this works for those with the previous DMA
problems when using both the encoder and decoder together, or general
DMA errors.

#0.3.2k - some cleanup and fixes to last DMA changes.
        - hotplug firmware no longer uses kmalloc
        - remove semi colons from cx25840 driver
        - run Lindent on cx25840 driver.
        - run Lindent on entire source of ivtv.


http://ivtv.no-ip.info/ivtv-0.3/ivtv-0.3.2k.tgz


Thanks, Chris -- --- Chris Kennedy / [EMAIL PROTECTED] Engineer KMOS-TV/KTBG-FM Broadcasting Services Department Central Missouri State University


-------------------------------------------------------
This SF.net email is sponsored by: 2005 Windows Mobile Application Contest
Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones
for the chance to win $25,000 and application distribution. Enter today at
http://ads.osdn.com/?ad_id=6882&alloc_id=15148&op=click
_______________________________________________
ivtv-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ivtv-devel


Reply via email to