All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Francois Touchard <francois.touchard@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] PC freezes on call to driver functions
Date: Wed, 28 Oct 2009 10:45:51 +0100	[thread overview]
Message-ID: <4AE812CF.6020201@domain.hid> (raw)
In-Reply-To: <4AE7E36D.7040307@domain.hid>

Francois Touchard wrote:
> Hello,
> for teaching purposes, I have a very simple driver built with RTDM to catch 
> interrupts generated on the parallel port via a pulse generator. On receipt of a 
> command passed by ioctl, the driver measures the time interval between two 
> interrupts and stores the result (in fact, the sum of n time intervals, n being 
> passed as parameter of ioctl). The result is returned to the user by a read command.
> If I call ioctl immediatly after the open command, the machine freezes and only 
> the reset button is effective. If I insert a print command between open and 
> ioctl, everything works fine.
> I use Xenomai 2.4.9.1 and Linux 2.6.29.5. The processor is a Pentium 4. I attach 
> the sources of the driver and the user application.
> Any hint ? TIA

Switch on at least CONFIG_XENO_OPT_DEBUG_RTDM, but also
CONFIG_IPIPE_DEBUG_CONTEXT can be helpful while writing drivers. Those
will tell you which services you call from the wrong context (here:
rtdm_task_join_nrt from RT context).

Jan

-- 
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux


      reply	other threads:[~2009-10-28  9:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-28  6:23 [Xenomai-help] PC freezes on call to driver functions Francois Touchard
2009-10-28  9:45 ` Jan Kiszka [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=4AE812CF.6020201@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=francois.touchard@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.