[ivtv-devel] Please test: DMA error patch

Chris Schanzle ivtv at cas.homelinux.org
Sun Aug 27 08:00:29 CEST 2006


On 08/26/2006 11:23 PM, Chris Schanzle wrote:

>On 08/26/2006 01:34 AM, Hans Verkuil wrote:
>  
>
>>If you just capture using 'cat', do you get the same behavior?  
>>
>>    
>>
>
>(cat to a file.)  It appears to work properly.  With mythbackend 
>stopped, cpuspeed running (and I doubt ever increasing the frequency 
>from 1000000 since the load average was typically 0.00, max at 0.10), no 
>messages were logged in a 1 hour timeframe.
>  
>

I recorded another 1.5 hr show with commercial flagging performed 
*after* the recording is complete.  Not surprising, during recording the 
system load was extremely low and there were no messages from the ivtv 
driver.

When that recording completed, commercial flagging started.  After a few 
minutes, I started recording another show.  Very quickly, ivtv warning 
"offset" messages showed up, but not the fatal bad one.  After a few 
minutes, I locked the CPU at max speed and killed cpuspeed (01:06:32).  
It continued spit occasional error messages at roughly the same rate.  
When the commerical flagging completed, there were no ivtv messages for 
at least the next 30 mins (time for bed).

I have not played back the recordings to verify their integrity.  
However, when commercial flagging started for the second recording, 
there were many MPEG2VIDEO error messages in the mythbackend log, which 
likely means the recording is corrupt:

[mpeg2video @ 0x64eca04]ac-tex damaged at 37 22
[mpeg2video @ 0x64eca04]Warning MVs not available
[mpeg2video @ 0x64eca04]ac-tex damaged at 37 22
[mpeg2video @ 0x64eca04]ac-tex damaged at 37 22
[mpeg2video @ 0x64eca04]skipped MB in I frame at 7 16
[mpeg2video @ 0x64eca04]Warning MVs not available
[mpeg2video @ 0x64eca04]ac-tex damaged at 6 5
[mpeg2video @ 0x64eca04]ac-tex damaged at 0 0
[mpeg2video @ 0x64eca04]mb incr damaged
[mpeg2video @ 0x64eca04]invalid cbp at 24 29
[mpeg2video @ 0x64eca04]ac-tex damaged at 37 22
....
[few dozen similar lines omitted]


It would seem if the system is very idle, there are no problems.

Below are /var/log/messages and mythbackend messages intermingled:

