You are not logged in.

#1 2011-08-09 08:02:15

Caspian
Member
Registered: 2007-05-22
Posts: 263

Kernel 3.0 upgrade - Udev rules problem (kernel BUG at drivers/media/)

I'm having some issues with my laptop after the kernel upgrade. During the boot I get the kernel BUG at drivers/media/media-entity.c:346! message. You can see the whole output here: http://pastie.org/2343779.

The loading of Udev rules fails. After that the system boots normally, but it freezes the second I plug in/out the wireless keyboard usb receiver or usb memory stick.

Offline

#2 2011-08-09 14:04:37

steffinger
Member
From: Munich/Beijing
Registered: 2011-02-07
Posts: 41

Re: Kernel 3.0 upgrade - Udev rules problem (kernel BUG at drivers/media/)

This is most likely related to:
https://bbs.archlinux.org/viewtopic.php?id=124046
https://bbs.archlinux.org/viewtopic.php?id=124079
https://bbs.archlinux.org/viewtopic.php?id=124094

You might want to blacklist uvcvideo. After rebooting most things should work normal.

Offline

#3 2011-08-10 09:14:22

Caspian
Member
Registered: 2007-05-22
Posts: 263

Re: Kernel 3.0 upgrade - Udev rules problem (kernel BUG at drivers/media/)

Thanks steffinger. I've blacklisted the uvcvideo module in rc.conf but this doesn't solve the problem. After I restarted the system I found out that uvcvideo module is still being loaded even if I blacklist it sad

Offline

#4 2011-08-10 09:23:10

steffinger
Member
From: Munich/Beijing
Registered: 2011-02-07
Posts: 41

Re: Kernel 3.0 upgrade - Udev rules problem (kernel BUG at drivers/media/)

Blacklisting in rc.conf is not working any more. You should use /etc/modprobe.d/blacklist.conf instead!!!
Refer to: http://www.archlinux.org/news/changes-t … cklisting/ for further information.

Offline

#5 2011-08-10 10:30:03

Caspian
Member
Registered: 2007-05-22
Posts: 263

Re: Kernel 3.0 upgrade - Udev rules problem (kernel BUG at drivers/media/)

Damn the old habits! I totally forgot that this changed. Thanks again steffinger.

Offline

#6 2011-08-11 07:57:30

Caspian
Member
Registered: 2007-05-22
Posts: 263

Re: Kernel 3.0 upgrade - Udev rules problem (kernel BUG at drivers/media/)

Does anyone know when will this bug be solved?

Offline

#7 2011-08-11 13:49:04

steffinger
Member
From: Munich/Beijing
Registered: 2011-02-07
Posts: 41

Re: Kernel 3.0 upgrade - Udev rules problem (kernel BUG at drivers/media/)

I don't think that this is a known bug. Maybe you can file it? What does work for you now and what doesn't?  Can you maybe post the output of lsusb? Just for my curiosity.

Last edited by steffinger (2011-08-11 13:50:12)

Offline

#8 2011-08-11 14:39:55

Caspian
Member
Registered: 2007-05-22
Posts: 263

Re: Kernel 3.0 upgrade - Udev rules problem (kernel BUG at drivers/media/)

Now I'm not having the issues I head earlier. They were all connected to usb as far as I was aware (usb memory sticks didn't work etc.). Since I blacklisted uvcvideo module my webcam isn't working (obviously). I didn't notice any other issues so far.
Here's my lsusb output:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 005: ID 0cf3:3005 Atheros Communications, Inc.
Bus 001 Device 004: ID 13d3:5710 IMC Networks
Bus 002 Device 003: ID 046d:c52e Logitech, Inc.

Offline

#9 2011-08-13 08:23:21

steffinger
Member
From: Munich/Beijing
Registered: 2011-02-07
Posts: 41

Re: Kernel 3.0 upgrade - Udev rules problem (kernel BUG at drivers/media/)

I guess that "Bus 002 Device 003: ID 046d:c52e Logitech, Inc." should be your camera or are you using Logitech usb mouse/keyboard?  If you need your webcam, you could try to use other drivers than uvcvideo. https://wiki.archlinux.org/index.php/Webcam gives some hints. Would be interesting if this can resolve the problem.
From my lsusb i can't see which one is my camera, so I can't really try it myself.

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 0bda:58e8 Realtek Semiconductor Corp. 
Bus 001 Device 005: ID 0a5c:219c Broadcom Corp. 

Offline

