Re: tw68-v2/tw68-i2c.c:145: error: unknown field ‘ client_register’ specified in initializer
Hi, On Tue, Nov 10, 2009 at 1:19 PM, Roman Gaufman wrote: > Hey, I'm trying to compile tw68 and I'm getting the following: > > make -C /lib/modules/2.6.31-14-generic/build M=/root/tw68-v2 modules > make[1]: Entering directory `/usr/src/linux-headers-2.6.31-14-generic' > CC [M] /root/tw68-v2/tw68-core.o > CC [M] /root/tw68-v2/tw68-cards.o > CC [M] /root/tw68-v2/tw68-i2c.o > /root/tw68-v2/tw68-i2c.c:145: error: unknown field ‘client_register’ > specified in initializer > /root/tw68-v2/tw68-i2c.c:145: warning: missing braces around initializer > /root/tw68-v2/tw68-i2c.c:145: warning: (near initialization for > ‘tw68_adap_sw_template.dev_released’) > /root/tw68-v2/tw68-i2c.c:145: warning: initialization makes integer > from pointer without a cast > /root/tw68-v2/tw68-i2c.c:145: error: initializer element is not > computable at load time > /root/tw68-v2/tw68-i2c.c:145: error: (near initialization for > ‘tw68_adap_sw_template.dev_released.done’) > make[2]: *** [/root/tw68-v2/tw68-i2c.o] Error 1 > make[1]: *** [_module_/root/tw68-v2] Error 2 > make[1]: Leaving directory `/usr/src/linux-headers-2.6.31-14-generic' > make: *** [all] Error 2 > > Any ideas? yes, the i2c part got outdated by some kernel change. anyway it is still not used so you can safely remove tw68-i2c.c from Makefile. regards, Domenico -[ Domenico Andreoli, aka cavok --[ http://www.dandreoli.com/gpgkey.asc ---[ 3A0F 2F80 F79C 678A 8936 4FEE 0677 9033 A20E BC50 -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: tw68-v2/tw68-i2c.c:145: error: unknown field ‘ client_register’ specified in initializer
Thanks, managed to compile but getting -1 Unknown symbol in module now - any ideas? # make make -C /lib/modules/2.6.31-14-generic/build M=/root/tw68-v2 modules make[1]: Entering directory `/usr/src/linux-headers-2.6.31-14-generic' CC [M] /root/tw68-v2/tw68-core.o CC [M] /root/tw68-v2/tw68-cards.o CC [M] /root/tw68-v2/tw68-video.o CC [M] /root/tw68-v2/tw68-controls.o CC [M] /root/tw68-v2/tw68-fileops.o CC [M] /root/tw68-v2/tw68-ioctls.o CC [M] /root/tw68-v2/tw68-vbi.o CC [M] /root/tw68-v2/tw68-ts.o CC [M] /root/tw68-v2/tw68-risc.o CC [M] /root/tw68-v2/tw68-input.o CC [M] /root/tw68-v2/tw68-tvaudio.o LD [M] /root/tw68-v2/tw68.o Building modules, stage 2. MODPOST 1 modules CC /root/tw68-v2/tw68.mod.o LD [M] /root/tw68-v2/tw68.ko make[1]: Leaving directory `/usr/src/linux-headers-2.6.31-14-generic' # insmod tw68.ko insmod: error inserting 'tw68.ko': -1 Unknown symbol in module # uname -a Linux xanview-dev 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:05:01 UTC 2009 x86_64 GNU/Linux 2009/11/10 Domenico Andreoli : > Hi, > > On Tue, Nov 10, 2009 at 1:19 PM, Roman Gaufman wrote: >> Hey, I'm trying to compile tw68 and I'm getting the following: >> >> make -C /lib/modules/2.6.31-14-generic/build M=/root/tw68-v2 modules >> make[1]: Entering directory `/usr/src/linux-headers-2.6.31-14-generic' >> CC [M] /root/tw68-v2/tw68-core.o >> CC [M] /root/tw68-v2/tw68-cards.o >> CC [M] /root/tw68-v2/tw68-i2c.o >> /root/tw68-v2/tw68-i2c.c:145: error: unknown field ‘client_register’ >> specified in initializer >> /root/tw68-v2/tw68-i2c.c:145: warning: missing braces around initializer >> /root/tw68-v2/tw68-i2c.c:145: warning: (near initialization for >> ‘tw68_adap_sw_template.dev_released’) >> /root/tw68-v2/tw68-i2c.c:145: warning: initialization makes integer >> from pointer without a cast >> /root/tw68-v2/tw68-i2c.c:145: error: initializer element is not >> computable at load time >> /root/tw68-v2/tw68-i2c.c:145: error: (near initialization for >> ‘tw68_adap_sw_template.dev_released.done’) >> make[2]: *** [/root/tw68-v2/tw68-i2c.o] Error 1 >> make[1]: *** [_module_/root/tw68-v2] Error 2 >> make[1]: Leaving directory `/usr/src/linux-headers-2.6.31-14-generic' >> make: *** [all] Error 2 >> >> Any ideas? > > yes, the i2c part got outdated by some kernel change. anyway it is still > not used so you can safely remove tw68-i2c.c from Makefile. > > regards, > Domenico > > -[ Domenico Andreoli, aka cavok > --[ http://www.dandreoli.com/gpgkey.asc > ---[ 3A0F 2F80 F79C 678A 8936 4FEE 0677 9033 A20E BC50 > -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: tw68-v2/tw68-i2c.c:145: error: unknown field ‘ client_register’ specified in initializer
Hi On Tue, Nov 10, 2009 at 1:40 PM, Roman Gaufman wrote: > Thanks, managed to compile but getting -1 Unknown symbol in module now > - any ideas? > > # make > make -C /lib/modules/2.6.31-14-generic/build M=/root/tw68-v2 modules > make[1]: Entering directory `/usr/src/linux-headers-2.6.31-14-generic' > CC [M] /root/tw68-v2/tw68-core.o > CC [M] /root/tw68-v2/tw68-cards.o > CC [M] /root/tw68-v2/tw68-video.o > CC [M] /root/tw68-v2/tw68-controls.o > CC [M] /root/tw68-v2/tw68-fileops.o > CC [M] /root/tw68-v2/tw68-ioctls.o > CC [M] /root/tw68-v2/tw68-vbi.o > CC [M] /root/tw68-v2/tw68-ts.o > CC [M] /root/tw68-v2/tw68-risc.o > CC [M] /root/tw68-v2/tw68-input.o > CC [M] /root/tw68-v2/tw68-tvaudio.o > LD [M] /root/tw68-v2/tw68.o > Building modules, stage 2. > MODPOST 1 modules > CC /root/tw68-v2/tw68.mod.o > LD [M] /root/tw68-v2/tw68.ko > make[1]: Leaving directory `/usr/src/linux-headers-2.6.31-14-generic' > # insmod tw68.ko > insmod: error inserting 'tw68.ko': -1 Unknown symbol in module dmesg would show which symbol is missing. the quick hack i suggest is to load the bttv driver with "modprobe bttv", which brings in all the usual v4l2 modules, unload it and the reload the tw68.ko ciao, Domenico -[ Domenico Andreoli, aka cavok --[ http://www.dandreoli.com/gpgkey.asc ---[ 3A0F 2F80 F79C 678A 8936 4FEE 0677 9033 A20E BC50 -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: tw68-v2/tw68-i2c.c:145: error: unknown field ‘ client_register’ specified in initializer
Thank you, managed to modprobe the module. However now when I try to open the device with mplayer, the system just freezes. No error messages, just freezes and I have to hold the power button for 5 seconds. Any ideas? This is what I get in dmesg when I insmod tw68.ko: [ 94.913695] tw68: v4l2 driver version 0.0.1 loaded [ 94.913744] tw68 :03:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 [ 94.913750] tw6804[0]: found at :03:00.0, rev: 16, irq: 16, latency: 32, mmio: 0xfbdff000 [ 94.913755] tw6804[0]: subsystem: :, board: GENERIC [card=0,autodetected] [ 94.913774] tw6804[0]: Unable to determine board type, using generic values [ 95.020034] IRQ 16/tw6804[0]: IRQF_DISABLED is not guaranteed on shared IRQs [ 95.020074] tw6804[0]: registered device video1 [v4l2] [ 95.020084] tw6804[0]: registered device vbi0 [ 95.020253] tw68 :03:01.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17 [ 95.020258] tw6804[1]: found at :03:01.0, rev: 16, irq: 17, latency: 32, mmio: 0xfbdfd000 [ 95.020263] tw6804[1]: subsystem: :, board: GENERIC [card=0,autodetected] [ 95.020610] tw6804[1]: Unable to determine board type, using generic values [ 95.129871] IRQ 17/tw6804[1]: IRQF_DISABLED is not guaranteed on shared IRQs [ 95.129899] tw6804[1]: registered device video2 [v4l2] [ 95.129910] tw6804[1]: registered device vbi1 [ 95.130075] tw68 :03:02.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18 [ 95.130081] tw6804[2]: found at :03:02.0, rev: 16, irq: 18, latency: 32, mmio: 0xfbdfb000 [ 95.130086] tw6804[2]: subsystem: :, board: GENERIC [card=0,autodetected] [ 95.130093] tw6804[2]: Unable to determine board type, using generic values [ 95.239712] IRQ 18/tw6804[2]: IRQF_DISABLED is not guaranteed on shared IRQs [ 95.239740] tw6804[2]: registered device video3 [v4l2] [ 95.239752] tw6804[2]: registered device vbi2 [ 95.239901] tw68 :03:03.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19 [ 95.239907] tw6804[3]: found at :03:03.0, rev: 16, irq: 19, latency: 32, mmio: 0xfbdf9000 [ 95.239912] tw6804[3]: subsystem: :, board: GENERIC [card=0,autodetected] [ 95.239919] tw6804[3]: Unable to determine board type, using generic values [ 95.349553] IRQ 19/tw6804[3]: IRQF_DISABLED is not guaranteed on shared IRQs [ 95.349581] tw6804[3]: registered device video4 [v4l2] [ 95.349592] tw6804[3]: registered device vbi3 [ 95.349733] tw68 :03:04.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 [ 95.349738] tw6804[4]: found at :03:04.0, rev: 16, irq: 16, latency: 32, mmio: 0xfbdf7000 [ 95.349743] tw6804[4]: subsystem: :, board: GENERIC [card=0,autodetected] [ 95.349751] tw6804[4]: Unable to determine board type, using generic values [ 95.459394] IRQ 16/tw6804[4]: IRQF_DISABLED is not guaranteed on shared IRQs [ 95.459423] tw6804[4]: registered device video5 [v4l2] [ 95.459435] tw6804[4]: registered device vbi4 [ 95.459578] tw68 :03:05.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17 [ 95.459583] tw6804[5]: found at :03:05.0, rev: 16, irq: 17, latency: 32, mmio: 0xfbdf5000 [ 95.459588] tw6804[5]: subsystem: :, board: GENERIC [card=0,autodetected] [ 95.459595] tw6804[5]: Unable to determine board type, using generic values [ 95.569236] IRQ 17/tw6804[5]: IRQF_DISABLED is not guaranteed on shared IRQs [ 95.569263] tw6804[5]: registered device video6 [v4l2] [ 95.569274] tw6804[5]: registered device vbi5 [ 95.569417] tw68 :03:06.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18 [ 95.569422] tw6804[6]: found at :03:06.0, rev: 16, irq: 18, latency: 32, mmio: 0xfbdf3000 [ 95.569427] tw6804[6]: subsystem: 1797:6804, board: GENERIC [card=0,autodetected] [ 95.569434] tw6804[6]: Unable to determine board type, using generic values [ 95.679077] IRQ 18/tw6804[6]: IRQF_DISABLED is not guaranteed on shared IRQs [ 95.679105] tw6804[6]: registered device video7 [v4l2] [ 95.679117] tw6804[6]: registered device vbi6 [ 95.679263] tw68 :03:07.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19 [ 95.679268] tw6804[7]: found at :03:07.0, rev: 16, irq: 19, latency: 32, mmio: 0xfbdf1000 [ 95.679273] tw6804[7]: subsystem: :, board: GENERIC [card=0,autodetected] [ 95.679280] tw6804[7]: Unable to determine board type, using generic values [ 95.788918] IRQ 19/tw6804[7]: IRQF_DISABLED is not guaranteed on shared IRQs [ 95.788946] tw6804[7]: registered device video8 [v4l2] [ 95.788957] tw6804[7]: registered device vbi7 2009/11/10 Domenico Andreoli : > Hi > > On Tue, Nov 10, 2009 at 1:40 PM, Roman Gaufman wrote: >> Thanks, managed to compile but getting -1 Unknown symbol in module now >> - any ideas? >> >> # make >> make -C /lib/modules/2.6.31-14-generic/build M=/root/tw68-v2 modules >> make[1]: Entering directory `/usr/src/linux-headers-2.6.31-14-generic' >> CC [M] /root/tw68-v2/tw68-core.o >> CC [M] /root/tw68-v2/tw68-cards.o >> CC [M] /root/tw68-v2/tw68-video.o >> CC [M]
Re: tw68-v2/tw68-i2c.c:145: error: unknown field ‘ client_register’ specified in initializer
I swapped my graphics card and techwell DVR card places and now it works, thanks you!!! Only 1 question, the readme says there is no audio yet - any ideas when/if audio will be available? :) Thanks again! Roman 2009/11/10 Roman Gaufman : > Thank you, managed to modprobe the module. > > However now when I try to open the device with mplayer, the system > just freezes. No error messages, just freezes and I have to hold the > power button for 5 seconds. Any ideas? > > This is what I get in dmesg when I insmod tw68.ko: > > [ 94.913695] tw68: v4l2 driver version 0.0.1 loaded > [ 94.913744] tw68 :03:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 > [ 94.913750] tw6804[0]: found at :03:00.0, rev: 16, irq: 16, > latency: 32, mmio: 0xfbdff000 > [ 94.913755] tw6804[0]: subsystem: :, board: GENERIC > [card=0,autodetected] > [ 94.913774] tw6804[0]: Unable to determine board type, using generic values > [ 95.020034] IRQ 16/tw6804[0]: IRQF_DISABLED is not guaranteed on shared > IRQs > [ 95.020074] tw6804[0]: registered device video1 [v4l2] > [ 95.020084] tw6804[0]: registered device vbi0 > [ 95.020253] tw68 :03:01.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17 > [ 95.020258] tw6804[1]: found at :03:01.0, rev: 16, irq: 17, > latency: 32, mmio: 0xfbdfd000 > [ 95.020263] tw6804[1]: subsystem: :, board: GENERIC > [card=0,autodetected] > [ 95.020610] tw6804[1]: Unable to determine board type, using generic values > [ 95.129871] IRQ 17/tw6804[1]: IRQF_DISABLED is not guaranteed on shared > IRQs > [ 95.129899] tw6804[1]: registered device video2 [v4l2] > [ 95.129910] tw6804[1]: registered device vbi1 > [ 95.130075] tw68 :03:02.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18 > [ 95.130081] tw6804[2]: found at :03:02.0, rev: 16, irq: 18, > latency: 32, mmio: 0xfbdfb000 > [ 95.130086] tw6804[2]: subsystem: :, board: GENERIC > [card=0,autodetected] > [ 95.130093] tw6804[2]: Unable to determine board type, using generic values > [ 95.239712] IRQ 18/tw6804[2]: IRQF_DISABLED is not guaranteed on shared > IRQs > [ 95.239740] tw6804[2]: registered device video3 [v4l2] > [ 95.239752] tw6804[2]: registered device vbi2 > [ 95.239901] tw68 :03:03.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19 > [ 95.239907] tw6804[3]: found at :03:03.0, rev: 16, irq: 19, > latency: 32, mmio: 0xfbdf9000 > [ 95.239912] tw6804[3]: subsystem: :, board: GENERIC > [card=0,autodetected] > [ 95.239919] tw6804[3]: Unable to determine board type, using generic values > [ 95.349553] IRQ 19/tw6804[3]: IRQF_DISABLED is not guaranteed on shared > IRQs > [ 95.349581] tw6804[3]: registered device video4 [v4l2] > [ 95.349592] tw6804[3]: registered device vbi3 > [ 95.349733] tw68 :03:04.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 > [ 95.349738] tw6804[4]: found at :03:04.0, rev: 16, irq: 16, > latency: 32, mmio: 0xfbdf7000 > [ 95.349743] tw6804[4]: subsystem: :, board: GENERIC > [card=0,autodetected] > [ 95.349751] tw6804[4]: Unable to determine board type, using generic values > [ 95.459394] IRQ 16/tw6804[4]: IRQF_DISABLED is not guaranteed on shared > IRQs > [ 95.459423] tw6804[4]: registered device video5 [v4l2] > [ 95.459435] tw6804[4]: registered device vbi4 > [ 95.459578] tw68 :03:05.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17 > [ 95.459583] tw6804[5]: found at :03:05.0, rev: 16, irq: 17, > latency: 32, mmio: 0xfbdf5000 > [ 95.459588] tw6804[5]: subsystem: :, board: GENERIC > [card=0,autodetected] > [ 95.459595] tw6804[5]: Unable to determine board type, using generic values > [ 95.569236] IRQ 17/tw6804[5]: IRQF_DISABLED is not guaranteed on shared > IRQs > [ 95.569263] tw6804[5]: registered device video6 [v4l2] > [ 95.569274] tw6804[5]: registered device vbi5 > [ 95.569417] tw68 :03:06.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18 > [ 95.569422] tw6804[6]: found at :03:06.0, rev: 16, irq: 18, > latency: 32, mmio: 0xfbdf3000 > [ 95.569427] tw6804[6]: subsystem: 1797:6804, board: GENERIC > [card=0,autodetected] > [ 95.569434] tw6804[6]: Unable to determine board type, using generic values > [ 95.679077] IRQ 18/tw6804[6]: IRQF_DISABLED is not guaranteed on shared > IRQs > [ 95.679105] tw6804[6]: registered device video7 [v4l2] > [ 95.679117] tw6804[6]: registered device vbi6 > [ 95.679263] tw68 :03:07.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19 > [ 95.679268] tw6804[7]: found at :03:07.0, rev: 16, irq: 19, > latency: 32, mmio: 0xfbdf1000 > [ 95.679273] tw6804[7]: subsystem: :, board: GENERIC > [card=0,autodetected] > [ 95.679280] tw6804[7]: Unable to determine board type, using generic values > [ 95.788918] IRQ 19/tw6804[7]: IRQF_DISABLED is not guaranteed on shared > IRQs > [ 95.788946] tw6804[7]: registered device video8 [v4l2] > [ 95.788957] tw6804[7]: registered device vbi7 > > > 2009/11/10 Domenico Andreoli : >> Hi >> >>
Re: tw68-v2/tw68-i2c.c:145: error: unknown field ???client_register??? specified in initializer
On Tue, Nov 10, 2009 at 01:48:43PM +, Roman Gaufman wrote: > I swapped my graphics card and techwell DVR card places and now it > works, thanks you!!! have you a PCI-E techwell board? i'm taking the driver out of the freezer trying to get rid of the IRQF_DISABLED warning flag. i'm interested in seeing your /proc/interrupts, if possible, before and after the boards swap. > Only 1 question, the readme says there is no audio yet - any ideas > when/if audio will be available? :) bad news here, i can't promise anything. anyway i'd like to push this driver to kernel staging and audio support is required for this step. so it is one of my topmost TODO entries. Domenico -[ Domenico Andreoli, aka cavok --[ http://www.dandreoli.com/gpgkey.asc ---[ 3A0F 2F80 F79C 678A 8936 4FEE 0677 9033 A20E BC50 -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: tw68-v2/tw68-i2c.c:145: error: unknown field ???client_register??? specified in initializer
On Tue, Nov 10, 2009 at 01:48:43PM +, Roman Gaufman wrote: > I swapped my graphics card and techwell DVR card places and now it > works, thanks you!!! could you please try the following patch swapping the boards back to the original order? --- a/tw68-core.c +++ b/tw68-core.c @@ -695,8 +695,7 @@ static int __devinit tw68_initdev(struct pci_dev *pci_dev, tw68_hw_init1(dev); /* get irq */ - err = request_irq(pci_dev->irq, tw68_irq, - IRQF_SHARED | IRQF_DISABLED, dev->name, dev); + err = request_irq(pci_dev->irq, tw68_irq, IRQF_SHARED, dev->name, dev); if (err < 0) { printk(KERN_ERR "%s: can't get IRQ %d\n", dev->name, pci_dev->irq); -[ Domenico Andreoli, aka cavok --[ http://www.dandreoli.com/gpgkey.asc ---[ 3A0F 2F80 F79C 678A 8936 4FEE 0677 9033 A20E BC50 -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: tw68-v2/tw68-i2c.c:145: error: unknown field ???client_register??? specified in initializer
2009/11/10 Domenico Andreoli : > On Tue, Nov 10, 2009 at 01:48:43PM +, Roman Gaufman wrote: >> I swapped my graphics card and techwell DVR card places and now it >> works, thanks you!!! > > have you a PCI-E techwell board? Yep, it's PCI-E 8 audio/video dvr card. > > i'm taking the driver out of the freezer trying to get rid of > the IRQF_DISABLED warning flag. i'm interested in seeing your > /proc/interrupts, if possible, before and after the boards swap. Both with the patch: After the swap (working): CPU0 CPU1 CPU2 CPU3 0: 22 0 0 40 IO-APIC-edge timer 1: 0 0 0 2 IO-APIC-edge i8042 4: 0 0 0 2 IO-APIC-edge 8: 0 0 0 1 IO-APIC-edge rtc0 9: 0 0 0 0 IO-APIC-fasteoi acpi 16: 0 0 0 543773 IO-APIC-fasteoi ahci, uhci_hcd:usb3, uhci_hcd:usb9, tw6804[0], tw6804[4] 17: 0 0 0 40297 IO-APIC-fasteoi pata_jmicron, ohci1394, tw6804[1], tw6804[5] 18: 0 0 0 24680 IO-APIC-fasteoi ehci_hcd:usb1, uhci_hcd:usb5, uhci_hcd:usb8, tw6804[2], tw6804[6] 19: 0 0 40184 0 IO-APIC-fasteoi uhci_hcd:usb7, tw6804[3], tw6804[7] 21: 0 0 0 0 IO-APIC-fasteoi uhci_hcd:usb4 22: 0218 0 0 IO-APIC-fasteoi HDA Intel 23: 0 0 0108 IO-APIC-fasteoi ehci_hcd:usb2, uhci_hcd:usb6 24: 934040 0 0 0 HPET_MSI-edge hpet2 25: 0 390326 0 0 HPET_MSI-edge hpet3 26: 0 0 590635 0 HPET_MSI-edge hpet4 27: 0 0 0 845999 HPET_MSI-edge hpet5 33: 0 0 0 0 PCI-MSI-edge ahci 34: 812442 0 0 0 PCI-MSI-edge eth1 NMI: 0 0 0 0 Non-maskable interrupts LOC: 54 38 23 8 Local timer interrupts SPU: 0 0 0 0 Spurious interrupts CNT: 0 0 0 0 Performance counter interrupts PND: 0 0 0 0 Performance pending work RES: 4027 5400 6102 6462 Rescheduling interrupts CAL:124139137 44 Function call interrupts TLB: 27517 22022 23155 17498 TLB shootdowns TRM: 0 0 0 0 Thermal event interrupts THR: 0 0 0 0 Threshold APIC interrupts MCE: 0 0 0 0 Machine check exceptions MCP: 41 41 41 41 Machine check polls ERR: 0 MIS: 0 Before swap (system freezes as soon as I try to open video device): # cat /proc/interrupts CPU0 CPU1 CPU2 CPU3 0: 22 0 0 1 IO-APIC-edge timer 1: 0 0 0 2 IO-APIC-edge i8042 4: 0 0 0 2 IO-APIC-edge 8: 0 0 0 1 IO-APIC-edge rtc0 9: 0 0 0 0 IO-APIC-fasteoi acpi 16: 0 0 0 9090 IO-APIC-fasteoi ahci, uhci_hcd:usb3, uhci_hcd:usb9, tw6804[0], tw6804[4] 17: 0 0 0 3 IO-APIC-fasteoi pata_jmicron, ohci1394, tw6804[1], tw6804[5] 18: 0 0 0 0 IO-APIC-fasteoi ehci_hcd:usb1, uhci_hcd:usb5, uhci_hcd:usb8, tw6804[2], tw6804[6] 19: 0 0 0 0 IO-APIC-fasteoi uhci_hcd:usb7, tw6804[3], tw6804[7] 21: 0 0 0 0 IO-APIC-fasteoi uhci_hcd:usb4 22: 0218 0 0 IO-APIC-fasteoi HDA Intel 23: 0 0 0103 IO-APIC-fasteoi ehci_hcd:usb2, uhci_hcd:usb6 24: 3102 0 0 0 HPET_MSI-edge hpet2 25: 0 2403 0 0 HPET_MSI-edge hpet3 26: 0 0 1899 0 HPET_MSI-edge hpet4 27: 0 0 0 2835 HPET_MSI-edge hpet5 33: 0 0 0 0 PCI-MSI-edge ahci 34:816 0 0 0 PCI-MSI-edge eth1 NMI: 0 0 0 0 Non-maskable interrupts LOC: 54 38 23 8 Local timer interrupts SPU: 0 0 0 0 Spurious interrupts CNT: 0 0 0 0 Performance counte
Re: tw68-v2/tw68-i2c.c:145: error: unknown field ???client_register??? specified in initializer
On Tue, Nov 10, 2009 at 04:51:47PM +, Roman Gaufman wrote: > 2009/11/10 Domenico Andreoli : > > On Tue, Nov 10, 2009 at 01:48:43PM +, Roman Gaufman wrote: > >> I swapped my graphics card and techwell DVR card places and now it > >> works, thanks you!!! > > > > have you a PCI-E techwell board? > > Yep, it's PCI-E 8 audio/video dvr card. there are a lot of cheap boards based on these chips on ebay > > i'm taking the driver out of the freezer trying to get rid of > > the IRQF_DISABLED warning flag. i'm interested in seeing your > > /proc/interrupts, if possible, before and after the boards swap. > > Both with the patch: > > After the swap (working): > >CPU0 CPU1 CPU2 CPU3 > 0: 22 0 0 40 IO-APIC-edge timer > 1: 0 0 0 2 IO-APIC-edge i8042 > 4: 0 0 0 2 IO-APIC-edge > 8: 0 0 0 1 IO-APIC-edge rtc0 > 9: 0 0 0 0 IO-APIC-fasteoi acpi > 16: 0 0 0 543773 IO-APIC-fasteoi ahci, > uhci_hcd:usb3, uhci_hcd:usb9, tw6804[0], tw6804[4] > 17: 0 0 0 40297 IO-APIC-fasteoi > pata_jmicron, ohci1394, tw6804[1], tw6804[5] > 18: 0 0 0 24680 IO-APIC-fasteoi > ehci_hcd:usb1, uhci_hcd:usb5, uhci_hcd:usb8, tw6804[2], tw6804[6] > 19: 0 0 40184 0 IO-APIC-fasteoi > uhci_hcd:usb7, tw6804[3], tw6804[7] > 21: 0 0 0 0 IO-APIC-fasteoi > uhci_hcd:usb4 > 22: 0218 0 0 IO-APIC-fasteoi HDA Intel > 23: 0 0 0108 IO-APIC-fasteoi > ehci_hcd:usb2, uhci_hcd:usb6 > 24: 934040 0 0 0 HPET_MSI-edge hpet2 > 25: 0 390326 0 0 HPET_MSI-edge hpet3 > 26: 0 0 590635 0 HPET_MSI-edge hpet4 > 27: 0 0 0 845999 HPET_MSI-edge hpet5 > 33: 0 0 0 0 PCI-MSI-edge ahci > 34: 812442 0 0 0 PCI-MSI-edge eth1 > NMI: 0 0 0 0 Non-maskable interrupts > LOC: 54 38 23 8 Local timer interrupts > SPU: 0 0 0 0 Spurious interrupts > CNT: 0 0 0 0 Performance counter > interrupts > PND: 0 0 0 0 Performance pending work > RES: 4027 5400 6102 6462 Rescheduling interrupts > CAL:124139137 44 Function call interrupts > TLB: 27517 22022 23155 17498 TLB shootdowns > TRM: 0 0 0 0 Thermal event interrupts > THR: 0 0 0 0 Threshold APIC interrupts > MCE: 0 0 0 0 Machine check exceptions > MCP: 41 41 41 41 Machine check polls > ERR: 0 > MIS: 0 > > Before swap (system freezes as soon as I try to open video device): > > # cat /proc/interrupts >CPU0 CPU1 CPU2 CPU3 > 0: 22 0 0 1 IO-APIC-edge timer > 1: 0 0 0 2 IO-APIC-edge i8042 > 4: 0 0 0 2 IO-APIC-edge > 8: 0 0 0 1 IO-APIC-edge rtc0 > 9: 0 0 0 0 IO-APIC-fasteoi acpi > 16: 0 0 0 9090 IO-APIC-fasteoi ahci, > uhci_hcd:usb3, uhci_hcd:usb9, tw6804[0], tw6804[4] > 17: 0 0 0 3 IO-APIC-fasteoi > pata_jmicron, ohci1394, tw6804[1], tw6804[5] > 18: 0 0 0 0 IO-APIC-fasteoi > ehci_hcd:usb1, uhci_hcd:usb5, uhci_hcd:usb8, tw6804[2], tw6804[6] > 19: 0 0 0 0 IO-APIC-fasteoi > uhci_hcd:usb7, tw6804[3], tw6804[7] > 21: 0 0 0 0 IO-APIC-fasteoi > uhci_hcd:usb4 > 22: 0218 0 0 IO-APIC-fasteoi HDA Intel > 23: 0 0 0103 IO-APIC-fasteoi > ehci_hcd:usb2, uhci_hcd:usb6 > 24: 3102 0 0 0 HPET_MSI-edge hpet2 > 25: 0 2403 0 0 HPET_MSI-edge hpet3 > 26: 0 0 1899 0 HPET_MSI-edge hpet4 > 27: 0 0 0 2835 HPET_MSI-edge hpet5 > 33: 0 0 0 0 PCI-MSI-edge ahci > 34:816 0