Got it

The control board of the SmartAX MA5603T is abnormal

Latest reply: Jul 27, 2021 05:38:55 678 37 13 0 0

Hello, everyone!


Today, I'd like to share a case with you.


Product Model: SmartAX MA5603T.


Problem Description


The control board of the SmartAX MA5603T has shut down abnormally.


Problem Analysis


The problem is that the SCUH board enters the standby state and the standby board enters the active state without redundancy protection because the board fails to be activated.


1. Query the last logs of the system and confirm that the reset of the SCUH control board is caused by the long-term nuclear watchdog.

SmartAX MA5603T


2. The watchdog is unclear on the mission as it waits for a long time for the spin lock.


SmartAX MA5603T


3. The chip fault detection task cannot obtain the spin lock because the spin lock is occupied by another CPU task that sends protocol packets.

Spinlock is a locking mechanism used to protect shared resources. In fact, spin locks are similar to mutex locks in that they address exclusive use of resources. Whether an amutex or a spin lock, there can be at most one holder at any one time, that is, at least one execution unit can acquire the lock at any one time. However, the scheduling mechanism is slightly different. For mutexes, if resources are occupied, the resource applicant can only enter the sleep state. However, the spin lock does not cause the caller to sleep. If the spin lock is already held by another execution unit, the caller loops there to see if the holder of the spin lock has released the lock. The word "spin" is named after it.

The spin lock is used to protect the shared VLAN software table. The shared VLAN software table can be accessed by multiple tasks. The CPU accesses the VLAN software table when sending protocol packets. In this case, a spin lock is obtained to prevent other tasks from accessing the VLAN software table at the same time. When an interrupt occurs during the access to the VLAN software table, the interrupt service program is executed. After the interrupt service program is executed, the system reschedules the task and schedules the task to detect the fault of the forwarding chip with a higher priority. The task will also access the vlan software table, and at this point it will also acquire a spin lock. The spin lock in the task of sending protocol packets by the CPU is not released, and the task is waiting. Finally, the watchdog kills the system, and the board is reset. The following figure shows the process.


SmartAX MA5603T


Root Cause


The spin lock is improper and the spin lock interrupt is not processed. As a result, task A (the CPU sends protocol packets) is interrupted after the spin lock is obtained. After the interrupt is processed, task B with a higher priority is scheduled (detecting forwarding chip faults). This task also obtains a spin lock. Because task A is not released, task B is always waiting. 


Solution Description


Non-spinlocks are used to protect shared resources, this issue can be solved by hotpatch R18C10SPH210.



Welcome to leave a message below.

We study together.

Thank you!


white queen


Practical case, useful solution!
View more
  • x
  • convention:

  • x
  • convention:

IndianKid
IndianKid Created May 6, 2021 13:34:50 (2) (0)
Thanks for tagging. i always love to know more information and stuff.  
wissal
wissal Reply IndianKid  Created May 6, 2021 13:35:43 (1) (0)
You are welcome  
Herediano
Herediano Created May 6, 2021 16:36:12 (1) (0)
 
Ayeshaali
Ayeshaali Created May 6, 2021 18:09:20 (1) (0)
 
Malik3000
Malik3000 Created May 6, 2021 18:36:26 (1) (0)
Thanks  
umaryaqub
umaryaqub Created May 7, 2021 04:26:58 (1) (0)
Thanks for tagging  
csk99
csk99 Created May 7, 2021 12:15:25 (1) (0)
Thanks  
Excellent
View more
  • x
  • convention:

Ayeshaali
Ayeshaali Created May 6, 2021 18:09:26 (1) (0)
 
BAZ
BAZ Created May 7, 2021 23:18:11 (1) (0)
Good share  
Vlada85
MVE Author Created May 6, 2021 17:12:13

Posted by wissal at 2021-05-06 13:33 @IndianKid @umaryaqub @LuizPuppin @shakeela @NTan33 @smileymind @Saqib123 @Malik3000 @yogijain @luci ...
Thanks
View more
  • x
  • convention:

GhaziAsad
GhaziAsad Created May 6, 2021 18:06:35 (1) (0)
 
Irshadhussain
Irshadhussain Created May 8, 2021 19:04:17 (1) (0)
 
Irshadhussain
Irshadhussain Created May 8, 2021 19:04:33 (1) (0)
 
Vlada85
MVE Author Created May 6, 2021 17:12:33

Good.and useful
View more
  • x
  • convention:

GhaziAsad
GhaziAsad Created May 6, 2021 18:06:28 (1) (0)
 
Adriale
Adriale Created May 7, 2021 13:56:19 (1) (0)
 
Good to know
View more
  • x
  • convention:

The control board of the SmartAX MA5603T is abnormal-3921071-1
View more
  • x
  • convention:

Excellent
View more
  • x
  • convention:

Thanks for sharing
View more
  • x
  • convention:

123
Back to list

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.