Coral USB Accelerator / RPI CM4 - Crashing over USB 2.0

0

I am running the Coral USB accelerator on a Raspberry Pi CM4 board over USB 2.0. When using the python / openCV sample program (google-coral/examples-camera/opencv/detect.py, with all the prerequisites installed), I get intermittent crashes, and I found the dmesg errors below that coincide with the crash. Sometimes it will tolerate one or two of the chhltd errors and continue with detection, other times it will crash and require a restart of the container to work again (it is running in docker, in a privileged container with USB access). I've had it run for as long as a few hours before crashing, or as short as a few seconds - seems to be totally random. Has anyone seen something similar to this or does anyone have ideas on what could be the root cause based on the messages below?

[  558.614764] dwc2 fe980000.usb: dwc2_hc_start_transfer: chdis set, channel 1, hcchar 0x421c9840
[  576.630767] dwc2 fe980000.usb: dwc2_hc_start_transfer: chdis set, channel 7, hcchar 0x421c9840
[  611.256073] dwc2 fe980000.usb: dwc2_hc_start_transfer: chdis set, channel 2, hcchar 0x621c9840
[  617.402505] dwc2 fe980000.usb: dwc2_hc_start_transfer: chdis set, channel 4, hcchar 0x42188a00
[  617.402548] dwc2 fe980000.usb: dwc2_hc_chhltd_intr_dma: Channel 4 - ChHltd set, but reason is unknown
[  617.402564] dwc2 fe980000.usb: hcint 0x00000002, intsts 0x04600001
[  617.402598] dwc2 fe980000.usb: dwc2_hc_chhltd_intr_dma: Channel 2 - ChHltd set, but reason is unknown
[  617.402603] dwc2 fe980000.usb: hcint 0x00000002, intsts 0x04600001
[  617.402607] dwc2 fe980000.usb: dwc2_update_urb_state_abn(): trimming xfer length
[  617.402649] dwc2 fe980000.usb: dwc2_hc_chhltd_intr_dma: Channel 5 - ChHltd set, but reason is unknown
[  617.402653] dwc2 fe980000.usb: hcint 0x00000002, intsts 0x04600001
[  617.402656] dwc2 fe980000.usb: dwc2_update_urb_state_abn(): trimming xfer length
[  617.402698] dwc2 fe980000.usb: dwc2_hc_chhltd_intr_dma: Channel 6 - ChHltd set, but reason is unknown
[  617.402703] dwc2 fe980000.usb: hcint 0x00000002, intsts 0x04600001
[  617.402707] dwc2 fe980000.usb: dwc2_update_urb_state_abn(): trimming xfer length
[  617.402739] dwc2 fe980000.usb: dwc2_hc_chhltd_intr_dma: Channel 3 - ChHltd set, but reason is unknown
[  617.402744] dwc2 fe980000.usb: hcint 0x00000002, intsts 0x04600001
[  617.402748] dwc2 fe980000.usb: dwc2_update_urb_state_abn(): trimming xfer length
[  617.402785] dwc2 fe980000.usb: dwc2_hc_chhltd_intr_dma: Channel 4 - ChHltd set, but reason is unknown
[  617.402789] dwc2 fe980000.usb: hcint 0x00000002, intsts 0x04600001
[  617.402792] dwc2 fe980000.usb: dwc2_update_urb_state_abn(): trimming xfer length
[  617.402823] dwc2 fe980000.usb: dwc2_hc_chhltd_intr_dma: Channel 7 - ChHltd set, but reason is unknown
[  617.402827] dwc2 fe980000.usb: hcint 0x00000002, intsts 0x04600001
[  617.402831] dwc2 fe980000.usb: dwc2_update_urb_state_abn(): trimming xfer length
[  617.402868] dwc2 fe980000.usb: dwc2_hc_chhltd_intr_dma: Channel 5 - ChHltd set, but reason is unknown
[  617.402871] dwc2 fe980000.usb: hcint 0x00000002, intsts 0x04600001
[  617.402874] dwc2 fe980000.usb: dwc2_update_urb_state_abn(): trimming xfer length
[  617.402911] dwc2 fe980000.usb: dwc2_hc_chhltd_intr_dma: Channel 6 - ChHltd set, but reason is unknown
[  617.402915] dwc2 fe980000.usb: hcint 0x00000002, intsts 0x04600001
[  617.402918] dwc2 fe980000.usb: dwc2_update_urb_state_abn(): trimming xfer length
[  617.402951] dwc2 fe980000.usb: dwc2_update_urb_state(): trimming xfer length
[  631.451031] dwc2 fe980000.usb: dwc2_hc_start_transfer: chdis set, channel 7, hcchar 0x621c9840
[  638.883782] dwc2 fe980000.usb: dwc2_hc_start_transfer: chdis set, channel 7, hcchar 0x621c9840
[  716.891035] dwc2 fe980000.usb: dwc2_hc_start_transfer: chdis set, channel 1, hcchar 0x421c9840
[  968.913158] dwc2 fe980000.usb: dwc2_hc_start_transfer: chdis set, channel 5, hcchar 0x61fc8840
[  968.913281] usb 1-1.3.3: input irq status -5 received
[ 1106.924911] dwc2 fe980000.usb: dwc2_hc_start_transfer: chdis set, channel 5, hcchar 0x61fc8840
[ 1106.925042] usb 1-1.3.3: input irq status -5 received
raspberry-pi4
google-coral
asked on Stack Overflow Apr 28, 2021 by David Caputo

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0