Skip to contentSkip to conversation

tw68-v2/tw68-i2c.c:145: error: unknown field ‘client_register’ specified in initializer

DISCUSSION Roman Gaufman 2 participants 10 messages Nov 10, 2009 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

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?

#1 lore raw

Hi,

Quoted 23 lines · Roman Gaufman

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

Quoted 1 line

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

#2 lore raw

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 <[email protected]>:

Quoted 38 lines

Hi,

Quoted 23 lines · Roman Gaufman

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

Quoted 1 line

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

#3 lore raw

Hi

Quoted 17 lines · Roman Gaufman

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
Quoted 8 lines
 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

#4 lore raw

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 0000:03:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[   94.913750] tw6804[0]: found at 0000:03:00.0, rev: 16, irq: 16,
latency: 32, mmio: 0xfbdff000
[   94.913755] tw6804[0]: subsystem: ffff:ffff, 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 0000:03:01.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
[   95.020258] tw6804[1]: found at 0000:03:01.0, rev: 16, irq: 17,
latency: 32, mmio: 0xfbdfd000
[   95.020263] tw6804[1]: subsystem: ffff:ffff, 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 0000:03:02.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[   95.130081] tw6804[2]: found at 0000:03:02.0, rev: 16, irq: 18,
latency: 32, mmio: 0xfbdfb000
[   95.130086] tw6804[2]: subsystem: ffff:ffff, 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 0000:03:03.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
[   95.239907] tw6804[3]: found at 0000:03:03.0, rev: 16, irq: 19,
latency: 32, mmio: 0xfbdf9000
[   95.239912] tw6804[3]: subsystem: ffff:ffff, 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 0000:03:04.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[   95.349738] tw6804[4]: found at 0000:03:04.0, rev: 16, irq: 16,
latency: 32, mmio: 0xfbdf7000
[   95.349743] tw6804[4]: subsystem: ffff:ffff, 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 0000:03:05.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
[   95.459583] tw6804[5]: found at 0000:03:05.0, rev: 16, irq: 17,
latency: 32, mmio: 0xfbdf5000
[   95.459588] tw6804[5]: subsystem: ffff:ffff, 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 0000:03:06.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[   95.569422] tw6804[6]: found at 0000: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 0000:03:07.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
[   95.679268] tw6804[7]: found at 0000:03:07.0, rev: 16, irq: 19,
latency: 32, mmio: 0xfbdf1000
[   95.679273] tw6804[7]: subsystem: ffff:ffff, 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 <[email protected]>:

Quoted 40 lines

Hi

Quoted 17 lines · Roman Gaufman

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
Quoted 8 lines
 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

#5 lore raw

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 <[email protected]>:

Quoted 125 lines

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 0000:03:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 [   94.913750] tw6804[0]: found at 0000:03:00.0, rev: 16, irq: 16,
latency: 32, mmio: 0xfbdff000
[   94.913755] tw6804[0]: subsystem: ffff:ffff, 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 0000:03:01.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17 [   95.020258] tw6804[1]: found at 0000:03:01.0, rev: 16, irq: 17,
latency: 32, mmio: 0xfbdfd000
[   95.020263] tw6804[1]: subsystem: ffff:ffff, 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 0000:03:02.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18 [   95.130081] tw6804[2]: found at 0000:03:02.0, rev: 16, irq: 18,
latency: 32, mmio: 0xfbdfb000
[   95.130086] tw6804[2]: subsystem: ffff:ffff, 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 0000:03:03.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19 [   95.239907] tw6804[3]: found at 0000:03:03.0, rev: 16, irq: 19,
latency: 32, mmio: 0xfbdf9000
[   95.239912] tw6804[3]: subsystem: ffff:ffff, 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 0000:03:04.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 [   95.349738] tw6804[4]: found at 0000:03:04.0, rev: 16, irq: 16,
latency: 32, mmio: 0xfbdf7000
[   95.349743] tw6804[4]: subsystem: ffff:ffff, 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 0000:03:05.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17 [   95.459583] tw6804[5]: found at 0000:03:05.0, rev: 16, irq: 17,
latency: 32, mmio: 0xfbdf5000
[   95.459588] tw6804[5]: subsystem: ffff:ffff, 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 0000:03:06.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18 [   95.569422] tw6804[6]: found at 0000: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 0000:03:07.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19 [   95.679268] tw6804[7]: found at 0000:03:07.0, rev: 16, irq: 19,
latency: 32, mmio: 0xfbdf1000
[   95.679273] tw6804[7]: subsystem: ffff:ffff, 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 <[email protected]>:

