jdb
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2127
Joined: Thu Jul 11, 2013 2:37 pm

Re: Call for beta testers: FIQ_FSM USB driver rewrite

Fri Apr 25, 2014 6:04 pm

vmstat shows a large swing in interrupt numbers for half of that listing (~300 -> ~2000). What happened in that time?
Rockets are loud.
https://astro-pi.org

GrayShade
Posts: 39
Joined: Fri Jul 05, 2013 6:13 am

Re: Call for beta testers: FIQ_FSM USB driver rewrite

Fri Apr 25, 2014 6:09 pm

jdb wrote:vmstat shows a large swing in interrupt numbers for half of that listing (~300 -> ~2000). What happened in that time?
Ah, sorry. That's where I started playback. I also stopped the playback a bit before the end. vmstat with the working version gives similar numbers:

Code: Select all

procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 0  0      0 389460   9704  47464    0    0    74     4  627  159  3  3 93  1  0
 0  0      0 389460   9720  47464    0    0     0    30  306   58  0  0 96  4  0
 0  0      0 389460   9720  47472    0    0     0   134  463  160  0  5 95  0  0
 0  0      0 389312   9720  47472    0    0     0    18  774  106  2  0 98  0  0
 0  0      0 389312   9720  47472    0    0     0     0 2160  109  0  1 99  0  0
 0  0      0 389312   9728  47472    0    0     0    14 2162  110  0  1 99  1  0
 1  0      0 389280   9728  47472    0    0     0     0 2170  114  0  0 100 0  0
 0  0      0 389312   9728  47472    0    0     0     0 2160  112  0  1 99  0  0
 1  0      0 389312   9728  47472    0    0     0     0 2151  103  0  0 100  0 0
 0  0      0 389312   9728  47472    0    0     0     0 2181  125  0  0 100  0  0
 0  0      0 389312   9728  47472    0    0     0     0 2154  104  0  0 100  0  0
 0  0      0 389312   9728  47472    0    0     0     0 2167  112  1  1 99  0  0
 0  0      0 389312   9728  47472    0    0     0     0 2154  107  0  0 100  0  0
 0  0      0 389312   9728  47472    0    0     0     0 2156  105  0  0 100  0  0
 0  0      0 389312   9728  47472    0    0     0     0 2158  108  0  0 100  0  0
 0  0      0 389312   9728  47472    0    0     0     0 2161  108  0  1 99  0  0
 0  0      0 389312   9728  47472    0    0     0     0 2152  100  0  0 100  0  0
 0  0      0 389312   9728  47472    0    0     0     0 2170  106  0  0 100  0  0
 0  0      0 389312   9728  47472    0    0     0     0 2164  110  0  0 100  0  0
 1  0      0 389312   9728  47472    0    0     0     0 2165  105  1  1 99  0  0
 0  0      0 389312   9728  47472    0    0     0    10 2168  106  0  1 99  0  0

andrea.iob
Posts: 12
Joined: Wed Apr 02, 2014 6:23 pm

Re: Call for beta testers: FIQ_FSM USB driver rewrite

Sun Apr 27, 2014 4:11 pm

andrea.iob wrote:Among the Linux 3.13 commits I've found the patch ALSA: improve buffer size computations for USB PCM audio. Do you think it could help? If it is the case could it be possible to update the kernel in the next branch to include this patch?
I've recompiled the 3.12 kernel with the above patch, but there are no improvements. Same noise on all the files I play.

User avatar
DougieLawson
Posts: 36330
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Call for beta testers: FIQ_FSM USB driver rewrite

Sun Apr 27, 2014 4:22 pm

andrea.iob wrote:
andrea.iob wrote:Among the Linux 3.13 commits I've found the patch ALSA: improve buffer size computations for USB PCM audio. Do you think it could help? If it is the case could it be possible to update the kernel in the next branch to include this patch?
I've recompiled the 3.12 kernel with the above patch, but there are no improvements. Same noise on all the files I play.
Have you enabled the new stuff with:

Code: Select all

 dwc_otg.fiq_enable=1 dwc_otg.fiq_fsm_enable=1 dwc_otg.fiq_fsm_mask=0x3 dwc_otg.fiq_fsm_mask=0x7
on the tail end of your /boot/cmdline.txt?
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

andrea.iob
Posts: 12
Joined: Wed Apr 02, 2014 6:23 pm

Re: Call for beta testers: FIQ_FSM USB driver rewrite

Sun Apr 27, 2014 4:45 pm

DougieLawson wrote: Have you enabled the new stuff with:

Code: Select all

 dwc_otg.fiq_enable=1 dwc_otg.fiq_fsm_enable=1 dwc_otg.fiq_fsm_mask=0x3 dwc_otg.fiq_fsm_mask=0x7
on the tail end of your /boot/cmdline.txt?
This is my new dmesg output:

Code: Select all

