Closed roerch closed 6 years ago
Your webcam is a high-speed device, so should be unaffected by that change. What's even more odd is that swapping the FIQ causes a change in the cam's behaviour.
Can you try with dwc_otg.fiq_fsm_mask=0x3
and remove the dwc_otg.fiq_fsm_enable=0
parameter?
This is an interesting hint. With dwc_otg.fiq_fsm_mask=0x3
the webcam seems to operate normally again, even on the newest kernel. It didn't initially enumerate during bootup, but after unplugging and plugging it, it immediatly worked and during use, it was reset once, but not as previously until it was removed. However dmesg shows after short runtime a worrying (?) message at the very end (this seems to be referring to my USB 1.0 device - the WH1080).
I will leave this setup running for some time, to see if it has implications on any device.
dmesg here:
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.40+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #1022 Sun Jul 30 11:11:04 BST 2017
[ 0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[ 0.000000] OF: fdt:Machine model: Raspberry Pi Model B Rev 2
[ 0.000000] cma: Reserved 8 MiB at 0x1d400000
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] On node 0 totalpages: 122880
[ 0.000000] free_area_init_node: node 0, pgdat c09168d4, node_mem_map dcfc8000
[ 0.000000] Normal zone: 1080 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 122880 pages, LIFO batch:31
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 121800
[ 0.000000] Kernel command line: bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 dwc_otg.fiq_fsm_mask=0x3 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 468416K/491520K available (5949K kernel code, 489K rwdata, 1952K rodata, 400K init, 734K bss, 14912K reserved, 8192K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xde800000 - 0xff800000 ( 528 MB)
lowmem : 0xc0000000 - 0xde000000 ( 480 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.text : 0xc0008000 - 0xc05d771c (5950 kB)
.init : 0xc0842000 - 0xc08a6000 ( 400 kB)
.data : 0xc08a6000 - 0xc0920788 ( 490 kB)
.bss : 0xc0920788 - 0xc09d7f88 ( 734 kB)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000030] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
[ 0.000074] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
[ 0.000171] bcm2835: system timer (irq = 27)
[ 0.000643] Console: colour dummy device 80x30
[ 0.001414] console [tty1] enabled
[ 0.001469] Calibrating delay loop... 697.95 BogoMIPS (lpj=3489792)
[ 0.060346] pid_max: default: 32768 minimum: 301
[ 0.060812] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.060880] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.061990] Disabling cpuset control group subsystem
[ 0.062267] CPU: Testing write buffer coherency: ok
[ 0.062373] ftrace: allocating 21716 entries in 64 pages
[ 0.178766] Setting up static identity map for 0x8200 - 0x8238
[ 0.180847] devtmpfs: initialized
[ 0.189603] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[ 0.190132] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.190230] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.191551] pinctrl core: initialized pinctrl subsystem
[ 0.193054] NET: Registered protocol family 16
[ 0.195556] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[ 0.205161] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[ 0.205254] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.205397] Serial: AMBA PL011 UART driver
[ 0.208205] bcm2835-mbox 2000b880.mailbox: mailbox enabled
[ 0.256036] bcm2835-dma 20007000.dma: DMA legacy API manager at de80d000, dmachans=0x1
[ 0.258884] SCSI subsystem initialized
[ 0.259222] usbcore: registered new interface driver usbfs
[ 0.259390] usbcore: registered new interface driver hub
[ 0.259596] usbcore: registered new device driver usb
[ 0.268836] raspberrypi-firmware soc:firmware: Attached to firmware from 2017-07-28 20:15
[ 0.270839] clocksource: Switched to clocksource timer
[ 0.326679] VFS: Disk quotas dquot_6.6.0
[ 0.326875] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.327239] FS-Cache: Loaded
[ 0.327628] CacheFiles: Loaded
[ 0.346819] NET: Registered protocol family 2
[ 0.348287] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.348447] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.348577] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.348715] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.348782] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.349135] NET: Registered protocol family 1
[ 0.349938] RPC: Registered named UNIX socket transport module.
[ 0.350014] RPC: Registered udp transport module.
[ 0.350052] RPC: Registered tcp transport module.
[ 0.350086] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.351367] hw perfevents: enabled with armv6_1176 PMU driver, 3 counters available
[ 0.353844] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[ 0.373495] FS-Cache: Netfs 'nfs' registered for caching
[ 0.375260] NFS: Registering the id_resolver key type
[ 0.375378] Key type id_resolver registered
[ 0.375420] Key type id_legacy registered
[ 0.379890] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[ 0.380358] io scheduler noop registered
[ 0.380422] io scheduler deadline registered (default)
[ 0.381022] io scheduler cfq registered
[ 0.386923] BCM2708FB: allocated DMA memory 5d500000
[ 0.387055] BCM2708FB: allocated DMA channel 0 @ de80d000
[ 0.431676] Console: switching to colour frame buffer device 228x61
[ 0.468615] bcm2835-rng 20104000.rng: hwrng registered
[ 0.469042] vc-cma: Videocore CMA driver
[ 0.469216] vc-cma: vc_cma_base = 0x00000000
[ 0.469404] vc-cma: vc_cma_size = 0x00000000 (0 MiB)
[ 0.469605] vc-cma: vc_cma_initial = 0x00000000 (0 MiB)
[ 0.470260] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[ 0.498692] brd: module loaded
[ 0.512784] loop: module loaded
[ 0.512985] Loading iSCSI transport class v2.0-870.
[ 0.514218] usbcore: registered new interface driver smsc95xx
[ 0.514500] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 0.743202] Core Release: 2.80a
[ 0.743390] Setting default values for core params
[ 0.743624] Finished setting default values for core params
[ 0.944349] Using Buffer DMA mode
[ 0.944533] Periodic Transfer Interrupt Enhancement - disabled
[ 0.944759] Multiprocessor Interrupt Enhancement - disabled
[ 0.944975] OTG VER PARAM: 0, OTG VER FLAG: 0
[ 0.945233] Dedicated Tx FIFOs mode
[ 0.946058] WARN::dwc_otg_hcd_init:1032: FIQ DMA bounce buffers: virt = 0xdd514000 dma = 0x5d514000 len=9024
[ 0.946465] FIQ FSM acceleration enabled for :
Non-periodic Split Transactions
Periodic Split Transactions
[ 0.946907] dwc_otg: Microframe scheduler enabled
[ 0.947030] WARN::hcd_init_fiq:459: FIQ on core 0 at 0xc04518b4
[ 0.947274] WARN::hcd_init_fiq:460: FIQ ASM at 0xc0451b90 length 36
[ 0.947528] WARN::hcd_init_fiq:486: MPHI regs_base at 0xde8a5000
[ 0.956446] dwc_otg 20980000.usb: DWC OTG Controller
[ 0.965194] dwc_otg 20980000.usb: new USB bus registered, assigned bus number 1
[ 0.973932] dwc_otg 20980000.usb: irq 56, io mem 0x00000000
[ 0.982853] Init: Port Power? op_state=1
[ 0.991366] Init: Power Port (0)
[ 1.000447] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.009047] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.017895] usb usb1: Product: DWC OTG Controller
[ 1.026372] usb usb1: Manufacturer: Linux 4.9.40+ dwc_otg_hcd
[ 1.035156] usb usb1: SerialNumber: 20980000.usb
[ 1.044950] hub 1-0:1.0: USB hub found
[ 1.053911] hub 1-0:1.0: 1 port detected
[ 1.063392] dwc_otg: FIQ enabled
[ 1.063406] dwc_otg: NAK holdoff enabled
[ 1.063414] dwc_otg: FIQ split-transaction FSM enabled
[ 1.063438] Module dwc_common_port init
[ 1.064027] usbcore: registered new interface driver usb-storage
[ 1.073453] mousedev: PS/2 mouse device common for all mice
[ 1.084189] bcm2835-wdt 20100000.watchdog: Broadcom BCM2835 watchdog timer
[ 1.093478] bcm2835-cpufreq: min=700000 max=700000
[ 1.103127] sdhci: Secure Digital Host Controller Interface driver
[ 1.111696] sdhci: Copyright(c) Pierre Ossman
[ 1.121005] sdhost-bcm2835 20202000.sdhost: could not get clk, deferring probe
[ 1.129928] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.139385] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.148394] hidraw: raw HID events driver (C) Jiri Kosina
[ 1.157347] usbcore: registered new interface driver usbhid
[ 1.166209] usbhid: USB HID core driver
[ 1.176440] vchiq: vchiq_init_state: slot_zero = 0xdd580000, is_master = 0
[ 1.188439] Initializing XFRM netlink socket
[ 1.198363] NET: Registered protocol family 17
[ 1.207669] Key type dns_resolver registered
[ 1.218856] registered taskstats version 1
[ 1.228185] vc-sm: Videocore shared memory driver
[ 1.237349] [vc_sm_connected_init]: start
[ 1.247163] [vc_sm_connected_init]: end - returning 0
[ 1.263833] 20201000.serial: ttyAMA0 at MMIO 0x20201000 (irq = 81, base_baud = 0) is a PL011 rev2
[ 2.099856] console [ttyAMA0] enabled
[ 2.115362] sdhost: log_buf @ dd513000 (5d513000)
[ 2.150534] Indeed it is in host mode hprt0 = 00021501
[ 2.226855] random: fast init done
[ 2.251004] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[ 2.265765] of_cfs_init
[ 2.298030] of_cfs_init: OK
[ 2.311902] Waiting for root device /dev/mmcblk0p2...
[ 2.360962] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 2.377764] Indeed it is in host mode hprt0 = 00001101
[ 2.523128] mmc0: host does not support reading read-only switch, assuming write-enable
[ 2.546514] mmc0: new high speed SDHC card at address aaaa
[ 2.563053] mmcblk0: mmc0:aaaa SL32G 29.7 GiB
[ 2.584397] mmcblk0: p1 p2
[ 2.621545] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[ 2.637680] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 2.655506] hub 1-1:1.0: USB hub found
[ 2.668473] hub 1-1:1.0: 3 ports detected
[ 2.712560] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 2.730430] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[ 2.760989] devtmpfs: mounted
[ 2.774920] Freeing unused kernel memory: 400K (c0842000 - c08a6000)
[ 2.790887] This architecture does not have kernel memory protection.
[ 3.010981] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[ 3.151567] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[ 3.168339] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 3.189761] smsc95xx v1.0.5
[ 3.301045] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-20980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:87:c9:c8
[ 3.343924] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
[ 3.369012] systemd[1]: Detected architecture 'arm'.
[ 3.431008] usb 1-1.2: new low-speed USB device number 4 using dwc_otg
[ 3.615910] NET: Registered protocol family 10
[ 3.633280] usb 1-1.2: New USB device found, idVendor=1941, idProduct=8021
[ 3.650445] usb 1-1.2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 3.668348] systemd[1]: Inserted module 'ipv6'
[ 3.689415] systemd[1]: Set hostname to <lucy>.
[ 3.745347] hid-generic 0003:1941:8021.0001: hiddev0,hidraw0: USB HID v1.00 Device [HID 1941:8021] on usb-20980000.usb-1.2/input0
[ 3.861068] usb 1-1.3: new high-speed USB device number 5 using dwc_otg
[ 3.919057] uart-pl011 20201000.serial: no DMA platform data
[ 4.033364] usb 1-1.3: New USB device found, idVendor=05e3, idProduct=0608
[ 4.050908] usb 1-1.3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 4.068525] usb 1-1.3: Product: USB2.0 Hub
[ 4.136417] hub 1-1.3:1.0: USB hub found
[ 4.153915] hub 1-1.3:1.0: 4 ports detected
[ 4.490981] usb 1-1.3.2: new full-speed USB device number 6 using dwc_otg
[ 4.601102] usb 1-1.3.2: device descriptor read/64, error -32
[ 4.830999] usb 1-1.3.2: device descriptor read/64, error -32
[ 5.061027] usb 1-1.3.2: new full-speed USB device number 7 using dwc_otg
[ 5.155707] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
[ 5.181457] usb 1-1.3.2: device descriptor read/64, error -32
[ 5.205609] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[ 5.225534] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ 5.244861] systemd[1]: Expecting device dev-ttyAMA0.device...
[ 5.274292] systemd[1]: Starting Remote File Systems (Pre).
[ 5.303634] systemd[1]: Reached target Remote File Systems (Pre).
[ 5.421047] usb 1-1.3.2: device descriptor read/64, error -32
[ 5.641033] usb 1-1.3.2: new full-speed USB device number 8 using dwc_otg
[ 6.081086] usb 1-1.3.2: device not accepting address 8, error -32
[ 6.181198] usb 1-1.3.2: new full-speed USB device number 9 using dwc_otg
[ 6.209684] fuse init (API version 7.26)
[ 6.621050] usb 1-1.3.2: device not accepting address 9, error -32
[ 6.661483] usb 1-1.3-port2: unable to enumerate USB device
[ 6.821048] usb 1-1.3.3: new high-speed USB device number 10 using dwc_otg
[ 6.992279] usb 1-1.3.3: New USB device found, idVendor=0781, idProduct=5567
[ 7.009480] usb 1-1.3.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 7.026900] usb 1-1.3.3: Product: Cruzer Blade
[ 7.041247] usb 1-1.3.3: Manufacturer: SanDisk
[ 7.055531] usb 1-1.3.3: SerialNumber: 4C530002840602101381
[ 7.152668] usb-storage 1-1.3.3:1.0: USB Mass Storage device detected
[ 7.191866] scsi host0: usb-storage 1-1.3.3:1.0
[ 7.321064] usb 1-1.3.4: new high-speed USB device number 11 using dwc_otg
[ 7.453193] usb 1-1.3.4: New USB device found, idVendor=05e3, idProduct=0608
[ 7.453209] usb 1-1.3.4: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 7.453222] usb 1-1.3.4: Product: USB2.0 Hub
[ 7.454874] hub 1-1.3.4:1.0: USB hub found
[ 7.455364] hub 1-1.3.4:1.0: 4 ports detected
[ 8.029999] systemd-udevd[125]: starting version 215
[ 8.248924] scsi 0:0:0:0: Direct-Access SanDisk Cruzer Blade 1.27 PQ: 0 ANSI: 6
[ 8.251647] sd 0:0:0:0: [sda] 122107136 512-byte logical blocks: (62.5 GB/58.2 GiB)
[ 8.253854] sd 0:0:0:0: [sda] Write Protect is off
[ 8.253892] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
[ 8.254748] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 8.270723] sda: sda1
[ 8.288980] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 10.168970] gpiomem-bcm2835 20200000.gpiomem: Initialised: Registers at 0x20200000
[ 10.409681] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 14.037260] systemd-journald[123]: Received request to flush runtime journal from PID 1
[ 14.599392] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 14.981927] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[ 15.658273] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 15.755305] nf_conntrack version 0.5.0 (8192 buckets, 32768 max)
[ 16.491210] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x4DE1
[ 23.232036] random: crng init done
[ 23.708187] Adding 102396k swap on /var/swap. Priority:-1 extents:129 across:1754856k SSFS
[ 64.203568] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 79.081020] usb 1-1.3.2: new high-speed USB device number 12 using dwc_otg
[ 79.327890] usb 1-1.3.2: New USB device found, idVendor=046d, idProduct=09a1
[ 79.327965] usb 1-1.3.2: New USB device strings: Mfr=0, Product=0, SerialNumber=2
[ 79.327984] usb 1-1.3.2: SerialNumber: 53B6BE20
[ 79.653110] media: Linux media interface: v0.10
[ 79.811549] Linux video capture interface: v2.00
[ 79.911462] usb 1-1.3.2: Warning! Unlikely big volume range (=3072), cval->res is probably wrong.
[ 79.911492] usb 1-1.3.2: [5] FU [Mic Capture Volume] ch = 1, val = 4608/7680/1
[ 79.914851] usbcore: registered new interface driver snd-usb-audio
[ 80.083032] uvcvideo: Found UVC 1.00 device <unnamed> (046d:09a1)
[ 80.115286] uvcvideo 1-1.3.2:1.0: Entity type for entity Extension 4 was not initialized!
[ 80.115324] uvcvideo 1-1.3.2:1.0: Entity type for entity Extension 10 was not initialized!
[ 80.115344] uvcvideo 1-1.3.2:1.0: Entity type for entity Extension 12 was not initialized!
[ 80.115364] uvcvideo 1-1.3.2:1.0: Entity type for entity Extension 8 was not initialized!
[ 80.115380] uvcvideo 1-1.3.2:1.0: Entity type for entity Extension 11 was not initialized!
[ 80.115396] uvcvideo 1-1.3.2:1.0: Entity type for entity Processing 2 was not initialized!
[ 80.115416] uvcvideo 1-1.3.2:1.0: Entity type for entity Extension 13 was not initialized!
[ 80.115434] uvcvideo 1-1.3.2:1.0: Entity type for entity Camera 1 was not initialized!
[ 80.117108] input: UVC Camera (046d:09a1) as /devices/platform/soc/20980000.usb/usb1/1-1/1-1.3/1-1.3.2/1-1.3.2:1.0/input/input0
[ 80.171904] usbcore: registered new interface driver uvcvideo
[ 80.171921] USB Video Class driver (1.1.1)
[ 91.151111] usb 1-1.3.2: reset high-speed USB device number 12 using dwc_otg
[ 444.192387] Transfer to device 4 endpoint 0x1 frame 1418 failed - FIQ reported NYET. Data may have been lost.
Just for completeness, my USB setup (sudo lsusb):
Bus 001 Device 011: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 010: ID 0781:5567 SanDisk Corp. Cruzer Blade
Bus 001 Device 012: ID 046d:09a1 Logitech, Inc. QuickCam Communicate MP/S5500
Bus 001 Device 005: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 004: ID 1941:8021 Dream Link WH1080 Weather Station / USB Missile Launcher
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. LAN9500 Ethernet 10/100 Adapter / SMSC9512/9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
What program are you using to read from the webcam? As it's a standard UVC cam I may be able to reproduce the condition.
I use the standard uvccapture
to capture a single frame.
The exact command I use is uvccapture -S90 -G60 -B150 -C60 -x960 -y720 -m -o/tmp/snap.jpg
.
This command is embedded into a cron job running every 10 minutes. But it either works all the time, or not at all.
@roerch I knows it's been a while, but it would be worth updated to the latest kernel to see if anything gets fixed. If this is no longer an issue, please close the report.
This issue will be closed within 30 days unless further interactions are posted. If you wish this issue to remain open, please add a comment. A closed issue may be reopened if requested.
Ok, I updated now to the most recent 4.14 kernel via rpi-update (commit: 963a31330613a38e160dc98b708c662dd32631d5). Spontaneously, all seems fine, but I will monitor this for some days and if it doesn't occur again, close the issue.
After nearly a week of running the current kernel, I can confirm that my issue is not occurring anymore. Thanks for solving this.
As mentioned in #1709 there seems to be a regression between commits 528b516135111e0184336d3c290001c2681a675a and a86bfee5b47a74c13056997f1e4d8b9d8090b398.
Problem: I have (besides other things) a webcam connected to my Raspberry via a externally powered hub. The hub itself is Single TT, but today I verified that the same issue happens with a MultiTT hub. After booting (if at all) the webcam can be used once, after which it is being reset by dwc_otg and not enumerating anymore. With kernel 4.9.24 this was working fine, with kernel 4.9.25 and above, the above problem occurs. Another thing maybe worth to mention: The webcam works with 4.9.25 and above if I edit the cmdline.txt to set dwc_otg.fiq_fsm_enable to 0 (NOP FIQ) - however this then breaks an USB 1.0 device by delivering garbled data and is no solution for me either. Let me know, if you need further input from my side.
Output of dmesg:
Relevant output of
sudo lsusb -v
before the camera is reset and removed: