All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Jeroen Van den Keybus <jeroen.vandenkeybus@domain.hid>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] Registering MSI interrupt with Xenomai fails
Date: Fri, 02 Nov 2007 12:50:05 +0100	[thread overview]
Message-ID: <472B0EED.40209@domain.hid> (raw)
In-Reply-To: <fd6a47a90711020421u6c5a6dadqff4864eec6aa188@domain.hid>

Jeroen Van den Keybus wrote:
> We have a driver that operates on a PCIe card. The card has IRQ17. If we
> use it like that (IO-APIC-fasteoi), interrupt registration using
> rtdm_irq_request works correctly. (We also use rtdm_irq_enable
> afterwards, but it seems that the request already enables the interrupt.)
>  

Yes, it does.

> However, if we redefine our interrupt as MSI using pci_enable_msi(),
> rtdm_irq_request freezes the machine. (After pci_enable_msi, the new
> interrupt vector is 218 and /proc/interrupts correctly reports
> PCI-MSI-edge.)
>  
> We have another MSI-enabled card in the system (network card controlled
> by Linux) and this one works correctly. So I suspect that the Ipipe is
> clear and the bug must reside in Xenomai.
>  
> I've been adding printk instrumentation throughout the Ipipe, Xenomai
> and RTDM, but the problem is that possibly the contents of the kernel
> log do not make it to the terminal upon the freeze (no oops, no panic).
> Is there any way of efficiently debugging this ?
>

First, you may want to try commenting out the call to
xnintr_irq_enable() from rtdm_irq_request() - and your own call if any -
to check whether the system remains functional without enabling the IRQ
line. If so, then this may be an acknowledge issue.

-- 
Philippe.


  reply	other threads:[~2007-11-02 11:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-02 11:21 [Xenomai-core] Registering MSI interrupt with Xenomai fails Jeroen Van den Keybus
2007-11-02 11:50 ` Philippe Gerum [this message]
     [not found]   ` <fd6a47a90711020549u5630ec9cgda7042c8c6c0f10a@domain.hid>
     [not found]     ` <fd6a47a90711020636t73e357d5ub9cbca0675adc1d7@domain.hid>
2007-11-02 14:30       ` Jeroen Van den Keybus
2007-11-02 14:59         ` Philippe Gerum
2007-11-03 17:42           ` Jeroen Van den Keybus
2007-11-03 18:19             ` Philippe Gerum
2007-11-03 19:36               ` Jeroen Van den Keybus
2007-11-05 19:14                 ` Jeroen Van den Keybus
2007-11-12 14:43                   ` Jeroen Van den Keybus

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=472B0EED.40209@domain.hid \
    --to=rpm@xenomai.org \
    --cc=jeroen.vandenkeybus@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.