All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Xenomai: xnintr_irq_handler: IRQ0 not handled. Disabling IRQ line.
@ 2007-03-13 15:38 Edouard TISSERANT
  2007-03-18 10:26 ` Jan Kiszka
  0 siblings, 1 reply; 2+ messages in thread
From: Edouard TISSERANT @ 2007-03-13 15:38 UTC (permalink / raw)
  To: xenomai

Hi all.

I'm trying to implement support for the CAN PCMCIA Peak card with 
Xenomai in official Peak driver.

First, I would like to know if someone already got success in writing 
some Xenomai IRQ handler for some PCMCIA devices. Is that a nonsense ? I 
believe I'm missing something in the way PCMCIA socket controller 
handles interrupts, linux side.

I can observe on my laptop that PCMCIA socket controller IRQ and card 
IRQ do not conflict :

----------------------
cat /proc/interrupts
           CPU0
  0:     163304   IO-APIC-edge      timer, rthal_broadcast_timer
  1:        178   IO-APIC-edge      i8042
  8:          2   IO-APIC-edge      rtc
  9:         72   IO-APIC-fasteoi   acpi
 12:        124   IO-APIC-edge      i8042
 14:      13347   IO-APIC-edge      ide0
 17:      36411   IO-APIC-fasteoi   uhci_hcd:usb5, HDA Intel, eth0
 18:          1   IO-APIC-fasteoi   uhci_hcd:usb4, yenta
 19:          0   IO-APIC-fasteoi   ehci_hcd:usb1, uhci_hcd:usb2
 20:          0   IO-APIC-fasteoi   uhci_hcd:usb3
[...]

----------------------
cat /proc/pcan

*------------ PEAK-Systems CAN interfaces (www.peak-system.com) 
-------------
*--------------------------  Release_20070306_n  
----------------------------
*------------------- [mod] [isa] [pci] [dng] [pcc] [rt] 
---------------------
*--------------------- 2 interfaces @ major 000 found 
-----------------------
*n -type- ndev --base-- irq --btr- --read-- --write- --irqs-- -errors- 
status
40 pccard -NA- 00002100 003 0x001c 00000000 00000000 00000000 00000000 
0x0000
41 pccard -NA- 00002120 003 0x001c 00000000 00000000 00000000 00000000 
0x0000
----------------------

In other worlds, PCMCIA subsystem claims that device IRQ is #3.

When registering interrupt, I get this message :

Xenomai: xnintr_irq_handler: IRQ0 not handled. Disabling IRQ line.

Handler looses more than 90% of #3 IRQ's.

Any experience about PCMCIA/Xenomai would be welcome.

Regards

Edouard.



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

* Re: [Xenomai-help] Xenomai: xnintr_irq_handler: IRQ0 not handled. Disabling IRQ line.
  2007-03-13 15:38 [Xenomai-help] Xenomai: xnintr_irq_handler: IRQ0 not handled. Disabling IRQ line Edouard TISSERANT
@ 2007-03-18 10:26 ` Jan Kiszka
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Kiszka @ 2007-03-18 10:26 UTC (permalink / raw)
  To: Edouard TISSERANT; +Cc: xenomai

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

Edouard TISSERANT wrote:
> Hi all.
> 
> I'm trying to implement support for the CAN PCMCIA Peak card with
> Xenomai in official Peak driver.
> 
> First, I would like to know if someone already got success in writing
> some Xenomai IRQ handler for some PCMCIA devices. Is that a nonsense ? I
> believe I'm missing something in the way PCMCIA socket controller
> handles interrupts, linux side.
> 
> I can observe on my laptop that PCMCIA socket controller IRQ and card
> IRQ do not conflict :
> 
> ----------------------
> cat /proc/interrupts
>           CPU0
>  0:     163304   IO-APIC-edge      timer, rthal_broadcast_timer
>  1:        178   IO-APIC-edge      i8042
>  8:          2   IO-APIC-edge      rtc
>  9:         72   IO-APIC-fasteoi   acpi
> 12:        124   IO-APIC-edge      i8042
> 14:      13347   IO-APIC-edge      ide0
> 17:      36411   IO-APIC-fasteoi   uhci_hcd:usb5, HDA Intel, eth0
> 18:          1   IO-APIC-fasteoi   uhci_hcd:usb4, yenta
> 19:          0   IO-APIC-fasteoi   ehci_hcd:usb1, uhci_hcd:usb2
> 20:          0   IO-APIC-fasteoi   uhci_hcd:usb3
> [...]
> 
> ----------------------
> cat /proc/pcan
> 
> *------------ PEAK-Systems CAN interfaces (www.peak-system.com)
> -------------
> *--------------------------  Release_20070306_n 
> ----------------------------
> *------------------- [mod] [isa] [pci] [dng] [pcc] [rt]
> ---------------------
> *--------------------- 2 interfaces @ major 000 found
> -----------------------
> *n -type- ndev --base-- irq --btr- --read-- --write- --irqs-- -errors-
> status
> 40 pccard -NA- 00002100 003 0x001c 00000000 00000000 00000000 00000000
> 0x0000
> 41 pccard -NA- 00002120 003 0x001c 00000000 00000000 00000000 00000000
> 0x0000
> ----------------------
> 
> In other worlds, PCMCIA subsystem claims that device IRQ is #3.
> 
> When registering interrupt, I get this message :
> 
> Xenomai: xnintr_irq_handler: IRQ0 not handled. Disabling IRQ line.

IRQ0 is weird. Are you sure you are registering the IRQ with RTDM while
providing the right number? What does /proc/xenomai/irq tell you?

> 
> Handler looses more than 90% of #3 IRQ's.
> 
> Any experience about PCMCIA/Xenomai would be welcome.

There is an RT-WLAN driver for an Asus PCMCIA adapter in RTnet. It's
experimental, but not due to PCMCIA, and I've personally seen it working.

Jan


PS: At this chance, any plans to contribute PCMCIA support for PEAK
hardware to the standard CAN stack of Xenomai? There was already some
interest in such an alternative to the parport dongle e.g. The missing
piece (driver code) should be small and easily derivable from existing
SJA1000 adapter drivers.


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

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

end of thread, other threads:[~2007-03-18 10:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-13 15:38 [Xenomai-help] Xenomai: xnintr_irq_handler: IRQ0 not handled. Disabling IRQ line Edouard TISSERANT
2007-03-18 10:26 ` 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.