[    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.12.18+ ([email protected]) (gcc version 4.7.1 20120402 (prerelease) (crosstool-NG 1.15.2) ) #1 PREEMPT Sun Apr 27 17:14:35 CEST 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] Memory policy: ECC disabled, Data cache writeback
[    0.000000] On node 0 totalpages: 126976
[    0.000000] free_area_init_node: node 0, pgdat c05fed70, node_mem_map c06b0000
[    0.000000]   Normal zone: 992 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 126976 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: 125984
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708.boardrev=0xe bcm2708.serial=0x3d291570 smsc95xx.macaddr=B8:27:EB:29:15:70 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x1fa00000 vc_mem.mem_size=0x20000000  force_turbo=1 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p3 elevator=noop rootfstype=ext4 rootwait smsc95xx.turbo_mode=N dwc_otg.fiq_enable=1 dwc_otg.fiq_fsm_enable=1 dwc_otg.fiq_fsm_mask=0x7
[    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: 496632K/507904K available (4380K kernel code, 238K rwdata, 1340K rodata, 143K init, 701K bss, 11272K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xdf800000 - 0xff000000   ( 504 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xdf000000   ( 496 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc059e520   (5722 kB)
[    0.000000]       .init : 0xc059f000 - 0xc05c2c74   ( 144 kB)
[    0.000000]       .data : 0xc05c4000 - 0xc05ff880   ( 239 kB)
[    0.000000]        .bss : 0xc05ff88c - 0xc06af018   ( 702 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:394
[    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.001287] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000)
[    0.001350] pid_max: default: 32768 minimum: 301
[    0.001848] Mount-cache hash table entries: 512
[    0.002672] Initializing cgroup subsys memory
[    0.002785] Initializing cgroup subsys devices
[    0.002824] Initializing cgroup subsys freezer
[    0.002856] Initializing cgroup subsys blkio
[    0.003000] CPU: Testing write buffer coherency: ok
[    0.003468] Setting up static identity map for 0xc0428f38 - 0xc0428f94
[    0.005322] devtmpfs: initialized
[    0.021740] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    0.022428] NET: Registered protocol family 16
[    0.027517] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.028153] cpuidle: using governor ladder
[    0.028208] cpuidle: using governor menu
[    0.028869] bcm2708.uart_clock = 0
[    0.030808] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.030868] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.030906] mailbox: Broadcom VideoCore Mailbox driver
[    0.031007] bcm2708_vcio: mailbox at f200b880
[    0.031114] bcm_power: Broadcom power driver
[    0.031152] bcm_power_open() -> 0
[    0.031177] bcm_power_request(0, 8)
[    0.531887] bcm_mailbox_read -> 00000080, 0
[    0.531927] bcm_power_request -> 0
[    0.532158] Serial: AMBA PL011 UART driver
[    0.532304] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83, base_baud = 0) is a PL011 rev3
[    0.893638] console [ttyAMA0] enabled
[    0.920223] bio: create slab <bio-0> at 0
[    0.925535] SCSI subsystem initialized
[    0.929532] usbcore: registered new interface driver usbfs
[    0.935231] usbcore: registered new interface driver hub
[    0.940783] usbcore: registered new device driver usb
[    0.947626] Switched to clocksource stc
[    0.951865] FS-Cache: Loaded
[    0.955027] CacheFiles: Loaded
[    0.970736] NET: Registered protocol family 2
[    0.976209] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.983615] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.990184] TCP: Hash tables configured (established 4096 bind 4096)
[    0.996635] TCP: reno registered
[    0.999934] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    1.005805] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    1.012555] NET: Registered protocol family 1
[    1.017479] RPC: Registered named UNIX socket transport module.
[    1.023541] RPC: Registered udp transport module.
[    1.028303] RPC: Registered tcp transport module.
[    1.033023] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.040623] bcm2708_dma: DMA manager at f2007000
[    1.045360] bcm2708_gpio: bcm2708_gpio_probe c05d1ed0
[    1.050897] vc-mem: phys_addr:0x00000000 mem_base=0x1fa00000 mem_size:0x20000000(512 MiB)
[    1.060526] audit: initializing netlink socket (disabled)
[    1.066017] type=2000 audit(0.910:1): initialized
[    1.231713] VFS: Disk quotas dquot_6.5.2
[    1.235980] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.244915] FS-Cache: Netfs 'nfs' registered for caching
[    1.251845] NFS: Registering the id_resolver key type
[    1.257025] Key type id_resolver registered
[    1.261342] Key type id_legacy registered
[    1.266103] msgmni has been set to 969
[    1.272041] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    1.279889] io scheduler noop registered (default)
[    1.284715] io scheduler deadline registered
[    1.289431] io scheduler cfq registered
[    1.293643] BCM2708FB: allocated DMA memory 5e970000
[    1.298795] BCM2708FB: allocated DMA channel 0 @ f2007000
[    1.314910] Console: switching to colour frame buffer device 82x26
[    1.324997] uart-pl011 dev:f1: no DMA platform data
[    1.331447] kgdb: Registered I/O driver kgdboc.
[    1.338090] vc-cma: Videocore CMA driver
[    1.343349] vc-cma: vc_cma_base      = 0x00000000
[    1.349371] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
[    1.356015] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
[    1.371970] brd: module loaded
[    1.381486] loop: module loaded
[    1.386114] vchiq: vchiq_init_state: slot_zero = 0xdf804000, is_master = 0
[    1.395022] Loading iSCSI transport class v2.0-870.
[    1.402336] usbcore: registered new interface driver smsc95xx
[    1.409580] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.616847] Core Release: 2.80a
[    1.621336] Setting default values for core params
[    1.627348] Finished setting default values for core params
[    1.834212] Using Buffer DMA mode
[    1.838794] Periodic Transfer Interrupt Enhancement - disabled
[    1.845876] Multiprocessor Interrupt Enhancement - disabled
[    1.852714] OTG VER PARAM: 0, OTG VER FLAG: 0
[    1.858375] Dedicated Tx FIFOs mode
[    1.863317] WARN::dwc_otg_hcd_init:1040: FIQ DMA bounce buffers: virt = 0xdfc20000 dma = 0x5e9d0000 len=9024
[    1.875740] FIQ FSM acceleration enabled for :
[    1.875740] Non-periodic Split Transactions
[    1.875740] Periodic Split Transactions
[    1.875740] High-Speed Isochronous Endpoints
[    1.897573] dwc_otg: Microframe scheduler enabled
[    1.897736] WARN::hcd_init:473: FIQ at 0xc030925c
[    1.903789] WARN::hcd_init:474: FIQ ASM at 0xc03094d8 length 36
[    1.911109] WARN::hcd_init:500: MPHI regs_base at 0xdfc1a000
[    1.918150] dwc_otg bcm2708_usb: DWC OTG Controller
[    1.924381] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[    1.933034] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[    1.939909] Init: Port Power? op_state=1
[    1.945116] Init: Power Port (0)
[    1.949897] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.958085] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.966624] usb usb1: Product: DWC OTG Controller
[    1.972641] usb usb1: Manufacturer: Linux 3.12.18+ dwc_otg_hcd
[    1.979802] usb usb1: SerialNumber: bcm2708_usb
[    1.986428] hub 1-0:1.0: USB hub found
[    1.991636] hub 1-0:1.0: 1 port detected
[    1.997267] dwc_otg: FIQ enabled
[    1.997285] dwc_otg: NAK holdoff enabled
[    1.997295] dwc_otg: FIQ split-transaction FSM enabled
[    1.997314] Module dwc_common_port init
[    1.997868] usbcore: registered new interface driver usb-storage
[    2.005475] mousedev: PS/2 mouse device common for all mice
[    2.013052] bcm2835-cpufreq: min=700000 max=700000 cur=700000
[    2.020293] bcm2835-cpufreq: switching to governor powersave
[    2.027220] bcm2835-cpufreq: switching to governor powersave
[    2.034228] sdhci: Secure Digital Host Controller Interface driver
[    2.041703] sdhci: Copyright(c) Pierre Ossman
[    2.047373] sdhci: Enable low-latency mode
[    2.097728] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA
[    2.108269] mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77
[    2.115516] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.122697] ledtrig-cpu: registered to indicate activity on CPUs
[    2.132339] hidraw: raw HID events driver (C) Jiri Kosina
[    2.146697] usbcore: registered new interface driver usbhid
[    2.153790] usbhid: USB HID core driver
[    2.163702] TCP: cubic registered
[    2.170493] Initializing XFRM netlink socket
[    2.178219] NET: Registered protocol family 17
[    2.184230] Key type dns_resolver registered
[    2.193310] Indeed it is in host mode hprt0 = 00021501
[    2.204518] registered taskstats version 1
[    2.218846] Waiting for root device /dev/mmcblk0p3...
[    2.248292] mmc0: new high speed SDHC card at address aaaa
[    2.267895] mmcblk0: mmc0:aaaa SU16G 14.8 GiB 
[    2.275340]  mmcblk0: p1 p3
[    2.342991] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
[    2.354212] VFS: Mounted root (ext4 filesystem) on device 179:3.
[    2.372380] devtmpfs: mounted
[    2.377249] Freeing unused kernel memory: 140K (c059f000 - c05c2000)
[    2.407789] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.415887] Indeed it is in host mode hprt0 = 00001101
[    2.618215] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[    2.626450] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.636431] hub 1-1:1.0: USB hub found
[    2.641867] hub 1-1:1.0: 3 ports detected
[    2.927924] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    3.038255] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    3.046778] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.067219] smsc95xx v1.0.4
[    3.133898] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:29:15:70
[    3.247918] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[    3.359770] usb 1-1.2: New USB device found, idVendor=0b05, idProduct=17ab
[    3.369715] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.378881] usb 1-1.2: Product: 802.11n WLAN Adapter
[    3.385430] usb 1-1.2: Manufacturer: Realtek
[    3.391331] usb 1-1.2: SerialNumber: 00e04c000001
[    3.477939] usb 1-1.3: new high-speed USB device number 5 using dwc_otg
[    3.609507] usb 1-1.3: New USB device found, idVendor=05e3, idProduct=0608
[    3.625950] usb 1-1.3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    3.647823] usb 1-1.3: Product: USB2.0 Hub
[    3.658695] hub 1-1.3:1.0: USB hub found
[    3.667298] hub 1-1.3:1.0: 4 ports detected
[    3.958132] usb 1-1.3.1: new high-speed USB device number 6 using dwc_otg
[    4.082243] udevd[156]: starting version 175
[    4.550015] usb 1-1.3.1: New USB device found, idVendor=090c, idProduct=1000
[    4.580796] usb 1-1.3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    4.611799] usb 1-1.3.1: Product: USB DISK
[    4.617444] usb 1-1.3.1: Manufacturer: SMI Corporation
[    4.658143] usb-storage 1-1.3.1:1.0: USB Mass Storage device detected
[    4.674833] scsi0 : usb-storage 1-1.3.1:1.0
[    4.778132] usb 1-1.3.3: new high-speed USB device number 7 using dwc_otg
[    4.899188] usb 1-1.3.3: New USB device found, idVendor=1058, idProduct=0704
[    4.922503] usb 1-1.3.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    4.934448] bcm2708_i2c_init_pinmode(0,0)
[    4.957823] usb 1-1.3.3: Product: External HDD    
[    4.965863] usb 1-1.3.3: Manufacturer: Western Digital 
[    4.997513] usb 1-1.3.3: SerialNumber: 575843363038413039313933
[    5.015599] usb-storage 1-1.3.3:1.0: USB Mass Storage device detected
[    5.038048] usb-storage 1-1.3.3:1.0: Quirks match for vid 1058 pid 0704: 8000
[    5.052483] scsi1 : usb-storage 1-1.3.3:1.0
[    5.087924] bcm2708_i2c_init_pinmode(0,1)
[    5.093874] bcm2708_i2c bcm2708_i2c.0: BSC0 Controller at 0x20205000 (irq 79) (baudrate 100k)
[    5.138123] usb 1-1.3.4: new full-speed USB device number 8 using dwc_otg
[    5.269378] usb 1-1.3.4: New USB device found, idVendor=4852, idProduct=0006
[    5.287907] usb 1-1.3.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    5.307811] usb 1-1.3.4: Product: Music Streamer II+
[    5.314490] usb 1-1.3.4: Manufacturer: www.hirestech.com 2013 REV 3.0
[    5.350719] hid-generic 0003:4852:0006.0001: hiddev0,hidraw0: USB HID v1.00 Device [www.hirestech.com 2013 REV 3.0 Music Streamer II+] on usb-bcm2708_usb-1.3.4/input2
[    5.389676] bcm2708_spi bcm2708_spi.0: master is unqueued, this is deprecated
[    5.552654] bcm2708_spi bcm2708_spi.0: SPI Controller at 0x20204000 (irq 80)
[    5.693533] bcm2708_i2c_init_pinmode(1,2)
[    5.734739] bcm2708_i2c_init_pinmode(1,3)
[    5.791681] bcm2708_i2c bcm2708_i2c.1: BSC1 Controller at 0x20804000 (irq 79) (baudrate 100k)
[    5.805514] scsi 0:0:0:0: Direct-Access     SMI      USB DISK         1100 PQ: 0 ANSI: 0 CCS
[    5.829181] sd 0:0:0:0: [sda] 3932160 512-byte logical blocks: (2.01 GB/1.87 GiB)
[    5.853476] sd 0:0:0:0: [sda] Write Protect is off
[    5.867798] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
[    5.868665] sd 0:0:0:0: [sda] No Caching mode page found
[    5.875651] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    5.905300] sd 0:0:0:0: [sda] No Caching mode page found
[    5.920355] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    5.936784]  sda: sda1
[    5.950305] sd 0:0:0:0: [sda] No Caching mode page found
[    5.957185] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    5.977877] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    6.058756] scsi 1:0:0:0: Direct-Access     WD       2500BEV External 1.05 PQ: 0 ANSI: 4
[    6.088222] sd 1:0:0:0: [sdb] 488397168 512-byte logical blocks: (250 GB/232 GiB)
[    6.108545] sd 1:0:0:0: [sdb] Write Protect is off
[    6.115012] sd 1:0:0:0: [sdb] Mode Sense: 21 00 00 00
[    6.119480] sd 1:0:0:0: [sdb] No Caching mode page found
[    6.126454] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[    6.154108] sd 1:0:0:0: [sdb] No Caching mode page found
[    6.167773] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[    6.220998]  sdb: sdb1
[    6.230734] sd 1:0:0:0: [sdb] No Caching mode page found
[    6.237534] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[    6.262825] sd 1:0:0:0: [sdb] Attached SCSI disk
[    6.691485] bcm2708-i2s bcm2708-i2s.0: Failed to create debugfs directory
[    7.525868] usbcore: registered new interface driver rtl8192cu
[    7.609832] pcm512x 1-004c: Failed to reset device: -5
[    7.616637] pcm512x: probe of 1-004c failed with error -5
[    7.754939] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    7.807070] sd 1:0:0:0: Attached scsi generic sg1 type 0
[    7.927512] snd_usb_audio: unknown parameter 'nrpacks' ignored
[    8.024402] usbcore: registered new interface driver snd-usb-audio
[    9.232832] FAT-fs (sda1): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[    9.295713] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[   14.113039] FAT-fs (sdb1): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[   14.153562] FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[   16.595325] EXT4-fs (mmcblk0p3): re-mounted. Opts: (null)
[   17.037079] EXT4-fs (mmcblk0p3): Mount option "nouser_xattr" will be removed by 3.5
[   17.037079] Contact [email protected] if you think we should keep it.
[   17.037079] 
[   17.062164] EXT4-fs (mmcblk0p3): re-mounted. Opts: nouser_xattr,errors=remount-ro
[   22.759369] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[   25.323585] NET: Registered protocol family 10
[   25.864128] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   26.030752] ip_tables: (C) 2000-2006 Netfilter Core Team
[   26.130042] nf_conntrack version 0.5.0 (7762 buckets, 31048 max)
[   26.422744] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   26.432325] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   90.225106] Installing knfsd (copyright (C) 1996 [email protected]).
[   97.060761] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[  120.735638] bcm2835-cpufreq: switching to governor performance
[  120.744310] bcm2835-cpufreq: switching to governor performance
The fiq_fsm seems properly enabled and I think that also the ALSA patch is correctly applied (the parameter 'nrpacks' of the snd_usb_audio module is now ignored as the patch removes it).

