I started working on some updated bladeRF recipes for OE/Yocto
meta-sdr layer. (I'll be sumitting a pull request soon.)
Using meta-sdr, I baked a slightly stripped down gnuradio-demo-image (which is overkill, given that I really just wanted to look at the bladeRF-CLI) for the BeagleBone Black, since this is all I have. I use a powered USB 3.0, just for the sake of using a powered hub and having a more managable setup on my desk.
I see that I'm able to connect to the device via the bladeRF-cli and peek/poke registers. Nothing jumped out at me here as being problematic.
The "reset" high-speed device is an expected part of opening and (re)initializing the device, which was introduced in
this commit. It seems musb is just a bit chatty...
In the CLI I tested out an 'rx config file=/dev/null n=10M' to receive and throw away samples. The only thing I noted here is that musb spits out the following, which I suspect occurs when we make a libusb call to cancel pending transfers:
Code: Select all
musb_host_rx 1654: RX2 dma busy, csr 2002
musb_host_rx 1654: RX2 dma busy, csr 2220
musb_host_rx 1654: RX2 dma busy, csr 2020
When testing out TX, I think I'm seeing some of the same issues you reported. When trying to shutdown the transmit stream, the musb driver seems to get hung up flushing some fifos, resulting in a warn_slowpath to fire off some backtraces.
Code: Select all
bladeRF> tx config file=/dev/zero repeat=0
bladeRF> tx start
[VERBOSE @ si5338.c:280] Reading MS2
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x26 0x03
[VERBOSE @ si5338.c:289] Read enable register: 0x03
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x4b 0x66
[VERBOSE @ si5338.c:298] Read regs[0]: 0x66
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x4c 0x9c
[VERBOSE @ si5338.c:298] Read regs[1]: 0x9c
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x4d 0x08
[VERBOSE @ si5338.c:298] Read regs[2]: 0x08
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x4e 0x00
[VERBOSE @ si5338.c:298] Read regs[3]: 0x00
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x4f 0x00
[VERBOSE @ si5338.c:298] Read regs[4]: 0x00
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x50 0x00
[VERBOSE @ si5338.c:298] Read regs[5]: 0x00
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x51 0x05
[VERBOSE @ si5338.c:298] Read regs[6]: 0x05
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x52 0x00
[VERBOSE @ si5338.c:298] Read regs[7]: 0x00
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x53 0x00
[VERBOSE @ si5338.c:298] Read regs[8]: 0x00
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x54 0x00
[VERBOSE @ si5338.c:298] Read regs[9]: 0x00
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x21 0xc8
[VERBOSE @ si5338.c:308] Read r register: 0xc8
[VERBOSE @ si5338.c:147] Unpacked P1: 0x00009c66 (40038) P2: 0x00000002 (2) P3: 0x00000005 (5)
[VERBOSE @ si5338.c:165] Unpacked a + b/c: 316 + 4/5
[VERBOSE @ si5338.c:166] Unpacked r: 4
[VERBOSE @ si5338.c:332] Calculated samplerate: 1000000 + 0/1
[VERBOSE @ usb.c:913] config_gpio_write: 0x000000d7
[DEBUG @ bladerf.c:301] Enable Module: TX - True
[VERBOSE @ usb.c:1036] usb_lms_read: 0x40 0x00
[VERBOSE @ usb.c:1015] usb_lms_write: 0x40 0x02
[VERBOSE @ si5338.c:280] Reading MS2
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x26 0x03
[VERBOSE @ si5338.c:289] Read enable register: 0x03
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x4b 0x66
[VERBOSE @ si5338.c:298] Read regs[0]: 0x66
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x4c 0x9c
[VERBOSE @ si5338.c:298] Read regs[1]: 0x9c
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x4d 0x08
[VERBOSE @ si5338.c:298] Read regs[2]: 0x08
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x4e 0x00
[VERBOSE @ si5338.c:298] Read regs[3]: 0x00
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x4f 0x00
[VERBOSE @ si5338.c:298] Read regs[4]: 0x00
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x50 0x00
[VERBOSE @ si5338.c:298] Read regs[5]: 0x00
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x51 0x05
[VERBOSE @ si5338.c:298] Read regs[6]: 0x05
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x52 0x00
[VERBOSE @ si5338.c:298] Read regs[7]: 0x00
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x53 0x00
[VERBOSE @ si5338.c:298] Read regs[8]: 0x00
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x54 0x00
[VERBOSE @ si5338.c:298] Read regs[9]: 0x00
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x21 0xc8
[VERBOSE @ si5338.c:308] Read r register: 0xc8
[VERBOSE @ si5338.c:147] Unpacked P1: 0x00009c66 (40038) P2: 0x00000002 (2) P3: 0x00000005 (5)
[VERBOSE @ si5338.c:165] Unpacked a + b/c: 316 + 4/5
[VERBOSE @ si5338.c:166] Unpacked r: 4
[VERBOSE @ si5338.c:332] Calculated samplerate: 1000000 + 0/1
[DEBUG @ sync.c:757] sync_tx: Worker is now running.
bladeRF> tx stop
bladeRF> [DEBUG @ bladerf.c:301] Enable Module: TX - False
------------[ cut here ]------------
WARNING: CPU: 0 PID: 595 at /builds/yocto/poky-dizzy-1.7/builds/beaglebone/tmp/work/beaglebone-poky-linux-gnueabi/linux-yocto/3.14.24+gitAUTOINC+a227f20eff_dbe5b52e93-r0/linux/drivers/dma/cppi41.c:602 cppi41_dma_control+0x1f0/0x2a4()
Modules linked in: snd_soc_omap snd_pcm_dmaengine musb_dsps snd_soc_core musb_hdrc snd_compress regmap_spi snd_pcm snd_timer snd soundcore omap_rng rng_core musb_am335x
CPU: 0 PID: 595 Comm: bladeRF-cli Not tainted 3.14.19-yocto-standard #1
[<c0015514>] (unwind_backtrace) from [<c0012340>] (show_stack+0x20/0x24)
[<c0012340>] (show_stack) from [<c06d8dd4>] (dump_stack+0x20/0x28)
[<c06d8dd4>] (dump_stack) from [<c0039a20>] (warn_slowpath_common+0x7c/0x9c)
[<c0039a20>] (warn_slowpath_common) from [<c0039afc>] (warn_slowpath_null+0x2c/0x34)
[<c0039afc>] (warn_slowpath_null) from [<c03e7f2c>] (cppi41_dma_control+0x1f0/0x2a4)
[<c03e7f2c>] (cppi41_dma_control) from [<bf05ef60>] (cppi41_dma_channel_abort+0x104/0x140 [musb_hdrc])
[<bf05ef60>] (cppi41_dma_channel_abort [musb_hdrc]) from [<bf059fec>] (musb_cleanup_urb.isra.11+0x54/0xe8 [musb_hdrc])
[<bf059fec>] (musb_cleanup_urb.isra.11 [musb_hdrc]) from [<bf05a18c>] (musb_urb_dequeue+0x10c/0x154 [musb_hdrc])
[<bf05a18c>] (musb_urb_dequeue [musb_hdrc]) from [<c04d2994>] (unlink1+0xf0/0xfc)
[<c04d2994>] (unlink1) from [<c04d3e0c>] (usb_hcd_unlink_urb+0x98/0xb4)
[<c04d3e0c>] (usb_hcd_unlink_urb) from [<c04d4f08>] (usb_kill_urb+0x5c/0xd4)
[<c04d4f08>] (usb_kill_urb) from [<c04df570>] (usbdev_ioctl+0xfb4/0x1d68)
[<c04df570>] (usbdev_ioctl) from [<c0141cd8>] (do_vfs_ioctl+0x4b4/0x5b0)
[<c0141cd8>] (do_vfs_ioctl) from [<c0141e30>] (SyS_ioctl+0x5c/0x84)
[<c0141e30>] (SyS_ioctl) from [<c000e1a0>] (ret_fast_syscall+0x0/0x30)
---[ end trace be96843a427141e5 ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 595 at /builds/yocto/poky-dizzy-1.7/builds/beaglebone/tmp/work/beaglebone-poky-linux-gnueabi/linux-yocto/3.14.24+gitAUTOINC+a227f20eff_dbe5b52e93-r0/linux/drivers/dma/cppi41.c:605 cppi41_dma_control+0x22c/0x2a4()
Modules linked in: snd_soc_omap snd_pcm_dmaengine musb_dsps snd_soc_core musb_hdrc snd_compress regmap_spi snd_pcm snd_timer snd soundcore omap_rng rng_core musb_am335x
CPU: 0 PID: 595 Comm: bladeRF-cli Tainted: G W 3.14.19-yocto-standard #1
[<c0015514>] (unwind_backtrace) from [<c0012340>] (show_stack+0x20/0x24)
[<c0012340>] (show_stack) from [<c06d8dd4>] (dump_stack+0x20/0x28)
[<c06d8dd4>] (dump_stack) from [<c0039a20>] (warn_slowpath_common+0x7c/0x9c)
[<c0039a20>] (warn_slowpath_common) from [<c0039afc>] (warn_slowpath_null+0x2c/0x34)
[<c0039afc>] (warn_slowpath_null) from [<c03e7f68>] (cppi41_dma_control+0x22c/0x2a4)
[<c03e7f68>] (cppi41_dma_control) from [<bf05ef60>] (cppi41_dma_channel_abort+0x104/0x140 [musb_hdrc])
[<bf05ef60>] (cppi41_dma_channel_abort [musb_hdrc]) from [<bf059fec>] (musb_cleanup_urb.isra.11+0x54/0xe8 [musb_hdrc])
[<bf059fec>] (musb_cleanup_urb.isra.11 [musb_hdrc]) from [<bf05a18c>] (musb_urb_dequeue+0x10c/0x154 [musb_hdrc])
[<bf05a18c>] (musb_urb_dequeue [musb_hdrc]) from [<c04d2994>] (unlink1+0xf0/0xfc)
[<c04d2994>] (unlink1) from [<c04d3e0c>] (usb_hcd_unlink_urb+0x98/0xb4)
[<c04d3e0c>] (usb_hcd_unlink_urb) from [<c04d4f08>] (usb_kill_urb+0x5c/0xd4)
[<c04d4f08>] (usb_kill_urb) from [<c04df570>] (usbdev_ioctl+0xfb4/0x1d68)
[<c04df570>] (usbdev_ioctl) from [<c0141cd8>] (do_vfs_ioctl+0x4b4/0x5b0)
[<c0141cd8>] (do_vfs_ioctl) from [<c0141e30>] (SyS_ioctl+0x5c/0x84)
[<c0141e30>] (SyS_ioctl) from [<c000e1a0>] (ret_fast_syscall+0x0/0x30)
---[ end trace be96843a427141e6 ]---
CAUTION: musb: Babble Interrupt Occurred
------------[ cut here ]------------
WARNING: CPU: 0 PID: 595 at /builds/yocto/poky-dizzy-1.7/builds/beaglebone/tmp/work/beaglebone-poky-linux-gnueabi/linux-yocto/3.14.24+gitAUTOINC+a227f20eff_dbe5b52e93-r0/linux/drivers/usb/musb/musb_host.c:128 musb_h_tx_flush_fifo+0x6c/0x98 [musb_hdrc]()
Could not flush host TX2 fifo: csr: 3003
Modules linked in: snd_soc_omap snd_pcm_dmaengine musb_dsps snd_soc_core musb_hdrc snd_compress regmap_spi snd_pcm snd_timer snd soundcore omap_rng rng_core musb_am335x
CPU: 0 PID: 595 Comm: bladeRF-cli Tainted: G W 3.14.19-yocto-standard #1
[<c0015514>] (unwind_backtrace) from [<c0012340>] (show_stack+0x20/0x24)
[<c0012340>] (show_stack) from [<c06d8dd4>] (dump_stack+0x20/0x28)
[<c06d8dd4>] (dump_stack) from [<c0039a20>] (warn_slowpath_common+0x7c/0x9c)
[<c0039a20>] (warn_slowpath_common) from [<c0039a80>] (warn_slowpath_fmt+0x40/0x48)
[<c0039a80>] (warn_slowpath_fmt) from [<bf058ea4>] (musb_h_tx_flush_fifo+0x6c/0x98 [musb_hdrc])
[<bf058ea4>] (musb_h_tx_flush_fifo [musb_hdrc]) from [<bf05a02c>] (musb_cleanup_urb.isra.11+0x94/0xe8 [musb_hdrc])
[<bf05a02c>] (musb_cleanup_urb.isra.11 [musb_hdrc]) from [<bf05a18c>] (musb_urb_dequeue+0x10c/0x154 [musb_hdrc])
[<bf05a18c>] (musb_urb_dequeue [musb_hdrc]) from [<c04d2994>] (unlink1+0xf0/0xfc)
[<c04d2994>] (unlink1) from [<c04d3e0c>] (usb_hcd_unlink_urb+0x98/0xb4)
[<c04d3e0c>] (usb_hcd_unlink_urb) from [<c04d4f08>] (usb_kill_urb+0x5c/0xd4)
[<c04d4f08>] (usb_kill_urb) from [<c04df570>] (usbdev_ioctl+0xfb4/0x1d68)
[<c04df570>] (usbdev_ioctl) from [<c0141cd8>] (do_vfs_ioctl+0x4b4/0x5b0)
[<c0141cd8>] (do_vfs_ioctl) from [<c0141e30>] (SyS_ioctl+0x5c/0x84)
[<c0141e30>] (SyS_ioctl) from [<c000e1a0>] (ret_fast_syscall+0x0/0x30)
---[ end trace be96843a427141e7 ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 595 at /builds/yocto/poky-dizzy-1.7/builds/beaglebone/tmp/work/beaglebone-poky-linux-gnueabi/linux-yocto/3.14.24+gitAUTOINC+a227f20eff_dbe5b52e93-r0/linux/drivers/usb/musb/musb_host.c:128 musb_h_tx_flush_fifo+0x6c/0x98 [musb_hdrc]()
Could not flush host TX2 fifo: csr: 2003
Modules linked in: snd_soc_omap snd_pcm_dmaengine musb_dsps snd_soc_core musb_hdrc snd_compress regmap_spi snd_pcm snd_timer snd soundcore omap_rng rng_core musb_am335x
CPU: 0 PID: 595 Comm: bladeRF-cli Tainted: G W 3.14.19-yocto-standard #1
[<c0015514>] (unwind_backtrace) from [<c0012340>] (show_stack+0x20/0x24)
[<c0012340>] (show_stack) from [<c06d8dd4>] (dump_stack+0x20/0x28)
[<c06d8dd4>] (dump_stack) from [<c0039a20>] (warn_slowpath_common+0x7c/0x9c)
[<c0039a20>] (warn_slowpath_common) from [<c0039a80>] (warn_slowpath_fmt+0x40/0x48)
[<c0039a80>] (warn_slowpath_fmt) from [<bf058ea4>] (musb_h_tx_flush_fifo+0x6c/0x98 [musb_hdrc])
[<bf058ea4>] (musb_h_tx_flush_fifo [musb_hdrc]) from [<bf0596a8>] (musb_start_urb+0x274/0x93c [musb_hdrc])
[<bf0596a8>] (musb_start_urb [musb_hdrc]) from [<bf059f8c>] (musb_advance_schedule+0x21c/0x228 [musb_hdrc])
[<bf059f8c>] (musb_advance_schedule [musb_hdrc]) from [<bf05a078>] (musb_cleanup_urb.isra.11+0xe0/0xe8 [musb_hdrc])
[<bf05a078>] (musb_cleanup_urb.isra.11 [musb_hdrc]) from [<bf05a18c>] (musb_urb_dequeue+0x10c/0x154 [musb_hdrc])
[<bf05a18c>] (musb_urb_dequeue [musb_hdrc]) from [<c04d2994>] (unlink1+0xf0/0xfc)
[<c04d2994>] (unlink1) from [<c04d3e0c>] (usb_hcd_unlink_urb+0x98/0xb4)
[<c04d3e0c>] (usb_hcd_unlink_urb) from [<c04d4f08>] (usb_kill_urb+0x5c/0xd4)
[<c04d4f08>] (usb_kill_urb) from [<c04df570>] (usbdev_ioctl+0xfb4/0x1d68)
[<c04df570>] (usbdev_ioctl) from [<c0141cd8>] (do_vfs_ioctl+0x4b4/0x5b0)
[<c0141cd8>] (do_vfs_ioctl) from [<c0141e30>] (SyS_ioctl+0x5c/0x84)
[<c0141e30>] (SyS_ioctl) from [<c000e1a0>] (ret_fast_syscall+0x0/0x30)
---[ end trace be96843a427141e8 ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 595 at /builds/yocto/poky-dizzy-1.7/builds/beaglebone/tmp/work/beaglebone-poky-linux-gnueabi/linux-yocto/3.14.24+gitAUTOINC+a227f20eff_dbe5b52e93-r0/linux/drivers/dma/cppi41.c:602 cppi41_dma_control+0x1f0/0x2a4()
Modules linked in: snd_soc_omap snd_pcm_dmaengine musb_dsps snd_soc_core musb_hdrc snd_compress regmap_spi snd_pcm snd_timer snd soundcore omap_rng rng_core musb_am335x
CPU: 0 PID: 595 Comm: bladeRF-cli Tainted: G W 3.14.19-yocto-standard #1
[<c0015514>] (unwind_backtrace) from [<c0012340>] (show_stack+0x20/0x24)
[<c0012340>] (show_stack) from [<c06d8dd4>] (dump_stack+0x20/0x28)
[<c06d8dd4>] (dump_stack) from [<c0039a20>] (warn_slowpath_common+0x7c/0x9c)
[<c0039a20>] (warn_slowpath_common) from [<c0039afc>] (warn_slowpath_null+0x2c/0x34)
[<c0039afc>] (warn_slowpath_null) from [<c03e7f2c>] (cppi41_dma_control+0x1f0/0x2a4)
[<c03e7f2c>] (cppi41_dma_control) from [<bf05ef60>] (cppi41_dma_channel_abort+0x104/0x140 [musb_hdrc])
[<bf05ef60>] (cppi41_dma_channel_abort [musb_hdrc]) from [<bf059fec>] (musb_cleanup_urb.isra.11+0x54/0xe8 [musb_hdrc])
[<bf059fec>] (musb_cleanup_urb.isra.11 [musb_hdrc]) from [<bf05a18c>] (musb_urb_dequeue+0x10c/0x154 [musb_hdrc])
[<bf05a18c>] (musb_urb_dequeue [musb_hdrc]) from [<c04d2994>] (unlink1+0xf0/0xfc)
[<c04d2994>] (unlink1) from [<c04d3e0c>] (usb_hcd_unlink_urb+0x98/0xb4)
[<c04d3e0c>] (usb_hcd_unlink_urb) from [<c04d4f08>] (usb_kill_urb+0x5c/0xd4)
[<c04d4f08>] (usb_kill_urb) from [<c04df570>] (usbdev_ioctl+0xfb4/0x1d68)
[<c04df570>] (usbdev_ioctl) from [<c0141cd8>] (do_vfs_ioctl+0x4b4/0x5b0)
[<c0141cd8>] (do_vfs_ioctl) from [<c0141e30>] (SyS_ioctl+0x5c/0x84)
[<c0141e30>] (SyS_ioctl) from [<c000e1a0>] (ret_fast_syscall+0x0/0x30)
---[ end trace be96843a427141e9 ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 595 at /builds/yocto/poky-dizzy-1.7/builds/beaglebone/tmp/work/beaglebone-poky-linux-gnueabi/linux-yocto/3.14.24+gitAUTOINC+a227f20eff_dbe5b52e93-r0/linux/drivers/usb/musb/musb_host.c:128 musb_h_tx_flush_fifo+0x6c/0x98 [musb_hdrc]()
Could not flush host TX2 fifo: csr: 2403
Modules linked in: snd_soc_omap snd_pcm_dmaengine musb_dsps snd_soc_core musb_hdrc snd_compress regmap_spi snd_pcm snd_timer snd soundcore omap_rng rng_core musb_am335x
CPU: 0 PID: 595 Comm: bladeRF-cli Tainted: G W 3.14.19-yocto-standard #1
[<c0015514>] (unwind_backtrace) from [<c0012340>] (show_stack+0x20/0x24)
[<c0012340>] (show_stack) from [<c06d8dd4>] (dump_stack+0x20/0x28)
[<c06d8dd4>] (dump_stack) from [<c0039a20>] (warn_slowpath_common+0x7c/0x9c)
[<c0039a20>] (warn_slowpath_common) from [<c0039a80>] (warn_slowpath_fmt+0x40/0x48)
[<c0039a80>] (warn_slowpath_fmt) from [<bf058ea4>] (musb_h_tx_flush_fifo+0x6c/0x98 [musb_hdrc])
[<bf058ea4>] (musb_h_tx_flush_fifo [musb_hdrc]) from [<bf05a02c>] (musb_cleanup_urb.isra.11+0x94/0xe8 [musb_hdrc])
[<bf05a02c>] (musb_cleanup_urb.isra.11 [musb_hdrc]) from [<bf05a18c>] (musb_urb_dequeue+0x10c/0x154 [musb_hdrc])
[<bf05a18c>] (musb_urb_dequeue [musb_hdrc]) from [<c04d2994>] (unlink1+0xf0/0xfc)
[<c04d2994>] (unlink1) from [<c04d3e0c>] (usb_hcd_unlink_urb+0x98/0xb4)
[<c04d3e0c>] (usb_hcd_unlink_urb) from [<c04d4f08>] (usb_kill_urb+0x5c/0xd4)
[<c04d4f08>] (usb_kill_urb) from [<c04df570>] (usbdev_ioctl+0xfb4/0x1d68)
[<c04df570>] (usbdev_ioctl) from [<c0141cd8>] (do_vfs_ioctl+0x4b4/0x5b0)
[<c0141cd8>] (do_vfs_ioctl) from [<c0141e30>] (SyS_ioctl+0x5c/0x84)
[<c0141e30>] (SyS_ioctl) from [<c000e1a0>] (ret_fast_syscall+0x0/0x30)
---[ end trace be96843a427141ea ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 595 at /builds/yocto/poky-dizzy-1.7/builds/beaglebone/tmp/work/beaglebone-poky-linux-gnueabi/linux-yocto/3.14.24+gitAUTOINC+a227f20eff_dbe5b52e93-r0/linux/drivers/usb/musb/musb_host.c:128 musb_h_tx_flush_fifo+0x6c/0x98 [musb_hdrc]()
Could not flush host TX2 fifo: csr: 2403
Modules linked in: snd_soc_omap snd_pcm_dmaengine musb_dsps snd_soc_core musb_hdrc snd_compress regmap_spi snd_pcm snd_timer snd soundcore omap_rng rng_core musb_am335x
CPU: 0 PID: 595 Comm: bladeRF-cli Tainted: G W 3.14.19-yocto-standard #1
[<c0015514>] (unwind_backtrace) from [<c0012340>] (show_stack+0x20/0x24)
[<c0012340>] (show_stack) from [<c06d8dd4>] (dump_stack+0x20/0x28)
[<c06d8dd4>] (dump_stack) from [<c0039a20>] (warn_slowpath_common+0x7c/0x9c)
[<c0039a20>] (warn_slowpath_common) from [<c0039a80>] (warn_slowpath_fmt+0x40/0x48)
[<c0039a80>] (warn_slowpath_fmt) from [<bf058ea4>] (musb_h_tx_flush_fifo+0x6c/0x98 [musb_hdrc])
[<bf058ea4>] (musb_h_tx_flush_fifo [musb_hdrc]) from [<bf0596a8>] (musb_start_urb+0x274/0x93c [musb_hdrc])
[<bf0596a8>] (musb_start_urb [musb_hdrc]) from [<bf059f8c>] (musb_advance_schedule+0x21c/0x228 [musb_hdrc])
[<bf059f8c>] (musb_advance_schedule [musb_hdrc]) from [<bf05a078>] (musb_cleanup_urb.isra.11+0xe0/0xe8 [musb_hdrc])
[<bf05a078>] (musb_cleanup_urb.isra.11 [musb_hdrc]) from [<bf05a18c>] (musb_urb_dequeue+0x10c/0x154 [musb_hdrc])
[<bf05a18c>] (musb_urb_dequeue [musb_hdrc]) from [<c04d2994>] (unlink1+0xf0/0xfc)
[<c04d2994>] (unlink1) from [<c04d3e0c>] (usb_hcd_unlink_urb+0x98/0xb4)
[<c04d3e0c>] (usb_hcd_unlink_urb) from [<c04d4f08>] (usb_kill_urb+0x5c/0xd4)
[<c04d4f08>] (usb_kill_urb) from [<c04df570>] (usbdev_ioctl+0xfb4/0x1d68)
[<c04df570>] (usbdev_ioctl) from [<c0141cd8>] (do_vfs_ioctl+0x4b4/0x5b0)
[<c0141cd8>] (do_vfs_ioctl) from [<c0141e30>] (SyS_ioctl+0x5c/0x84)
[<c0141e30>] (SyS_ioctl) from [<c000e1a0>] (ret_fast_syscall+0x0/0x30)
---[ end trace be96843a427141eb ]---
[DEBUG @ sync_worker.c:319] sync_worker_wait_for_state: Wait on state change failed: Connection timed out
[WARNING @ sync_worker------------[ cut here ]------------
WARNING: CPU: 0 PID: 595 at /builds/yocto/poky-dizzy-1.7/builds/beaglebone/tmp/work/beaglebone-poky-linux-gnueabi/linux-yocto/3.14.24+gitAUTOINC+a227f20eff_dbe5b52e93-r0/linux/drivers/dma/cppi41.c:602 cppi41_dma_control+0x1f0/0x2a4()
Modules linked in: snd_soc_omap snd_pcm_dmaengine musb_dsps snd_soc_core musb_hdrc snd_compress regmap_spi snd_pcm snd_timer snd soundcore omap_rng rng_core musb_am335x
CPU: 0 PID: 595 Comm: bladeRF-cli Tainted: G W 3.14.19-yocto-standard #1
[<c0015514>] (unwind_backtrace) from [<c0012340>] (show_stack+0x20/0x24)
[<c0012340>] (show_stack) from [<c06d8dd4>] (dump_stack+0x20/0x28)
[<c06d8dd4>] (dump_stack) from [<c0039a20>] (warn_slowpath_common+0x7c/0x9c)
[<c0039a20>] (warn_slowpath_common) from [<c0039afc>] (warn_slowpath_null+0x2c/0x34)
[<c0039afc>] (warn_slowpath_null) from [<c03e7f2c>] (cppi41_dma_control+0x1f0/0x2a4)
[<c03e7f2c>] (cppi41_dma_control) from [<bf05ef60>] (cppi41_dma_channel_abort+0x104/0x140 [musb_hdrc])
[<bf05ef60>] (cppi41_dma_channel_abort [musb_hdrc]) from [<bf059fec>] (musb_cleanup_urb.isra.11+0x54/0xe8 [musb_hdrc])
[<bf059fec>] (musb_cleanup_urb.isra.11 [musb_hdrc]) from [<bf05a18c>] (musb_urb_dequeue+0x10c/0x154 [musb_hdrc])
[<bf05a18c>] (musb_urb_dequeue [musb_hdrc]) from [<c04d2994>] (unlink1+0xf0/0xfc)
[<c04d2994>] (unlink1) from [<c04d3e0c>] (usb_hcd_unlink_urb+0x98/0xb4)
[<c04d3e0c>] (usb_hcd_unlink_urb) from [<c04d4f08>] (usb_kill_urb+0x5c/0xd4)
[<c04d4f08>] (usb_kill_urb) from [<c04df570>] (usbdev_ioctl+0xfb4/0x1d68)
[<c04df570>] (usbdev_ioctl) from [<c0141cd8>] (do_vfs_ioctl+0x4b4/0x5b0)
[<c0141cd8>] (do_vfs_ioctl) from [<c0141e30>] (SyS_ioctl+0x5c/0x84)
[<c0141e30>] (SyS_ioctl) from [<c000e1a0>] (ret_fast_syscall+0x0/0x30)
---[ end trace be96843a427141ec ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 595 at /builds/yocto/poky-dizzy-1.7/builds/beaglebone/tmp/work/beaglebone-poky-linux-gnueabi/linux-yocto/3.14.24+gitAUTOINC+a227f20eff_dbe5b52e93-r0/linux/drivers/usb/musb/musb_host.c:128 musb_h_tx_flush_fifo+0x6c/0x98 [musb_hdrc]()
Could not flush host TX2 fifo: csr: 2403
Modules linked in: snd_soc_omap snd_pcm_dmaengine musb_dsps snd_soc_core musb_hdrc snd_compress regmap_spi snd_pcm snd_timer snd soundcore omap_rng rng_core musb_am335x
CPU: 0 PID: 595 Comm: bladeRF-cli Tainted: G W 3.14.19-yocto-standard #1
[<c0015514>] (unwind_backtrace) from [<c0012340>] (show_stack+0x20/0x24)
[<c0012340>] (show_stack) from [<c06d8dd4>] (dump_stack+0x20/0x28)
[<c06d8dd4>] (dump_stack) from [<c0039a20>] (warn_slowpath_common+0x7c/0x9c)
[<c0039a20>] (warn_slowpath_common) from [<c0039a80>] (warn_slowpath_fmt+0x40/0x48)
[<c0039a80>] (warn_slowpath_fmt) from [<bf058ea4>] (musb_h_tx_flush_fifo+0x6c/0x98 [musb_hdrc])
[<bf058ea4>] (musb_h_tx_flush_fifo [musb_hdrc]) from [<bf05a02c>] (musb_cleanup_urb.isra.11+0x94/0xe8 [musb_hdrc])
[<bf05a02c>] (musb_cleanup_urb.isra.11 [musb_hdrc]) from [<bf05a18c>] (musb_urb_dequeue+0x10c/0x154 [musb_hdrc])
[<bf05a18c>] (musb_urb_dequeue [musb_hdrc]) from [<c04d2994>] (unlink1+0xf0/0xfc)
[<c04d2994>] (unlink1) from [<c04d3e0c>] (usb_hcd_unlink_urb+0x98/0xb4)
[<c04d3e0c>] (usb_hcd_unlink_urb) from [<c04d4f08>] (usb_kill_urb+0x5c/0xd4)
[<c04d4f08>] (usb_kill_urb) from [<c04df570>] (usbdev_ioctl+0xfb4/0x1d68)
[<c04df570>] (usbdev_ioctl) from [<c0141cd8>] (do_vfs_ioctl+0x4b4/0x5b0)
[<c0141cd8>] (do_vfs_ioctl) from [<c0141e30>] (SyS_ioctl+0x5c/0x84)
[<c0141e30>] (SyS_ioctl) from [<c000e1a0>] (ret_fast_syscall+0x0/0x30)
---[ end trace be96843a427141ed ]---
.c:255] Timed out while stopping worker. Canceling thread.
------------[ cut here ]------------
WARNING: CPU: 0 PID: 581 at /builds/yocto/poky-dizzy-1.7/builds/beaglebone/tmp/work/beaglebone-poky-linux-gnueabi/linux-yocto/3.14.24+gitAUTOINC+a227f20eff_dbe5b52e93-r0/linux/drivers/usb/musb/musb_host.c:128 musb_h_tx_flush_fifo+0x6c/0x98 [musb_hdrc]()
Could not flush host TX2 fifo: csr: 2403
Modules linked in: snd_soc_omap snd_pcm_dmaengine musb_dsps snd_soc_core musb_hdrc snd_compress regmap_spi snd_pcm snd_timer snd soundcore omap_rng rng_core musb_am335x
CPU: 0 PID: 581 Comm: bladeRF-cli Tainted: G W 3.14.19-yocto-standard #1
[<c0015514>] (unwind_backtrace) from [<c0012340>] (show_stack+0x20/0x24)
[<c0012340>] (show_stack) from [<c06d8dd4>] (dump_stack+0x20/0x28)
[<c06d8dd4>] (dump_stack) from [<c0039a20>] (warn_slowpath_common+0x7c/0x9c)
[<c0039a20>] (warn_slowpath_common) from [<c0039a80>] (warn_slowpath_fmt+0x40/0x48)
[<c0039a80>] (warn_slowpath_fmt) from [<bf058ea4>] (musb_h_tx_flush_fifo+0x6c/0x98 [musb_hdrc])
[<bf058ea4>] (musb_h_tx_flush_fifo [musb_hdrc]) from [<bf0596a8>] (musb_start_urb+0x274/0x93c [musb_hdrc])
[<bf0596a8>] (musb_start_urb [musb_hdrc]) from [<bf05aae8>] (musb_urb_enqueue+0x5ac/0x5dc [musb_hdrc])
[<bf05aae8>] (musb_urb_enqueue [musb_hdrc]) from [<c04d3c7c>] (usb_hcd_submit_urb+0x6e4/0x7dc)
[<c04d3c7c>] (usb_hcd_submit_urb) from [<c04d4e7c>] (usb_submit_urb+0x3fc/0x42c)
[<c04d4e7c>] (usb_submit_urb) from [<c04e0208>] (usbdev_ioctl+0x1c4c/0x1d68)
[<c04e0208>] (usbdev_ioctl) from [<c0141cd8>] (do_vfs_ioctl+0x4b4/0x5b0)
[<c0141cd8>] (do_vfs_ioctl) from [<c0141e30>] (SyS_ioctl+0x5c/0x84)
[<c0141e30>] (SyS_ioctl) from [<c000e1a0>] (ret_fast_syscall+0x0/0x30)
---[ end trace be96843a427141ee ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 581 at /builds/yocto/poky-dizzy-1.7/builds/beaglebone/tmp/work/beaglebone-poky-linux-gnueabi/linux-yocto/3.14.24+gitAUTOINC+a227f20eff_dbe5b52e93-r0/linux/drivers/dma/cppi41.c:602 cppi41_dma_control+0x1f0/0x2a4()
Modules linked in: snd_soc_omap snd_pcm_dmaengine musb_dsps snd_soc_core musb_hdrc snd_compress regmap_spi snd_pcm snd_timer snd soundcore omap_rng rng_core musb_am335x
CPU: 0 PID: 581 Comm: bladeRF-cli Tainted: G W 3.14.19-yocto-standard #1
[<c0015514>] (unwind_backtrace) from [<c0012340>] (show_stack+0x20/0x24)
[<c0012340>] (show_stack) from [<c06d8dd4>] (dump_stack+0x20/0x28)
[<c06d8dd4>] (dump_stack) from [<c0039a20>] (warn_slowpath_common+0x7c/0x9c)
[<c0039a20>] (warn_slowpath_common) from [<c0039afc>] (warn_slowpath_null+0x2c/0x34)
[<c0039afc>] (warn_slowpath_null) from [<c03e7f2c>] (cppi41_dma_control+0x1f0/0x2a4)
[<c03e7f2c>] (cppi41_dma_control) from [<bf05ef60>] (cppi41_dma_channel_abort+0x104/0x140 [musb_hdrc])
[<bf05ef60>] (cppi41_dma_channel_abort [musb_hdrc]) from [<bf059fec>] (musb_cleanup_urb.isra.11+0x54/0xe8 [musb_hdrc])
[<bf059fec>] (musb_cleanup_urb.isra.11 [musb_hdrc]) from [<bf05a18c>] (musb_urb_dequeue+0x10c/0x154 [musb_hdrc])
[<bf05a18c>] (musb_urb_dequeue [musb_hdrc]) from [<c04d2994>] (unlink1+0xf0/0xfc)
[<c04d2994>] (unlink1) from [<c04d3e0c>] (usb_hcd_unlink_urb+0x98/0xb4)
[<c04d3e0c>] (usb_hcd_unlink_urb) from [<c04d4f08>] (usb_kill_urb+0x5c/0xd4)
[<c04d4f08>] (usb_kill_urb) from [<c04df570>] (usbdev_ioctl+0xfb4/0x1d68)
[<c04df570>] (usbdev_ioctl) from [<c0141cd8>] (do_vfs_ioctl+0x4b4/0x5b0)
[<c0141cd8>] (do_vfs_ioctl) from [<c0141e30>] (SyS_ioctl+0x5c/0x84)
[<c0141e30>] (SyS_ioctl) from [<c000e1a0>] (ret_fast_syscall+0x0/0x30)
---[ end trace be96843a427141ef ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 581 at /builds/yocto/poky-dizzy-1.7/builds/beaglebone/tmp/work/beaglebone-poky-linux-gnueabi/linux-yocto/3.14.24+gitAUTOINC+a227f20eff_dbe5b52e93-r0/linux/drivers/usb/musb/musb_host.c:128 musb_h_tx_flush_fifo+0x6c/0x98 [musb_hdrc]()
Could not flush host TX2 fifo: csr: 2403
Modules linked in: snd_soc_omap snd_pcm_dmaengine musb_dsps snd_soc_core musb_hdrc snd_compress regmap_spi snd_pcm snd_timer snd soundcore omap_rng rng_core musb_am335x
CPU: 0 PID: 581 Comm: bladeRF-cli Tainted: G W 3.14.19-yocto-standard #1
[<c0015514>] (unwind_backtrace) from [<c0012340>] (show_stack+0x20/0x24)
[<c0012340>] (show_stack) from [<c06d8dd4>] (dump_stack+0x20/0x28)
[<c06d8dd4>] (dump_stack) from [<c0039a20>] (warn_slowpath_common+0x7c/0x9c)
[<c0039a20>] (warn_slowpath_common) from [<c0039a80>] (warn_slowpath_fmt+0x40/0x48)
[<c0039a80>] (warn_slowpath_fmt) from [<bf058ea4>] (musb_h_tx_flush_fifo+0x6c/0x98 [musb_hdrc])
[<bf058ea4>] (musb_h_tx_flush_fifo [musb_hdrc]) from [<bf05a02c>] (musb_cleanup_urb.isra.11+0x94/0xe8 [musb_hdrc])
[<bf05a02c>] (musb_cleanup_urb.isra.11 [musb_hdrc]) from [<bf05a18c>] (musb_urb_dequeue+0x10c/0x154 [musb_hdrc])
[<bf05a18c>] (musb_urb_dequeue [musb_hdrc]) from [<c04d2994>] (unlink1+0xf0/0xfc)
[<c04d2994>] (unlink1) from [<c04d3e0c>] (usb_hcd_unlink_urb+0x98/0xb4)
[<c04d3e0c>] (usb_hcd_unlink_urb) from [<c04d4f08>] (usb_kill_urb+0x5c/0xd4)
[<c04d4f08>] (usb_kill_urb) from [<c04df570>] (usbdev_ioctl+0xfb4/0x1d68)
[<c04df570>] (usbdev_ioctl) from [<c0141cd8>] (do_vfs_ioctl+0x4b4/0x5b0)
[<c0141cd8>] (do_vfs_ioctl) from [<c0141e30>] (SyS_ioctl+0x5c/0x84)
[<c0141e30>] (SyS_ioctl) from [<c000e1a0>] (ret_fast_syscall+0x0/0x30)
---[ end trace be96843a427141f0 ]---
[DEBUG @ usb.c:92] Failed to write perperial access command: Operation timed out
bladeRF> [DEBUG @ libusb.c:788] lusb_control_transfer failed: status = -7
[DEBUG @ usb.c:1359] Could not enable RF TX (-6): Operation timed out
bladeRF> q
Unfortunately, I'm not sure how much time I'll have to dive into this right now. I think reviewing the musb code would be a good start, and perhaps taking a look at samples using a
Beagle USB analyzer.
I heard on IRC that a few USB 3.0 XHCI controllers still don't play nicely with the bladeRF. Perhaps some debugging this musb issue will either identify defects in that driver, or bring to light some common functionality in our use of libusb of the FX3 firmware that is at fault... please keep me in the loop.
Best regards,
Jon