soft lockup after 11s
Hi,
I am using Linux 2.6.23.14 and Xenomai 2.4.2 on a MPC5200.
My problem is this:
My RTDM driver communicates to a slave device via a dual-ported RAM (DPR) interface. In my module_init() I have to give the slave a SAVE command via the DPR.
The SAVE command stores the slave's parameters to a non-volatile memory (FLASH or EEPROM). I then wait in a loop for a flag in the DPR to be set stating the command is complete.
The SAVE command takes about 22 seconds to complete. Before the command completes I get a "BUG: soft lock-up - CPU#0 stuck for 11s!" message.
How would I solve this problem?
Is there a way to increase this 11 second timeout?
Best regards,
Rob
Quoted 16 lines · Robert McCullough
Hi,
I am using Linux 2.6.23.14 and Xenomai 2.4.2 on a MPC5200.
My problem is this:
My RTDM driver communicates to a slave device via a dual-ported RAM (DPR) interface. In my
module_init()I have to give the slave a SAVE command via the DPR.
Quoted 8 lines
The SAVE command stores the slave's parameters to a non-volatile memory (FLASH or EEPROM). I then wait in a loop for a flag in the DPR to be set stating the command is complete.
The SAVE command takes about 22 seconds to complete. Before the command completes I get a "BUG: soft lock-up - CPU#0 stuck for 11s!" message.
How would I solve this problem?
Since module_init() is a non real-time context, you can safely call schedule() in the loop.
Quoted 1 line
Is there a way to increase this 11 second timeout?
You can disable the soft-lockup detector feature, a driver which loops for 22 seconds without yielding to the OS is a bit hard for the OS, to say the least.
Signature · 1 line
Gilles.