ioudas
Posts: 16
Joined: Mon Jan 27, 2014 3:56 pm

Re: Call for beta testers: FIQ_FSM USB driver rewrite

Mon Apr 28, 2014 12:11 pm

gsh wrote:Are you sure you're using the latest driver? can you just do

dmesg | grep fiq

Just to check that the fiq_fsm is properly enabled?

Thanks

Gordon

Yes this is confirmed in dmesg.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5343
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Call for beta testers: FIQ_FSM USB driver rewrite

Mon Apr 28, 2014 10:49 pm

FIQ FSM is now on master branch:

Code: Select all

sudo rpi-update
will get you the FIQ FSM kernel. See:
http://www.raspberrypi.org/forums/viewt ... 29&t=75895

jdb
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2127
Joined: Thu Jul 11, 2013 2:37 pm

Re: Call for beta testers: FIQ_FSM USB driver rewrite

Mon Apr 28, 2014 10:51 pm

Note that as of the merge to the master branch of rpi-update, fiq_fsm is now enabled by default.
Rockets are loud.
https://astro-pi.org

tuxx
Posts: 7
Joined: Thu Mar 06, 2014 10:42 am

Re: Call for beta testers: FIQ_FSM USB driver rewrite

Tue Apr 29, 2014 11:31 am

