From: Philippe Gerum <rpm@xenomai.org>
To: federico.ridolfo@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] PowerPC irq unmask
Date: Fri, 23 Jan 2009 10:48:06 +0100 [thread overview]
Message-ID: <49799256.6000009@domain.hid> (raw)
In-Reply-To: <49798994.1010903@domain.hid>
Federico Ridolfo wrote:
> Philippe Gerum wrote:
>> Federico Ridolfo wrote:
>>
>>> Hi all,
>>> my platform is a mpc5200b based one. I wrote
>>> some rtdm driver for that platform on linux-2.6.18
>>> kernel. Some info:
>>> - ARCH=ppc
>>> - no fdt (so no dts)
>>> - u-boot
>>> - xenomai 2.3.2,
>>> - adeos-ipipe-2.6.18-ppc-1.5-01.patch
>>> All works fine.
>>>
>>> Now i want to use:
>>> - ARCH = powerpc
>>> - linux kernel from denx: ipipe-2.6-26-powerpc-2.4-03
>>> - fdt (so i have a dts file)
>>> - xenomai-2.4.6.1
>>> - u-boot
>>> Ok. My board boots, all peripheral s work. Xenomai works, but
>>> my rtdm drivers don't work. The problem is that the rtdm_irq_request
>>> returns -ENODEV coming from line 166 in wrappers.h:
>>> ...
>>> #else /* > 2.6.19 */
>>> #define rthal_irq_chip_enable(irq) \
>>> ({ \
>>> int __err__ = 0; \
>>> if (unlikely(rthal_irq_handlerp(irq)->unmask == NULL)) \
>>> __err__ = -ENODEV; \
>>> else \
>>> rthal_irq_handlerp(irq)->unmask(irq); \
>>> __err__; \
>>> })
>>> ...
>>> Seems that adeos doesn't not set the unmask function. In the linux kernel
>>> the right functions for my pic in in
>>>
>> Adeos reuses what Linux provides. In this case, an unmask routine is provided
>> for all the SDMA, external, peripheral and main interrupt sources.
>>
>> Which IRQ are you trying to grab? What does you code look like?
> I wrote 2 rtdm drivers. The first one tries to grab MPC52xx_GPIO_IRQ (= 12)
> in order to use USB1_9 of MPC5200B has an interrupt pin.
> The second driver is a RTDM SPI driver for PSC3 (full spi mode)
> and PSC6, so i'm trying to grap MPC52xx_PSC3_IRQ (= 42) and
> MPC52xx_PSC6_IRQ (= 43).
>
Ok, what does /proc/interrupts say?
>>
>>> arch/powerpc/platforms/52xx/mpc52xx_pic.c
>>> I thing i have to add some code in mpc52xx_pic.c in order to match
>>> device tree table
>>> and also something in my dts file.
>>>
>> Don't do that. It would be wrong.
>>
> mmm... some .config mistake? I don't known...
>> Any help is very usefull!!!
>>
>>> Thanks
>>>
>>>
>>> --
>>> chicco
>>>
>>> _______________________________________________
>>> Xenomai-help mailing list
>>> Xenomai-help@domain.hid
>>> https://mail.gna.org/listinfo/xenomai-help
>>>
>>>
>>
>>
>
>
> --
> Dott. Ing. Federico Ridolfo
> COL Giovanni Paolo S.P.A.
> Stabilimento Catania
> Via Luigi Pirandello,Contrada Cugno, 95040 Piano Tavola, BELPASSO (CT)
> tel. +39 095 7133088
> e-mail: federico.ridolfo@domain.hid
>
--
Philippe.
next prev parent reply other threads:[~2009-01-23 9:48 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-23 7:32 [Xenomai-help] PowerPC irq unmask Federico Ridolfo
2009-01-23 8:52 ` Philippe Gerum
2009-01-23 9:10 ` Federico Ridolfo
2009-01-23 9:48 ` Philippe Gerum [this message]
2009-01-23 10:16 ` Federico Ridolfo
2009-01-23 10:25 ` Philippe Gerum
2009-01-23 17:06 ` Federico Ridolfo
2009-01-23 18:07 ` Philippe Gerum
2009-01-23 18:18 ` Federico Ridolfo
2009-01-24 9:58 ` Philippe Gerum
2009-01-26 11:35 ` Federico Ridolfo
2009-01-26 14:52 ` Bosko Radivojevic
2009-01-27 7:39 ` Federico Ridolfo
2009-01-23 19:29 ` Wolfgang Grandegger
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=49799256.6000009@domain.hid \
--to=rpm@xenomai.org \
--cc=federico.ridolfo@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.