All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rodrigo Rosenfeld Rosas <lbocseg@domain.hid>
To: xenomai-core <xenomai@xenomai.org>
Subject: [Xenomai-core] Interrupt priorities
Date: Mon, 20 Mar 2006 16:47:51 -0300	[thread overview]
Message-ID: <200603201647.51941.lbocseg@domain.hid> (raw)

Hi Philippe.

I was wondering if there are any plans to provide an option to Xenomai to 
allow the use of interrupt priorities. I mean, by having the timer source as 
the most prioritary interrupt so that the scheduler could preempt the 
interrupt.

Let me explain why such option would be good. When I was testing my 
framegrabber driver, I had to reboot my PC about 10 times until I could 
identificate what was causing total freeze of the system. The problem was on 
the interrupt handler. One of the problems was that I was not clearing the 
interrupt events correctly so that the handler was in loop. The other problem 
was a crash inside the interrupt due to something like:

uint64_t timestamp=rtdm_clock_read();
b.timestamp = *((struct timeval *) timestamp);

Where it should be
b.timestamp = *((struct timeval *) &timestamp);

I forgot the '&' char.

If it was possible to preempt the interrupt, by a task of greater priority, I 
could write a watchdog that would disable the interrupt in case the system 
stops responding.

Do you think it would worth providing such option to Xenomai, at least as a 
debug feature?

Best Regards,

Rodrigo.

P.S: BTW, I think my driver is usable now, so that you (or someone else) could 
cite it in some article or documentation. When I finish my master thesis (my 
deadline is the end of June ), I think I'll have time to comment it better 
and to remove the Data Translation specific code so that it can me made 
available as a template for real-time video interfaces. Or maybe you could 
convince Data Translation to allow me to show all the code! ;)

		
_______________________________________________________
Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora!
http://br.acesso.yahoo.com



             reply	other threads:[~2006-03-20 19:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-20 19:47 Rodrigo Rosenfeld Rosas [this message]
2006-03-22 23:04 ` [Xenomai-core] Interrupt priorities Philippe Gerum
2006-03-23  2:35   ` Rodrigo Rosenfeld Rosas
2006-03-23 14:20     ` Philippe Gerum

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=200603201647.51941.lbocseg@domain.hid \
    --to=lbocseg@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.