I updated to latest main and my rpi cannot boot. I will test with an hdmi cable to see the output the soonest possible.

My distro is ArchlinuxARM.

GrayShade
Posts: 39
Joined: Fri Jul 05, 2013 6:13 am

Re: Call for beta testers: FIQ_FSM USB driver rewrite

Tue Apr 29, 2014 11:33 am

tuxx wrote:I updated to latest main and my rpi cannot boot. I will test with an hdmi cable to see the output the soonest possible.

My distro is ArchlinuxARM.
Try removing your CMA settings from config.txt.

kursus
Posts: 25
Joined: Thu Oct 31, 2013 2:36 pm

Re: Call for beta testers: FIQ_FSM USB driver rewrite

Tue Apr 29, 2014 3:49 pm

Just so it's clear the cmdline.txt has to be in default state now ?

I've been using many kernel tweaks before this new driver comes up, it would be nice to have a summary of the recommanded setup now (Turbo mode, etc.)

lupine
Posts: 8
Joined: Wed Jul 25, 2012 12:46 pm

Re: Call for beta testers: FIQ_FSM USB driver rewrite

Tue Apr 29, 2014 3:52 pm

Hi

Iam having trouble with my PCSC readers:

lsusb -v output

Code: Select all

Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         2 TT per port
  bMaxPacketSize0        64
  idVendor           0x0424 Standard Microsystems Corp.
  idProduct          0x9512
  bcdDevice            2.00
  iManufacturer           0
  iProduct                0
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           41
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                2mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      1 Single TT
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0001  1x 1 bytes
        bInterval              12
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       1
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      2 TT per port
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0001  1x 1 bytes
        bInterval              12
