All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Low-level isr in ADEOS/RTDM
@ 2006-09-07 20:04 Sean McGranaghan
  2006-09-07 20:33 ` Jan Kiszka
  0 siblings, 1 reply; 3+ messages in thread
From: Sean McGranaghan @ 2006-09-07 20:04 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/html, Size: 2965 bytes --]

[-- Attachment #2: TEK00001.PNG --]
[-- Type: image/png, Size: 3767 bytes --]

[-- Attachment #3: smm.vcf --]
[-- Type: text/x-vcard, Size: 272 bytes --]

begin:vcard
fn:Sean McGranaghan
n:McGranaghan;Sean
org:The Appcon Group, Inc.
adr;dom:;;97 Ridgeland Rd;Rochester;NY;14623
email;internet:smm@domain.hid
title:Embedded Software Engineer
tel;work:585-427-7830
tel;fax:585-427-2116
x-mozilla-html:TRUE
version:2.1
end:vcard


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xenomai-help] Low-level isr in ADEOS/RTDM
  2006-09-07 20:04 [Xenomai-help] Low-level isr in ADEOS/RTDM Sean McGranaghan
@ 2006-09-07 20:33 ` Jan Kiszka
  2006-09-08 10:44   ` Sean McGranaghan
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Kiszka @ 2006-09-07 20:33 UTC (permalink / raw)
  To: Sean McGranaghan; +Cc: xenomai

[-- Attachment #1: Type: text/plain, Size: 2941 bytes --]

Sean McGranaghan wrote:
> Hello all,
> 
> I am having an issue with a "lost" interrupt in an RTDM driver. This is a long 
> story so I will try to summarize:
> 
> Hardware description -
> I have a Geode2 based PC/104 stack with CAN and ADC/DAC cards. The motherboard 
> implements a standard XT-PIC in its super io. The system is running Xenomai 
> 2.2.1 with a Gentoo  Linux 2.6.17 kernel. There are several external devices on 
> the CAN bus to load the bus with traffic.
> 
> Software description -
> I have two RTDM drivers that provide simple ioctl() interfaces to the 
> application. One driver supports two CAN controllers. (PCAN/SJA1000. I 
> implemented this driver many months before RTCAN was available. Sorry I couldn't 
> wait, paying customer and all. ;-)

Yeah. :)

> The other driver supports a ADC/DAQ card. The 
> application runs several Xenomai tasks using message queues for communication.
> 
> Failure Description -
> The application starts. I can see IRQ lines being raised and lowered as 
> interrupts are handled. The application runs normally. After about one or two 
> minutes depending on the bus load, I "lose" the IRQ15 interrupt. My interrupt 
> service routine is never called and the interrupt chain is broken for that 
> device. I have traced the IRQ lines from the devices on the oscilloscope and see 
> that the IRQ goes high, but is never acknowledged. (See attached. I added labels 
> to each trace.) This failure is sporadic and seems to depend on all three 
> devices generating interrupts in the system.
> 
> Theory -
> The interrupt is never acknowledged because the PIC did not notify the processor 
> or software never acknowledged the PIC.
> 
> Testing approach -
> I need to determine if the hardware or software has lost the interrupt. I would 
> tend to suspect software first so I decided to start there. I am using the 
> parallel port pins as GPIO output and trying to instrument the low-level 
> ADEOS/Xenomai interrupt handling. If I catch the interrupt soon enough in the 
> interrupt pipeline I can determine that some software issue is preventing my isr 
> from running. If no interrupt ever occurs then I can suspect the hardware.
> 
> Assumptions -
> ADEOS/Xenomai/RTDM catches the interrupt and propagates it to my isr. If my isr 
> is the first level interrupt handler I am out of luck.
> 
> Any thoughts or suggestions are appreciated.

Already had a look at the ipipe-tracer?

http://download.gna.org/adeos/patches/v2.6/i386/tracer

If you can determine the error condition in software, it's easy to
trigger a freeze of the past invoked functions: xntrace_user_freeze. You
can call it from any context, also from user-space. Check
/proc/ipipe/tracer for the output ("frozen") and tunables (specifially
"back_trace_points"). If help on interpreting the result is required,
post it (or relevant excerpts) here.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xenomai-help] Low-level isr in ADEOS/RTDM
  2006-09-07 20:33 ` Jan Kiszka
@ 2006-09-08 10:44   ` Sean McGranaghan
  0 siblings, 0 replies; 3+ messages in thread
From: Sean McGranaghan @ 2006-09-08 10:44 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai

[-- Attachment #1: Type: text/html, Size: 3604 bytes --]

[-- Attachment #2: smm.vcf --]
[-- Type: text/x-vcard, Size: 272 bytes --]

begin:vcard
fn:Sean McGranaghan
n:McGranaghan;Sean
org:The Appcon Group, Inc.
adr;dom:;;97 Ridgeland Rd;Rochester;NY;14623
email;internet:smm@domain.hid
title:Embedded Software Engineer
tel;work:585-427-7830
tel;fax:585-427-2116
x-mozilla-html:TRUE
version:2.1
end:vcard


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-09-08 10:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-07 20:04 [Xenomai-help] Low-level isr in ADEOS/RTDM Sean McGranaghan
2006-09-07 20:33 ` Jan Kiszka
2006-09-08 10:44   ` Sean McGranaghan

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.