Hi,

Sorry for cross-posting this to both the development and users list.  I am at 
wits
end with my Myth setup.  I haven't enjoyed the reliability of MythTV/ivtv like 
some
other people are experiencing.  For the longest time, I thought it might be a
problem with Myth itself.  I posted my problems to the Myth mailing list, but 
nobody
could help me with them.  However, after adding some more heavy duty debugging 
to my
ivtv module, it appears as though this is the culprit.

Basically, I have two problems that I've been experiencing.  Although, I believe
both problems are related, if not the same.  My first problem is that, when I 
watch
live TV, the system will freeze up and the show I'm watching will go into a loop
like a broken record.  (ie. the last few frames recorded will keep repeating 
over
and over).  I can't do anything except a hard reboot (even ctrl-alt-del doesn't
work) to get the system back to a usable state - I can't get to a terminal 
window,
nor can I telnet/ssh into the box.

The next problem, which is the one I have included the log entries for, is where
Myth will chug along happily recording the show, then all of a sudden it'll 
throw
some error messages into the logs, and stop recording.  I have a process that
watches the logfile for the words "ENC: User stopped capture" (which I actually 
did
not stop the capture) and restarts my Myth backend.  After this happens, 
there's no
way of loading the Myth frontend to watch live TV.  I've tried reloading the
firmware but it doesn't work (logs attached for reloading firmware).  The only 
way
to get my system back is a complete system reboot to force everything to
reinitialize.

I've tried two separate versions of the Linux kernel, as well as two separate
versions of the ivtv driverand several versions of the Hauppauge PVR-250 
firmware. 
In every case, the results are the same.

My hardware configuration is as follows:

- AMD Athlon XP 3200+
- Asus A7V880 motherboard (onboard sound, network, S-ATA controller)
- 1 GB RAM
- 1 x 120 GB Western Digital ATA drive (for the operating system)
- 2 x 120 GB Western Digital S-ATA drives striped together (for the recorded 
programs)
- Hauppauge PVR-250

My current software configuration is:

- Debian unstable
- MythTV 0.16 - built from Debian source packages
- Custom kernel 2.6.10 (also tried with 2.4.27)
- ivtv 0.2.0-rc3c (also tried with 0.1.9)
- firmware pvr_1.18.21.22301_inf.zip  (I've also tried pvr250_17_21288.exe,
pvr48wdm_1.7.21337.exe, pvr48wdm_1.8.22037.exe, and pvr_1.18.21.22168_inf.zip)

The following are the relevant log entries for my configuration and problem.

Here's the ivtv initialization at startup...

