From: Jan Kiszka <jan.kiszka@domain.hid>
To: Sean McGranaghan <smm@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Where did my interrupts go?
Date: Tue, 18 Apr 2006 19:08:09 +0200 [thread overview]
Message-ID: <44451CF9.8020201@domain.hid> (raw)
In-Reply-To: <444502A6.7020402@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 1466 bytes --]
Sean McGranaghan wrote:
> Hello all,
>
> I have been writing an RTDM driver for an ISA (PC/104) based DAQ board. I had
> the initial driver working under a very old trunk snapshot (Rev 464). This
> morning I upgraded to the latest trunk. I put a few small fixes into my driver
> and test application to take care of some deprecated functions and constants.
> (rt_queue_recv() and RT_IRQ_ENABLED). It appears that my driver is no longer
> receiving interrupts. I can see the irq line go active on the oscilloscope but
> it is never cleared and it appears my interrupt handler is never called.
>
> I ran the test suite including xeno-test with no problems. Attached are output
> files from dmesg, xeno-config and xeno-test outputs. My kernel config file is
> also attached.
>
> At this point I think I need to turn on some debugging in the kernel. Which
> debug options would be appropriate here?.
>
First of all, what does /proc/xenomai/irq tell you about your DAQ IRQ?
Is it registered correctly? Are there any arrivals noted?
Then double-check if you pass the correct code on return from the IRQ
handler: either RTDM_IRQ_HANDLED (if that IRQ was for you - standard),
or RTDM_IRQ_NONE. Nothing else (RT_IRQ_ENABLE is "native stuff", i.e.
violates the rule to keep your driver clean from non-RTDM APIs).
Regarding debugging options: CONFIG_XENO_OPT_DEBUG_RTDM is highly
recommended for drivers under development.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
next prev parent reply other threads:[~2006-04-18 17:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-18 15:15 [Xenomai-help] Where did my interrupts go? Sean McGranaghan
2006-04-18 17:08 ` Jan Kiszka [this message]
2006-04-19 15:30 ` Sean McGranaghan
2006-04-19 17:03 ` Jan Kiszka
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=44451CF9.8020201@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=smm@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.