Hi all...

Ok, so I'm having some rather MAJOR issues with system stability...  I have
a rather complicated setup... and am having DMA issues... big time.. and
think perhaps I have some IRQ sharing issues.  First, let's talk about my
software and hardware...

Running Gentoo 2.6.19-r5 ... with ivtv-0.10rc1 ... (have been using
0.9.1for a long time... with the same problems)

Gigabyte GA-7VT600-L  (VIA Chipset)
Athlon XP 3200+
1GB RAM
PDC20268 TX2 ATA-100 controller
2x PVR-350
1x PVR-500
4x WDC WD2500JB-00REA0 250GB disks...
1x ATAPI DVD-RW

The disks are connected one each to the primary channels of the adapters...
the DVD drive is connected as a slave on one channel.. like this:

hda - 250GB
hdc - 250GB
hdd - DVD
hde - 250GB
hdg - 250GB

They are configured in various software RAID configurations... blah blah...
when my system crashes, I typically see that the main RAID-5 array on which
my recordings reside.... goes through a resync... which leads me to some of
the conclusions below...

Ok... so... I'm getting these type of errors...

ivtv0 warning: ENC DMA ERROR b
ivtv0 warning: encoder MPEG: Couldn't find start of buffer within the first
256 bytes
ivtv0 warning: encoder MPEG: offset 0 -> 128
ivtv0 warning: encoder MPEG: offset 128 -> 116
ivtv0 warning: encoder MPEG: offset 116 -> 108
ivtv0 warning: ENC DMA ERROR b
ivtv0 warning: encoder MPEG: offset 108 -> 128
ivtv0 warning: encoder MPEG: offset 128 -> 28
ivtv0 warning: ENC DMA ERROR b
ivtv0 warning: encoder MPEG: offset 28 -> 128
ivtv0 warning: encoder MPEG: offset 128 -> 116
ivtv0 warning: encoder MPEG: offset 116 -> 104
ivtv0 warning: ENC DMA ERROR b
ivtv0 warning: encoder MPEG: offset 104 -> 128
ivtv0 warning: encoder MPEG: offset 128 -> 0
ivtv0 warning: ENC DMA ERROR b
ivtv0 warning: encoder MPEG: offset 0 -> 128
ivtv0 warning: encoder MPEG: offset 128 -> 0
ivtv0 warning: ENC DMA ERROR b
ivtv0 warning: encoder MPEG: offset 0 -> 128
ivtv0 warning: encoder MPEG: offset 128 -> 52
ivtv0 warning: ENC DMA ERROR b
ivtv0 warning: encoder MPEG: offset 52 -> 128
ivtv0 warning: encoder MPEG: offset 128 -> 0
ivtv0 warning: ENC DMA ERROR b
ivtv0 warning: encoder MPEG: offset 0 -> 128
ivtv0 warning: encoder MPEG: offset 128 -> 80
ivtv0 warning: ENC DMA ERROR b
ivtv0 warning: encoder MPEG: offset 80 -> 128
ivtv0 warning: encoder MPEG: offset 128 -> 0
ivtv0 warning: ENC DMA ERROR b
ivtv0 warning: encoder MPEG: offset 0 -> 128
ivtv0 warning: encoder MPEG: offset 128 -> 0
ivtv0 warning: ENC DMA ERROR b
ivtv0 warning: encoder MPEG: Couldn't find start of buffer within the first
256 bytes
ivtv0 warning: encoder MPEG: offset 0 -> 128
ivtv0 warning: encoder MPEG: offset 128 -> 120
ivtv0 warning: encoder MPEG: offset 120 -> 100
ivtv0 warning: ENC DMA ERROR b
ivtv0 warning: encoder MPEG: offset 100 -> 128
ivtv0 warning: encoder MPEG: offset 128 -> 116
ivtv0: DMA TIMEOUT 00000001 0
ivtv0: DMA TIMEOUT 00000001 0
hde: dma_intr: bad DMA status (dma_stat=35)
hde: dma_intr: status=0x50 { DriveReady SeekComplete }
ide: failed opcode was: unknown
hdg: dma_intr: bad DMA status (dma_stat=35)
hdg: dma_intr: status=0x50 { DriveReady SeekComplete }
ide: failed opcode was: unknown
hde: dma_intr: bad DMA status (dma_stat=35)
hde: dma_intr: status=0x50 { DriveReady SeekComplete }
ide: failed opcode was: unknown
hde: dma_timer_expiry: dma status == 0x20
hde: DMA timeout retry
PDC202XX: Primary channel reset.
hde: timeout waiting for DMA
hde: status error: status=0x58 { DriveReady SeekComplete DataRequest }
ide: failed opcode was: unknown
hde: drive not ready for command