Jan 20 19:13:32 localhost kernel: ivtv: ==================== START INIT IVTV
====================
Jan 20 19:13:32 localhost kernel: ivtv: version 0.2.0 (rc3b) loading
Jan 20 19:13:32 localhost kernel: ivtv: Linux version: 2.6.10 K7 gcc-3.3
Jan 20 19:13:32 localhost kernel: ivtv: In case of problems please include the 
debug
info
Jan 20 19:13:32 localhost kernel: ivtv: between the START INIT IVTV and END INIT
IVTV lines when
Jan 20 19:13:32 localhost kernel: ivtv: mailing the ivtv-devel mailinglist.
Jan 20 19:13:32 localhost kernel: ivtv: Autodetected WinTV PVR 250 card
Jan 20 19:13:32 localhost kernel: ivtv: Found an iTVC16 based chip
Jan 20 19:13:32 localhost kernel: ACPI: PCI interrupt 0000:00:0e.0[A] -> GSI 17
(level, low) -> IRQ 17
Jan 20 19:13:32 localhost kernel: ivtv: VIA PCI device: 0x0269 vendor: 0x1106
Jan 20 19:13:32 localhost kernel: tveeprom: Hauppauge: model = 32032, rev = 
B326,
serial# = 7195349
Jan 20 19:13:32 localhost kernel: tveeprom: tuner = Temic 4036FY5 (idx = 26, 
type = 8)
Jan 20 19:13:32 localhost kernel: tveeprom: tuner fmt = NTSC(M) (eeprom = 0x08, 
v4l2
= 0x00001000)
Jan 20 19:13:32 localhost kernel: tveeprom: audio_processor = MSP3440 (type = 
11)
Jan 20 19:13:32 localhost kernel: ivtv: i2c attach [client=tveeprom[0],ok]
Jan 20 19:13:32 localhost kernel: ivtv: Tuner Type 8, Tuner formats 0x00001000,
Radio: yes, Model 0x00893496, Revision 0x00000000
Jan 20 19:13:32 localhost kernel: ivtv: NTSC tuner detected
Jan 20 19:13:32 localhost kernel: ivtv: Radio detected
Jan 20 19:13:32 localhost kernel: tuner: chip found at addr 0xc2 i2c-bus ivtv 
i2c
driver #0
Jan 20 19:13:32 localhost kernel: ivtv: i2c attach [client=(tuner unset),ok]
Jan 20 19:13:32 localhost kernel: saa7115: starting probe for adapter ivtv i2c
driver #0 (0x10005)
Jan 20 19:13:32 localhost kernel: saa7115: detecting saa7115 client on address 
0x42
Jan 20 19:13:32 localhost kernel: saa7115: writing init values
Jan 20 19:13:32 localhost kernel: ivtv: i2c attach [client=saa7115[0],ok]
Jan 20 19:13:32 localhost kernel: saa7115: status: (1E) 0x01, (1F) 0xc0
Jan 20 19:13:32 localhost kernel: msp34xx: ivtv version
Jan 20 19:13:32 localhost kernel: msp34xx: init: chip=MSP3448W-A2, has NICAM
support, simple (D) mode, simpler (G) no-thread mode
Jan 20 19:13:32 localhost kernel: msp34xx: $Id$ compiled on: Dec 30 2004 
16:06:20
Jan 20 19:13:32 localhost kernel: ivtv: i2c attach [client=MSP3448W-A2,ok]
Jan 20 19:13:32 localhost kernel: ivtv: Encoder revision: 0x02050032
Jan 20 19:13:32 localhost kernel: ivtv: Encoder Firmware is buggy, use version
0x02040011
Jan 20 19:13:32 localhost kernel: ivtv: Configuring WinTV PVR 250 card with 5 
streams
Jan 20 19:13:32 localhost kernel: ivtv: Create DMA stream 0 using 256 16384 byte
buffers  4194304 kbytes total
Jan 20 19:13:32 localhost kernel: ivtv: Registered v4l2 device, streamtype 0 
minor 0
Jan 20 19:13:32 localhost kernel: ivtv: Create DMA stream 1
Jan 20 19:13:32 localhost kernel: ivtv: Registered v4l2 device, streamtype 1 
minor 32
Jan 20 19:13:32 localhost kernel: ivtv: Create stream 2 using 40 52224 byte 
buffers 
2097152 kbytes total
Jan 20 19:13:32 localhost kernel: ivtv: Registered v4l2 device, streamtype 2 
minor 224
Jan 20 19:13:32 localhost kernel: ivtv: Create DMA stream 3 using 455 4608 byte
buffers  2097152 kbytes total
Jan 20 19:13:32 localhost kernel: ivtv: Registered v4l2 device, streamtype 3 
minor 24
Jan 20 19:13:32 localhost kernel: ivtv: Create stream 4
Jan 20 19:13:32 localhost kernel: ivtv: Registered v4l2 device, streamtype 4 
minor 64
Jan 20 19:13:32 localhost kernel: ivtv: Setting Tuner 8
Jan 20 19:13:32 localhost kernel: tuner: type set to 8 (Temic NTSC (4036 FY5)) 
by
ivtv i2c driver #0
Jan 20 19:13:32 localhost kernel: ivtv: Setting audio matrix to input 3, output 
1
Jan 20 19:13:32 localhost kernel: ivtv: Switching standard to NTSC.
Jan 20 19:13:32 localhost kernel: ivtv: ivtv_enc_thread: pid = 1439, itv = 
0xf8a799e0
Jan 20 19:13:32 localhost kernel: saa7115: decoder set norm NTSC
Jan 20 19:13:32 localhost kernel: saa7115: set audio: 0x01
Jan 20 19:13:32 localhost kernel: ivtv: Initialized WinTV PVR 250, card #0
Jan 20 19:13:32 localhost kernel: ivtv: ====================  END INIT IVTV 
====================


Here's the log entries when the problem happens and the recordings just stop...

Jan 23 04:14:22 localhost kernel: ivtv: ENC: REG_DMAXFER wait failed
Jan 23 04:14:22 localhost kernel: ivtv: DMA Registers State: xfer: 0x00000002,
state: 0x00000001 dec_addr: 0x00000000 enc_addr: 0x37c80060 control: 0x00000002
Jan 23 04:14:22 localhost kernel: ivtv: DMA DEC Buffers:
Jan 23 04:14:22 localhost kernel:  0x00000000:0x00000000:0x00000000
Jan 23 04:14:22 localhost kernel: ivtv: DMA ENC Buffers:
Jan 23 04:14:22 localhost kernel:  0x001776c0:0x1fcdc000:0x00004000
Jan 23 04:14:22 localhost kernel:  0x0017b6c0:0x1fce0000:0x80004000
Jan 23 04:14:22 localhost kernel:  0x0010e6c0:0x1fc34000:0x80004000
Jan 23 04:14:22 localhost kernel:  0x000f5ec0:0x37c20000:0x80004000
Jan 23 04:14:22 localhost kernel:  0x0017bec0:0x37f24000:0x80004000
Jan 23 04:14:22 localhost kernel:  0x001716c0:0x01914000:0x80004000
Jan 23 04:14:22 localhost kernel:  0x0016eec0:0x37e5c000:0x80004000
Jan 23 04:14:22 localhost kernel:  0x00168ec0:0x3789c000:0x80004000
Jan 23 04:14:23 localhost kernel: ivtv: ENC: User stopped capture.
Jan 23 04:14:25 localhost kernel: ivtv: ENC: DMA still Pending while stoping 
capture!
Jan 23 04:14:25 localhost kernel: ivtv: ENC: REG_DMASTATUS2 wait failed
Jan 23 04:14:25 localhost kernel: ivtv: DMA Registers State: xfer: 0x00000002,
state: 0x00000001 dec_addr: 0x00000000 enc_addr: 0x37c80060 control: 0x00000002
Jan 23 04:14:25 localhost kernel: ivtv: DMA DEC Buffers:
Jan 23 04:14:25 localhost kernel:  0x00000000:0x00000000:0x00000000
Jan 23 04:14:25 localhost kernel: ivtv: DMA ENC Buffers:
Jan 23 04:14:25 localhost kernel:  0x001776c0:0x1fcdc000:0x00004000
Jan 23 04:14:25 localhost kernel:  0x0017b6c0:0x1fce0000:0x80004000
Jan 23 04:14:25 localhost kernel:  0x0010e6c0:0x1fc34000:0x80004000
Jan 23 04:14:25 localhost kernel:  0x000f5ec0:0x37c20000:0x80004000
Jan 23 04:14:25 localhost kernel:  0x0017bec0:0x37f24000:0x80004000
Jan 23 04:14:25 localhost kernel:  0x001716c0:0x01914000:0x80004000
Jan 23 04:14:25 localhost kernel:  0x0016eec0:0x37e5c000:0x80004000
Jan 23 04:14:25 localhost kernel:  0x00168ec0:0x3789c000:0x80004000


And finally, here's the log entries when i try running an ivtvctl -H to reload 
the
firmware...

Jan 23 11:12:50 localhost kernel: ivtv: FW Reload: Set DEC IRQ Mask!
Jan 23 11:12:50 localhost kernel: ivtv: Timeout waiting for data! Encoder 
buffers
have 0x00000000 bytes.
Jan 23 11:12:50 localhost kernel: saa7115: status: 0xb1
Jan 23 11:12:50 localhost kernel: saa7115: decoder disable output
Jan 23 11:12:50 localhost kernel: ivtv: FW Reload: Set ENC IRQ Mask!
Jan 23 11:12:50 localhost kernel: Resetting Firmware!!!
Jan 23 11:12:50 localhost kernel: ivtv: Sleeping for 10 ms
Jan 23 11:12:50 localhost kernel: ivtv: Sleeping for 10 ms
Jan 23 11:12:51 localhost kernel: ivtv: Failed api call 0x00000000 with result
0xfffffff0
Jan 23 11:12:51 localhost kernel: ivtv: Decoder firmware dead!
Jan 23 11:12:51 localhost kernel: ivtv: Firmware not responding, trying 
mailboxes again
Jan 23 11:12:51 localhost kernel: ivtv: invalid api mailbox
Jan 23 11:12:51 localhost kernel: ivtv: Decoder firmware dead!
Jan 23 11:12:51 localhost kernel: ivtv: Firmware not responding, giving up!
Jan 23 11:12:51 localhost kernel: ivtv: invalid api mailbox
Jan 23 11:12:51 localhost kernel: ivtv: Decoder firmware dead!
Jan 23 11:12:51 localhost kernel: saa7115: decoder enable output
Jan 23 11:13:17 localhost kernel: ivtv: ENC: User stopped capture.


Like I said at the beginning, I'm at wits end with my PVR.  It's been running
unstable for a good 4 months now (probably even longer) and I've even been 
considering scrapping the whole Linux PVR and moving over to a Windows based 
system
(GASP!  Yes, I know.  But that's how frustrated I am!).

You folks are my last hope (no pressure...) to try and resolve this PVR 
instability
I've been having.

Any help would be greatly appreciated.  Let me know if you need any more 
details.

Thanks,

--db




-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Ivtv-users mailing list
Ivtv-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ivtv-users

Reply via email to