From: "Steven A. Falco" <sfalco@domain.hid>
To: rpm@xenomai.org
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] Compile-time bug, and problem with PPC440 ethernet
Date: Thu, 26 Jun 2008 08:57:23 -0400 [thread overview]
Message-ID: <48639233.7040803@domain.hid> (raw)
In-Reply-To: <485A15D7.1000809@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 1764 bytes --]
>> Beautiful. The patch works! I now get DHCP replies.
>>
>> Is this the patch you will put into the official tree, or do you still
>> need to do more?
>>
>>
>
> One thing, could you confirm that your network card relies on edge interrupts
> (and not level)?
>
> Aside of that, it should be ok. It's the same IRQ lock out issue fixed in the
> ppc/ branch recently.
>
>
Sorry for the delay in getting back to you - vacation.
The ethernet interrupts on the PPC440 are level-sensitive. I gather
that is not what you were expecting, so I wonder what the implications are.
After looking at it more closely, I don't really understand this fix.
uic_mask_ack_irq() is just uic_mask_irq() followed by uic_ack_irq().
So, why do you remove the ipipe_irq_lock() from uic_mask_ack_irq() and
not from uic_mask_irq()? Also, since uic_unmask_irq() always calls
ipipe_irq_unlock(), doesn't that mean you can wind up with more unlocks
than locks (since uic_mask_ack_irq/uic_unmask_irq are no longer balanced)?
>> Also, please include my compile-time patch, if that is acceptible.
>>
>>
>
> I recently committed a different fix for the same issue after you reported it.
> This should work without requiring additional #ifdef'ing as well. Thanks for the
> heads up.
>
> --- a/include/asm-powerpc/ipipe.h
> +++ b/include/asm-powerpc/ipipe.h
> @@ -62,8 +62,6 @@
> local_irq_enable_hw(); x; \
> } )
>
> -#define ipipe_update_tick_evtdev(evtdev) do { } while (0)
> -
> struct ipipe_domain;
>
> struct ipipe_sysinfo {
> @@ -209,4 +207,6 @@ do { \
>
> #endif /* CONFIG_IPIPE */
>
> +#define ipipe_update_tick_evtdev(evtdev) do { } while (0)
> +
> #endif /* !__ASM_POWERPC_IPIPE_H */
>
Ok - thanks. I'll apply that fix instead.
Steve
[-- Attachment #2: Type: text/html, Size: 2442 bytes --]
next prev parent reply other threads:[~2008-06-26 12:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-16 18:57 [Xenomai-core] Compile-time bug, and problem with PPC440 ethernet Steven A. Falco
2008-06-16 21:56 ` Steven A. Falco
2008-06-17 7:30 ` Philippe Gerum
2008-06-17 13:27 ` Steven A. Falco
2008-06-18 16:17 ` Philippe Gerum
[not found] ` <48594232.5020505@domain.hid>
2008-06-18 17:20 ` Philippe Gerum
[not found] ` <48594CC9.4030408@domain.hid>
2008-06-19 8:16 ` Philippe Gerum
2008-06-26 12:57 ` Steven A. Falco [this message]
2008-06-26 13:07 ` Philippe Gerum
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=48639233.7040803@domain.hid \
--to=sfalco@domain.hid \
--cc=rpm@xenomai.org \
--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.