Now... I'm not sure what the ivtv0 DMA errors are... but I'm thinking the
latter errors... related to /dev/hde and /dev/hdg ... are perhaps problems
with what I see from /proc/interrupts

mythtv ~ # cat /proc/interrupts
          CPU0
 0:     605481   IO-APIC-edge      timer
 1:         92   IO-APIC-edge      i8042
 6:          3   IO-APIC-edge      floppy
 8:          2   IO-APIC-edge      rtc
 9:          0   IO-APIC-fasteoi   acpi
12:          4   IO-APIC-edge      i8042
14:     472518   IO-APIC-edge      ide0
15:     606702   IO-APIC-edge      ide1
16:     808921   IO-APIC-fasteoi   ide2, ide3, ivtv3
18:          0   IO-APIC-fasteoi   ehci_hcd:usb1, uhci_hcd:usb2,
uhci_hcd:usb3, uhci_hcd:usb4
19:    1048655   IO-APIC-fasteoi   ivtv0, eth0
20:    1210933   IO-APIC-fasteoi   ivtv1
21:     273099   IO-APIC-fasteoi   ivtv2, nvidia
22:      91935   IO-APIC-fasteoi   VIA8237
NMI:          0
LOC:     605418
ERR:          0
MIS:          0


Specifically... what I see about /dev/hde and /dev/hdg sharing IRQ 16 with
ivtv3 .. which is the #2 channel on my PVR-500 ... I'm not sure how much
moving cards around in this system I can do to free up IRQs... gonna trying
disabling my USB adapters... since I don't need them... we'll see... here's
the output of my ivtv driver load... in case it'd help anyone.

