On Tuesday 29 January 2008 03:16:34 Rick Stanback wrote:
> I can't seem to even get the driver to load and see my card. I have
> verified the card works under windows. I keep getting the following
> error.
>
> Any help would be appreciated. I did try the card in a different pci
> slot.
Try my latest cx18 tree at www.linuxtv.org/hg/~hverkuil/cx18. It looks
like you receive interrupts immediately after registering the irq
handler but several pointers weren't setup, causing the handler to
crash. At least, that's what seems to be happening.
Let me know if this fixes it.
Regards,
Hans
>
> Linux video capture interface: v2.00
> cx18: Start initialization, version 0.1.0
> cx18-0: Initializing card #0
> cx18-0: Autodetected Hauppauge card
> ACPI: PCI Interrupt 0000:02:02.0[A] -> GSI 18 (level, low) -> IRQ 19
> cx18-0: Unreasonably low latency timer, setting to 64 (was 32)
> cx18-0: cx23418 revision 01010000 (B)
> BUG: unable to handle kernel NULL pointer dereference at virtual
> address 0000058
> 8
> printing eip:
> f8b48dcd
> *pde = 00000000
> Oops: 0000 [#1]
> PREEMPT SMP
> Modules linked in: cx18 cx2341x tveeprom videodev v4l2_common
> v4l1_compat tun rf
> comm l2cap bluetooth autofs4 vmnet(P) vmmon(P) ipt_REJECT ipt_LOG
> iptable_filter
> iptable_mangle ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4
> ip_tables nf
> _conntrack_ipv6 xt_state nf_conntrack nfnetlink xt_tcpudp
> ip6t_ipv6header ip6t_R
> EJECT ip6table_filter ip6_tables x_tables radeon drm ipv6
> snd_intel8x0 snd_ac97_
> codec ac97_bus snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq
> snd_seq_devi
> ce snd_pcm_oss snd_mixer_oss snd_pcm parport_pc 8139too parport
> snd_timer 8139cp
> snd i2c_algo_bit mii floppy i2c_i801 soundcore iTCO_wdt
> snd_page_alloc i2c_core
> iTCO_vendor_support button sg intel_agp sr_mod cdrom sym53c500_cs
> ata_generic a
> ta_piix libata sd_mod scsi_mod ext3 jbd mbcache uhci_hcd ohci_hcd
> ehci_hcd CPU: 0
> EIP: 0060:[<f8b48dcd>] Tainted: P VLI
> EFLAGS: 00210006 (2.6.23.12 #2)
> EIP is at cx18_irq_handler+0xc9/0x47c [cx18]
> eax: 00000000 ebx: 00000800 ecx: 00040000 edx: 00000000
> esi: 00040000 edi: 00000000 ebp: d49c0000 esp: d4553bec
> ds: 007b es: 007b fs: 00d8 gs: 0033 ss: 0068
> Process modprobe (pid: 3001, ti=d4553000 task=e7d54000
> task.ti=d4553000) Stack: c041c744 0000040f c180cf54 e7d54050 0065b9aa
> 00000000 d4553c28 00040800
> 00000800 00000065 c332e064 00000400 00000000 016527fa 00000000
> 00001bb2
> d4553c54 c041bbb1 e7d54030 c180cf00 00000400 00000000 013870cb
> 00000000
> Call Trace:
> [<c041c744>] enqueue_entity+0x2da/0x304
> [<c041bbb1>] update_stats_wait_end+0xd3/0xfe
> [<c041c1c5>] update_curr+0x13c/0x166
> [<c041bdf9>] update_curr_load+0x6e/0x83
> [<c0404033>] __switch_to+0x23/0x13c
> [<c05e79e6>] __sched_text_start+0x6ee/0x708
> [<c042bcdf>] lock_timer_base+0x19/0x35
> [<c05e92bf>] _spin_unlock_irqrestore+0xf/0x23
> [<c042bd3f>] try_to_del_timer_sync+0x44/0x4a
> [<c042bd4f>] del_timer_sync+0xa/0x14
> [<c05e808f>] schedule_timeout+0x79/0x8d
> [<c044fd34>] request_irq+0x52/0xbe
> [<c05e8081>] schedule_timeout+0x6b/0x8d
> [<f8b48d04>] cx18_irq_handler+0x0/0x47c [cx18]
> [<c044fd75>] request_irq+0x93/0xbe
> [<f8b42c7e>] cx18_probe+0x92b/0xf7b [cx18]
> [<c0480af0>] find_inode+0x1b/0x56
> [<c04a75b3>] sysfs_ilookup_test+0x0/0xd
> [<c0480c0b>] ifind+0x3d/0x8e
> [<c048097d>] iput+0x39/0x62
> [<c04a7ad0>] sysfs_addrm_finish+0x4a/0x1d9
> [<c04a8ac8>] sysfs_create_link+0xf1/0x149
> [<c05e92bf>] _spin_unlock_irqrestore+0xf/0x23
> [<c05e9256>] _spin_unlock+0xd/0x21
> [<c04e8696>] pci_device_probe+0x36/0x57
> [<c0543ebb>] driver_probe_device+0xe1/0x15f
> [<c05431eb>] klist_devices_put+0x0/0x8
> [<c0543fda>] __driver_attach+0x0/0xa1
> [<c0544043>] __driver_attach+0x69/0xa1
> [<c054346a>] bus_for_each_dev+0x37/0x59
> [<c0543d13>] driver_attach+0x16/0x18
> [<c0543fda>] __driver_attach+0x0/0xa1
> [<c054371d>] bus_add_driver+0x6d/0x170
> [<c04e87d1>] __pci_register_driver+0x52/0x7e
> [<f8b42157>] module_start+0x7e/0xa7 [cx18]
> [<c0441ee2>] sys_init_module+0x136a/0x14a1
> [<c044e119>] audit_syscall_exit+0x2aa/0x2c6
> [<c04292f1>] __request_region+0x0/0x7f
> [<c0405006>] syscall_call+0x7/0xb
> [<c05e0000>] unix_stream_sendmsg+0x2b6/0x30c
> =======================
> Code: 1f 8b 45 00 89 7c 24 10 89 74 24 0c 89 5c 24 08 89 44 24 04 c7
> 04 24 9d e7
> b4 f8 e8 24 be 8d c7 85 f6 0f 84 ac 00 00 00 8b 55 30 <8b> 82 88 05
> 00 00 0b 82
> 08 03 00 00 85 c6 74 1c 8d 85 cc 44 00
> EIP: [<f8b48dcd>] cx18_irq_handler+0xc9/0x47c [cx18] SS:ESP
> 0068:d4553bec note: modprobe[3001] exited with preempt_count 1
> BUG: sleeping function called from invalid context at
> kernel/rwsem.c:20 in_atomic():1, irqs_disabled():0
> [<c0437c29>] down_read+0x12/0x21
> [<c0447941>] acct_collect+0x38/0x13f
> [<c0426ed0>] do_exit+0x1ab/0x6c8
> [<c040652c>] die+0x212/0x248
> [<c0419cf5>] do_page_fault+0x4bd/0x58c
> [<c041c1c5>] update_curr+0x13c/0x166
> [<c0419838>] do_page_fault+0x0/0x58c
> [<c05e94b2>] error_code+0x72/0x78
> [<f8b48dcd>] cx18_irq_handler+0xc9/0x47c [cx18]
> [<c041c744>] enqueue_entity+0x2da/0x304
> [<c041bbb1>] update_stats_wait_end+0xd3/0xfe
> [<c041c1c5>] update_curr+0x13c/0x166
> [<c041bdf9>] update_curr_load+0x6e/0x83
> [<c0404033>] __switch_to+0x23/0x13c
> [<c05e79e6>] __sched_text_start+0x6ee/0x708
> [<c042bcdf>] lock_timer_base+0x19/0x35
> [<c05e92bf>] _spin_unlock_irqrestore+0xf/0x23
> [<c042bd3f>] try_to_del_timer_sync+0x44/0x4a
> [<c042bd4f>] del_timer_sync+0xa/0x14
> [<c05e808f>] schedule_timeout+0x79/0x8d
> [<c044fd34>] request_irq+0x52/0xbe
> [<c05e8081>] schedule_timeout+0x6b/0x8d
> [<f8b48d04>] cx18_irq_handler+0x0/0x47c [cx18]
> [<c044fd75>] request_irq+0x93/0xbe
> [<f8b42c7e>] cx18_probe+0x92b/0xf7b [cx18]
> [<c0480af0>] find_inode+0x1b/0x56
> [<c04a75b3>] sysfs_ilookup_test+0x0/0xd
> [<c0480c0b>] ifind+0x3d/0x8e
> [<c048097d>] iput+0x39/0x62
> [<c04a7ad0>] sysfs_addrm_finish+0x4a/0x1d9
> [<c04a8ac8>] sysfs_create_link+0xf1/0x149
> [<c05e92bf>] _spin_unlock_irqrestore+0xf/0x23
> [<c05e9256>] _spin_unlock+0xd/0x21
> [<c04e8696>] pci_device_probe+0x36/0x57
> [<c0543ebb>] driver_probe_device+0xe1/0x15f
> [<c05431eb>] klist_devices_put+0x0/0x8
> [<c0543fda>] __driver_attach+0x0/0xa1
> [<c0544043>] __driver_attach+0x69/0xa1
> [<c054346a>] bus_for_each_dev+0x37/0x59
> [<c0543d13>] driver_attach+0x16/0x18
> [<c0543fda>] __driver_attach+0x0/0xa1
> [<c054371d>] bus_add_driver+0x6d/0x170
> [<c04e87d1>] __pci_register_driver+0x52/0x7e
> [<f8b42157>] module_start+0x7e/0xa7 [cx18]
> [<c0441ee2>] sys_init_module+0x136a/0x14a1
> [<c044e119>] audit_syscall_exit+0x2aa/0x2c6
> [<c04292f1>] __request_region+0x0/0x7f
> [<c0405006>] syscall_call+0x7/0xb
> [<c05e0000>] unix_stream_sendmsg+0x2b6/0x30c
> =======================
> BUG: scheduling while atomic: modprobe/0x10000002/3001
> [<c05e737d>] __sched_text_start+0x85/0x708
> [<c04244fe>] __call_console_drivers+0x4b/0x56
> [<c0424717>] release_console_sem+0x180/0x199
> [<c0424bab>] vprintk+0x2c2/0x2fd
> [<c04078de>] do_IRQ+0x9e/0xb8
> [<c04244fe>] __call_console_drivers+0x4b/0x56
> [<c041c9d1>] __update_rq_clock+0x49/0x141
> [<c041fd48>] __cond_resched+0x21/0x3b
> [<c05e7c86>] cond_resched+0x26/0x31
> [<c045d3a5>] unmap_vmas+0x427/0x52b
> [<c045ffbf>] exit_mmap+0x7c/0x10d
> [<c04223c7>] mmput+0x2f/0x75
> [<c0426f06>] do_exit+0x1e1/0x6c8
> [<c040652c>] die+0x212/0x248
> [<c0419cf5>] do_page_fault+0x4bd/0x58c
> [<c041c1c5>] update_curr+0x13c/0x166
> [<c0419838>] do_page_fault+0x0/0x58c
> [<c05e94b2>] error_code+0x72/0x78
> [<f8b48dcd>] cx18_irq_handler+0xc9/0x47c [cx18]
> [<c041c744>] enqueue_entity+0x2da/0x304
> [<c041bbb1>] update_stats_wait_end+0xd3/0xfe
> [<c041c1c5>] update_curr+0x13c/0x166
> [<c041bdf9>] update_curr_load+0x6e/0x83
> [<c0404033>] __switch_to+0x23/0x13c
> [<c05e79e6>] __sched_text_start+0x6ee/0x708
> [<c042bcdf>] lock_timer_base+0x19/0x35
> [<c05e92bf>] _spin_unlock_irqrestore+0xf/0x23
> [<c042bd3f>] try_to_del_timer_sync+0x44/0x4a
> [<c042bd4f>] del_timer_sync+0xa/0x14
> [<c05e808f>] schedule_timeout+0x79/0x8d
> [<c044fd34>] request_irq+0x52/0xbe
> [<c05e8081>] schedule_timeout+0x6b/0x8d
> [<f8b48d04>] cx18_irq_handler+0x0/0x47c [cx18]
> [<c044fd75>] request_irq+0x93/0xbe
> [<f8b42c7e>] cx18_probe+0x92b/0xf7b [cx18]
> [<c0480af0>] find_inode+0x1b/0x56
> [<c04a75b3>] sysfs_ilookup_test+0x0/0xd
> [<c0480c0b>] ifind+0x3d/0x8e
> [<c048097d>] iput+0x39/0x62
> [<c04a7ad0>] sysfs_addrm_finish+0x4a/0x1d9
> [<c04a8ac8>] sysfs_create_link+0xf1/0x149
> [<c05e92bf>] _spin_unlock_irqrestore+0xf/0x23
> [<c05e9256>] _spin_unlock+0xd/0x21
> [<c04e8696>] pci_device_probe+0x36/0x57
> [<c0543ebb>] driver_probe_device+0xe1/0x15f
> [<c05431eb>] klist_devices_put+0x0/0x8
> [<c0543fda>] __driver_attach+0x0/0xa1
> [<c0544043>] __driver_attach+0x69/0xa1
> [<c054346a>] bus_for_each_dev+0x37/0x59
> [<c0543d13>] driver_attach+0x16/0x18
> [<c0543fda>] __driver_attach+0x0/0xa1
> [<c054371d>] bus_add_driver+0x6d/0x170
> [<c04e87d1>] __pci_register_driver+0x52/0x7e
> [<f8b42157>] module_start+0x7e/0xa7 [cx18]
> [<c0441ee2>] sys_init_module+0x136a/0x14a1
> [<c044e119>] audit_syscall_exit+0x2aa/0x2c6
> [<c04292f1>] __request_region+0x0/0x7f
> [<c0405006>] syscall_call+0x7/0xb
> [<c05e0000>] unix_stream_sendmsg+0x2b6/0x30c
> =======================
> BUG: scheduling while atomic: modprobe/0x10000002/3001
> [<c05e737d>] __sched_text_start+0x85/0x708
> [<c045b220>] __dec_zone_state+0xc/0x53
> [<c05e9137>] _spin_lock+0xd/0x5a
> [<c042886c>] irq_exit+0x50/0x72
> [<c04078de>] do_IRQ+0x9e/0xb8
> [<c041fd48>] __cond_resched+0x21/0x3b
> [<c05e7c86>] cond_resched+0x26/0x31
> [<c0425e65>] put_files_struct+0x64/0xa7
> [<c0426f45>] do_exit+0x220/0x6c8
> [<c040652c>] die+0x212/0x248
> [<c0419cf5>] do_page_fault+0x4bd/0x58c
> [<c041c1c5>] update_curr+0x13c/0x166
> [<c0419838>] do_page_fault+0x0/0x58c
> [<c05e94b2>] error_code+0x72/0x78
> [<f8b48dcd>] cx18_irq_handler+0xc9/0x47c [cx18]
> [<c041c744>] enqueue_entity+0x2da/0x304
> [<c041bbb1>] update_stats_wait_end+0xd3/0xfe
> [<c041c1c5>] update_curr+0x13c/0x166
> [<c041bdf9>] update_curr_load+0x6e/0x83
> [<c0404033>] __switch_to+0x23/0x13c
> [<c05e79e6>] __sched_text_start+0x6ee/0x708
> [<c042bcdf>] lock_timer_base+0x19/0x35
> [<c05e92bf>] _spin_unlock_irqrestore+0xf/0x23
> [<c042bd3f>] try_to_del_timer_sync+0x44/0x4a
> [<c042bd4f>] del_timer_sync+0xa/0x14
> [<c05e808f>] schedule_timeout+0x79/0x8d
> [<c044fd34>] request_irq+0x52/0xbe
> [<c05e8081>] schedule_timeout+0x6b/0x8d
> [<f8b48d04>] cx18_irq_handler+0x0/0x47c [cx18]
> [<c044fd75>] request_irq+0x93/0xbe
> [<f8b42c7e>] cx18_probe+0x92b/0xf7b [cx18]
> [<c0480af0>] find_inode+0x1b/0x56
> [<c04a75b3>] sysfs_ilookup_test+0x0/0xd
> [<c0480c0b>] ifind+0x3d/0x8e
> [<c048097d>] iput+0x39/0x62
> [<c04a7ad0>] sysfs_addrm_finish+0x4a/0x1d9
> [<c04a8ac8>] sysfs_create_link+0xf1/0x149
> [<c05e92bf>] _spin_unlock_irqrestore+0xf/0x23
> [<c05e9256>] _spin_unlock+0xd/0x21
> [<c04e8696>] pci_device_probe+0x36/0x57
> [<c0543ebb>] driver_probe_device+0xe1/0x15f
> [<c05431eb>] klist_devices_put+0x0/0x8
> [<c0543fda>] __driver_attach+0x0/0xa1
> [<c0544043>] __driver_attach+0x69/0xa1
> [<c054346a>] bus_for_each_dev+0x37/0x59
> [<c0543d13>] driver_attach+0x16/0x18
> [<c0543fda>] __driver_attach+0x0/0xa1
> [<c054371d>] bus_add_driver+0x6d/0x170
> [<c04e87d1>] __pci_register_driver+0x52/0x7e
> [<f8b42157>] module_start+0x7e/0xa7 [cx18]
> [<c0441ee2>] sys_init_module+0x136a/0x14a1
> [<c044e119>] audit_syscall_exit+0x2aa/0x2c6
> [<c04292f1>] __request_region+0x0/0x7f
> [<c0405006>] syscall_call+0x7/0xb
> [<c05e0000>] unix_stream_sendmsg+0x2b6/0x30c
> =======================
_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel