Hi, Trying to track down a source of a problem, where I need to rmmod / modprobe tda9887, cx25840, ivtv to make the card work properly. I would appreciate any hint about where to look next.
The Set up: ivtv 0.4.3 (was 0.4.0 when problem started) stock OpenSuse 10.0 DiamondMM XtremeTV PVR-550 http://www.diamondmm.com/PVR550.php see detected hardware list in the attached dmesg-with-annotations.txt Description of the problem: This behavior did not occur before. I did not change the ivtv set up; it was a functioning v 0.4.0. The problem just started to occure, and switching to 0.4.3 did not remove the problem. The only changes were addition of modules for vmware, and a firewire card. (As you can see from the attached lsmod.txt, disabling the modules for vmware and removing the firewire card did not fix the problem) When ivtv modules are loaded initially by the system, the card produces cx25840 1-0044: 1x1 is not a valid size! (Please, see the attached dmesg-with-annotations.txt file) ivtv-detect and ivtv-tune give normal responces. Yet, "cat /dev/video0 > file" gives a file of zero size. Simple rmmod tda9887, rmmod cx25840, rmmod ivtv, followed by modprobe ivtv completely fixes the problem. Is it possible that some module that loads after ivtv screws up something? Any idea what I am fighting against?
Linux video capture interface: v1.00 ivtv: ==================== START INIT IVTV ==================== ivtv: version 0.4.3 (tagged release) loading ivtv: Linux version: 2.6.13-15-default PENTIUMIII 4KSTACKS gcc-4.0 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 YUAN PG600/DIAMOND PVR-550 (CX FALCON2) card (cx23416 based) ivtv0 info: base addr: 0xf0000000 ivtv0 info: Enabling pci device ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 9 PCI: setting IRQ 9 as level-triggered ACPI: PCI Interrupt 0000:02:0c.0[A] -> Link [LNKB] -> GSI 9 (level, low) -> IRQ 9 ivtv0 info: Bus Mastering Enabled. ivtv0 info: 22 (rev 1) at 02:0c.0, irq: 9, latency: 64, memory: 0xf0000000 ivtv0 info: attempting ioremap at 0xf0000000 len 0x00800000 ivtv0 info: attempting ioremap at 0xf1000000 len 0x00800000 ivtv0 info: attempting ioremap at 0xf2000000 len 0x00010000 ivtv0 info: activating i2c... ivtv0 info: Active card count: 1. tuner (ivtv): chip found at addr 0xc2 i2c-bus ivtv i2c driver #0 ivtv0: i2c attach to card #0 ok [client=(tuner unset), addr=61] ivtv0 info: Loaded module tuner cx25840 1-0044: ivtv driver cx25840 1-0044: cx25843-23 found @ 0x88 (ivtv i2c driver #0) usb 1-2: new low speed USB device using uhci_hcd and address 3 bootsplash: status on console 0 changed to on hdc: ATAPI 32X DVD-ROM DVD-R CD-R/RW drive, 2000kB Cache, UDMA(33) Uniform CD-ROM driver Revision: 3.20 cx25840 1-0044: loaded v4l-cx25840.fw firmware (13837 bytes) ivtv0: i2c attach to card #0 ok [client=cx25840, addr=44] ivtv0 info: Loaded module cx25840 tda9887 1-0043: (ivtv) chip found @ 0x86 (ivtv i2c driver #0) ivtv0: i2c attach to card #0 ok [client=tda9887, addr=43] usbcore: registered new driver hiddev ivtv0 info: Loaded module tda9887 ivtv0: Could not detect tuner standard, defaulting to NTSC. ivtv0 info: Stopping VDM ivtv0 info: Stopping AO ivtv0 info: pinging (?) APU ivtv0 info: Stopping VPU ivtv0 info: Resetting Hw Blocks ivtv0 info: Stopping SPU ivtv0 info: Sleeping for 10ms ivtv0 info: init Encoder SDRAM pre-charge ivtv0 info: init Encoder SDRAM refresh to 1us ivtv0 info: init Decoder SDRAM pre-charge ivtv0 info: init Decoder SDRAM refresh to 1us ivtv0 info: Sleeping for 600ms (600 recommended) input: USB HID v1.10 Keyboard [BTC USB Multimedia Keyboard] on usb-0000:00:1f.2-1 input,hiddev96: USB HID v1.10 Device [BTC USB Multimedia Keyboard] on usb-0000:00:1f.2-1 input: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:1f.2-2 usbcore: registered new driver usbhid drivers/usb/input/hid-core.c: v2.01:USB HID core driver BIOS EDD facility v0.16 2004-Jun-25, 3 devices found ivtv0 info: Card ready for firmware! ivtv0 info: Loading encoder image ivtv0: loaded v4l-cx2341x-enc.fw firmware (262144 bytes) ivtv0 info: Sleeping for 100 ms ivtv0 info: Sleeping for 100 ms ivtv0 info: GPIO INIT ivtv0 info: About to search for mailboxes ivtv0 info: Searching for encoder mailbox ivtv0 info: match: 0x34567812 at 0xe1780104. match: 1 ivtv0 info: match: 0x56781234 at 0xe1780108. match: 2 ivtv0 info: match: 0x78123456 at 0xe178010c. match: 3 ivtv0 info: found encoder mailbox! ivtv0 info: Searching for decoder mailbox ivtv0 info: match: 0x34567812 at 0xe2000104. match: 1 ivtv0 info: match: 0x56781234 at 0xe2000108. match: 2 ivtv0 info: match: 0x78123456 at 0xe200010c. match: 3 ivtv0 info: found decoder mailbox! ivtv0 info: Getting firmware version.. ivtv0 info: Getting encoder firmware rev. ivtv0: Encoder revision: 0x02050032 ivtv0 info: v4l2 streams setup ivtv0 info: Configuring YUAN PG600/DIAMOND PVR-550 (CX FALCON2) card with 4 streams ivtv0 info: Registered v4l2 device for encoder MPEG minor 0 ivtv0: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total) ivtv0 info: Registered v4l2 device for encoder YUV minor 32 ivtv0: Allocate DMA encoder YUV stream: 194 x 10800 buffers (2048KB total) ivtv0 info: Registered v4l2 device for encoder VBI minor 224 ivtv0: Allocate DMA encoder VBI stream: 120 x 17472 buffers (2048KB total) ivtv0 info: Registered v4l2 device for encoder PCM audio minor 24 ivtv0: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB total) ivtv0 info: Starting Threads tuner: type set to 57 (Philips FQ1236A MK4) by ivtv i2c driver #0 ivtv0 info: Setting audio to input 0 ivtv0 info: Switching standard to NTSC. ivtv0 info: Disabling digitizer ivtv0 info: v4l2 ioctl: set frequency 1076 ivtv0 info: Enabling digitizer ivtv0 info: ivtv_enc_thread: pid = 3921, itv = 0xdcf40000 ivtv0 info: encoder thread sleeping 3921 ivtv0 info: ivtv_enc_vbi_thread: pid = 3922, itv = 0xdcf40000 ivtv0 info: encoder thread sleeping 3922 ivtv0 info: Finished with Mute ivtv0: Initialized YUAN PG600/DIAMOND PVR-550 (CX FALCON2), card #0 ivtv: ==================== END INIT IVTV ==================== IA-32 Microcode Update Driver: v1.14 <[EMAIL PROTECTED]> microcode: CPU0 already at revision 0x8 (current=0x8) microcode: No new microcode data for CPU0 IA-32 Microcode Update Driver v1.14 unregistered bootsplash: status on console 0 changed to on subfs 0.9 bootsplash: status on console 0 changed to on [fglrx] Maximum main memory to use for locked dma buffers: 431 MBytes. [fglrx] AGP detected, AgpState = 0x1f000207 (hardware caps of chipset) agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0. agpgart: Putting AGP V2 device at 0000:00:00.0 into 4x mode agpgart: Putting AGP V2 device at 0000:01:00.0 into 4x mode [fglrx] AGP enabled, AgpCommand = 0x1f000304 (selected caps) [fglrx] free AGP = 54800384 [fglrx] max AGP = 54800384 [fglrx] free LFB = 116387840 [fglrx] max LFB = 116387840 [fglrx] free Inv = 0 [fglrx] max Inv = 0 [fglrx] total Inv = 0 [fglrx] total TIM = 0 [fglrx] total FB = 0 [fglrx] total AGP = 16384 [fglrx] Flat panel plugged in cx25840 1-0044: 32767x32767 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! ivtv0 info: v4l2 close cx25840 1-0044: 32767x32767 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! ivtv0 info: v4l2 close cx25840 1-0044: 32767x32767 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! cx25840 1-0044: 1x1 is not a valid size! ivtv0 info: v4l2 close ################################################################################### Running "ivtv-tune --freqtable=us-cable-hrc -c4" and "cat /dev/video0 > ~/test.mpg" creates ~/test.mpg of size 0, no matter how long I wait. ################################################################################### ivtv0 info: Disabling digitizer ivtv0 info: v4l2 ioctl: set frequency 1056 ivtv0 info: Enabling digitizer ivtv0 info: Finished with Mute ivtv0 info: v4l2 close ivtv0 info: v4l2 read ivtv0 info: ivtv start v4l2 stream ivtv0 info: ENC: PGM Index at 0x00180150 with 0x00000190 elements ivtv0 info: Disabling digitizer ivtv0 info: Enabling digitizer ivtv0 info: ivtv_read: stream 0.. ivtv0 info: ENC: 128 bufs, 0x00000000 fill; 128 free 0 dma 0 full 0 io ivtv0 info: ENC: User stopped capture. ivtv0 info: v4l2 close ivtv0 info: close stopping capture ivtv0 info: Stop Capture ################################################################################### Running "rmmod tda9887" "rmmod cx25840" "rmmod ivtv" ################################################################################### ivtv0 info: Removing Card #0. ivtv0 info: Stopping all streams. ivtv0 info: Stopping decoding. ivtv0 info: Disabling interrupts. ivtv0 info: Flushing Work Queues. ivtv0 info: Cancel Work Queues. ivtv0 info: Destroy Work Queues. ivtv0 info: Stopping Threads. ivtv0 info: Stopping Passthrough. ivtv0 info: Stopping Firmware. ivtv0 info: Preparing for firmware halt. ivtv0 info: Stopping decoder firmware ivtv0 info: Sleeping for 10ms ivtv0 info: Stopping VDM ivtv0 info: Stopping AO ivtv0 info: pinging (?) APU ivtv0 info: Stopping VPU ivtv0 info: Resetting Hw Blocks ivtv0 info: Stopping SPU ivtv0 info: Sleeping for 10ms ivtv0 info: init Encoder SDRAM pre-charge ivtv0 info: init Encoder SDRAM refresh to 1us ivtv0 info: Sleeping for 600ms (600 recommended) ivtv0 info: Freeing dma resources. ivtv0 info: Unregistering v4l devices. ivtv0 info: Releasing irq. ivtv0 info: releasing reg_mem ivtv0 info: releasing dec_mem ivtv0 info: releasing enc_mem ivtv0 info: Releasing mem. ACPI: PCI interrupt for device 0000:02:0c.0 disabled ivtv0: Removed YUAN PG600/DIAMOND PVR-550 (CX FALCON2), card #0 ivtv: ==================== START INIT IVTV ==================== ivtv: version 0.4.3 (tagged release) loading ivtv: Linux version: 2.6.13-15-default PENTIUMIII 4KSTACKS gcc-4.0 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 YUAN PG600/DIAMOND PVR-550 (CX FALCON2) card (cx23416 based) ivtv0 info: base addr: 0xf0000000 ivtv0 info: Enabling pci device ACPI: PCI Interrupt 0000:02:0c.0[A] -> Link [LNKB] -> GSI 9 (level, low) -> IRQ 9 ivtv0 info: Attempting to enable Bus Mastering ivtv0 info: Bus Mastering Enabled. ivtv0 info: 22 (rev 1) at 02:0c.0, irq: 9, latency: 64, memory: 0xf0000000 ivtv0 info: attempting ioremap at 0xf0000000 len 0x00800000 ivtv0 info: attempting ioremap at 0xf1000000 len 0x00800000 ivtv0 info: attempting ioremap at 0xf2000000 len 0x00010000 ivtv0 info: activating i2c... tuner (ivtv): chip found at addr 0xc2 i2c-bus ivtv i2c driver #0 ivtv0: i2c attach to card #0 ok [client=(tuner unset), addr=61] ivtv0 info: Active card count: 1. ivtv0 info: Loaded module tuner cx25840 1-0044: ivtv driver cx25840 1-0044: cx25843-23 found @ 0x88 (ivtv i2c driver #0) cx25840 1-0044: loaded v4l-cx25840.fw firmware (13837 bytes) ivtv0: i2c attach to card #0 ok [client=cx25840, addr=44] ivtv0 info: Loaded module cx25840 tda9887 1-0043: (ivtv) chip found @ 0x86 (ivtv i2c driver #0) ivtv0: i2c attach to card #0 ok [client=tda9887, addr=43] ivtv0 info: Loaded module tda9887 ivtv0: Could not detect tuner standard, defaulting to NTSC. ivtv0 info: Stopping VDM ivtv0 info: Stopping AO ivtv0 info: pinging (?) APU ivtv0 info: Stopping VPU ivtv0 info: Resetting Hw Blocks ivtv0 info: Stopping SPU ivtv0 info: Sleeping for 10ms ivtv0 info: init Encoder SDRAM pre-charge ivtv0 info: init Encoder SDRAM refresh to 1us ivtv0 info: init Decoder SDRAM pre-charge ivtv0 info: init Decoder SDRAM refresh to 1us ivtv0 info: Sleeping for 600ms (600 recommended) ivtv0 info: Card ready for firmware! ivtv0 info: Loading encoder image ivtv0: loaded v4l-cx2341x-enc.fw firmware (262144 bytes) ivtv0 info: Sleeping for 100 ms ivtv0 info: Sleeping for 100 ms ivtv0 info: GPIO INIT ivtv0 info: About to search for mailboxes ivtv0 info: Searching for encoder mailbox ivtv0 info: match: 0x34567812 at 0xe1780104. match: 1 ivtv0 info: match: 0x56781234 at 0xe1780108. match: 2 ivtv0 info: match: 0x78123456 at 0xe178010c. match: 3 ivtv0 info: found encoder mailbox! ivtv0 info: Searching for decoder mailbox ivtv0 info: match: 0x34567812 at 0xe2000104. match: 1 ivtv0 info: match: 0x56781234 at 0xe2000108. match: 2 ivtv0 info: match: 0x78123456 at 0xe200010c. match: 3 ivtv0 info: found decoder mailbox! ivtv0 info: Getting firmware version.. ivtv0 info: Getting encoder firmware rev. ivtv0: Encoder revision: 0x02050032 ivtv0 info: v4l2 streams setup ivtv0 info: Configuring YUAN PG600/DIAMOND PVR-550 (CX FALCON2) card with 4 streams ivtv0 info: Registered v4l2 device for encoder MPEG minor 0 ivtv0: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total) ivtv0 info: Registered v4l2 device for encoder YUV minor 32 ivtv0: Allocate DMA encoder YUV stream: 194 x 10800 buffers (2048KB total) ivtv0 info: Registered v4l2 device for encoder VBI minor 224 ivtv0: Allocate DMA encoder VBI stream: 120 x 17472 buffers (2048KB total) ivtv0 info: Registered v4l2 device for encoder PCM audio minor 24 ivtv0: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB total) ivtv0 info: Starting Threads tuner: type set to 57 (Philips FQ1236A MK4) by ivtv i2c driver #0 ivtv0 info: ivtv_enc_thread: pid = 5121, itv = 0xdb3e0000 ivtv0 info: encoder thread sleeping 5121 ivtv0 info: ivtv_enc_vbi_thread: pid = 5122, itv = 0xdb3e0000 ivtv0 info: encoder thread sleeping 5122 ivtv0 info: Setting audio to input 0 ivtv0 info: Switching standard to NTSC. ivtv0 info: Disabling digitizer ivtv0 info: v4l2 ioctl: set frequency 1076 ivtv0 info: Enabling digitizer ivtv0 info: Finished with Mute ivtv0: Initialized YUAN PG600/DIAMOND PVR-550 (CX FALCON2), card #0 ivtv: ==================== END INIT IVTV ==================== ############################################################################ and the card starts to work fine. ############################################################################
Module Size Used by isofs 37944 0 zlib_inflate 18944 1 isofs subfs 8320 1 speedstep_lib 4484 0 freq_table 4740 0 battery 10500 0 edd 10976 0 usbhid 36832 0 tda9887 16528 0 ide_cd 43652 0 cdrom 41120 1 ide_cd cx25840 29712 0 tuner 24736 0 ivtv 223636 0 i2c_algo_bit 9864 1 ivtv videodev 9728 1 ivtv i2c_i801 9100 0 i2c_core 21776 6 tda9887,cx25840,tuner,ivtv,i2c_algo_bit,i2c_i801 uhci_hcd 34448 0 usbcore 124032 3 usbhid,uhci_hcd intel_agp 24348 1 parport_pc 41924 0 lp 12228 0 parport 38728 2 parport_pc,lp fglrx 452416 7 agpgart 35784 2 intel_agp,fglrx fan 5124 0 thermal 14856 0 processor 24892 1 thermal piix 10628 0 [permanent]
_______________________________________________ ivtv-devel mailing list [email protected] http://ivtvdriver.org/mailman/listinfo/ivtv-devel