#10 2011-08-13 09:24:04

Caspian
Member
Registered: 2007-05-22
Posts: 263

Re: Kernel 3.0 upgrade - Udev rules problem (kernel BUG at drivers/media/)

Hey steffinger,

Bus 002 Device 003: ID 046d:c52e Logitech, Inc. is my wireless mouse/keyboard, so I'm not able to determine what is my webcamera as well...

Offline

#11 2011-08-13 09:52:10

steffinger
Member
From: Munich/Beijing
Registered: 2011-02-07
Posts: 41

Re: Kernel 3.0 upgrade - Udev rules problem (kernel BUG at drivers/media/)

Thanks Caspian,

I think we can do nothing but hope, that this will be corrected with kernel 3.1. I'm a bit busy these days, but I will soon try to check http://www.ideasonboard.org/uvc/ if they are informed about the problem so they can fix it. I doubt that it is a problem of the arch packages.
Any other thoughts about this?

Offline

#12 2011-08-18 08:31:35

Caspian
Member
Registered: 2007-05-22
Posts: 263

Re: Kernel 3.0 upgrade - Udev rules problem (kernel BUG at drivers/media/)

Steffinger,

I don't know what else can we do. The issue is still here with the latest (3.0.2-1) kernel package...

Offline

#13 2011-08-18 15:39:56

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: Kernel 3.0 upgrade - Udev rules problem (kernel BUG at drivers/media/)

I know this is not a solution to the real problem, but your bug is subtle, because I have no problem with uvcvideo on 3.0.1:

$ grep -i uvc /var/log/dmesg.log 
[    6.564035] uvcvideo: Found UVC 1.00 device CKA7227 (04f2:b082)
[    6.580449] usbcore: registered new interface driver uvcvideo
$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 04f2:b082 Chicony Electronics Co., Ltd

So, you might want to have a deeper look into (or post it here) dmesg.log.


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

#14 2011-08-19 08:07:42

steffinger
Member
From: Munich/Beijing
Registered: 2011-02-07
Posts: 41

Re: Kernel 3.0 upgrade - Udev rules problem (kernel BUG at drivers/media/)

Hi all,

first I need to say, that the update for 3.0.3 which came in yesterday changes nothing. For Leonid I removed uvcvideo from my blacklist to show you my dmesg.log. Here comes the interesting part:

