Bug 255780 - USB timeout when using BladeRF 2.0 A9
Summary: USB timeout when using BladeRF 2.0 A9
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: CURRENT
Hardware: arm64 Any
: --- Affects Only Me
Assignee: freebsd-usb (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-11 08:30 UTC by Konrad Jopek
Modified: 2021-05-17 09:50 UTC (History)
1 user (show)

See Also:


Attachments
usbdump for bladerf 2.0 A9 (204.30 KB, text/plain)
2021-05-13 22:12 UTC, Konrad Jopek
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Konrad Jopek 2021-05-11 08:30:34 UTC

    
Comment 1 Konrad Jopek 2021-05-11 08:32:13 UTC
When using BladeRF 2.0 A9 I noticed this issue:

[ERROR @ host/libraries/libbladeRF/src/board/bladerf2/bladerf2.c:123] _bladerf2_initialize: dev->backend->get_fpga_version(dev, &board_data->fpga_version) failed: Operation timed out
[ERROR @ host/libraries/libbladeRF/src/board/bladerf2/bladerf2.c:2186] bladerf2_load_fpga: _bladerf2_initialize(dev) failed: Operation timed out

Here are the stats for USB device:
ugen4.2: <Nuand bladeRF 2.0> at usbus4, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (200mA)
{
    UE_CONTROL_OK       : 518
    UE_ISOCHRONOUS_OK   : 0
    UE_BULK_OK          : 2574
    UE_INTERRUPT_OK     : 0
    UE_CONTROL_FAIL     : 0
    UE_ISOCHRONOUS_FAIL : 0
    UE_BULK_FAIL        : 26
    UE_INTERRUPT_FAIL   : 0
}


Not sure what happens, this may be a problem at USB 3.0 stack. However, looks like at some point bulk transfers are failing.

Please let me know if you need more debug data.
Comment 2 Hans Petter Selasky freebsd_committer freebsd_triage 2021-05-11 14:13:57 UTC
Hi,

usbdump -i usbusX -f Y -s65536 -vvv

might sched more light into this.

Can be started before you plug the device. X.Y are numbers after ugen.

--HPS
Comment 3 Konrad Jopek 2021-05-13 22:12:19 UTC
Created attachment 224916 [details]
usbdump for bladerf 2.0 A9

Requested usbdump log.
Comment 4 Konrad Jopek 2021-05-17 09:50:15 UTC
Do you any further debug information?