Bug 11306 - Bug with latest kernel and the external driver "r5u870"
Summary: Bug with latest kernel and the external driver "r5u870"
Status: CLOSED INVALID
Alias: None
Product: v4l-dvb
Classification: Unclassified
Component: webcam (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Mauro Carvalho Chehab
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-11 12:32 UTC by Thomas LETE
Modified: 2008-08-11 23:36 UTC (History)
0 users

See Also:
Kernel Version: 2.6.26.2
Subsystem:
Regression: Yes
Bisected commit-id:


Attachments

Description Thomas LETE 2008-08-11 12:32:28 UTC
Latest working kernel version: 2.6.24

Earliest failing kernel version:

Distribution: Ubuntu 8.04.1

Hardware Environment: See here : http://www.komplett.co.uk/k/ki.aspx?sku=336844#ProductTabs

Software Environment: Ubuntu 8.04.1, "optimized" Linux (latest available kernel) and the driver "r5u870" from http://wiki.mediati.org/R5u870 compiled and loaded.

Problem Description :
When i try to launch gstreamer-properties (or other similar tools), I get this error in the dmesg :

[  405.512580] ------------[ cut here ]------------
[  405.512580] kernel BUG at drivers/media/video/videobuf-core.c:137!
[  405.512580] invalid opcode: 0000 [#1] SMP 
[  405.512580] Modules linked in: af_packet binfmt_misc sonypi kvm acpi_cpufreq sbs sbshc cpufreq_ondemand cpufreq_stats cpufreq_conservative container cpufreq_userspace wmi cpufreq_powersave freq_table microcode iptable_filter ip_tables x_tables sbp2 loop pcmcia r5u870 joydev arc4 snd_hda_intel ecb crypto_blkcipher usbcam snd_pcm iwl3945 mac80211 videodev v4l1_compat videobuf_dma_sg snd_timer yenta_socket rsrc_nonstatic led_class snd pcspkr videobuf_core serio_raw nvidia(P) iTCO_wdt soundcore tifm_7xx1 tifm_core psmouse pcmcia_core iTCO_vendor_support cfg80211 video snd_page_alloc sky2 sony_laptop output battery button ac i2c_core evdev ext3 jbd mbcache sr_mod cdrom piix ide_core pata_acpi sd_mod ata_piix ahci ata_generic libata scsi_mod ohci1394 dock ieee1394 ehci_hcd uhci_hcd usbcore thermal processor fan thermal_sys fuse
[  405.512580] 
[  405.512580] Pid: 6764, comm: gstreamer-prope Tainted: P          (2.6.26.2 #1)
[  405.512580] EIP: 0060:[<f8fb23a0>] EFLAGS: 00010246 CPU: 1
[  405.512580] EIP is at videobuf_queue_core_init+0xd0/0xf0 [videobuf_core]
[  405.512580] EAX: f8ffcb30 EBX: f900244c ECX: f4eb7208 EDX: 00000000
[  405.512580] ESI: f8faf880 EDI: f4eb72e0 EBP: 00000000 ESP: f4f75df8
[  405.512580]  DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
[  405.512580] Process gstreamer-prope (pid: 6764, ti=f4f74000 task=f4edb720 task.ti=f4f74000)
[  405.512580] Stack: 00000000 f4eb7208 d9d3cd40 00000000 fffffff4 f4eb7200 f7aaefd8 f8fad088 
[  405.512580]        00000000 00000001 00000004 00000078 f4eb7200 f8faf880 f64ae000 f8ffbbc2 
[  405.512580]        00000000 00000001 00000004 00000078 f4eb7200 f4ebc840 f8ff6c40 c018a9d6 
[  405.512580] Call Trace:
[  405.512580]  [<f8fad088>] videobuf_queue_sg_init+0x38/0x40 [videobuf_dma_sg]
[  405.512580]  [<f8ffbbc2>] usbcam_v4l_open+0x72/0x200 [usbcam]
[  405.512580]  [<c018a9d6>] cdev_get+0x16/0x60
[  405.512580]  [<f8ff3c07>] video_open+0x97/0x140 [videodev]
[  405.512580]  [<c018a8f0>] exact_match+0x0/0x10
[  405.512580]  [<f8ff3b70>] video_open+0x0/0x140 [videodev]
[  405.512580]  [<c018afc2>] chrdev_open+0xa2/0x180
[  405.512580]  [<c0186443>] __dentry_open+0xb3/0x230
[  405.512580]  [<c0186607>] nameidata_to_filp+0x47/0x60
[  405.512580]  [<c018af20>] chrdev_open+0x0/0x180
[  405.512580]  [<c0193066>] do_filp_open+0x186/0x7d0
[  405.512580]  [<c018616f>] get_unused_fd_flags+0x4f/0xc0
[  405.512580]  [<c0190d2a>] getname+0xaa/0xe0
[  405.512580]  [<c018622c>] do_sys_open+0x4c/0xe0
[  405.512580]  [<c018633c>] sys_open+0x2c/0x40
[  405.512580]  [<c0103c49>] sysenter_past_esp+0x6a/0x91
[  405.512580]  =======================
[  405.512580] Code: 24 04 8b 7c 24 04 05 c4 00 00 00 89 87 c4 00 00 00 89 87 c8 00 00 00 83 c4 0c 5b 5e 5f 5d c3 0f 0b eb fe 0f 0b eb fe 8d 74 26 00 <0f> 0b eb fe 0f 0b eb fe 0f 0b eb fe 8d 74 26 00 0f 0b eb fe 8d 
[  405.512580] EIP: [<f8fb23a0>] videobuf_queue_core_init+0xd0/0xf0 [videobuf_core] SS:ESP 0068:f4f75df8
[  405.512580] ---[ end trace e503964650a80ef6 ]---

I have compiled my kernel and I disabled a lot of "modules" in it but I don't think it's linked.

Thanks for your reply !

Best Regards

Steps to reproduce:
Launch gstreamer-properties
Comment 1 Mauro Carvalho Chehab 2008-08-11 16:27:40 UTC
There were some changes at videodev internal API. The issue is at the out-of-tree driver that needs to be fixed. Since the driver is not on kernel, sorry, but there's nothing that we can do about that. 

It would be a good idea to ask the driver author to fix it and submit it to kernel, to avoid such issues in the future.
Comment 2 Thomas LETE 2008-08-11 23:36:19 UTC
Thanks a lot, I will report that now :)

Note You need to log in before you can comment on or make changes to this bug.