From: Philippe Gerum <rpm@xenomai.org>
To: Terry Fryar <terry.fryar@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] rtdm difficulties
Date: Fri, 20 Jan 2012 21:47:18 +0100 [thread overview]
Message-ID: <4F19D2D6.2020501@domain.hid> (raw)
In-Reply-To: <DE531AD0193E45018B21711AD3A8DB03@domain.hid>
On 01/20/2012 08:37 PM, Terry Fryar wrote:
> Ok, I'll try the patch. A question though...on the beagle, there is a OMAP
> register GPIO_IRQSTATUSx that I am not manually clearing out. This is the
> only place to ack an irq I know of...I assumed that was being handled by the
> kernel? Or is this what the patch is adding?? I'm very new to writing irq
> handlers, as you can tell!
>
> Honestly, all that's in my current handler is this:
>
> int irqdrv_rtdm_isr(rtdm_irq_t* handle)
> {
> return(RTDM_IRQ_HANDLED);
> }
>
> And here's the register func:
>
> if ((err = rtdm_irq_request(&irqdrv_isr_handle, irqno, irqdrv_rtdm_isr,
> RTDM_IRQTYPE_EDGE, IRQDRV_NAME, NULL)) == 0)
> rtdm_irq_enable(&irqdrv_isr_handle);
>
> And I'm running against a square waveform and getting this:
>
> [ 56.522948] WARNING: at kernel/softirq.c:137
> __local_bh_enable+0x44/0xac()
> [ 56.530153] Modules linked in: vme_pd_drv
> [ 56.534399] [<c00566fc>] (unwind_backtrace+0x0/0xe0) from [<c007db0c>]
> (warn_slowpath_common+0x4c/0x64)
> [ 56.574419] [<c007db0c>] (warn_slowpath_common+0x4c/0x64) from
> [<c007db3c>] (warn_slowpath_null+0x18/0x1c)
> [ 56.584568] [<c007db3c>] (warn_slowpath_null+0x18/0x1c) from [<c0083138>]
> (__local_bh_enable+0x44/0xac)
> [ 56.594425] [<c0083138>] (__local_bh_enable+0x44/0xac) from [<c008481c>]
> (irq_enter+0x44/0x60)
> [ 56.623476] [<c008481c>] (irq_enter+0x44/0x60) from [<c0046018>]
> (asm_do_IRQ+0x18/0x98)
> [ 56.631880] [<c0046018>] (asm_do_IRQ+0x18/0x98) from [<c00b9af0>]
> (__ipipe_sync_stage+0x154/0x188)
Make sure to have CONFIG_IPIPE_DEBUG_INTERNAL enabled in your kernel
config btw, this might help.
Gilles, I wonder whether this backtrace could not be the sign of a demux
ISR not going through ipipe_handle_chained_irq()?
>
>
>
>
> -----Original Message-----
> From: Gilles Chanteperdrix [mailto:gilles.chanteperdrix@xenomai.org]
> Sent: Friday, January 20, 2012 12:32 PM
> To: Terry Fryar
> Cc: xenomai@xenomai.org
> Subject: Re: [Xenomai-help] rtdm difficulties
>
> On 01/20/2012 07:24 PM, Terry Fryar wrote:
>> Yeh, omap and gpio.....edge irq from a square wave pulse....
>
> Try this patch:
>
> diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c index
> 30cb7d4..114ccf0 100644
> --- a/arch/arm/plat-omap/gpio.c
> +++ b/arch/arm/plat-omap/gpio.c
> @@ -1272,7 +1272,7 @@ static void gpio_irq_handler(unsigned int irq, struct
> irq_desc *desc)
> u32 retrigger = 0;
> int unmasked = 0;
>
> - desc->irq_data.chip->irq_ack(&desc->irq_data);
> + desc->irq_data.chip->irq_mask_ack(&desc->irq_data);
>
> bank = get_irq_data(irq);
> #ifdef CONFIG_ARCH_OMAP1
>
--
Philippe.
next prev parent reply other threads:[~2012-01-20 20:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-20 16:17 [Xenomai-help] rtdm difficulties Terry Fryar
2012-01-20 17:03 ` Philippe Gerum
2012-01-20 17:42 ` Terry Fryar
2012-01-20 18:19 ` Gilles Chanteperdrix
2012-01-20 18:24 ` Terry Fryar
2012-01-20 18:32 ` Gilles Chanteperdrix
2012-01-20 19:37 ` Terry Fryar
2012-01-20 20:47 ` Philippe Gerum [this message]
2012-01-20 21:05 ` [Xenomai-help] rtdm difficulties..fixed Terry Fryar
2012-01-20 21:12 ` [Xenomai-help] rtdm difficulties...not fixed Terry Fryar
2012-01-21 16:05 ` [Xenomai-help] rtdm difficulties Gilles Chanteperdrix
2012-01-22 23:32 ` Terry Fryar
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=4F19D2D6.2020501@domain.hid \
--to=rpm@xenomai.org \
--cc=terry.fryar@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.