All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Henri Roosen <henriroosen@domain.hid>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] IRQ handler argument corrupt when shared interrupts are enabled (Xenomai 2.4.10)
Date: Fri, 15 Jan 2010 11:06:55 +0100	[thread overview]
Message-ID: <4B503E3F.9040708@domain.hid> (raw)
In-Reply-To: <b88603c31001150156gd8fbce6s1aa860fa3f04b8d0@domain.hid>

Henri Roosen wrote:
> On Fri, Jan 15, 2010 at 10:43 AM, Jan Kiszka <jan.kiszka@domain.hid> wrote:
>> Henri Roosen wrote:
>>> Xenomai 2.4.10:
>>>
>>> IRQ handler argument is not the same as the argument I provided when
>>> registering the IRQ handler. Problem only occurs when shared interrupt
>>> support is enabled in the kernel config. NOTE: even though the
>>> registered IRQ handler not a shared interrupt handler (flags = 0).
>> What API are you referring to, RTDM, native, or nucleus? What's your arch?
> 
> I am using the RTDM API on x86, kernel 2.6.30.10.
> 
>>> The problem is not reproducable on Xenomai 2.5.0.
>>>
>>> So I was looking for the fix code in the 2.5.0 but couldn't find it.
>>> Is this a know problem that has only been fixed on 2.5.0, or does the
>>> bug just not show in 2.5.0? Could someone point out which commit on
>>> 2.5.0 fixes the problem?
>> I don't recall such a problem or any potential fix ATM.
> 
> Thanks Jan, that is good to know. I'll dig into it a little further...
> Glad it is very reproducable over here ;-)
> 

Given that the size of xnintr_t aka rtdm_irq_t changes under
CONFIG_XENO_OPT_SHIRQ, your driver build could be inconsistent.
Alternatively, you face some memory corruption of the xnintr_t object
after registration, and that happens to hit the cookie on 2.4.10 while
it may wreck something else on 2.5. I would dig in this directions first
as I think the core service itself is fairly stable.

Jan

-- 
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux


  reply	other threads:[~2010-01-15 10:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-15  9:10 [Xenomai-help] IRQ handler argument corrupt when shared interrupts are enabled (Xenomai 2.4.10) Henri Roosen
2010-01-15  9:43 ` Jan Kiszka
2010-01-15  9:56   ` Henri Roosen
2010-01-15 10:06     ` Jan Kiszka [this message]
2010-01-18  8:45       ` Henri Roosen

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=4B503E3F.9040708@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=henriroosen@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.