On Wed, 2009-07-15 at 20:16 -0400, Michael Cook wrote: > Andy Walls <[email protected]> writes: > > > On Wed, 2009-07-15 at 19:23 -0400, Michael Cook wrote: > >> I recently moved my pvr-150 from one computer to another, and after > >> having done that I found that mythtv would fail recording > >> occasionally, about once a day or so I would have to reboot. The > >> error messages that appeared in /var/log were like this: > >> > >> ivtv0: All encoder MPG stream buffers are full. Dropping data. > >> ivtv0: Cause: the application is not reading fast enough. > >> > >> and > >> > >> MPEGRec(/dev/video0) Error: select timeout - ivtv driver has stopped > >> responding > >> > >> After googling those error messages for a while, it occurred to me > >> to try moving my pvr-150 card from one pci slot to another. After I > >> did that, the failures seem to have stopped (after four days, no > >> failures). > >> > >> Is this information interesting? > > > > Sort of. It would be more interesting with the output of > > > > $ cat /proc/interrupts > > $ /sbin/lspci -vvv > > > > So we can see what other Linux driver may be affecting the ivtv driver's > > interrupt service. > > $ cat /proc/interrupts > CPU0 > 0: 178 IO-APIC-edge timer > 1: 71 IO-APIC-edge i8042 > 4: 38492 IO-APIC-edge serial > 6: 5 IO-APIC-edge floppy > 7: 0 IO-APIC-edge parport0 > 8: 0 IO-APIC-edge rtc0 > 9: 0 IO-APIC-fasteoi acpi > 12: 150 IO-APIC-edge i8042 > 14: 1047210 IO-APIC-edge ata_piix > 15: 1924421 IO-APIC-edge ata_piix
> 16: 4 IO-APIC-fasteoi uhci_hcd:usb2 > 17: 10205890 IO-APIC-fasteoi ivtv0, Intel 82801DB-ICH4 Hmmm. It's working better now that it's sharing an interrupt with the Sound/Audio controller which is handled by the ALSA snd-intel8x0 driver. Before it was hanging when sharing an interrupt with a USB controller hub (usb2) handled by the uhci_hcd driver. I guess there might be a problem/bug in the uhci_hcd driver's interrupt service routine or with the USB device that was connected to that hub or with the USB driver that handled that device. > 18: 5673605 IO-APIC-fasteoi uhci_hcd:usb4, eth0 > 19: 0 IO-APIC-fasteoi uhci_hcd:usb3 > 23: 21274273 IO-APIC-fasteoi ehci_hcd:usb1 USB hub 1 looks kind of busy. Well, anyway, since *perhaps* there may be a problem with servicing interrupts in the uhci_hcd driver, it looks like sharing an IRQ with a device handled by an ALSA driver is probably optimal for you. The ALSA drivers are going to have well written interrupt service routines in general. Regards, Andy > NMI: 0 Non-maskable interrupts > LOC: 50668949 Local timer interrupts > RES: 0 Rescheduling interrupts > CAL: 0 Function call interrupts > TLB: 0 TLB shootdowns > SPU: 0 Spurious interrupts > ERR: 0 > MIS: 0 > $ /sbin/lspci -vvv > bash: /sbin/lspci: No such file or directory > $ type -all lspci > lspci is /usr/bin/lspci > lspci is /usr/X11R6/bin/lspci > $ lspci -vvv > 00:00.0 Host bridge: Intel Corporation 82845G/GL[Brookdale-G]/GE/PE DRAM > Controller/Host-Hub Interface (rev 01) > Subsystem: Dell Device 0126 > Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- > Stepping- SERR+ FastB2B- DisINTx- > Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- > <MAbort+ >SERR- <PERR- INTx- > Latency: 0 > Region 0: Memory at f0000000 (32-bit, prefetchable) [size=128M] > Capabilities: <access denied> > Kernel driver in use: agpgart-intel > Kernel modules: intel-agp > > 00:02.0 VGA compatible controller: Intel Corporation > 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device (rev 01) > Subsystem: Dell Device 0126 > Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- > Stepping- SERR- FastB2B- DisINTx- > Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- > <MAbort- >SERR- <PERR- INTx- > Latency: 0 > Interrupt: pin A routed to IRQ 16 > Region 0: Memory at e8000000 (32-bit, prefetchable) [size=128M] > Region 1: Memory at ff680000 (32-bit, non-prefetchable) [size=512K] > Capabilities: <access denied> > Kernel modules: intelfb > > 00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM > (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 01) > Subsystem: Dell Device 0126 > Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- > Stepping- SERR- FastB2B- DisINTx- > Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- > <TAbort- <MAbort- >SERR- <PERR- INTx- > Latency: 0 > Interrupt: pin A routed to IRQ 16 > Region 4: I/O ports at ff80 [size=32] > Kernel driver in use: uhci_hcd > > 00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM > (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 01) > Subsystem: Dell Device 0126 > Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- > Stepping- SERR- FastB2B- DisINTx- > Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- > <TAbort- <MAbort- >SERR- <PERR- INTx- > Latency: 0 > Interrupt: pin B routed to IRQ 19 > Region 4: I/O ports at ff60 [size=32] > Kernel driver in use: uhci_hcd > > 00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM > (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 01) > Subsystem: Dell Device 0126 > Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- > Stepping- SERR- FastB2B- DisINTx- > Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- > <TAbort- <MAbort- >SERR- <PERR- INTx- > Latency: 0 > Interrupt: pin C routed to IRQ 18 > Region 4: I/O ports at ff40 [size=32] > Kernel driver in use: uhci_hcd > > 00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI > Controller (rev 01) (prog-if 20) > Subsystem: Dell Device 0126 > Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- > Stepping- SERR+ FastB2B- DisINTx- > Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- > <TAbort- <MAbort- >SERR- <PERR- INTx- > Latency: 0 > Interrupt: pin D routed to IRQ 23 > Region 0: Memory at ffa00800 (32-bit, non-prefetchable) [size=1K] > Capabilities: <access denied> > Kernel driver in use: ehci_hcd > > 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 81) > Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- > Stepping- SERR+ FastB2B- DisINTx- > Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- > <MAbort- >SERR- <PERR+ INTx- > Latency: 0 > Bus: primary=00, secondary=01, subordinate=01, sec-latency=32 > I/O behind bridge: 0000e000-0000efff > Memory behind bridge: ff800000-ff9fffff > Prefetchable memory behind bridge: f8000000-fbffffff > Secondary status: 66MHz- FastB2B+ ParErr- DEVSEL=medium >TAbort- > <TAbort- <MAbort- <SERR- <PERR- > BridgeCtl: Parity- SERR+ NoISA+ VGA- MAbort- >Reset- FastB2B- > PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn- > Kernel modules: shpchp > > 00:1f.0 ISA bridge: Intel Corporation 82801DB/DBL (ICH4/ICH4-L) LPC Interface > Bridge (rev 01) > Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr- > Stepping- SERR- FastB2B- DisINTx- > Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- > <TAbort- <MAbort- >SERR- <PERR- INTx- > Latency: 0 > Kernel modules: iTCO_wdt, intel-rng > > 00:1f.1 IDE interface: Intel Corporation 82801DB (ICH4) IDE Controller (rev > 01) (prog-if 8a [Master SecP PriP]) > Subsystem: Dell Device 0126 > Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- > Stepping- SERR- FastB2B- DisINTx- > Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- > <TAbort- <MAbort- >SERR- <PERR- INTx- > Latency: 0 > Interrupt: pin A routed to IRQ 18 > Region 0: I/O ports at 01f0 [size=8] > Region 1: I/O ports at 03f4 [size=1] > Region 2: I/O ports at 0170 [size=8] > Region 3: I/O ports at 0374 [size=1] > Region 4: I/O ports at ffa0 [size=16] > Region 5: Memory at 40000000 (32-bit, non-prefetchable) [size=1K] > Kernel driver in use: ata_piix > > 00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus > Controller (rev 01) > Subsystem: Dell Device 0126 > Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- > Stepping- SERR- FastB2B- DisINTx- > Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- > <TAbort- <MAbort- >SERR- <PERR- INTx- > Interrupt: pin B routed to IRQ 11 > Region 4: I/O ports at dc80 [size=32] > Kernel modules: i2c-i801 > > 00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM > (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 01) > Subsystem: Dell Device 0126 > Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- > Stepping- SERR- FastB2B- DisINTx- > Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- > <TAbort- <MAbort- >SERR- <PERR- INTx- > Latency: 0 > Interrupt: pin B routed to IRQ 17 > Region 0: I/O ports at d800 [size=256] > Region 1: I/O ports at dc40 [size=64] > Region 2: Memory at ffa00400 (32-bit, non-prefetchable) [size=512] > Region 3: Memory at ffa00000 (32-bit, non-prefetchable) [size=256] > Capabilities: <access denied> > Kernel driver in use: Intel ICH > Kernel modules: snd-intel8x0 > > 01:08.0 Multimedia video controller: Internext Compression Inc iTVC16 > (CX23416) MPEG-2 Encoder (rev 01) > Subsystem: Hauppauge computer works Inc. Device 8003 > Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- > Stepping- SERR+ FastB2B- DisINTx- > Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- > <TAbort- <MAbort- >SERR- <PERR- INTx- > Latency: 64 (32000ns min, 2000ns max), Cache Line Size: 64 bytes > Interrupt: pin A routed to IRQ 17 > Region 0: Memory at f8000000 (32-bit, prefetchable) [size=64M] > Capabilities: <access denied> > Kernel driver in use: ivtv > Kernel modules: ivtv > > 01:0c.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet > Controller (rev 02) > Subsystem: Dell Device 002e > Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- > Stepping- SERR+ FastB2B- DisINTx- > Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- > <TAbort- <MAbort- >SERR- <PERR- INTx- > Latency: 64 (63750ns min), Cache Line Size: 64 bytes > Interrupt: pin A routed to IRQ 18 > Region 0: Memory at ff8e0000 (32-bit, non-prefetchable) [size=128K] > Region 2: I/O ports at ecc0 [size=64] > Capabilities: <access denied> > Kernel driver in use: e1000 > Kernel modules: e1000 > > $ > > Michael > > _______________________________________________ > ivtv-users mailing list > [email protected] > http://ivtvdriver.org/mailman/listinfo/ivtv-users > _______________________________________________ ivtv-users mailing list [email protected] http://ivtvdriver.org/mailman/listinfo/ivtv-users