2006-08-27 01:04:34.045 scheduler: Started recording
Aug 27 01:04:42 localhost kernel: ivtv0 warning: DMA err b
Aug 27 01:04:42 localhost kernel: ivtv0 warning: ENC: (0) DMA Error 
0x0000000b 00020000
Aug 27 01:04:42 localhost kernel: ivtv0 warning: offset 0 -> 128
Aug 27 01:04:42 localhost kernel: ivtv0 warning: offset 128 -> 0
Aug 27 01:05:19 localhost su(pam_unix)[14719]: session opened for user 
root by (uid=500)
Aug 27 01:06:09 localhost kernel: ivtv0 warning: ENC: (0) DMA Error 
0x0000000b 00020000
Aug 27 01:06:09 localhost kernel: ivtv0 warning: offset 0 -> 128
Aug 27 01:06:10 localhost kernel: ivtv0 warning: DMA err b
Aug 27 01:06:10 localhost kernel: ivtv0 warning: ENC: (0) DMA Error 
0x0000000b 00020000
Aug 27 01:06:10 localhost kernel: ivtv0 warning: ENC: (1) DMA Error 
0x0000000b 00020000
Aug 27 01:06:11 localhost kernel: ivtv0 warning: offset 128 -> 0
Aug 27 01:06:13 localhost kernel: ivtv0 warning: DMA err b
Aug 27 01:06:13 localhost kernel: ivtv0 warning: ENC: (0) DMA Error 
0x0000000b 00020004
Aug 27 01:06:13 localhost kernel: ivtv0 warning: offset 0 -> 128
Aug 27 01:06:13 localhost kernel: ivtv0 warning: offset 128 -> 104
Aug 27 01:06:19 localhost kernel: ivtv0 warning: ENC: (0) DMA Error 
0x0000000b 00020000
Aug 27 01:06:19 localhost kernel: ivtv0 warning: DMA err b
Aug 27 01:06:19 localhost kernel: ivtv0 warning: ENC: (1) DMA Error 
0x0000000b 00020000
Aug 27 01:06:19 localhost kernel: ivtv0 warning: DMA err b
Aug 27 01:06:19 localhost kernel: ivtv0 warning: ENC: (2) DMA Error 
0x0000000b 00020000
Aug 27 01:06:19 localhost kernel: ivtv0 warning: offset 104 -> 0
Aug 27 01:06:19 localhost kernel: ivtv0 warning: offset 0 -> 128
Aug 27 01:06:19 localhost kernel: ivtv0 warning: offset 128 -> 44
Aug 27 01:06:22 localhost kernel: ivtv0 warning: DMA err b
Aug 27 01:06:22 localhost kernel: ivtv0 warning: ENC: (0) DMA Error 
0x0000000b 00020004
Aug 27 01:06:22 localhost kernel: ivtv0 warning: offset 44 -> 128
Aug 27 01:06:22 localhost kernel: ivtv0 warning: offset 128 -> 0
Aug 27 01:07:26 localhost kernel: ivtv0 warning: DMA err b
Aug 27 01:07:26 localhost kernel: ivtv0 warning: ENC: (0) DMA Error 
0x0000000b 00020000
Aug 27 01:07:26 localhost kernel: ivtv0 warning: offset 0 -> 128
Aug 27 01:07:26 localhost kernel: ivtv0 warning: offset 128 -> 100
Aug 27 01:08:44 localhost kernel: ivtv0 warning: ENC: (0) DMA Error 
0x0000000b 00020004
Aug 27 01:08:44 localhost kernel: ivtv0 warning: offset 100 -> 128
Aug 27 01:08:44 localhost kernel: ivtv0 warning: offset 128 -> 72
Aug 27 01:08:50 localhost kernel: ivtv0 warning: ENC: (0) DMA Error 
0x0000000b 00020004
Aug 27 01:08:50 localhost kernel: ivtv0 warning: DMA err b
Aug 27 01:08:50 localhost kernel: ivtv0 warning: ENC: (1) DMA Error 
0x0000000b 00020004
Aug 27 01:08:50 localhost kernel: ivtv0 warning: offset 72 -> 0
Aug 27 01:08:50 localhost kernel: ivtv0 warning: offset 0 -> 128
Aug 27 01:08:50 localhost kernel: ivtv0 warning: offset 128 -> 0
Aug 27 01:09:03 localhost kernel: ivtv0 warning: ENC: (0) DMA Error 
0x0000000b 00020000
Aug 27 01:09:03 localhost kernel: ivtv0 warning: ENC: (1) DMA Error 
0x0000000b 00020004
Aug 27 01:09:03 localhost kernel: ivtv0 warning: offset 0 -> 128
Aug 27 01:09:03 localhost kernel: ivtv0 warning: offset 128 -> 0
Aug 27 01:10:31 localhost kernel: ivtv0 warning: DMA err b
Aug 27 01:10:31 localhost kernel: ivtv0 warning: ENC: (0) DMA Error 
0x0000000b 00020000
Aug 27 01:10:31 localhost kernel: ivtv0 warning: offset 0 -> 128
Aug 27 01:10:32 localhost kernel: ivtv0 warning: offset 128 -> 0
Aug 27 01:11:21 localhost kernel: ivtv0 warning: ENC: (0) DMA Error 
0x0000000b 00020004
Aug 27 01:11:21 localhost kernel: ivtv0 warning: offset 0 -> 128
Aug 27 01:11:21 localhost kernel: ivtv0 warning: offset 128 -> 0
Aug 27 01:11:31 localhost kernel: ivtv0 warning: ENC: (0) DMA Error 
0x0000000b 00020000
Aug 27 01:11:31 localhost kernel: ivtv0 warning: ENC: (1) DMA Error 
0x0000000b 00020000
Aug 27 01:11:31 localhost kernel: ivtv0 warning: DMA err b
Aug 27 01:11:31 localhost kernel: ivtv0 warning: ENC: (2) DMA Error 
0x0000000b 00020004
Aug 27 01:11:31 localhost kernel: ivtv0 warning: offset 0 -> 128
Aug 27 01:11:31 localhost kernel: ivtv0 warning: offset 128 -> 0
Aug 27 01:14:16 localhost kernel: ivtv0 warning: ENC: (0) DMA Error 
0x0000000b 00020004
Aug 27 01:14:16 localhost kernel: ivtv0 warning: DMA err b
Aug 27 01:14:16 localhost kernel: ivtv0 warning: ENC: (1) DMA Error 
0x0000000b 00020000
Aug 27 01:14:16 localhost kernel: ivtv0 warning: ENC: (2) DMA Error 
0x0000000b 00020000
Aug 27 01:14:16 localhost kernel: ivtv0 warning: ENC: (3) DMA Error 
0x0000000b 00020000
Aug 27 01:14:16 localhost kernel: ivtv0 warning: offset 0 -> 128
Aug 27 01:14:16 localhost kernel: ivtv0 warning: offset 128 -> 0
2006-08-27 01:14:25.639 RingBuf(/local/video/3004_20060826233000.mpg): 
Waited 2 seconds for data to become available...
[mpeg2video @ 0x64eca04]invalid cbp at 44 4
[mpeg2video @ 0x64eca04]Warning MVs not available
2006-08-27 01:14:27.863 commflag: Commercial Flagging Finished
2006-08-27 01:14:27.880 Commercial Flagging Finished, 11 break(s) found.
0: start_time: 0.036 duration: 493.813
1: start_time: 0.032 duration: 493.828
stream: start_time: 0.352 duration: 5486.976 bitrate=6514 kb/s
2006-08-27 01:14:28.017 AFD: Opened codec 0xa016ee0, id(MPEG2VIDEO) 
type(Video)
2006-08-27 01:14:28.023 AFD: Opened codec 0xa075e80, id(MP2) type(Audio)

Chris



More information about the ivtv-devel mailing list