raspberrypi / linux

Kernel source tree for Raspberry Pi-provided kernel builds. Issues unrelated to the linux kernel should be posted on the community forum at https://forums.raspberrypi.com/
Other
11.12k stars 4.98k forks source link

retire_capture_urb with pulseaudio and webcam C310 as microphone #535

Closed Floppe closed 10 years ago

Floppe commented 10 years ago

I'm using a Webcam C310 with ZoneMinder to survey and the microphone is used by PulseAudio which is broadcasted all over the house. All was working perfectly until last summer until kernel was changed to 3.10 series.

Now when PulseAudio starts the kernel log spams which breaks both PulseAudio and ZoneMinder.

I've located which revision it last worked with. Don't know if this is an USB or sound module issue or is it PulseAudio which should adapt.

Hexxeh/rpi-firmware@8234d5148aded657760e9ecd622f324d140ae891 <- WORKS! pi@raspberrypi ~ $ lsusb Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. Bus 001 Device 004: ID 0409:0059 NEC Corp. HighSpeed Hub Bus 001 Device 005: ID 046d:081b Logitech, Inc. Webcam C310 pi@raspberrypi ~ $ lsusb -t /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M | Port 1: Dev 2, If 0, Class=hub, Driver=hub/3p, 480M | Port 1: Dev 3, If 0, Class=vend., Driver=smsc95xx, 480M | Port 2: Dev 4, If 0, Class=hub, Driver=hub/4p, 480M | Port 3: Dev 5, If 0, Class='bInterfaceClass 0x0e not yet handled', Driver=uvcvideo, 480M | Port 3: Dev 5, If 1, Class='bInterfaceClass 0x0e not yet handled', Driver=uvcvideo, 480M | Port 3: Dev 5, If 2, Class=audio, Driver=snd-usb-audio, 480M |__ Port 3: Dev 5, If 3, Class=audio, Driver=snd-usb-audio, 480M

Hexxeh/rpi-firmware@dc709fae6f7fca6d1062dd49ef3527b27439ca73 <- Breaks PulseAudio

pi@raspberrypi ~ $ lsusb Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. Bus 001 Device 004: ID 0409:0059 NEC Corp. HighSpeed Hub Bus 001 Device 005: ID 046d:081b Logitech, Inc. Webcam C310 pi@raspberrypi ~ $ lsusb -t /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M | Port 1: Dev 2, If 0, Class=hub, Driver=hub/3p, 480M | Port 1: Dev 3, If 0, Class=vend., Driver=smsc95xx, 480M | Port 2: Dev 4, If 0, Class=hub, Driver=hub/4p, 480M | Port 3: Dev 5, If 0, Class='bInterfaceClass 0x0e not yet handled', Driver=uvcvideo, 480M | Port 3: Dev 5, If 1, Class='bInterfaceClass 0x0e not yet handled', Driver=uvcvideo, 480M | Port 3: Dev 5, If 2, Class=audio, Driver=snd-usb-audio, 480M |__ Port 3: Dev 5, If 3, Class=audio, Driver=snd-usb-audio, 480M pi@raspberrypi ~ $ pulseaudio --start pi@raspberrypi ~ $ dmesg [ 433.496879] retire_capture_urb: 13 callbacks suppressed [ 438.591066] retire_capture_urb: 26 callbacks suppressed [ 443.719125] retire_capture_urb: 49 callbacks suppressed [ 448.846829] retire_capture_urb: 36 callbacks suppressed [ 453.995929] retire_capture_urb: 38 callbacks suppressed pi@raspberrypi ~ $ pulseaudio -k

P33M commented 10 years ago

Is your webcam streaming video at the same time as audio when this occurs?

Floppe commented 10 years ago

Yes, I'm using mjpg-streamer which streams video to ZoneMinder.

However, I tested today not to start mjpg-streamer after boot and it still occurs.

P33M commented 10 years ago

There's nothing between those two commits either in our kernel patches or upstream changes that could cause this.

The messages you posted are rate-limited - typically only the first one is the actual message. Can you post the full dmesg buffer after the first ~3 seconds of pulseaudio activity?

Floppe commented 10 years ago

So I thought also, but no other messages. I've rebooted and ran pulseaudio for 4-5 seconds and this is what dmesg buffer holds.

