When I use the USB interface to copy data, I often encounter some abnormal situations, even the system crashes and restarts

I encountered the following problems when using the USB interface:

  1. Copy a large amount of data from the nvme hard disk to a USB SSD or U disk, and execute the sync command at the same time, which is prone to abnormal system restart. If it is a USB2.0 device, it is easier to reproduce.This problem can be reproduced on Xavier, TX2, and NX.
  2. When plugging and unplugging the keyboard, mouse and USB hard disk, occasionally the desktop of the operating system freezes, and then the system restarts.
  3. When writing large data (200GB) to USB SSD, sometimes the speed is extremely slow.
  4. USB is connected to HUB, mouse, keyboard, and hard disk. After restarting several times, the USB interface fails occasionally and returns to -71.

Is this a custom board or a NV devkit?

The first problem can be reproduced on both the custom board and the NV devkit. Other problems are occasional, and I haven’t tried to reproduce them on the NV devkit.

For the first problem, please monitoring the uart log when error happens and share the log here.

The following is the uart log when the device restarts :

[ 528.674435] pcieport 0001:00:00.0: PCIe Bus Error: severity=Corrected, type=Data Link Layer, id=0000(Transmitter ID)

[ 528.674976] pcieport 0001:00:00.0: device [10de:1ad2] error status/mask=00001000/0000e000

[ 528.675310] pcieport 0001:00:00.0: [12] Replay Timer Timeout

[ 1132.298899] pcieport 0001:00:00.0: PCIe Bus Error: severity=Corrected, type=Data Link Layer, id=0000(Transmitter ID)

[ 1132.299362] pcieport 0001:00:00.0: device [10de:1ad2] error status/mask=00001000/0000e000

[ 1132.299686] pcieport 0001:00:00.0: [12] Replay Timer Timeout

[ 1451.355091] INFO: task sync:14856 blocked for more than 120 seconds.

[ 1451.355385] Tainted: G O 4.9.201-tegra #1

[ 1451.355610] “echo 0 > /proc/sys/kernel/hung_task_timeout_secs” disables this message.

[ 1451.356125] Kernel panic - not syncing: hung_task: blocked tasks

[ 1451.356364] CPU: 2 PID: 706 Comm: khungtaskd Tainted: G O 4.9.201-tegra #1

[ 1451.356669] Hardware name: Jetson-AGX (DT)

[ 1451.356825] Call trace:

[ 1451.356938] [] dump_backtrace+0x0/0x198

[ 1451.357149] [] show_stack+0x24/0x30

[ 1451.357355] [] dump_stack+0xa0/0xc8

[ 1451.357563] [] panic+0x12c/0x2a8

[ 1451.357758] [] watchdog+0x320/0x3d0

[ 1451.357958] [] kthread+0xec/0xf0

[ 1451.358546] [] ret_from_fork+0x10/0x30

[ 1451.359433] SMP: stopping secondary CPUs

[ 1451.360084] Kernel Offset: disabled

[ 1451.360631] Memory Limit: none

[ 1451.361146] trusty-log panic notifier - trusty version Built: 14:49:44 Jan 15 2021 [ 1451.377033] Rebooting in 5 seconds…

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

ERROR: app/ivc-sync-in2-channel.c:84 [ivc_sync_in2_write_msg] “tegra_ivc_tx_get_contiguous_write_space() failed”

Shutdown state requested 1

Rebooting system …

Are you using pure jetpack driver package on devkit to reproduce this issue? I mean just install jetpack, no re-building kernel or apply any patch.

It is re-building kernel, I can try to use pure jetpack!

I tried the pure jetpack4.5.1 on TX2 devkit, and the same problem will occur.

Can you share me the steps/commands and to reproduce this issue?

Also this forum is AGX Xavier forum, but you just said TX2. What is the exact platform we are using here?

The exact platform we are using is Xavier, but I reproduced this problem in Xavier, TX2 and NX。

Step:

  1. Copy a folder containing 200G data to the NVMe hard disk or USB hard disk in the device;
  2. Use the cp command to copy this folder to the USB hard disk (USB2.0);
  3. Execute the sync command cyclically;
  4. Wait, there will be a high probability that the system will restart.

This problem occasionally occurs when using a USB3.0 hard disk.

Can you share all the commands so that I can do 100% same as your cases? Especially the first one to generate a 200G data.

The data I use is a directory, which contains a lot of data packages.
One of the terminals executes:
cp -rf /media/nvidia/usbdisk/data /media/nvidia/usbdisk/data1
Another terminal or two executes:
while true; do sleep 1; sync;echo -e “sync\n”>>1.txt; done;

The key problem is that using Hard disk with slow transfer speed or USB2.0 U disk which can reproduce 100%.
1

Hi,

Looks like we are not able to reproduce this issue with the file we have here. Is it possible to share such test data for us?

We don’t have such large data as your case locally.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.