Hub Descriptor:
  bLength               9
  bDescriptorType      41
  nNbrPorts             3
  wHubCharacteristic 0x000d
    Per-port power switching
    Compound device
    Per-port overcurrent protection
    TT think time 8 FS bits
  bPwrOn2PwrGood       50 * 2 milli seconds
  bHubContrCurrent      1 milli Ampere
  DeviceRemovable    0x02
  PortPwrCtrlMask    0xff
 Hub Port Status:
   Port 1: 0000.0503 highspeed power enable connect
   Port 2: 0000.0503 highspeed power enable connect
   Port 3: 0000.0100 power
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         0 Full speed (or root) hub
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0001
  Self Powered

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         1 Single TT
  bMaxPacketSize0        64
  idVendor           0x1d6b Linux Foundation
  idProduct          0x0002 2.0 root hub
  bcdDevice            3.12
  iManufacturer           3 Linux 3.12.18+ dwc_otg_hcd
  iProduct                2 DWC OTG Controller
  iSerial                 1 bcm2708_usb
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              12
Hub Descriptor:
  bLength               9
  bDescriptorType      41
  nNbrPorts             1
  wHubCharacteristic 0x0008
    Ganged power switching
    Per-port overcurrent protection
    TT think time 8 FS bits
  bPwrOn2PwrGood        1 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  DeviceRemovable    0x00
  PortPwrCtrlMask    0xff
 Hub Port Status:
   Port 1: 0000.0503 highspeed power enable connect
Device Status:     0x0001
  Self Powered

Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass          255 Vendor Specific Class
  bDeviceSubClass         0
  bDeviceProtocol         1
  bMaxPacketSize0        64
  idVendor           0x0424 Standard Microsystems Corp.
  idProduct          0xec00
  bcdDevice            2.00
  iManufacturer           0
  iProduct                0
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           39
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                2mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0
      bInterfaceProtocol    255
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               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               4
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass          255 Vendor Specific Class
  bDeviceSubClass         0
  bDeviceProtocol         1
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0001
  Self Powered