pi@raspberrypi ~ $ dmesg [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Initializing cgroup subsys cpuacct [ 0.000000] Linux version 3.10.29+ (dc4@dc4-arm-01) (gcc version 4.7.2 20120731 (prerelease) (crosstool-NG linaro-1.1 3.1+bzr2458 - Linaro GCC 2012.08) ) #636 PREEMPT Sun Feb 9 19:58:58 GMT 2014 [ 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] Machine: BCM2708 [ 0.000000] cma: CMA: reserved 16 MiB at 1b000000 [ 0.000000] Memory policy: ECC disabled, Data cache writeback [ 0.000000] On node 0 totalpages: 114688 [ 0.000000] free_area_init_node: node 0, pgdat c05cfe9c, node_mem_map c067c000 [ 0.000000] Normal zone: 896 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 114688 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: 113792 [ 0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1184 bcm2708_fb.fbheight=624 bcm2708.boardrev =0xd bcm2708.serial=0x78e5960a smsc95xx.macaddr=B8:27:EB:E5:96:0A sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_bas e=0x1ec00000 vc_mem.mem_size=0x20000000 dwc_otg.lpm_enable=0 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: 448MB = 448MB total [ 0.000000] Memory: 431656k/431656k available, 27096k reserved, 0K highmem [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) [ 0.000000] vmalloc : 0xdc800000 - 0xff000000 ( 552 MB) [ 0.000000] lowmem : 0xc0000000 - 0xdc000000 ( 448 MB) [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB) [ 0.000000] .text : 0xc0008000 - 0xc05717b8 (5542 kB) [ 0.000000] .init : 0xc0572000 - 0xc0596364 ( 145 kB) [ 0.000000] .data : 0xc0598000 - 0xc05d09b0 ( 227 kB) [ 0.000000] .bss : 0xc05d09b0 - 0xc067bba0 ( 685 kB) [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] NR_IRQS:330 [ 0.000000] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 4294967ms [ 0.000000] Switching to timer-based delay loop [ 0.000000] Console: colour dummy device 80x30 [ 0.000000] console [tty1] enabled [ 0.001171] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000) [ 0.001238] pid_max: default: 32768 minimum: 301 [ 0.001710] Mount-cache hash table entries: 512 [ 0.002518] Initializing cgroup subsys memory [ 0.002629] Initializing cgroup subsys devices [ 0.002670] Initializing cgroup subsys freezer [ 0.002706] Initializing cgroup subsys blkio [ 0.002868] CPU: Testing write buffer coherency: ok [ 0.003340] Setting up static identity map for 0xc04062a8 - 0xc0406304 [ 0.005148] devtmpfs: initialized [ 0.019594] NET: Registered protocol family 16 [ 0.025575] DMA: preallocated 4096 KiB pool for atomic coherent allocations [ 0.026689] bcm2708.uart_clock = 0 [ 0.028499] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers. [ 0.028554] hw-breakpoint: maximum watchpoint size is 4 bytes. [ 0.028594] mailbox: Broadcom VideoCore Mailbox driver [ 0.028692] bcm2708_vcio: mailbox at f200b880 [ 0.028798] bcm_power: Broadcom power driver [ 0.028839] bcm_power_open() -> 0 [ 0.028868] bcm_power_request(0, 8) [ 0.529589] bcm_mailbox_read -> 00000080, 0 [ 0.529635] bcm_power_request -> 0 [ 0.529860] Serial: AMBA PL011 UART driver [ 0.530007] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83) is a PL011 rev3 [ 0.872202] console [ttyAMA0] enabled [ 0.898180] bio: create slab at 0 [ 0.903504] SCSI subsystem initialized [ 0.907478] usbcore: registered new interface driver usbfs [ 0.913206] usbcore: registered new interface driver hub [ 0.918765] usbcore: registered new device driver usb [ 0.925334] Switching to clocksource stc [ 0.929679] FS-Cache: Loaded [ 0.932844] CacheFiles: Loaded [ 0.948506] NET: Registered protocol family 2 [ 0.953907] TCP established hash table entries: 4096 (order: 3, 32768 bytes) [ 0.961177] TCP bind hash table entries: 4096 (order: 2, 16384 bytes) [ 0.967702] TCP: Hash tables configured (established 4096 bind 4096) [ 0.974185] TCP: reno registered [ 0.977444] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.983352] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.990097] NET: Registered protocol family 1 [ 0.995017] RPC: Registered named UNIX socket transport module. [ 1.001082] RPC: Registered udp transport module. [ 1.005809] RPC: Registered tcp transport module. [ 1.010560] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 1.017914] bcm2708_dma: DMA manager at f2007000 [ 1.022732] bcm2708_gpio: bcm2708_gpio_probe c05a5e50 [ 1.028183] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB) [ 1.037574] audit: initializing netlink socket (disabled) [ 1.043242] type=2000 audit(0.890:1): initialized [ 1.205319] VFS: Disk quotas dquot_6.5.2 [ 1.209701] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 1.218532] FS-Cache: Netfs 'nfs' registered for caching [ 1.225265] NFS: Registering the id_resolver key type [ 1.230581] Key type id_resolver registered [ 1.234792] Key type id_legacy registered [ 1.239592] msgmni has been set to 875 [ 1.245438] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252) [ 1.253291] io scheduler noop registered [ 1.257254] io scheduler deadline registered (default) [ 1.262853] io scheduler cfq registered [ 1.268153] BCM2708FB: allocated DMA memory 5b400000 [ 1.273329] BCM2708FB: allocated DMA channel 0 @ f2007000 [ 1.301923] Console: switching to colour frame buffer device 148x39 [ 1.314300] uart-pl011 dev:f1: no DMA platform data [ 1.319395] kgdb: Registered I/O driver kgdboc. [ 1.324655] vc-cma: Videocore CMA driver [ 1.328672] vc-cma: vc_cma_base = 0x00000000 [ 1.335766] vc-cma: vc_cma_size = 0x00000000 (0 MiB) [ 1.343533] vc-cma: vc_cma_initial = 0x00000000 (0 MiB) [ 1.360587] brd: module loaded [ 1.371310] loop: module loaded [ 1.377019] vchiq: vchiq_init_state: slot_zero = 0xdb000000, is_master = 0 [ 1.387172] Loading iSCSI transport class v2.0-870. [ 1.395766] usbcore: registered new interface driver smsc95xx [ 1.404232] dwc_otg: version 3.00a 10-AUG-2012 (platform bus) [ 1.612548] Core Release: 2.80a [ 1.618003] Setting default values for core params [ 1.625197] Finished setting default values for core params [ 1.833309] Using Buffer DMA mode [ 1.838908] Periodic Transfer Interrupt Enhancement - disabled [ 1.847018] Multiprocessor Interrupt Enhancement - disabled [ 1.854863] OTG VER PARAM: 0, OTG VER FLAG: 0 [ 1.861514] Dedicated Tx FIFOs mode [ 1.867769] dwc_otg: Microframe scheduler enabled [ 1.868012] dwc_otg bcm2708_usb: DWC OTG Controller [ 1.875293] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1 [ 1.884929] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000 [ 1.892740] Init: Port Power? op_state=1 [ 1.898877] Init: Power Port (0) [ 1.904450] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 1.913568] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.923051] usb usb1: Product: DWC OTG Controller [ 1.930007] usb usb1: Manufacturer: Linux 3.10.29+ dwc_otg_hcd [ 1.938062] usb usb1: SerialNumber: bcm2708_usb [ 1.945662] hub 1-0:1.0: USB hub found [ 1.951772] hub 1-0:1.0: 1 port detected [ 1.958284] dwc_otg: FIQ enabled [ 1.958302] dwc_otg: NAK holdoff enabled [ 1.958312] dwc_otg: FIQ split fix enabled [ 1.958331] Module dwc_common_port init [ 1.958786] usbcore: registered new interface driver usb-storage [ 1.967594] mousedev: PS/2 mouse device common for all mice [ 1.976195] bcm2835-cpufreq: min=700000 max=700000 cur=700000 [ 1.984415] bcm2835-cpufreq: switching to governor powersave [ 1.992386] bcm2835-cpufreq: switching to governor powersave [ 2.000299] cpuidle: using governor ladder [ 2.006640] cpuidle: using governor menu [ 2.012889] sdhci: Secure Digital Host Controller Interface driver [ 2.021353] sdhci: Copyright(c) Pierre Ossman [ 2.028049] sdhci: Enable low-latency mode [ 2.079422] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA [ 2.089814] mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77 [ 2.098039] sdhci-pltfm: SDHCI platform and OF driver helper [ 2.106174] ledtrig-cpu: registered to indicate activity on CPUs [ 2.116762] hidraw: raw HID events driver (C) Jiri Kosina [ 2.132101] usbcore: registered new interface driver usbhid [ 2.140139] usbhid: USB HID core driver [ 2.150880] Indeed it is in host mode hprt0 = 00021501 [ 2.160693] TCP: cubic registered [ 2.182442] Initializing XFRM netlink socket [ 2.189458] NET: Registered protocol family 17 [ 2.209591] Key type dns_resolver registered [ 2.216990] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5 [ 2.241079] mmc0: read SD Status register (SSR) after 2 attempts [ 2.259935] registered taskstats version 1 [ 2.269872] Waiting for root device /dev/mmcblk0p2... [ 2.279744] mmc0: new high speed SDHC card at address 0002 [ 2.299630] mmcblk0: mmc0:0002 SD8GB 7.38 GiB [ 2.309569] mmcblk0: p1 p2 [ 2.419442] usb 1-1: new high-speed USB device number 2 using dwc_otg [ 2.428523] Indeed it is in host mode hprt0 = 00001101 [ 2.454672] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null) [ 2.479465] VFS: Mounted root (ext4 filesystem) on device 179:2. [ 2.509784] devtmpfs: mounted [ 2.515732] Freeing unused kernel memory: 144K (c0572000 - c0596000) [ 2.670081] usb 1-1: New USB device found, idVendor=0424, idProduct=9512 [ 2.679881] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 2.690855] hub 1-1:1.0: USB hub found [ 2.697603] hub 1-1:1.0: 3 ports detected [ 2.979715] usb 1-1.1: new high-speed USB device number 3 using dwc_otg [ 3.090106] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00 [ 3.106242] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 3.119736] smsc95xx v1.0.4 [ 3.194828] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb: e5:96:0a [ 3.299666] usb 1-1.2: new high-speed USB device number 4 using dwc_otg [ 3.430192] usb 1-1.2: New USB device found, idVendor=0409, idProduct=0059 [ 3.440172] usb 1-1.2: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 3.451615] hub 1-1.2:1.0: USB hub found [ 3.458583] hub 1-1.2:1.0: 4 ports detected [ 3.749732] usb 1-1.2.3: new high-speed USB device number 5 using dwc_otg [ 4.101749] usb 1-1.2.3: New USB device found, idVendor=046d, idProduct=081b [ 4.118420] usb 1-1.2.3: New USB device strings: Mfr=0, Product=0, SerialNumber=2 [ 4.128973] usb 1-1.2.3: SerialNumber: BA8D4350 [ 4.276556] udevd[156]: starting version 175 [ 6.031890] media: Linux media interface: v0.10 [ 6.404642] Linux video capture interface: v2.00 [ 6.510635] bcm2708-i2s bcm2708-i2s.0: Failed to create debugfs directory [ 6.959556] uvcvideo: Found UVC 1.00 device (046d:081b) [ 7.081631] input: UVC Camera (046d:081b) as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/input/i nput0 [ 7.225161] usbcore: registered new interface driver uvcvideo [ 7.339459] USB Video Class driver (1.1.1) [ 8.562761] set resolution quirk: cval->res = 384 [ 8.583300] usbcore: registered new interface driver snd-usb-audio [ 14.246837] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null) [ 14.741776] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null) [ 20.505876] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. [ 23.573670] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup [ 25.122723] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC1E1 [ 33.356233] Adding 102396k swap on /var/swap. Priority:-1 extents:2 across:507900k SSFS [ 86.149356] retire_capture_urb: 15 callbacks suppressed [ 91.820367] retire_capture_urb: 19 callbacks suppressed pi@raspberrypi ~ $ dmesg [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Initializing cgroup subsys cpuacct [ 0.000000] Linux version 3.10.29+ (dc4@dc4-arm-01) (gcc version 4.7.2 20120731 (prerelease) (crosstool-NG linaro-1.13.1+bzr2458 - Linaro GCC 2012.08) ) #636 PREEMPT Sun Feb 9 19:58:58 GMT 2014 [ 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] Machine: BCM2708 [ 0.000000] cma: CMA: reserved 16 MiB at 1b000000 [ 0.000000] Memory policy: ECC disabled, Data cache writeback [ 0.000000] On node 0 totalpages: 114688 [ 0.000000] free_area_init_node: node 0, pgdat c05cfe9c, node_mem_map c067c000 [ 0.000000] Normal zone: 896 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 114688 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: 113792 [ 0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1184 bcm2708_fb.fbheight=624 bcm2708.boardrev=0xd bcm2708.serial=0x78e5960a smsc95xx.macaddr=B8:27:EB:E5:96:0A sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000 dwc_otg.lpm_enable=0 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: 448MB = 448MB total [ 0.000000] Memory: 431656k/431656k available, 27096k reserved, 0K highmem [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) [ 0.000000] vmalloc : 0xdc800000 - 0xff000000 ( 552 MB) [ 0.000000] lowmem : 0xc0000000 - 0xdc000000 ( 448 MB) [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB) [ 0.000000] .text : 0xc0008000 - 0xc05717b8 (5542 kB) [ 0.000000] .init : 0xc0572000 - 0xc0596364 ( 145 kB) [ 0.000000] .data : 0xc0598000 - 0xc05d09b0 ( 227 kB) [ 0.000000] .bss : 0xc05d09b0 - 0xc067bba0 ( 685 kB) [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] NR_IRQS:330 [ 0.000000] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 4294967ms [ 0.000000] Switching to timer-based delay loop [ 0.000000] Console: colour dummy device 80x30 [ 0.000000] console [tty1] enabled [ 0.001171] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000) [ 0.001238] pid_max: default: 32768 minimum: 301 [ 0.001710] Mount-cache hash table entries: 512 [ 0.002518] Initializing cgroup subsys memory [ 0.002629] Initializing cgroup subsys devices [ 0.002670] Initializing cgroup subsys freezer [ 0.002706] Initializing cgroup subsys blkio [ 0.002868] CPU: Testing write buffer coherency: ok [ 0.003340] Setting up static identity map for 0xc04062a8 - 0xc0406304 [ 0.005148] devtmpfs: initialized [ 0.019594] NET: Registered protocol family 16 [ 0.025575] DMA: preallocated 4096 KiB pool for atomic coherent allocations [ 0.026689] bcm2708.uart_clock = 0 [ 0.028499] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers. [ 0.028554] hw-breakpoint: maximum watchpoint size is 4 bytes. [ 0.028594] mailbox: Broadcom VideoCore Mailbox driver [ 0.028692] bcm2708_vcio: mailbox at f200b880 [ 0.028798] bcm_power: Broadcom power driver [ 0.028839] bcm_power_open() -> 0 [ 0.028868] bcm_power_request(0, 8) [ 0.529589] bcm_mailbox_read -> 00000080, 0 [ 0.529635] bcm_power_request -> 0 [ 0.529860] Serial: AMBA PL011 UART driver [ 0.530007] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83) is a PL011 rev3 [ 0.872202] console [ttyAMA0] enabled [ 0.898180] bio: create slab at 0 [ 0.903504] SCSI subsystem initialized [ 0.907478] usbcore: registered new interface driver usbfs [ 0.913206] usbcore: registered new interface driver hub [ 0.918765] usbcore: registered new device driver usb [ 0.925334] Switching to clocksource stc [ 0.929679] FS-Cache: Loaded [ 0.932844] CacheFiles: Loaded [ 0.948506] NET: Registered protocol family 2 [ 0.953907] TCP established hash table entries: 4096 (order: 3, 32768 bytes) [ 0.961177] TCP bind hash table entries: 4096 (order: 2, 16384 bytes) [ 0.967702] TCP: Hash tables configured (established 4096 bind 4096) [ 0.974185] TCP: reno registered [ 0.977444] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.983352] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.990097] NET: Registered protocol family 1 [ 0.995017] RPC: Registered named UNIX socket transport module. [ 1.001082] RPC: Registered udp transport module. [ 1.005809] RPC: Registered tcp transport module. [ 1.010560] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 1.017914] bcm2708_dma: DMA manager at f2007000 [ 1.022732] bcm2708_gpio: bcm2708_gpio_probe c05a5e50 [ 1.028183] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB) [ 1.037574] audit: initializing netlink socket (disabled) [ 1.043242] type=2000 audit(0.890:1): initialized [ 1.205319] VFS: Disk quotas dquot_6.5.2 [ 1.209701] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 1.218532] FS-Cache: Netfs 'nfs' registered for caching [ 1.225265] NFS: Registering the id_resolver key type [ 1.230581] Key type id_resolver registered [ 1.234792] Key type id_legacy registered [ 1.239592] msgmni has been set to 875 [ 1.245438] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252) [ 1.253291] io scheduler noop registered [ 1.257254] io scheduler deadline registered (default) [ 1.262853] io scheduler cfq registered [ 1.268153] BCM2708FB: allocated DMA memory 5b400000 [ 1.273329] BCM2708FB: allocated DMA channel 0 @ f2007000 [ 1.301923] Console: switching to colour frame buffer device 148x39 [ 1.314300] uart-pl011 dev:f1: no DMA platform data [ 1.319395] kgdb: Registered I/O driver kgdboc. [ 1.324655] vc-cma: Videocore CMA driver [ 1.328672] vc-cma: vc_cma_base = 0x00000000 [ 1.335766] vc-cma: vc_cma_size = 0x00000000 (0 MiB) [ 1.343533] vc-cma: vc_cma_initial = 0x00000000 (0 MiB) [ 1.360587] brd: module loaded [ 1.371310] loop: module loaded [ 1.377019] vchiq: vchiq_init_state: slot_zero = 0xdb000000, is_master = 0 [ 1.387172] Loading iSCSI transport class v2.0-870. [ 1.395766] usbcore: registered new interface driver smsc95xx [ 1.404232] dwc_otg: version 3.00a 10-AUG-2012 (platform bus) [ 1.612548] Core Release: 2.80a [ 1.618003] Setting default values for core params [ 1.625197] Finished setting default values for core params [ 1.833309] Using Buffer DMA mode [ 1.838908] Periodic Transfer Interrupt Enhancement - disabled [ 1.847018] Multiprocessor Interrupt Enhancement - disabled [ 1.854863] OTG VER PARAM: 0, OTG VER FLAG: 0 [ 1.861514] Dedicated Tx FIFOs mode [ 1.867769] dwc_otg: Microframe scheduler enabled [ 1.868012] dwc_otg bcm2708_usb: DWC OTG Controller [ 1.875293] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1 [ 1.884929] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000 [ 1.892740] Init: Port Power? op_state=1 [ 1.898877] Init: Power Port (0) [ 1.904450] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 1.913568] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.923051] usb usb1: Product: DWC OTG Controller [ 1.930007] usb usb1: Manufacturer: Linux 3.10.29+ dwc_otg_hcd [ 1.938062] usb usb1: SerialNumber: bcm2708_usb [ 1.945662] hub 1-0:1.0: USB hub found [ 1.951772] hub 1-0:1.0: 1 port detected [ 1.958284] dwc_otg: FIQ enabled [ 1.958302] dwc_otg: NAK holdoff enabled [ 1.958312] dwc_otg: FIQ split fix enabled [ 1.958331] Module dwc_common_port init [ 1.958786] usbcore: registered new interface driver usb-storage [ 1.967594] mousedev: PS/2 mouse device common for all mice [ 1.976195] bcm2835-cpufreq: min=700000 max=700000 cur=700000 [ 1.984415] bcm2835-cpufreq: switching to governor powersave [ 1.992386] bcm2835-cpufreq: switching to governor powersave [ 2.000299] cpuidle: using governor ladder [ 2.006640] cpuidle: using governor menu [ 2.012889] sdhci: Secure Digital Host Controller Interface driver [ 2.021353] sdhci: Copyright(c) Pierre Ossman [ 2.028049] sdhci: Enable low-latency mode [ 2.079422] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA [ 2.089814] mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77 [ 2.098039] sdhci-pltfm: SDHCI platform and OF driver helper [ 2.106174] ledtrig-cpu: registered to indicate activity on CPUs [ 2.116762] hidraw: raw HID events driver (C) Jiri Kosina [ 2.132101] usbcore: registered new interface driver usbhid [ 2.140139] usbhid: USB HID core driver [ 2.150880] Indeed it is in host mode hprt0 = 00021501 [ 2.160693] TCP: cubic registered [ 2.182442] Initializing XFRM netlink socket [ 2.189458] NET: Registered protocol family 17 [ 2.209591] Key type dns_resolver registered [ 2.216990] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5 [ 2.241079] mmc0: read SD Status register (SSR) after 2 attempts [ 2.259935] registered taskstats version 1 [ 2.269872] Waiting for root device /dev/mmcblk0p2... [ 2.279744] mmc0: new high speed SDHC card at address 0002 [ 2.299630] mmcblk0: mmc0:0002 SD8GB 7.38 GiB [ 2.309569] mmcblk0: p1 p2 [ 2.419442] usb 1-1: new high-speed USB device number 2 using dwc_otg [ 2.428523] Indeed it is in host mode hprt0 = 00001101 [ 2.454672] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null) [ 2.479465] VFS: Mounted root (ext4 filesystem) on device 179:2. [ 2.509784] devtmpfs: mounted [ 2.515732] Freeing unused kernel memory: 144K (c0572000 - c0596000) [ 2.670081] usb 1-1: New USB device found, idVendor=0424, idProduct=9512 [ 2.679881] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 2.690855] hub 1-1:1.0: USB hub found [ 2.697603] hub 1-1:1.0: 3 ports detected [ 2.979715] usb 1-1.1: new high-speed USB device number 3 using dwc_otg [ 3.090106] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00 [ 3.106242] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 3.119736] smsc95xx v1.0.4 [ 3.194828] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:e5:96:0a [ 3.299666] usb 1-1.2: new high-speed USB device number 4 using dwc_otg [ 3.430192] usb 1-1.2: New USB device found, idVendor=0409, idProduct=0059 [ 3.440172] usb 1-1.2: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 3.451615] hub 1-1.2:1.0: USB hub found [ 3.458583] hub 1-1.2:1.0: 4 ports detected [ 3.749732] usb 1-1.2.3: new high-speed USB device number 5 using dwc_otg [ 4.101749] usb 1-1.2.3: New USB device found, idVendor=046d, idProduct=081b [ 4.118420] usb 1-1.2.3: New USB device strings: Mfr=0, Product=0, SerialNumber=2 [ 4.128973] usb 1-1.2.3: SerialNumber: BA8D4350 [ 4.276556] udevd[156]: starting version 175 [ 6.031890] media: Linux media interface: v0.10 [ 6.404642] Linux video capture interface: v2.00 [ 6.510635] bcm2708-i2s bcm2708-i2s.0: Failed to create debugfs directory [ 6.959556] uvcvideo: Found UVC 1.00 device (046d:081b) [ 7.081631] input: UVC Camera (046d:081b) as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/input/input0 [ 7.225161] usbcore: registered new interface driver uvcvideo [ 7.339459] USB Video Class driver (1.1.1) [ 8.562761] set resolution quirk: cval->res = 384 [ 8.583300] usbcore: registered new interface driver snd-usb-audio [ 14.246837] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null) [ 14.741776] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null) [ 20.505876] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. [ 23.573670] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup [ 25.122723] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC1E1 [ 33.356233] Adding 102396k swap on /var/swap. Priority:-1 extents:2 across:507900k SSFS [ 86.149356] retire_capture_urb: 15 callbacks suppressed [ 91.820367] retire_capture_urb: 19 callbacks suppressed pi@raspberrypi ~ $

ssl-umd commented 10 years ago

I can confirm a similar issue when trying to use a Turtle Beach Amigo II USB sound card with RPI

P33M commented 10 years ago

Please retest with latest firmware.

Isochronous transactions are now FIQ-accelerated which should make them more reliable.

Floppe commented 10 years ago

Cool, now it works again. Thanks!

Floppe commented 10 years ago

Well, some logging is still there. But I do not reopen as it seems to still work after almost a hour of testing.

[Thu May 8 13:40:26 2014] retire_capture_urb: 3 callbacks suppressed [Thu May 8 13:48:50 2014] retire_capture_urb: 3 callbacks suppressed [Thu May 8 13:50:14 2014] retire_capture_urb: 19 callbacks suppressed [Thu May 8 13:55:27 2014] retire_capture_urb: 2 callbacks suppressed [Thu May 8 14:05:14 2014] retire_capture_urb: 13 callbacks suppressed [Thu May 8 14:10:24 2014] retire_capture_urb: 7 callbacks suppressed [Thu May 8 14:20:19 2014] retire_capture_urb: 12 callbacks suppressed

jbeale1 commented 8 years ago

The logging spew occurs for me when audio (not video) recording from PS3 Eye usb device, with the current RPi firmware as of July 2016. The audio recording does work, but I wish I could turn off this (apparently meaningless?) stream of messages that show up in 'dmesg'. See also https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=154802 [ 37.360542] retire_capture_urb: 2 callbacks suppressed [ 42.704270] retire_capture_urb: 11 callbacks suppressed [ 49.814220] retire_capture_urb: 9 callbacks suppressed [ 55.164839] retire_capture_urb: 5 callbacks suppressed [ 61.429721] retire_capture_urb: 2 callbacks suppressed [ 67.853663] retire_capture_urb: 2 callbacks suppressed [ 73.419353] retire_capture_urb: 11 callbacks suppressed

mvduin commented 7 years ago

The problem is another instance (in the same file even!) of the problem described and fixed here: https://lkml.org/lkml/2014/5/2/156

The fix in this case would be

diff --git i/sound/usb/pcm.c w/sound/usb/pcm.c
index 44d178ee9177..a71a82c6c953 100644
--- i/sound/usb/pcm.c
+++ w/sound/usb/pcm.c
@@ -1279,8 +1279,8 @@ static void retire_capture_urb(struct snd_usb_substream *subs,

        for (i = 0; i < urb->number_of_packets; i++) {
                cp = (unsigned char *)urb->transfer_buffer + urb->iso_frame_desc[i].offset + subs->pkt_offset_adj;
-               if (urb->iso_frame_desc[i].status && printk_ratelimit()) {
-                       dev_dbg(&subs->dev->dev, "frame %d active: %d\n",
+               if (urb->iso_frame_desc[i].status) {
+                       dev_dbg_ratelimited(&subs->dev->dev, "frame %d active: %d\n",
                                i, urb->iso_frame_desc[i].status);
                        // continue;
                }
popcornmix commented 7 years ago

@mvduin it would be best to report this upstream. We can cherry pick the fix from there.

dan-cristian commented 6 years ago

I get the same kernel message in my logs on a PI 3 device with Logitech C525 USB web cam. I start recording from the USB camera (audio & video) with ffmpeg via v4l (/dev/video0) and following messages starts to get logged in syslog. Quality wise the audio seems to drop from time to time.

Linux 4.9.59-v7+ #1047 SMP Sun Oct 29 12:19:23 GMT 2017 armv7l GNU/Linux

Jan 10 23:46:46 pidash kernel: [ 3.320463] Linux video capture interface: v2.00 Jan 10 23:46:46 pidash kernel: [ 3.507271] usb 1-1.4: set resolution quirk: cval->res = 384 Jan 10 23:46:46 pidash kernel: [ 3.513800] usbcore: registered new interface driver snd-usb-audio Jan 10 23:46:46 pidash kernel: [ 3.513821] uvcvideo: Found UVC 1.00 device HD Webcam C525 (046d:0826) Jan 10 23:46:46 pidash kernel: [ 3.526254] uvcvideo 1-1.4:1.2: Entity type for entity Extension 5 was not initialized! Jan 10 23:46:46 pidash kernel: [ 3.526274] uvcvideo 1-1.4:1.2: Entity type for entity Processing 2 was not initialized! Jan 10 23:46:46 pidash kernel: [ 3.526286] uvcvideo 1-1.4:1.2: Entity type for entity Camera 1 was not initialized! Jan 10 23:46:46 pidash kernel: [ 3.526297] uvcvideo 1-1.4:1.2: Entity type for entity Extension 6 was not initialized! Jan 10 23:46:46 pidash kernel: [ 3.526309] uvcvideo 1-1.4:1.2: Entity type for entity Extension 7 was not initialized! Jan 10 23:46:46 pidash kernel: [ 3.526320] uvcvideo 1-1.4:1.2: Entity type for entity Extension 8 was not initialized! Jan 10 23:46:46 pidash kernel: [ 3.527475] input: HD Webcam C525 as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.2/input/input1 Jan 10 23:46:46 pidash kernel: [ 3.527885] usbcore: registered new interface driver uvcvideo Jan 10 23:46:46 pidash kernel: [ 3.527890] USB Video Class driver (1.1.1) ... ... Jan 10 23:50:44 pidash kernel: [ 233.579381] retire_capture_urb: 2 callbacks suppressed Jan 10 23:50:49 pidash kernel: [ 238.603227] retire_capture_urb: 14 callbacks suppressed Jan 10 23:50:54 pidash kernel: [ 243.607226] retire_capture_urb: 302 callbacks suppressed Jan 10 23:50:59 pidash kernel: [ 248.619228] retire_capture_urb: 313 callbacks suppressed Jan 10 23:51:04 pidash kernel: [ 253.643226] retire_capture_urb: 286 callbacks suppressed Jan 10 23:51:09 pidash kernel: [ 258.647227] retire_capture_urb: 323 callbacks suppressed Jan 10 23:51:14 pidash kernel: [ 263.679245] retire_capture_urb: 272 callbacks suppressed Jan 10 23:51:39 pidash kernel: [ 288.799660] retire_capture_urb: 34 callbacks suppressed