Quoted 40 lines

Hi

Quoted 17 lines · Roman Gaufman

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
Quoted 8 lines
 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

#6 lore raw

Re: tw68-v2/tw68-i2c.c:145: error: unknown field ???client_register??? specified in initializer

Quoted 2 lines · Roman Gaufman

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.

Quoted 2 lines

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

#7 lore raw

Re: tw68-v2/tw68-i2c.c:145: error: unknown field ???client_register??? specified in initializer

2009/11/10 Domenico Andreoli <[email protected]>:

Quoted 5 lines · Roman Gaufman
Quoted 2 lines

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.

Quoted 4 lines

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:          0        218          0          0   IO-APIC-fasteoi   HDA Intel
 23:          0          0          0        108   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:        124        139        137         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:          0        218          0          0   IO-APIC-fasteoi   HDA Intel
 23:          0          0          0        103   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 counter
interrupts
PND:          0          0          0          0   Performance pending work
RES:          8          7          6          7   Rescheduling interrupts
CAL:        118        130        129         46   Function call interrupts
TLB:        970        879        706        739   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:          2          2          2          2   Machine check polls
ERR:          0
MIS:          0
Quoted 7 lines
Quoted 3 lines

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.

Heh, fair enough - thank you for working on this!

Roman

Quoted 7 lines

Domenico

-----[ Domenico Andreoli, aka cavok
 --[ http://www.dandreoli.com/gpgkey.asc
  ---[ 3A0F 2F80 F79C 678A 8936  4FEE 0677 9033 A20E BC50

#8 lore raw

Re: tw68-v2/tw68-i2c.c:145: error: unknown field ???client_register??? specified in initializer

Quoted 8 lines · Roman Gaufman

2009/11/10 Domenico Andreoli <[email protected]>:

Quoted 5 lines · Roman Gaufman
Quoted 2 lines

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

Quoted 70 lines
Quoted 3 lines

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:          0        218          0          0   IO-APIC-fasteoi   HDA Intel
 23:          0          0          0        108   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:        124        139        137         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:          0        218          0          0   IO-APIC-fasteoi   HDA Intel
 23:          0          0          0        103   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 counter interrupts
PND:          0          0          0          0   Performance pending work
RES:          8          7          6          7   Rescheduling interrupts
Quoted 8 lines
CAL:        118        130        129         46   Function call interrupts
TLB:        970        879        706        739   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:          2          2          2          2   Machine check polls
ERR:          0
MIS:          0

they are identical. where is the graphic controller here? i expected to see it sharing an irq with some tw68 device, at least before the swap.

i forgot to say that simply removing the IRQF_DISABLED flag makes the warning go away but may introduce some error with shared irq handling.

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

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.

Heh, fair enough - thank you for working on this!

actually i did not write a line of code of this driver, it's all by William Brack. i only have a different implementation never published.

regards,
Domenico

-----[ Domenico Andreoli, aka cavok
--[ http://www.dandreoli.com/gpgkey.asc
---[ 3A0F 2F80 F79C 678A 8936 4FEE 0677 9033 A20E BC50

#9 lore raw

Re: tw68-v2/tw68-i2c.c:145: error: unknown field ???client_register??? specified in initializer

In reply to Roman Gaufman
Quoted 2 lines · Roman Gaufman

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?

tw68-core.c +1 -2
@@ -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