Bus 001 Device 004: ID 050d:0234 Belkin Components F5U234 USB 2.0 4-Port Hub
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         2 TT per port
  bMaxPacketSize0        64
  idVendor           0x050d Belkin Components
  idProduct          0x0234 F5U234 USB 2.0 4-Port Hub
  bcdDevice           32.98
  iManufacturer           0
  iProduct                0
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           41
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      1 Single TT
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0001  1x 1 bytes
        bInterval              12
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       1
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      2 TT per port
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0001  1x 1 bytes
        bInterval              12
Hub Descriptor:
  bLength               9
  bDescriptorType      41
  nNbrPorts             4
  wHubCharacteristic 0x00e9
    Per-port power switching
    Per-port overcurrent protection
    TT think time 32 FS bits
    Port indicators
  bPwrOn2PwrGood       50 * 2 milli seconds
  bHubContrCurrent    100 milli Ampere
  DeviceRemovable    0x00
  PortPwrCtrlMask    0xff
 Hub Port Status:
   Port 1: 0000.0100 power
   Port 2: 0000.0103 power enable connect
   Port 3: 0000.0103 power enable connect
   Port 4: 0000.0100 power
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         0 Full speed (or root) hub
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0001
  Self Powered

Bus 001 Device 005: ID 076b:3021 OmniKey AG CardMan 3121
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x076b OmniKey AG
  idProduct          0x3021 CardMan 3121
  bcdDevice            3.02
  iManufacturer           1 OMNIKEY AG
  iProduct                2 Smart Card Reader USB
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           93
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          3 CCID
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass        11 Chip/SmartCard
      bInterfaceSubClass      0
      bInterfaceProtocol      0
      iInterface              0
      ChipCard Interface Descriptor:
        bLength                54
        bDescriptorType        33
        bcdCCID              1.00
        nMaxSlotIndex           0
        bVoltageSupport         7  5.0V 3.0V 1.8V
        dwProtocols             3  T=0 T=1
        dwDefaultClock       4800
        dwMaxiumumClock      8000
        bNumClockSupported      4
        dwDataRate          10752 bps
        dwMaxDataRate      412903 bps
        bNumDataRatesSupp.    106
        dwMaxIFSD             254
        dwSyncProtocols  00000007  2-wire 3-wire I2C
        dwMechanical     00000000
        dwFeatures       000207B2
          Auto configuration based on ATR
          Auto clock change
          Auto baud rate change
          Auto PPS made by CCID
          CCID can set ICC in clock stop mode
          NAD value other than 0x00 accpeted
          Auto IFSD exchange
          Short APDU level exchange
        dwMaxCCIDMsgLen       271
        bClassGetResponse    echo
        bClassEnvelope       echo
        wlcdLayout           none
        bPINSupport             0
        bMaxCCIDBusySlots       1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              24
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x05  EP 5 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
Device Status:     0x0000
  (Bus Powered)

Bus 001 Device 006: ID 076b:3021 OmniKey AG CardMan 3121
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x076b OmniKey AG
  idProduct          0x3021 CardMan 3121
  bcdDevice            3.02
  iManufacturer           1 OMNIKEY AG
  iProduct                2 Smart Card Reader USB
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           93
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          3 CCID
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass        11 Chip/SmartCard
      bInterfaceSubClass      0
      bInterfaceProtocol      0
      iInterface              0
      ChipCard Interface Descriptor:
        bLength                54
        bDescriptorType        33
        bcdCCID              1.00
        nMaxSlotIndex           0
        bVoltageSupport         7  5.0V 3.0V 1.8V
        dwProtocols             3  T=0 T=1
        dwDefaultClock       4800
        dwMaxiumumClock      8000
        bNumClockSupported      4
        dwDataRate          10752 bps
        dwMaxDataRate      412903 bps
        bNumDataRatesSupp.    106
        dwMaxIFSD             254
        dwSyncProtocols  00000007  2-wire 3-wire I2C
        dwMechanical     00000000
        dwFeatures       000207B2
          Auto configuration based on ATR
          Auto clock change
          Auto baud rate change
          Auto PPS made by CCID
          CCID can set ICC in clock stop mode
          NAD value other than 0x00 accpeted
          Auto IFSD exchange
          Short APDU level exchange
        dwMaxCCIDMsgLen       271
        bClassGetResponse    echo
        bClassEnvelope       echo
        wlcdLayout           none
        bPINSupport             0
        bMaxCCIDBusySlots       1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              24
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x05  EP 5 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
Device Status:     0x0000
  (Bus Powered)
When i start accessing the readers - the system will first slow down and then loose connectivity with usb and the ethernet device:

Code: Select all