Linux video capture interface: v2.00
ivtv:  ==================== START INIT IVTV ====================
ivtv:  version 0.10.0 (tagged release candidate #1) loading
ivtv:  Linux version: 2.6.19-gentoo-r5 SMP mod_unload K7 4KSTACKS
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 Hauppauge card (cx23415 based)
ACPI: PCI Interrupt 0000:00:0a.0[A] -> GSI 18 (level, low) -> IRQ 19
ivtv0: Unreasonably low latency timer, setting to 64 (was 32)
ivtv0: loaded v4l-cx2341x-enc.fw firmware (376836 bytes)
ivtv0: loaded v4l-cx2341x-dec.fw firmware (262144 bytes)
ivtv0: Encoder revision: 0x02060039
ivtv0: Decoder revision: 0x02020023
tveeprom 0-0050: Hauppauge model 48132, rev K268, serial# 8512284
tveeprom 0-0050: tuner model is LG TAPE H001F MK3 (idx 68, type 47)
tveeprom 0-0050: TV standards NTSC(M) (eeprom 0x08)
tveeprom 0-0050: audio processor is MSP4448 (idx 27)
tveeprom 0-0050: decoder processor is SAA7115 (idx 19)
tveeprom 0-0050: has radio, has IR remote
ivtv0: Autodetected Hauppauge WinTV PVR-350
tuner 0-0043: chip found @ 0x86 (ivtv i2c driver #0)
tda9887 0-0043: tda988[5/6/7] found @ 0x43 (tuner)
tuner 0-0061: chip found @ 0xc2 (ivtv i2c driver #0)
saa7115 0-0021: saa7115 found (1f7115d0e100000) @ 0x42 (ivtv i2c driver #0)
saa7127 0-0044: saa7129 found @ 0x88 (ivtv i2c driver #0)
msp3400 0-0040: MSP4448G-A2 found @ 0x80 (ivtv i2c driver #0)
msp3400 0-0040: MSP4448G-A2 supports radio, mode is autodetect and
autoselect
ivtv0: Registered device video0 for encoder MPEG (4 MB)
ivtv0: Registered device video32 for encoder YUV (2 MB)
ivtv0: Registered device vbi0 for encoder VBI (1 MB)
ivtv0: Registered device video24 for encoder PCM audio (1 MB)
ivtv0: Registered device radio0 for encoder radio
ivtv0: Registered device video16 for decoder MPEG (1 MB)
ivtv0: Registered device vbi8 for decoder VBI (1 MB)
ivtv0: Registered device vbi16 for decoder VOUT
ivtv0: Registered device video48 for decoder YUV (1 MB)
ivtv0: loaded v4l-cx2341x-init.mpg firmware (155648 bytes)
tuner 0-0061: type set to 47 (LG NTSC (TAPE series))
ivtv0: Initialized Hauppauge WinTV PVR-350, card #0
ivtv:  ======================  NEXT CARD  ======================
ivtv1: Autodetected Hauppauge card (cx23415 based)
ACPI: PCI Interrupt 0000:00:0b.0[A] -> GSI 19 (level, low) -> IRQ 20
ivtv1: Unreasonably low latency timer, setting to 64 (was 32)
ivtv1: loaded v4l-cx2341x-enc.fw firmware (376836 bytes)
ivtv1: loaded v4l-cx2341x-dec.fw firmware (262144 bytes)
ivtv1: Encoder revision: 0x02060039
ivtv1: Decoder revision: 0x02020023
tuner 1-0043: chip found @ 0x86 (ivtv i2c driver #1)
tda9887 1-0043: tda988[5/6/7] found @ 0x43 (tuner)
tuner 1-0061: chip found @ 0xc2 (ivtv i2c driver #1)
saa7115 1-0021: saa7115 found (1f7115d0e100000) @ 0x42 (ivtv i2c driver #1)
saa7127 1-0044: saa7129 found @ 0x88 (ivtv i2c driver #1)
msp3400 1-0040: MSP4448G-A2 found @ 0x80 (ivtv i2c driver #1)
msp3400 1-0040: MSP4448G-A2 supports radio, mode is autodetect and
autoselect
tveeprom 1-0050: Hauppauge model 48132, rev K268, serial# 9810639
tveeprom 1-0050: tuner model is LG TAPE H001F MK3 (idx 68, type 47)
tveeprom 1-0050: TV standards NTSC(M) (eeprom 0x08)
tveeprom 1-0050: audio processor is MSP4448 (idx 27)
tveeprom 1-0050: decoder processor is SAA7115 (idx 19)
tveeprom 1-0050: has radio, has IR remote
ivtv1: Autodetected Hauppauge WinTV PVR-350
ivtv1: Registered device video1 for encoder MPEG (4 MB)
ivtv1: Registered device video33 for encoder YUV (2 MB)
ivtv1: Registered device vbi1 for encoder VBI (1 MB)
ivtv1: Registered device video25 for encoder PCM audio (1 MB)
ivtv1: Registered device radio1 for encoder radio
ivtv1: Registered device video17 for decoder MPEG (1 MB)
ivtv1: Registered device vbi9 for decoder VBI (1 MB)
ivtv1: Registered device vbi17 for decoder VOUT
ivtv1: Registered device video49 for decoder YUV (1 MB)
ivtv1: loaded v4l-cx2341x-init.mpg firmware (155648 bytes)
tuner 1-0061: type set to 47 (LG NTSC (TAPE series))
ivtv1: Initialized Hauppauge WinTV PVR-350, card #1
ivtv:  ======================  NEXT CARD  ======================
ivtv2: Autodetected Hauppauge card (cx23416 based)
ACPI: PCI Interrupt 0000:02:08.0[A] -> GSI 16 (level, low) -> IRQ 21
ivtv2: Unreasonably low latency timer, setting to 64 (was 32)
ivtv2: loaded v4l-cx2341x-enc.fw firmware (376836 bytes)
ivtv2: Encoder revision: 0x02060039
tuner 2-0060: TEA5767 detected.
tuner 2-0060: chip found @ 0xc0 (ivtv i2c driver #2)
tuner 2-0060: type set to 62 (Philips TEA5767HN FM Radio)
tuner 2-0061: chip found @ 0xc2 (ivtv i2c driver #2)
i2c_adapter i2c-2: Client creation failed at 0x44 (-1)
tveeprom 2-0050: Hauppauge model 23552, rev E587, serial# 9867246
tveeprom 2-0050: tuner model is Samsung TCPN 2121P30A (idx 87, type 70)
tveeprom 2-0050: TV standards NTSC(M) (eeprom 0x08)
tveeprom 2-0050: second tuner model is Philips TEA5768HL FM Radio (idx 101,
type 62)
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
ivtv2: Autodetected WinTV PVR 500 (unit #1)
cx25840 2-0044: cx25843-23 found @ 0x88 (ivtv i2c driver #2)
cx25840 2-0044: loaded v4l-cx25840.fw firmware (16382 bytes)
wm8775 2-001b: chip found @ 0x36 (ivtv i2c driver #2)
ivtv2: Registered device video2 for encoder MPEG (4 MB)
ivtv2: Registered device video34 for encoder YUV (2 MB)
ivtv2: Registered device vbi2 for encoder VBI (1 MB)
ivtv2: Registered device video26 for encoder PCM audio (1 MB)
ivtv2: Registered device radio2 for encoder radio
tuner 2-0061: type set to 70 (Samsung TCPN 2121P30A)
ivtv2: Initialized WinTV PVR 500 (unit #1), card #2
ivtv:  ======================  NEXT CARD  ======================
ivtv3: Autodetected Hauppauge card (cx23416 based)
ACPI: PCI Interrupt 0000:02:09.0[A] -> GSI 17 (level, low) -> IRQ 16
ivtv3: Unreasonably low latency timer, setting to 64 (was 32)
ivtv3: loaded v4l-cx2341x-enc.fw firmware (376836 bytes)
ivtv3: Encoder revision: 0x02060039
tuner 3-0061: chip found @ 0xc2 (ivtv i2c driver #3)
i2c_adapter i2c-3: Client creation failed at 0x44 (-1)
cx25840 3-0044: cx25843-23 found @ 0x88 (ivtv i2c driver #3)
cx25840 3-0044: loaded v4l-cx25840.fw firmware (16382 bytes)
wm8775 3-001b: chip found @ 0x36 (ivtv i2c driver #3)
tveeprom 3-0050: Hauppauge model 23552, rev E587, serial# 9867246
tveeprom 3-0050: tuner model is Samsung TCPN 2121P30A (idx 87, type 70)
tveeprom 3-0050: TV standards NTSC(M) (eeprom 0x08)
tveeprom 3-0050: second tuner model is Philips TEA5768HL FM Radio (idx 101,
type 62)
tveeprom 3-0050: audio processor is CX25843 (idx 37)
tveeprom 3-0050: decoder processor is CX25843 (idx 30)
tveeprom 3-0050: has radio, has no IR remote
ivtv3: Correcting tveeprom data: no radio present on second unit
ivtv3: Autodetected WinTV PVR 500 (unit #2)
ivtv3: Registered device video3 for encoder MPEG (4 MB)
ivtv3: Registered device video35 for encoder YUV (2 MB)
ivtv3: Registered device vbi3 for encoder VBI (1 MB)
ivtv3: Registered device video27 for encoder PCM audio (1 MB)
tuner 3-0061: type set to 70 (Samsung TCPN 2121P30A)
ivtv3: Initialized WinTV PVR 500 (unit #2), card #3
ivtv:  ====================  END INIT IVTV  ====================


If anyone can offer me a clue... that'd be great... this thing is so damned
unstable these days... it's drivin' me crazy.

Thanks,

Andy
_______________________________________________
ivtv-users mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-users

Reply via email to