All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: rob@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] soft lockup after 11s
Date: Tue, 24 Jun 2008 18:18:08 +0200	[thread overview]
Message-ID: <48611E40.5010000@domain.hid> (raw)
In-Reply-To: <001801c8d614$6ddb55c0$9601a8c0@domain.hid>

Robert McCullough wrote:
> 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?

Since module_init() is a non real-time context, you can safely call
schedule() in the loop.

> 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.

-- 
                                                 Gilles.


      reply	other threads:[~2008-06-24 16:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-24 16:07 [Xenomai-help] soft lockup after 11s Robert McCullough
2008-06-24 16:18 ` Gilles Chanteperdrix [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48611E40.5010000@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=rob@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.