Apr 29 07:51:14  kernel: [   92.012914] smsc95xx 1-1.1:1.0 eth0: Failed to read reg index 0x00000118: -110
Apr 29 07:51:14  kernel: [   92.012942] smsc95xx 1-1.1:1.0 eth0: Error reading MII_DATA
Apr 29 07:51:19  kernel: [   97.012906] smsc95xx 1-1.1:1.0 eth0: Failed to read reg index 0x00000114: -110
Apr 29 07:51:19  kernel: [   97.012935] smsc95xx 1-1.1:1.0 eth0: Error reading MII_ACCESS
Apr 29 07:51:19  kernel: [   97.012950] smsc95xx 1-1.1:1.0 eth0: MII is busy in smsc95xx_mdio_read
Apr 29 07:51:25  kernel: [  103.112918] smsc95xx 1-1.1:1.0 eth0: Failed to read reg index 0x00000114: -110
Apr 29 07:51:25  kernel: [  103.112947] smsc95xx 1-1.1:1.0 eth0: Error reading MII_ACCESS
Apr 29 07:51:25  kernel: [  103.112962] smsc95xx 1-1.1:1.0 eth0: MII is busy in smsc95xx_mdio_read
Apr 29 07:51:30  kernel: [  108.112904] smsc95xx 1-1.1:1.0 eth0: Failed to read reg index 0x00000114: -110
Apr 29 07:51:30  kernel: [  108.112952] smsc95xx 1-1.1:1.0 eth0: Error reading MII_ACCESS
Apr 29 07:51:30  kernel: [  108.112970] smsc95xx 1-1.1:1.0 eth0: MII is busy in smsc95xx_mdio_read
Apr 29 07:51:30  kernel: [  108.463384] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
Apr 29 07:51:36  kernel: [  113.612906] smsc95xx 1-1.1:1.0 eth0: Failed to write reg index 0x00000014: -110
Apr 29 07:51:42  kernel: [  119.612904] smsc95xx 1-1.1:1.0 eth0: Failed to write reg index 0x00000014: -110
Apr 29 07:51:48  kernel: [  125.612909] smsc95xx 1-1.1:1.0 eth0: Failed to write reg index 0x00000014: -110
Apr 29 07:51:54  kernel: [  131.612906] smsc95xx 1-1.1:1.0 eth0: Failed to write reg index 0x00000014: -110
Apr 29 07:52:00  kernel: [  137.612907] smsc95xx 1-1.1:1.0 eth0: Failed to write reg index 0x00000014: -110
Apr 29 07:52:06  kernel: [  143.613550] smsc95xx 1-1.1:1.0 eth0: Failed to write reg index 0x00000014: -110
Apr 29 07:52:09  pcscd: ccid_usb.c:660:WriteUSB() write failed (1/5): -7 Success
Apr 29 07:52:09  pcscd: ifdwrapper.c:527:IFDTransmit() Card not transacted: 612
Apr 29 07:52:09  pcscd: winscard.c:1532:SCardTransmit() Card not transacted: 0x80100016
Apr 29 07:52:09  pcscd: ccid_usb.c:660:WriteUSB() write failed (1/6): -7 Invalid argument
Apr 29 07:52:09  pcscd: ifdwrapper.c:527:IFDTransmit() Card not transacted: 612
Apr 29 07:52:09  pcscd: winscard.c:1532:SCardTransmit() Card not transacted: 0x80100016
Apr 29 07:52:12  kernel: [  149.612911] smsc95xx 1-1.1:1.0 eth0: Failed to write reg index 0x00000014: -110
Apr 29 07:52:14  pcscd: ccid_usb.c:660:WriteUSB() write failed (1/5): -7 Invalid argument
Apr 29 07:52:14  pcscd: ifdwrapper.c:348:IFDStatusICC() Card not transacted: 612
Apr 29 07:52:14  pcscd: eventhandler.c:303:EHStatusHandlerThread() Error communicating to: OMNIKEY AG CardMan 3021 00 00
Apr 29 07:52:14  pcscd: ccid_usb.c:660:WriteUSB() write failed (1/6): -7 Invalid argument
Apr 29 07:52:14  pcscd: ifdwrapper.c:348:IFDStatusICC() Card not transacted: 612
Apr 29 07:52:14  pcscd: eventhandler.c:303:EHStatusHandlerThread() Error communicating to: OMNIKEY AG CardMan 3021 01 00
Apr 29 07:52:18  kernel: [  155.612897] smsc95xx 1-1.1:1.0 eth0: Failed to write reg index 0x00000014: -110
Apr 29 07:52:20  pcscd: ccid_usb.c:660:WriteUSB() write failed (1/6): -7 Invalid argument
Apr 29 07:52:20  pcscd: ifdwrapper.c:348:IFDStatusICC() Card not transacted: 612
Apr 29 07:52:20  pcscd: winscard.c:887:SCardDisconnect() Error resetting card.
With dwc_otg.fiq_fsm_enable=0 in cmdline.txt both PCSC readers behave normally when accessed.
Anything i could do to troubleshoot?

jdb
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2127
Joined: Thu Jul 11, 2013 2:37 pm

Re: Call for beta testers: FIQ_FSM USB driver rewrite

Tue Apr 29, 2014 4:44 pm

kursus wrote:Just so it's clear the cmdline.txt has to be in default state now ?

I've been using many kernel tweaks before this new driver comes up, it would be nice to have a summary of the recommanded setup now (Turbo mode, etc.)
The module options for dwc_otg that control fiq_fsm are now default-enabled (see section 3 of the first post). Specifying them in /boot/cmdline.txt is not necessary except where you need to modify the operation for test/debug purposes.
Rockets are loud.
https://astro-pi.org

jdb
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2127
Joined: Thu Jul 11, 2013 2:37 pm

Re: Call for beta testers: FIQ_FSM USB driver rewrite

Tue Apr 29, 2014 4:47 pm

lupine wrote:Hi

Iam having trouble with my PCSC readers:

lsusb -v output

When i start accessing the readers - the system will first slow down and then loose connectivity with usb and the ethernet device:

With dwc_otg.fiq_fsm_enable=0 in cmdline.txt both PCSC readers behave normally when accessed.
Anything i could do to troubleshoot?
Does this occur with just one card reader plugged in?

