* [Xenomai-help] Interrupt Problem.
@ 2006-08-03 15:44 shailesh joshi
2006-08-03 21:36 ` Jan Kiszka
0 siblings, 1 reply; 4+ messages in thread
From: shailesh joshi @ 2006-08-03 15:44 UTC (permalink / raw)
To: xenomai
[-- Attachment #1: Type: text/plain, Size: 858 bytes --]
Hello,
I am trying to interfce a DAQ board to a PC via a PCI card. I am facing the following problem:
I am trying to send an interrupt from the Board to the PC. However, the interrupt is only registered in the PCI cards internal registers and not by Xenomai, ie. the /proc/xenomai/ interface registers interrupt 10 in the list (namely, handler is being installed) but the count for both cpus remains at 0.
To give a hint of the code, i am using a modified version of the RTDM driver example from captain.at. The only parts i haven't incorporated are those for MMAP, else the code is fast the same. Could anyone suggest what i might be doing wrong here??
Regards,
Shailesh Joshi
---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min.
[-- Attachment #2: Type: text/html, Size: 1089 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai-help] Interrupt Problem.
2006-08-03 15:44 [Xenomai-help] Interrupt Problem shailesh joshi
@ 2006-08-03 21:36 ` Jan Kiszka
2006-08-03 23:10 ` shailesh joshi
0 siblings, 1 reply; 4+ messages in thread
From: Jan Kiszka @ 2006-08-03 21:36 UTC (permalink / raw)
To: shailesh joshi; +Cc: xenomai
[-- Attachment #1: Type: text/plain, Size: 1052 bytes --]
shailesh joshi wrote:
> Hello,
>
> I am trying to interfce a DAQ board to a PC via a PCI card. I am facing the following problem:
>
> I am trying to send an interrupt from the Board to the PC. However, the interrupt is only registered in the PCI cards internal registers and not by Xenomai, ie. the /proc/xenomai/ interface registers interrupt 10 in the list (namely, handler is being installed) but the count for both cpus remains at 0.
>
> To give a hint of the code, i am using a modified version of the RTDM driver example from captain.at. The only parts i haven't incorporated are those for MMAP, else the code is fast the same. Could anyone suggest what i might be doing wrong here??
Do you happen to have some standard Linux driver for your DAQ board?
Does it work on your target? Are you sure you correctly initialise and
enable IRQ delivery on the board?
BTW, already tried the irqbench the comes with recent Xenomai? Does it
work on your box (yet another IRQ delivery test, and it's RTDM based)?
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai-help] Interrupt Problem.
2006-08-03 21:36 ` Jan Kiszka
@ 2006-08-03 23:10 ` shailesh joshi
2006-08-04 6:25 ` Jan Kiszka
0 siblings, 1 reply; 4+ messages in thread
From: shailesh joshi @ 2006-08-03 23:10 UTC (permalink / raw)
To: Jan Kiszka; +Cc: xenomai
[-- Attachment #1: Type: text/plain, Size: 1961 bytes --]
The board is custom made, the PCI card is of the make ADLink but has no Linux support. However, the same card worked for RTLinux, however, we had to drop the Idea for latency reasons.
i am guessing i am doing something wrong while initialising the handler. Like i said, the Card is generatimg the interript signal but linux is not acknowledging it, aka, the code does not enter the handler....I am using a sleep function in the user application but i guess that does not affect the RT code oder?? I am a beginner so I might be sounding very stupid. I request you to bare with me for the time being till i sharpen up.
Regards,
Shailesh.
P.S: I am initialising the handler with rtdm_irq_request. Have also tried rthal_irq_request. Any suggestions there??
Jan Kiszka <jan.kiszka@domain.hid> wrote:
shailesh joshi wrote:
> Hello,
>
> I am trying to interfce a DAQ board to a PC via a PCI card. I am facing the following problem:
>
> I am trying to send an interrupt from the Board to the PC. However, the interrupt is only registered in the PCI cards internal registers and not by Xenomai, ie. the /proc/xenomai/ interface registers interrupt 10 in the list (namely, handler is being installed) but the count for both cpus remains at 0.
>
> To give a hint of the code, i am using a modified version of the RTDM driver example from captain.at. The only parts i haven't incorporated are those for MMAP, else the code is fast the same. Could anyone suggest what i might be doing wrong here??
Do you happen to have some standard Linux driver for your DAQ board?
Does it work on your target? Are you sure you correctly initialise and
enable IRQ delivery on the board?
BTW, already tried the irqbench the comes with recent Xenomai? Does it
work on your box (yet another IRQ delivery test, and it's RTDM based)?
Jan
---------------------------------
Do you Yahoo!?
Next-gen email? Have it all with the all-new Yahoo! Mail Beta.
[-- Attachment #2: Type: text/html, Size: 2377 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai-help] Interrupt Problem.
2006-08-03 23:10 ` shailesh joshi
@ 2006-08-04 6:25 ` Jan Kiszka
0 siblings, 0 replies; 4+ messages in thread
From: Jan Kiszka @ 2006-08-04 6:25 UTC (permalink / raw)
To: shailesh joshi; +Cc: xenomai
[-- Attachment #1: Type: text/plain, Size: 1015 bytes --]
shailesh joshi wrote:
> The board is custom made, the PCI card is of the make ADLink but has no Linux support. However, the same card worked for RTLinux, however, we had to drop the Idea for latency reasons.
>
> i am guessing i am doing something wrong while initialising the handler. Like i said, the Card is generatimg the interript signal but linux is not acknowledging it, aka, the code does not enter the handler....I am using a sleep function in the user application but i guess that does not affect the RT code oder?? I am a beginner so I might be sounding very stupid. I request you to bare with me for the time being till i sharpen up.
>
> Regards,
> Shailesh.
>
> P.S: I am initialising the handler with rtdm_irq_request. Have also tried rthal_irq_request. Any suggestions there??
rtdm_irq_request is the way to go, followed by rtdm_irq_enable. See also
the existing examples like Hannes code or irqbench. If still unsure,
post code so that we can have a look.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-08-04 6:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-03 15:44 [Xenomai-help] Interrupt Problem shailesh joshi
2006-08-03 21:36 ` Jan Kiszka
2006-08-03 23:10 ` shailesh joshi
2006-08-04 6:25 ` Jan Kiszka
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.