[    7.320113] Linux video capture interface: v2.00
[    7.419330] uvcvideo: Found UVC 1.00 device USB Camera (0bda:58e8)
[    7.425953] ------------[ cut here ]------------
[    7.426010] kernel BUG at drivers/media/media-entity.c:346!
[    7.426029] invalid opcode: 0000 [#1] PREEMPT SMP 
[    7.426054] CPU 0 
[    7.426061] Modules linked in: uvcvideo(+) bcma videodev arc4 media v4l2_compat_ioctl32 snd_hda_intel(+) r8169 snd_hda_codec pcspkr snd_hwdep evdev snd_pcm iTCO_wdt brcmsmac(C) snd_timer brcmutil(C) serio_raw psmouse snd mac80211 cfg80211 sg soundcore i2c_i801 mei(C) btusb mii iTCO_vendor_support bluetooth rfkill snd_page_alloc crc_ccitt thermal ac battery fan cpufreq_ondemand acpi_cpufreq freq_table processor mperf fuse ext4 mbcache jbd2 crc16 usbhid hid sd_mod ahci libahci libata ehci_hcd scsi_mod usbcore i915 drm_kms_helper drm intel_agp i2c_algo_bit button intel_gtt i2c_core video
[    7.426355] 
[    7.426363] Pid: 409, comm: modprobe Tainted: G         C  3.0-ARCH #1 Compal PBL00/PBL00
[    7.426395] RIP: 0010:[<ffffffffa01560cf>]  [<ffffffffa01560cf>] media_entity_create_link+0x10f/0x120 [media]
[    7.426429] RSP: 0018:ffff880147bedbb8  EFLAGS: 00010246
[    7.426447] RAX: ffff880147880000 RBX: ffff880147880070 RCX: 0000000000000000
[    7.426468] RDX: ffff880147881070 RSI: 0000000000000000 RDI: ffff880147880070
[    7.426490] RBP: ffff880147bedbf8 R08: 0000000000000003 R09: ffff880147614240
[    7.426512] R10: 0000000000000000 R11: 0000000000000000 R12: ffff880147881070
[    7.426533] R13: ffff8801493eae80 R14: 0000000000000000 R15: 0000000000000000
[    7.426556] FS:  00007f6201671700(0000) GS:ffff88014fa00000(0000) knlGS:0000000000000000
[    7.426580] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[    7.426598] CR2: 0000000001acb000 CR3: 0000000147890000 CR4: 00000000000406f0
[    7.426621] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[    7.426643] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[    7.426665] Process modprobe (pid: 409, threadinfo ffff880147bec000, task ffff8801460640b0)
[    7.426689] Stack:
[    7.426698]  ffff880147bedbf8 ffffffffa01563db 0000000000000000 0000000000000000
[    7.426741]  ffff880147881000 ffff8801493eae80 ffff880147881070 ffff8801493eae98
[    7.426793]  ffff880147bedc48 ffffffffa0485334 ffff880147bd0068 ffff8801ffffffff
[    7.426824] Call Trace:
[    7.426837]  [<ffffffffa01563db>] ? media_entity_init+0x3b/0xa0 [media]
[    7.426860]  [<ffffffffa0485334>] uvc_mc_register_entities+0x1d4/0x290 [uvcvideo]
[    7.426885]  [<ffffffffa047ba70>] uvc_probe+0x3d0/0x2600 [uvcvideo]
[    7.426911]  [<ffffffffa0169543>] usb_probe_interface+0xd3/0x1e0 [usbcore]
[    7.426936]  [<ffffffff812e9ece>] driver_probe_device+0x7e/0x1b0
[    7.426956]  [<ffffffff812ea0ab>] __driver_attach+0xab/0xb0
[    7.426976]  [<ffffffff812ea000>] ? driver_probe_device+0x1b0/0x1b0
[    7.426996]  [<ffffffff812ea000>] ? driver_probe_device+0x1b0/0x1b0
[    7.427743]  [<ffffffff812e8e8c>] bus_for_each_dev+0x5c/0x90
[    7.428489]  [<ffffffff812e9b5e>] driver_attach+0x1e/0x20
[    7.429239]  [<ffffffff812e97b0>] bus_add_driver+0x1a0/0x270
[    7.429997]  [<ffffffff812ea616>] driver_register+0x76/0x140
[    7.430817]  [<ffffffff810ca289>] ? tracepoint_module_notify+0x29/0x30
[    7.431636]  [<ffffffffa016839d>] usb_register_driver+0x9d/0x190 [usbcore]
[    7.432462]  [<ffffffffa0433000>] ? 0xffffffffa0432fff
[    7.433282]  [<ffffffffa0433020>] uvc_init+0x20/0x3a [uvcvideo]
[    7.434102]  [<ffffffff81002040>] do_one_initcall+0x40/0x180
[    7.434924]  [<ffffffff8109d3bf>] sys_init_module+0x8f/0x200
[    7.435757]  [<ffffffff813f4402>] system_call_fastpath+0x16/0x1b
[    7.436581] Code: 4c 8b 6d e8 4c 8b 75 f0 4c 8b 7d f8 c9 c3 66 0f 1f 44 00 00 b8 f4 ff ff ff eb dd 66 83 6b 3e 01 b8 f4 ff ff ff eb d1 0f 0b 0f 0b <0f> 0b 66 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 
[    7.438551] RIP  [<ffffffffa01560cf>] media_entity_create_link+0x10f/0x120 [media]
[    7.439482]  RSP <ffff880147bedbb8>
[    7.440498] ---[ end trace dcd6ccb4f4a8143b ]---

Here it says, my video capture device should be "USB Camera (0bda:58e8)"

But in my lsusb you can see the following:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 0bda:58e8 Realtek Semiconductor Corp. 
Bus 001 Device 004: ID 0a5c:219c Broadcom Corp. 

The Realtek thing should be my wireless LAN device. I think. I'm not to good with this.

My vendor says that my Camera is as follows: Suyin / Lite-on / Primax/ Dmax and as a driver the native windows driver should do, it says.

So it's kind of complicated as far as I can see because this is not in lsusb.

One remarkable thing is, as I said before, that everything worked with kernel 2.6.39.

I tried to find out some things about the makers of uvcvideo, but they don't give a lot of information. So if this should go upstream I need a bit help.

@Caspian: What does your vendor say about the camera?

Offline

#15 2011-08-19 08:35:26

Caspian
Member
Registered: 2007-05-22
Posts: 263

Re: Kernel 3.0 upgrade - Udev rules problem (kernel BUG at drivers/media/)

@Leonid: I'm having the same issues as Steffinger when I remove uvcvideo module from my blacklist. This is the output of dmesg after I removed it:

[    9.720025] uvcvideo: Found UVC 1.00 device USB 2.0 UVC VGA WebCam (13d3:5710)
[    9.726777] Modules linked in: uvcvideo(+) videodev media hid snd_hda_codec_hdmi snd_hda_codec_realtek v4l2_compat_ioctl32 btusb bluetooth ath3k sg snd_hda_intel snd_hda_codec snd_hwdep snd_pcm arc4 snd_timer snd i915 soundcore asus_nb_wmi asus_wmi ath9k mac80211 drm_kms_helper drm ath9k_common ath9k_hw snd_page_alloc ath sparse_keymap psmouse atl1c cfg80211 pcspkr serio_raw iTCO_wdt mei(C) iTCO_vendor_support evdev rfkill i2c_algo_bit ehci_hcd usbcore pci_hotplug i2c_i801 i2c_core intel_agp intel_gtt wmi video thermal battery button ac processor ext4 mbcache jbd2 crc16 sr_mod cdrom sd_mod ahci libahci libata scsi_mod
[    9.733198]  [<ffffffffa04cb334>] uvc_mc_register_entities+0x1d4/0x290 [uvcvideo]
[    9.734160]  [<ffffffffa04c1a70>] uvc_probe+0x3d0/0x2600 [uvcvideo]
[    9.747025]  [<ffffffffa04d2020>] uvc_init+0x20/0x3a [uvcvideo]

And the lsusb:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 005: ID 413c:2002 Dell Computer Corp. SK-8125 Keyboard
Bus 001 Device 004: ID 13d3:5710 IMC Networks
Bus 002 Device 003: ID 413c:1002 Dell Computer Corp. Keyboard Hub
Bus 002 Device 004: ID 046d:c52e Logitech, Inc.
Bus 001 Device 005: ID 0cf3:3005 Atheros Communications, Inc.

@Steffinger: All information I could find about the integrated web camera is that it's Chicony web camera.

I didn't have any problems with this before installation of kernel 3.

Offline

#16 2011-08-19 15:53:35

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: Kernel 3.0 upgrade - Udev rules problem (kernel BUG at drivers/media/)

Well, this kinda proves my point...

@steffinger:
The ID in the error message, "0bda:58e8", is realtec according to lsusb (notice that in my previous post the ID in dmesg.log is Chicony which is correct). Moreover, the tainted line says "C", which means that staging drivers are loaded. The uvcvideo module is linked to the brmc* staging drivers... wtf?

@Caspian:
Again, 13d3:5710 (from dmesg.log) points to your network adapter (IMC networks).

Do you guys have NICs sitting on the USB? If so, I would unload the corresponding network adapter modules instead of uvcvideo.


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

#17 2011-08-21 12:55:53

steffinger
Member
From: Munich/Beijing
Registered: 2011-02-07
Posts: 41

Re: Kernel 3.0 upgrade - Udev rules problem (kernel BUG at drivers/media/)

Sorry if I am a bit slow understanding your point. But I try to answer your points as good as possible. You ask whether we have our network interface controller connected on the usb. Does this mean, you want to know if this NIC is external? In this case I can deny your question. I'm using a laptop with integrated  NIC.

Further you suggested  to unload the corresponding network adapter modules. So i unloaded (which resulted in a crash, so i blacklisted them) following modules:           

mac80211 cfg80211 brcmsmac brcmutil crc_ccitt rfkill bluetooth

But this changed nothing. My dmesg.log ist still pretty similar:

[    7.252131] uvcvideo: Found UVC 1.00 device USB Camera (0bda:58e8)
[    7.258984] ------------[ cut here ]------------
[    7.259046] kernel BUG at drivers/media/media-entity.c:346!
[    7.259065] invalid opcode: 0000 [#1] PREEMPT SMP 
[    7.259089] CPU 0 
[    7.259097] Modules linked in: uvcvideo(+) videodev media v4l2_compat_ioctl32 snd_hda_intel(+) snd_hda_codec snd_hwdep snd_pcm snd_timer snd btusb soundcore bluetooth snd_page_alloc rfkill evdev iTCO_wdt serio_raw mei(C) r8169 sg psmouse bcma pcspkr i2c_i801 iTCO_vendor_support mii battery thermal ac fan cpufreq_ondemand acpi_cpufreq freq_table processor mperf fuse ext4 mbcache jbd2 crc16 usbhid hid sd_mod ahci libahci libata ehci_hcd scsi_mod usbcore i915 drm_kms_helper drm intel_agp i2c_algo_bit button intel_gtt i2c_core video
[    7.259368] 
[    7.259376] Pid: 441, comm: modprobe Tainted: G         C  3.0-ARCH #1 Compal PBL00/PBL00
[    7.259407] RIP: 0010:[<ffffffffa00710cf>]  [<ffffffffa00710cf>] media_entity_create_link+0x10f/0x120 [media]
[    7.259441] RSP: 0018:ffff880147897bb8  EFLAGS: 00010246
[    7.259459] RAX: ffff880145db0800 RBX: ffff880145db0870 RCX: 0000000000000000
[    7.259481] RDX: ffff880145db1870 RSI: 0000000000000000 RDI: ffff880145db0870
[    7.259503] RBP: ffff880147897bf8 R08: 0000000000000003 R09: ffff880147b37780
[    7.259525] R10: 0000000000000000 R11: 0000000000000000 R12: ffff880145db1870
[    7.259547] R13: ffff880146adf380 R14: 0000000000000000 R15: 0000000000000000
[    7.259569] FS:  00007f6671231700(0000) GS:ffff88014fa00000(0000) knlGS:0000000000000000
[    7.259594] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[    7.259613] CR2: 0000000000c83000 CR3: 0000000147625000 CR4: 00000000000406f0
[    7.259635] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[    7.259657] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[    7.259679] Process modprobe (pid: 441, threadinfo ffff880147896000, task ffff880146a4ebd0)
[    7.259704] Stack:
[    7.259712]  ffff880147897bf8 ffffffffa00713db 0000000000000000 0000000000000000
[    7.259744]  ffff880145db1800 ffff880146adf380 ffff880145db1870 ffff880146adf398
[    7.259775]  ffff880147897c48 ffffffffa0305334 ffff880145d82068 ffff8801ffffffff
[    7.259806] Call Trace:
[    7.259818]  [<ffffffffa00713db>] ? media_entity_init+0x3b/0xa0 [media]
[    7.259841]  [<ffffffffa0305334>] uvc_mc_register_entities+0x1d4/0x290 [uvcvideo]
[    7.259867]  [<ffffffffa02fba70>] uvc_probe+0x3d0/0x2600 [uvcvideo]
[    7.259892]  [<ffffffffa0167543>] usb_probe_interface+0xd3/0x1e0 [usbcore]
[    7.259917]  [<ffffffff812e9ece>] driver_probe_device+0x7e/0x1b0
[    7.259937]  [<ffffffff812ea0ab>] __driver_attach+0xab/0xb0
[    7.259956]  [<ffffffff812ea000>] ? driver_probe_device+0x1b0/0x1b0
[    7.259977]  [<ffffffff812ea000>] ? driver_probe_device+0x1b0/0x1b0
[    7.260753]  [<ffffffff812e8e8c>] bus_for_each_dev+0x5c/0x90
[    7.261501]  [<ffffffff812e9b5e>] driver_attach+0x1e/0x20
[    7.262249]  [<ffffffff812e97b0>] bus_add_driver+0x1a0/0x270
[    7.263009]  [<ffffffff812ea616>] driver_register+0x76/0x140
[    7.263809]  [<ffffffff810ca289>] ? tracepoint_module_notify+0x29/0x30
[    7.264631]  [<ffffffffa016639d>] usb_register_driver+0x9d/0x190 [usbcore]
[    7.265458]  [<ffffffffa028f000>] ? 0xffffffffa028efff
[    7.266280]  [<ffffffffa028f020>] uvc_init+0x20/0x3a [uvcvideo]
[    7.267101]  [<ffffffff81002040>] do_one_initcall+0x40/0x180
[    7.267929]  [<ffffffff8109d3bf>] sys_init_module+0x8f/0x200
[    7.268756]  [<ffffffff813f4402>] system_call_fastpath+0x16/0x1b
[    7.269584] Code: 4c 8b 6d e8 4c 8b 75 f0 4c 8b 7d f8 c9 c3 66 0f 1f 44 00 00 b8 f4 ff ff ff eb dd 66 83 6b 3e 01 b8 f4 ff ff ff eb d1 0f 0b 0f 0b <0f> 0b 66 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 
[    7.271553] RIP  [<ffffffffa00710cf>] media_entity_create_link+0x10f/0x120 [media]
[    7.272485]  RSP <ffff880147897bb8>
[    7.273467] ---[ end trace 5a99fea56877a3bc ]---
[    7.424361] Synaptics Touchpad, model: 1, fw: 7.2, id: 0x1c0b1, caps: 0xd04733/0xa40000/0xa0000
[    7.517201] input: SynPS/2 Synaptics TouchPad as /devices/platform/i8042/serio1/input/input7
[    7.634784] hda_codec: ALC259: BIOS auto-probing.
[    7.636282] input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:1b.0/input/input8
[    7.697666] HDMI status: Pin=5 Presence_Detect=0 ELD_Valid=0
[    7.700984] input: HDA Intel PCH HDMI/DP as /devices/pci0000:00/0000:00:1b.0/sound/card0/input9
[    7.701899] input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input10
[    7.702804] input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input11

This problem gives me a lot WTF. Really strange.

Offline

#18 2011-08-22 00:05:36

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: Kernel 3.0 upgrade - Udev rules problem (kernel BUG at drivers/media/)

All I am saying is that the line

uvcvideo: Found UVC 1.00 device USB Camera (0bda:58e8)

contains the ID (0bda:58e8) which does not correspond to a webcam, unless this is a realtec webcam. This is the reason why I think it's not a problem of uvcvideo but kernel/bios. Otherwise it is quite strange to see NICs in the output of lsusb...

You could try to look at the verbose lsusb output, and install usbutils 004 from [testing].


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

#19 2011-08-22 11:06:10

steffinger
Member
From: Munich/Beijing
Registered: 2011-02-07
Posts: 41

Re: Kernel 3.0 upgrade - Udev rules problem (kernel BUG at drivers/media/)

Hi Leonid,

first of all thank you for your help. I think you are very right. It don't think it's mainly a problem caused by uvcvideo, but I also do not think it's totally innocent. Here are some of my reasons: To make some videocalls I installed ubuntu 11.04 which is pretty much of a pain, but it is running kernel 2.6.38. The output of lsusb stays the same but the webcam works. In the dmesg log it looks like this:

[   16.120006] Linux video capture interface: v2.00
[   16.127701] uvcvideo: Found UVC 1.00 device USB Camera (0bda:58e8)
[   16.128172] usbcore: registered new interface driver btusb
[   16.134138] wl 0000:02:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
[   16.134147] wl 0000:02:00.0: setting latency timer to 64
[   16.143171] input: USB Camera as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3/1-1.3:1.0/input/input4
[   16.143366] usbcore: registered new interface driver uvcvideo
[   16.143369] USB Video Class driver (v1.0.0)

So apparently the device (0bda:58e8) is the video device. Which is supported by the output of lsusb -v

Bus 001 Device 003: ID 0bda:58e8 Realtek Semiconductor Corp. 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass          239 Miscellaneous Device
  bDeviceSubClass         2 ?
  bDeviceProtocol         1 Interface Association
  bMaxPacketSize0        64
  idVendor           0x0bda Realtek Semiconductor Corp.
  idProduct          0x58e8 
  bcdDevice           28.09
  iManufacturer           3 LTCCS3TJ
  iProduct                1 USB Camera
  iSerial                 0 000000000000
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          633
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          4 USB Camera
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Association:
      bLength                 8
      bDescriptorType        11
      bFirstInterface         0
      bInterfaceCount         2
      bFunctionClass         14 Video
      bFunctionSubClass       3 Video Interface Collection
      bFunctionProtocol       0 
      iFunction               5 USB Camera
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      1 Video Control
      bInterfaceProtocol      0 
      iInterface              5 USB Camera
      VideoControl Interface Descriptor:
        bLength                13
        bDescriptorType        36
        bDescriptorSubtype      1 (HEADER)
        bcdUVC               1.00
        wTotalLength          107
        dwClockFrequency       15.000000MHz
        bInCollection           1
        baInterfaceNr( 0)       1
      VideoControl Interface Descriptor:
        bLength                18
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID             1
        wTerminalType      0x0201 Camera Sensor
        bAssocTerminal          0
        iTerminal               0 
        wObjectiveFocalLengthMin      0
        wObjectiveFocalLengthMax      0
        wOcularFocalLength            0
        bControlSize                  3
        bmControls           0x00000000
      VideoControl Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      5 (PROCESSING_UNIT)
      Warning: Descriptor too short
        bUnitID                 2
        bSourceID               1
        wMaxMultiplier          0
        bControlSize            2
        bmControls     0x0000177f
          Brightness
          Contrast
          Hue
          Saturation
          Sharpness
          Gamma
          White Balance Temperature
          Backlight Compensation
          Gain
          Power Line Frequency
          White Balance Temperature, Auto
        iProcessing             0 
        bmVideoStandards     0x 9
          None
          SECAM - 625/50
      VideoControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      3 (OUTPUT_TERMINAL)
        bTerminalID             3
        wTerminalType      0x0101 USB Streaming
        bAssocTerminal          0
        bSourceID               2
        iTerminal               0 
      VideoControl Interface Descriptor:
        bLength                27
        bDescriptorType        36
        bDescriptorSubtype      6 (EXTENSION_UNIT)
        bUnitID                 4
        guidExtensionCode         {8ca72912-b447-9440-b0ce-db07386fb938}
        bNumControl             2
        bNrPins                 1
        baSourceID( 0)          1
        bControlSize            2
        bmControls( 0)       0x00
        bmControls( 1)       0x06
        iExtension              0 
      VideoControl Interface Descriptor:
        bLength                29
        bDescriptorType        36
        bDescriptorSubtype      6 (EXTENSION_UNIT)
        bUnitID                 7
        guidExtensionCode         {c385b80f-c268-4745-90f7-8f47579d95fc}
        bNumControl             0
        bNrPins                 1
        baSourceID( 0)          3
        bControlSize            4
        bmControls( 0)       0x0f
        bmControls( 1)       0x00
        bmControls( 2)       0x00
        bmControls( 3)       0x00
        iExtension              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0010  1x 16 bytes
        bInterval               6
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      VideoStreaming Interface Descriptor:
        bLength                            14
        bDescriptorType                    36
        bDescriptorSubtype                  1 (INPUT_HEADER)
        bNumFormats                         1
        wTotalLength                      367
        bEndPointAddress                  129
        bmInfo                              0
        bTerminalLink                       3
        bStillCaptureMethod                 2
        bTriggerSupport                     1
        bTriggerUsage                       0
        bControlSize                        1
        bmaControls( 0)                    27
      VideoStreaming Interface Descriptor:
        bLength                            27
        bDescriptorType                    36
        bDescriptorSubtype                  4 (FORMAT_UNCOMPRESSED)
        bFormatIndex                        1
        bNumFrameDescriptors                9
        guidFormat                            {00000000-0000-0000-8000-00aa00389b71}
        bBitsPerPixel                      16
        bDefaultFrameIndex                  1
        bAspectRatioX                       0
        bAspectRatioY                       0
        bmInterlaceFlags                 0x00
          Interlaced stream or variable: No
          Fields per frame: 2 fields
          Field 1 first: No
          Field pattern: Field 1 only
          bCopyProtect                      0
      VideoStreaming Interface Descriptor:
        bLength                            30
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         1
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            640
        wHeight                           480
        dwMinBitRate                147456000
        dwMaxBitRate                147456000
        dwMaxVideoFrameBufferSize      614400
        dwDefaultFrameInterval         333333
        bFrameIntervalType                  1
        dwFrameInterval( 0)            333333
      VideoStreaming Interface Descriptor:
        bLength                            30
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         2
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            160
        wHeight                           120
        dwMinBitRate                  9216000
        dwMaxBitRate                  9216000
        dwMaxVideoFrameBufferSize       38400
        dwDefaultFrameInterval         333333
        bFrameIntervalType                  1
        dwFrameInterval( 0)            333333
      VideoStreaming Interface Descriptor:
        bLength                            30
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         3
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            176
        wHeight                           144
        dwMinBitRate                 12165120
        dwMaxBitRate                 12165120
        dwMaxVideoFrameBufferSize       50688
        dwDefaultFrameInterval         333333
        bFrameIntervalType                  1
        dwFrameInterval( 0)            333333
      VideoStreaming Interface Descriptor:
        bLength                            30
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         4
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            320
        wHeight                           240
        dwMinBitRate                 36864000
        dwMaxBitRate                 36864000
        dwMaxVideoFrameBufferSize      153600
        dwDefaultFrameInterval         333333
        bFrameIntervalType                  1
        dwFrameInterval( 0)            333333
      VideoStreaming Interface Descriptor:
        bLength                            30
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         5
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            352
        wHeight                           288
        dwMinBitRate                 48660480
        dwMaxBitRate                 48660480
        dwMaxVideoFrameBufferSize      202752
        dwDefaultFrameInterval         333333
        bFrameIntervalType                  1
        dwFrameInterval( 0)            333333
      VideoStreaming Interface Descriptor:
        bLength                            30
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         6
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            800
        wHeight                           600
        dwMinBitRate                115200000
        dwMaxBitRate                115200000
        dwMaxVideoFrameBufferSize      960000
        dwDefaultFrameInterval         666666
        bFrameIntervalType                  1
        dwFrameInterval( 0)            666666
      VideoStreaming Interface Descriptor:
        bLength                            34
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         7
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                           1024
        wHeight                           768
        dwMinBitRate                 62914560
        dwMaxBitRate                100663296
        dwMaxVideoFrameBufferSize     1572864
        dwDefaultFrameInterval        1250000
        bFrameIntervalType                  2
        dwFrameInterval( 0)           1250000
        dwFrameInterval( 1)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            34
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         8
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                           1280
        wHeight                           720
        dwMinBitRate                 73728000
        dwMaxBitRate                117964800
        dwMaxVideoFrameBufferSize     1843200
        dwDefaultFrameInterval        1250000
        bFrameIntervalType                  2
        dwFrameInterval( 0)           1250000
        dwFrameInterval( 1)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            30
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         9
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                           1280
        wHeight                          1024
        dwMinBitRate                104857600
        dwMaxBitRate                104857600
        dwMaxVideoFrameBufferSize     2621440
        dwDefaultFrameInterval        2000000
        bFrameIntervalType                  1
        dwFrameInterval( 0)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            42
        bDescriptorType                    36
        bDescriptorSubtype                  3 (STILL_IMAGE_FRAME)
        bEndpointAddress                    0
        bNumImageSizePatterns               9
        wWidth( 0)                       1280
        wHeight( 0)                      1024
        wWidth( 1)                        160
        wHeight( 1)                       120
        wWidth( 2)                        176
        wHeight( 2)                       144
        wWidth( 3)                        320
        wHeight( 3)                       240
        wWidth( 4)                        352
        wHeight( 4)                       288
        wWidth( 5)                        640
        wHeight( 5)                       480
        wWidth( 6)                        800
        wHeight( 6)                       600
        wWidth( 7)                       1024
        wHeight( 7)                       768
        wWidth( 8)                       1280
        wHeight( 8)                       720
        bNumCompressionPatterns             9
      VideoStreaming Interface Descriptor:
        bLength                             6
        bDescriptorType                    36
        bDescriptorSubtype                 13 (COLORFORMAT)
        bColorPrimaries                     1 (BT.709,sRGB)
        bTransferCharacteristics            1 (BT.709)
        bMatrixCoefficients                 4 (SMPTE 170M (BT.601))
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       1
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0080  1x 128 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       2
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       3
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       4
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0b00  2x 768 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       5
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0c00  2x 1024 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       6
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x1380  3x 896 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       7
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x1400  3x 1024 bytes
        bInterval               1
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass          239 Miscellaneous Device
  bDeviceSubClass         2 ?
  bDeviceProtocol         1 Interface Association
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0000
  (Bus Powered)

So for me one strange thing is, why the video device is listed as a Realtek device. Apparently because of the VID. But why does the vendor ID say it's Realtek? I never heard of any Realtek webcams and as I said before, the producer of my laptop says it's a Suyin camera.
The other strange thing is like before, why does it work with older kernels (with similar conditions) but not with 3.0?

Not to forget: usbutils 004 sadly doesn't change anything for me.

Finally I think that there isn't a connection between the so-called realtek-device in my lsusb and my NIC. In lspci I can see another Realtek device which really is my NIC. So I think it's just by accident, that it's called Realtek.

Offline

#20 2011-08-22 17:52:23

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: Kernel 3.0 upgrade - Udev rules problem (kernel BUG at drivers/media/)

No problem smile

But after some google search, I stumbled upon this http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=637740 which seems related t oyour problem. Apparently, upstream is working on it already...


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

#21 2011-08-24 19:29:22

steffinger
Member
From: Munich/Beijing
Registered: 2011-02-07
Posts: 41

Re: Kernel 3.0 upgrade - Udev rules problem (kernel BUG at drivers/media/)

Ah. This seems very interesting. Thank you for googleing that for me wink  I'll wait for the update

Offline

Board footer

Powered by FluxBB