Re: uvcvideo stopped working in 4.16
On 7 April 2018 at 11:11, Hans Verkuilwrote: > On 06/04/18 18:54, Damjan Georgievski wrote: >> Since the 4.16 kernel my uvcvideo webcam on Thinkpad X1 Carbon (5th >> gen) stopped working with gst-launch-1.0, kamoso (kde webcam app), >> Firefox and Chromium on sites like appear.in, talky.io, Google >> Hangouts and meet.jit.si. > > Do you see a /dev/v4l-touchX (X is probably 0) device? If so, then this > patch will probably fix the issue: > > https://patchwork.linuxtv.org/patch/48417/ > > It will appear in a stable 4.16 release soon. Thanks Hans, that patch indeed fixes my issue -- damjan
Re: uvcvideo stopped working in 4.16
On 06/04/18 18:54, Damjan Georgievski wrote: > Since the 4.16 kernel my uvcvideo webcam on Thinkpad X1 Carbon (5th > gen) stopped working with gst-launch-1.0, kamoso (kde webcam app), > Firefox and Chromium on sites like appear.in, talky.io, Google > Hangouts and meet.jit.si. Do you see a /dev/v4l-touchX (X is probably 0) device? If so, then this patch will probably fix the issue: https://patchwork.linuxtv.org/patch/48417/ It will appear in a stable 4.16 release soon. Regards, Hans > > It works fine in 4.15 > > The camera is: > Bus 001 Device 004: ID 04f2:b5ce Chicony Electronics Co., Ltd > > After further investigation, if I rmmod the uvcvideo module, and then > load it again, the camera starts working normally. But I get this in > dmesg: > > [ 63.399362] usbcore: deregistering interface driver uvcvideo > [ 63.495659] WARNING: CPU: 1 PID: 858 at > drivers/media/v4l2-core/v4l2-dev.c:176 v4l2_device_release+0xe3/0x100 > [videodev] > [ 63.495662] Modules linked in: rfcomm joydev mousedev rmi_smbus > rmi_core bnep snd_hda_codec_hdmi snd_soc_skl snd_soc_skl_ipc > snd_hda_codec_conexant snd_hda_ext_core snd_hda_codec_generic > snd_soc_sst_dsp snd_soc_sst_ipc snd_soc_acpi snd_soc_core snd_compress > ac97_bus snd_pcm_dmaengine arc4 iTCO_wdt iTCO_vendor_support wmi_bmof > intel_wmi_thunderbolt intel_rapl iwlmvm x86_pkg_temp_thermal > intel_powerclamp coretemp kvm_intel snd_hda_intel mac80211 > snd_hda_codec kvm uvcvideo(-) btusb btrtl btbcm btintel snd_hda_core > videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 iwlwifi > videobuf2_common bluetooth snd_hwdep irqbypass e1000e intel_cstate > snd_pcm videodev intel_uncore qcserial intel_rapl_perf cdc_mbim ptp > usb_wwan psmouse pps_core snd_timer usbserial input_leds media pcspkr > cdc_wdm cdc_ncm cfg80211 usbnet > [ 63.495758] mii i2c_i801 rtsx_pci_ms memstick tpm_crb ecdh_generic > mei_me mei shpchp intel_pch_thermal ucsi_acpi typec_ucsi thinkpad_acpi > typec wmi nvram i2c_hid ac rfkill snd battery soundcore led_class > tpm_tis rtc_cmos tpm_tis_core hid tpm evdev rng_core mac_hid > usbip_host usbip_core sg scsi_mod crypto_user ip_tables x_tables ext4 > crc16 mbcache jbd2 fscrypto algif_skcipher af_alg dm_crypt dm_mod > crct10dif_pclmul crc32_pclmul crc32c_intel rtsx_pci_sdmmc > ghash_clmulni_intel pcbc serio_raw mmc_core atkbd libps2 xhci_pci > aesni_intel aes_x86_64 xhci_hcd crypto_simd glue_helper cryptd usbcore > rtsx_pci usb_common i8042 serio vfat fat i915 intel_gtt i2c_algo_bit > drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm > agpgart > [ 63.495882] CPU: 1 PID: 858 Comm: rmmod Not tainted 4.16.0+ #1 > [ 63.495885] Hardware name: LENOVO 20HQS0LV00/20HQS0LV00, BIOS > N1MET45W (1.30 ) 02/22/2018 > [ 63.495899] RIP: 0010:v4l2_device_release+0xe3/0x100 [videodev] > [ 63.495903] RSP: 0018:9c974505bd60 EFLAGS: 00010202 > [ 63.495907] RAX: RBX: 97d00b84a1d0 RCX: > > [ 63.495910] RDX: 97d00b84a018 RSI: 0286 RDI: > c0c7f0e0 > [ 63.495912] RBP: 97d008245ae0 R08: R09: > > [ 63.495915] R10: c823d22a9a00 R11: R12: > 97d00b84a019 > [ 63.495917] R13: 97d008245b90 R14: 97d00cbaf8f8 R15: > > [ 63.495921] FS: 7f3549e74b80() GS:97d01f48() > knlGS: > [ 63.495924] CS: 0010 DS: ES: CR0: 80050033 > [ 63.495928] CR2: 01bffe78 CR3: 00047d4e2003 CR4: > 003606e0 > [ 63.495930] Call Trace: > [ 63.495947] device_release+0x30/0x90 > [ 63.495958] kobject_put+0x85/0x1a0 > [ 63.495967] uvc_unregister_video+0x49/0x90 [uvcvideo] > [ 63.495995] usb_unbind_interface+0x85/0x280 [usbcore] > [ 63.496007] device_release_driver_internal+0x15a/0x220 > [ 63.496014] driver_detach+0x37/0x70 > [ 63.496021] bus_remove_driver+0x51/0xd0 > [ 63.496051] usb_deregister+0x6a/0xd0 [usbcore] > [ 63.496065] uvc_cleanup+0xc/0x36e [uvcvideo] > [ 63.496075] SyS_delete_module+0x16a/0x2d0 > [ 63.496088] do_syscall_64+0x74/0x190 > [ 63.496100] entry_SYSCALL_64_after_hwframe+0x3d/0xa2 > [ 63.496105] RIP: 0033:0x7f35495975d7 > [ 63.496108] RSP: 002b:7ffcbf653b88 EFLAGS: 0206 ORIG_RAX: > 00b0 > [ 63.496112] RAX: ffda RBX: RCX: > 7f35495975d7 > [ 63.496115] RDX: 000a RSI: 0800 RDI: > 01bf57b8 > [ 63.496117] RBP: 01bf5750 R08: 7ffcbf652b01 R09: > > [ 63.496119] R10: 08b2 R11: 0206 R12: > 7ffcbf655d95 > [ 63.496123] R13: R14: 01bf5750 R15: > 01bf5260 > [ 63.496127] Code: da ce 48 85 ed 74 1f 5b 48 89 ef 5d 41 5c e9 f5 > 6b 00 00 5b 5d 41 5c e9 6c 9c da ce 4c 89 e7 e8 04 80 f4 ff eb c6 5b > 5d 41 5c c3 <0f> 0b 5b 5d 41 5c 48 c7 c7 e0 f0 c7 c0 e9 cb e8 ac ce 90 > 66 2e > [ 63.496214] ---[ end
uvcvideo stopped working in 4.16
Since the 4.16 kernel my uvcvideo webcam on Thinkpad X1 Carbon (5th gen) stopped working with gst-launch-1.0, kamoso (kde webcam app), Firefox and Chromium on sites like appear.in, talky.io, Google Hangouts and meet.jit.si. It works fine in 4.15 The camera is: Bus 001 Device 004: ID 04f2:b5ce Chicony Electronics Co., Ltd After further investigation, if I rmmod the uvcvideo module, and then load it again, the camera starts working normally. But I get this in dmesg: [ 63.399362] usbcore: deregistering interface driver uvcvideo [ 63.495659] WARNING: CPU: 1 PID: 858 at drivers/media/v4l2-core/v4l2-dev.c:176 v4l2_device_release+0xe3/0x100 [videodev] [ 63.495662] Modules linked in: rfcomm joydev mousedev rmi_smbus rmi_core bnep snd_hda_codec_hdmi snd_soc_skl snd_soc_skl_ipc snd_hda_codec_conexant snd_hda_ext_core snd_hda_codec_generic snd_soc_sst_dsp snd_soc_sst_ipc snd_soc_acpi snd_soc_core snd_compress ac97_bus snd_pcm_dmaengine arc4 iTCO_wdt iTCO_vendor_support wmi_bmof intel_wmi_thunderbolt intel_rapl iwlmvm x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel snd_hda_intel mac80211 snd_hda_codec kvm uvcvideo(-) btusb btrtl btbcm btintel snd_hda_core videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 iwlwifi videobuf2_common bluetooth snd_hwdep irqbypass e1000e intel_cstate snd_pcm videodev intel_uncore qcserial intel_rapl_perf cdc_mbim ptp usb_wwan psmouse pps_core snd_timer usbserial input_leds media pcspkr cdc_wdm cdc_ncm cfg80211 usbnet [ 63.495758] mii i2c_i801 rtsx_pci_ms memstick tpm_crb ecdh_generic mei_me mei shpchp intel_pch_thermal ucsi_acpi typec_ucsi thinkpad_acpi typec wmi nvram i2c_hid ac rfkill snd battery soundcore led_class tpm_tis rtc_cmos tpm_tis_core hid tpm evdev rng_core mac_hid usbip_host usbip_core sg scsi_mod crypto_user ip_tables x_tables ext4 crc16 mbcache jbd2 fscrypto algif_skcipher af_alg dm_crypt dm_mod crct10dif_pclmul crc32_pclmul crc32c_intel rtsx_pci_sdmmc ghash_clmulni_intel pcbc serio_raw mmc_core atkbd libps2 xhci_pci aesni_intel aes_x86_64 xhci_hcd crypto_simd glue_helper cryptd usbcore rtsx_pci usb_common i8042 serio vfat fat i915 intel_gtt i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm agpgart [ 63.495882] CPU: 1 PID: 858 Comm: rmmod Not tainted 4.16.0+ #1 [ 63.495885] Hardware name: LENOVO 20HQS0LV00/20HQS0LV00, BIOS N1MET45W (1.30 ) 02/22/2018 [ 63.495899] RIP: 0010:v4l2_device_release+0xe3/0x100 [videodev] [ 63.495903] RSP: 0018:9c974505bd60 EFLAGS: 00010202 [ 63.495907] RAX: RBX: 97d00b84a1d0 RCX: [ 63.495910] RDX: 97d00b84a018 RSI: 0286 RDI: c0c7f0e0 [ 63.495912] RBP: 97d008245ae0 R08: R09: [ 63.495915] R10: c823d22a9a00 R11: R12: 97d00b84a019 [ 63.495917] R13: 97d008245b90 R14: 97d00cbaf8f8 R15: [ 63.495921] FS: 7f3549e74b80() GS:97d01f48() knlGS: [ 63.495924] CS: 0010 DS: ES: CR0: 80050033 [ 63.495928] CR2: 01bffe78 CR3: 00047d4e2003 CR4: 003606e0 [ 63.495930] Call Trace: [ 63.495947] device_release+0x30/0x90 [ 63.495958] kobject_put+0x85/0x1a0 [ 63.495967] uvc_unregister_video+0x49/0x90 [uvcvideo] [ 63.495995] usb_unbind_interface+0x85/0x280 [usbcore] [ 63.496007] device_release_driver_internal+0x15a/0x220 [ 63.496014] driver_detach+0x37/0x70 [ 63.496021] bus_remove_driver+0x51/0xd0 [ 63.496051] usb_deregister+0x6a/0xd0 [usbcore] [ 63.496065] uvc_cleanup+0xc/0x36e [uvcvideo] [ 63.496075] SyS_delete_module+0x16a/0x2d0 [ 63.496088] do_syscall_64+0x74/0x190 [ 63.496100] entry_SYSCALL_64_after_hwframe+0x3d/0xa2 [ 63.496105] RIP: 0033:0x7f35495975d7 [ 63.496108] RSP: 002b:7ffcbf653b88 EFLAGS: 0206 ORIG_RAX: 00b0 [ 63.496112] RAX: ffda RBX: RCX: 7f35495975d7 [ 63.496115] RDX: 000a RSI: 0800 RDI: 01bf57b8 [ 63.496117] RBP: 01bf5750 R08: 7ffcbf652b01 R09: [ 63.496119] R10: 08b2 R11: 0206 R12: 7ffcbf655d95 [ 63.496123] R13: R14: 01bf5750 R15: 01bf5260 [ 63.496127] Code: da ce 48 85 ed 74 1f 5b 48 89 ef 5d 41 5c e9 f5 6b 00 00 5b 5d 41 5c e9 6c 9c da ce 4c 89 e7 e8 04 80 f4 ff eb c6 5b 5d 41 5c c3 <0f> 0b 5b 5d 41 5c 48 c7 c7 e0 f0 c7 c0 e9 cb e8 ac ce 90 66 2e [ 63.496214] ---[ end trace d2f4fd290ae1befc ]--- [ 68.700338] uvcvideo: Found UVC 1.00 device Integrated Camera (04f2:b5ce) [ 68.707982] uvcvideo 1-8:1.0: Entity type for entity Extension 4 was not initialized! [ 68.707987] uvcvideo 1-8:1.0: Entity type for entity Extension 3 was not initialized! [ 68.707991] uvcvideo 1-8:1.0: Entity type for entity Processing 2 was not initialized! [ 68.707994] uvcvideo 1-8:1.0: Entity type for entity Camera 1 was not initialized! [