From: Wolfgang Grandegger <wg@domain.hid>
To: Peter Pastor <peter.pastor@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Xenomai and PEAK can bus card problem
Date: Tue, 12 Oct 2010 09:37:34 +0200 [thread overview]
Message-ID: <4CB4103E.80009@domain.hid> (raw)
In-Reply-To: <AANLkTimTRK9RG6md3vVoohx7KFw2uwczZGGaXvajnPxq@domain.hid>
On 10/12/2010 02:09 AM, Peter Pastor wrote:
> Hey Wolfgang,
>
> I am compiling the rtcan code as modules. Also, for debugging purposes, I
> moved the xeno_can.ko and friends out of the /lib/modules directory and
> successfully booted into xenomai. Once xenomai booted up correctly, I insmod
> the modules by hand, first xeno_can.ko, then xeno_can_sja1000.ko and then
> the xeno_can_peak_pci.ko. The first two modules do not cause any trouble.
> However, the last one causes the system to freeze (after a short delay).
>
> The ERROR message is
> ERROR -16: IRQ is busy, check shared interrupt support !
> ERROR -16 while trying to register SJA1000 device.
>
> It turns out that I haven't had the shared interrupt support turned on !!
Ah, now I remember. But it's not the reason for your problems, I think.
Interrupts are *not* requested when you install the driver but later,
when a device is opened (when you call rtcanconfig).
> However, after enabling shared inturrupts (in the real-time subsystem
> category) and recompiling and rebooting... the error message disappears but
> the system still freezes after a certain while. I cannot really grep what
> comes out of the dmesg and also, it seems that each time I load this final
> kernel module it spits out slightly different things.
>
> Initially it seems that everything is fine. It registers rtcan0 and rtcan1
> on IRQ 16
>
> I do not quit understand why it is assigned to 16 though and not 11.
Magic, indeed. Looks like the proper irq number was not written to the
corresponding interrupt PCI configuration register. I assume 16 is
correct, otherwise the PCI layer would be broken badly. Do the Xenomai
tests, e.g. latency or cyclictest, work properly without RTCAN?
Wolfgang.
next prev parent reply other threads:[~2010-10-12 7:37 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-09 6:44 [Xenomai-help] Xenomai and PEAK can bus card problem Peter Pastor
2010-10-09 8:03 ` Philippe Gerum
2010-10-09 18:09 ` Peter Pastor
2010-10-10 19:30 ` Peter Pastor
2010-10-10 21:28 ` Philippe Gerum
2010-10-11 6:19 ` Peter Pastor
2010-10-11 7:15 ` Gilles Chanteperdrix
2010-10-11 15:59 ` Peter Pastor
2010-10-11 19:10 ` Gilles Chanteperdrix
2010-10-11 19:29 ` Peter Pastor
2010-10-11 19:38 ` Wolfgang Grandegger
2010-10-11 21:23 ` Peter Pastor
2010-10-12 0:09 ` Peter Pastor
2010-10-12 1:55 ` Peter Pastor
2010-10-12 5:59 ` Jan Kiszka
2010-10-12 7:37 ` Wolfgang Grandegger [this message]
2010-10-12 15:28 ` Peter Pastor
2010-10-12 17:25 ` Jan Kiszka
2010-10-13 6:14 ` Peter Pastor
2010-10-13 6:20 ` Gilles Chanteperdrix
2010-10-13 6:31 ` peter.pastor
2010-10-11 21:09 ` Stefan Kisdaroczi
2010-10-11 21:45 ` Gilles Chanteperdrix
2010-10-12 6:38 ` Jan Kiszka
2010-10-09 9:58 ` Gilles Chanteperdrix
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=4CB4103E.80009@domain.hid \
--to=wg@domain.hid \
--cc=peter.pastor@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.