Closed yangqingshi closed 2 years ago
Hi,
I'm not seeing kernel crash message in your log. Patch 4a3f170 solves kernel hang/crash issue while connect/disconnect WiFi/LTE dongle repeatedly. Patch 0065dad solves device connect on USB hub port 1 stop working issue introduced by previous patch.
I think the problem you encounter is fixed after merged 4a3f170.
Sincerely,
Yi-An Chen
hi The code I tested already contains 4a3f170. It is proved that there is no fix, but 0065dad seems to be able to solve it, but the test time is not long enough, and we still need to test for a long time to see if it can be solved。
Here's the log of the rcu core that was printed when the terminal crashed:
INFO: rcu_preempt self-detected stall on CPU { 0} (t=33615 jiffies g=98775 c=98774 q=11)
CPU: 0 PID: 0 Comm: swapper Not tainted 3.10.108 #1
Backtrace:
[
Another phenomenon that appears to be a kernel deadlock is the following log:
usb 1-2: new high-speed USB device number 50 using nuc970-ehci usb 1-2: new high-speed USB device number 51 using nuc970-ehci usb 1-2: new high-speed USB device number 52 using nuc970-ehci usb 1-2: new high-speed USB device number 53 using nuc970-ehci usb 1-2: new high-speed USB device number 54 using nuc970-ehci usb 1-2: new high-speed USB device number 55 using nuc970-ehci usb 1-2: new high-speed USB device number 56 using nuc970-ehci usb 1-2: new high-speed USB device number 57 using nuc970-ehci usb 1-2: new high-speed USB device number 58 using nuc970-ehci usb 2-2: new full-speed USB device number 32 using nuc970-ohci usb 2-2: not running at top speed; connect to a high speed hub usb 2-2: USB disconnect, device number 32 usb 1-2: new high-speed USB device number 59 using nuc970-ehci usb 2-2: new full-speed USB device number 33 using nuc970-ohci usb 2-2: not running at top speed; connect to a high speed hub usb 2-2: USB disconnect, device number 33 usb 2-2: new full-speed USB device number 34 using nuc970-ohci usb 2-2: not running at top speed; connect to a high speed hub usb 2-2: USB disconnect, device number 34 usb 2-2: new full-speed USB device number 35 using nuc970-ohci usb 2-2: not running at top speed; connect to a high speed hub usb 2-2: USB disconnect, device number 35 usb 2-2: new full-speed USB device number 36 using nuc970-ohci usb 2-2: not running at top speed; connect to a high speed hub usb 2-2: USB disconnect, device number 36 usb 2-2: new full-speed USB device number 37 using nuc970-ohci usb 2-2: not running at top speed; connect to a high speed hub usb 2-2: USB disconnect, device number 37 usb 2-2: new full-speed USB device number 38 using nuc970-ohci usb 2-2: not running at top speed; connect to a high speed hub
Based on long-term testing, there are currently two types of crashes
When i was testing, we encountered that the system might crash because of USB HUB. The test method is as follows: When using 4G modular devices on the platform,Then reset the 4G module again and again,The platform will crash in about three days.
Here is the LOG printed by the serial port at reset:
usb 1-2: new high-speed USB device number 33 using nuc970-ehci usb 1-2: new high-speed USB device number 34 using nuc970-ehci usb 1-2: new high-speed USB device number 35 using nuc970-ehci usb 1-2: new high-speed USB device number 36 using nuc970-ehci usb 1-2: new high-speed USB device number 37 using nuc970-ehci usb 1-2: new high-speed USB device number 38 using nuc970-ehci usb 1-2: new high-speed USB device number 39 using nuc970-ehci usb 1-2: new high-speed USB device number 40 using nuc970-ehci usb 2-2: new full-speed USB device number 95 using nuc970-ohci usb 2-2: not running at top speed; connect to a high speed hub usb 2-2: USB disconnect, device number 95 usb 1-2: new high-speed USB device number 41 using nuc970-ehci usb 1-2: new high-speed USB device number 42 using nuc970-ehci usb 1-2: new high-speed USB device number 43 using nuc970-ehci usb 1-2: new high-speed USB device number 44 using nuc970-ehci usb 1-2: new high-speed USB device number 45 using nuc970-ehci usb 1-2: new high-speed USB device number 46 using nuc970-ehci usb 1-2: new high-speed USB device number 47 using nuc970-ehci usb 1-2: new high-speed USB device number 48 using nuc970-ehci usb 1-2: new high-speed USB device number 49 using nuc970-ehci usb 2-2: new full-speed USB device number 96 using nuc970-ohci usb 2-2: not running at top speed; connect to a high speed hub usb 2-2: USB disconnect, device number 96 usb 1-2: new high-speed USB device number 50 using nuc970-ehci usb 1-2: new high-speed USB device number 51 using nuc970-ehci usb 1-2: new high-speed USB device number 52 using nuc970-ehci usb 1-2: new high-speed USB device number 53 using nuc970-ehci usb 1-2: new high-speed USB device number 54 using nuc970-ehci usb 1-2: new high-speed USB device number 55 using nuc970-ehci usb 1-2: new high-speed USB device number 56 using nuc970-ehci usb 1-2: new high-speed USB device number 57 using nuc970-ehci usb 1-2: new high-speed USB device number 58 using nuc970-ehci usb 1-2: new high-speed USB device number 59 using nuc970-ehci usb 2-2: new full-speed USB device number 97 using nuc970-ohci usb 2-2: not running at top speed; connect to a high speed hub usb 2-2: USB disconnect, device number 97 usb 1-2: new high-speed USB device number 60 using nuc970-ehci usb 1-2: new high-speed USB device number 61 using nuc970-ehci usb 2-2: new full-speed USB device number 98 using nuc970-ohci usb 2-2: not running at top speed; connect to a high speed hub usb 2-2: USB disconnect, device number 98 usb 1-2: new high-speed USB device number 62 using nuc970-ehci usb 1-2: new high-speed USB device number 63 using nuc970-ehci usb 2-2: new full-speed USB device number 99 using nuc970-ohci usb 2-2: not running at top speed; connect to a high speed hub
Additionally we merged 0065 dadaa859642f26f3c9c85eb168153921c63f the changes.Using the same test environment, it has been the fourth day, there has been no crash phenomenon. May I ask what problem this change is mainly to fix?Whether it can also solve the problem I encountered?
We have been using before version of the code is 81 e3c49a1d2eb5870a705e308bad1caad9a79ec0