If you unplug the card readers, does the system return to normal?

Can you post the output of the first few lines of vmstat 2 when the network is inoperative?
Rockets are loud.
https://astro-pi.org

kursus
Posts: 25
Joined: Thu Oct 31, 2013 2:36 pm

Re: Call for beta testers: FIQ_FSM USB driver rewrite

Tue Apr 29, 2014 6:00 pm

I still have to dropouts issues (bad FM sound) even in NEXT branch.
I've tried
dwc_otg.fiq_fsm_enable=1 dwc_otg.fiq_fsm_mask=0x7
When I revert to an old NEXT (around April 15th) the issue disappear.

Do you need something to help ?

Thank you

GrayShade
Posts: 39
Joined: Fri Jul 05, 2013 6:13 am

Re: Call for beta testers: FIQ_FSM USB driver rewrite

Tue Apr 29, 2014 6:09 pm

kursus wrote:I still have to dropouts issues (bad FM sound) even in NEXT branch.
I've tried
dwc_otg.fiq_fsm_enable=1 dwc_otg.fiq_fsm_mask=0x7
When I revert to an old NEXT (around April 15th) the issue disappear.

Do you need something to help ?

Thank you
Sounds like my issue: https://github.com/raspberrypi/linux/issues/575 .

jdb
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2127
Joined: Thu Jul 11, 2013 2:37 pm

Re: Call for beta testers: FIQ_FSM USB driver rewrite

Tue Apr 29, 2014 7:59 pm

Github issues have been logged for- If you have additional data (i.e. a device that exhibits the same behaviour but has a different vendor/product ID) then please add to those Github issues.
Rockets are loud.
https://astro-pi.org

ioudas
Posts: 16
Joined: Mon Jan 27, 2014 3:56 pm

Re: Call for beta testers: FIQ_FSM USB driver rewrite

Thu May 01, 2014 12:59 pm

After upgrade to this kernel upgrade I am getting: For multiple pi's and devices. Some scanners and some keyboards.

Apr 30 13:03:40 raspberrypi kernel: [ 9223.932063] hub 1-1.3:1.0: port 3 disabled by hub (EMI?), re-enabling...


I will be reverting back to an older kernel.

GrayShade
Posts: 39
Joined: Fri Jul 05, 2013 6:13 am

Re: Call for beta testers: FIQ_FSM USB driver rewrite

Thu May 01, 2014 1:07 pm

ioudas wrote:After upgrade to this kernel upgrade I am getting: For multiple pi's and devices. Some scanners and some keyboards.

Apr 30 13:03:40 raspberrypi kernel: [ 9223.932063] hub 1-1.3:1.0: port 3 disabled by hub (EMI?), re-enabling...


I will be reverting back to an older kernel.
You could try dwc_otg.fiq_fsm_enable=0.

jdb
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2127
Joined: Thu Jul 11, 2013 2:37 pm

Re: Call for beta testers: FIQ_FSM USB driver rewrite

Thu May 01, 2014 2:34 pm

rpi-update firmware has been updated with a potential fix for garbled audio from USB DACs.

Please test if you have previously experienced corrupted sound output.
Rockets are loud.
https://astro-pi.org

gwlevans
Posts: 6
Joined: Sat Jun 01, 2013 12:22 pm

Re: Call for beta testers: FIQ_FSM USB driver rewrite

Thu May 01, 2014 7:24 pm

That appears to have fixed the issue for me my DAC is HRT Media Streamer II.

Many thanks!

ski522
Posts: 394
Joined: Sun Sep 30, 2012 2:22 pm

Re: Call for beta testers: FIQ_FSM USB driver rewrite

Thu May 01, 2014 9:35 pm

Same here...PCM2704 is back to normal!

ioudas
Posts: 16
Joined: Mon Jan 27, 2014 3:56 pm

Re: Call for beta testers: FIQ_FSM USB driver rewrite

Fri May 02, 2014 12:42 pm

Also now getting after implementation of fiq fsm

[132861.852702] rtw_cmd_thread: DriverStopped(0) SurpriseRemoved(1) break at line 482

jdb
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2127
Joined: Thu Jul 11, 2013 2:37 pm

Re: Call for beta testers: FIQ_FSM USB driver rewrite

Fri May 02, 2014 1:41 pm

ioudas wrote:Also now getting after implementation of fiq fsm

[132861.852702] rtw_cmd_thread: DriverStopped(0) SurpriseRemoved(1) break at line 482
Please post the full dmesg and lsusb -v since boot (to pastebin if it's huge).
Rockets are loud.
https://astro-pi.org

fabriced
Posts: 10
Joined: Thu Jun 06, 2013 7:56 pm

Re: Call for beta testers: FIQ_FSM USB driver rewrite

Fri May 02, 2014 3:41 pm

Dear,
I am a little lost where the last FIQ FSM driver is commited into the github linux repo (I have to build my kernels).
Does 3.12.y contains all your work ?

On 3.12.y I see the commit "dwc_otg: fiq_fsm: Base commit for driver rewrite" but no the other commits that are visible on 3.13.y branch. On another hand, the "config: enable CONFIG_DMA_CMA" is only on 3.12.y and 3.14.y.
Could you please tell me which branch I should use to test your last FIQ_FSM USB driver version ?

Kind regards,
Fabrice

Return to “Troubleshooting”