From: "Steven A. Falco" <sfalco@domain.hid>
To: "Steven A. Falco" <sfalco@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] Compile-time bug, and problem with PPC440 ethernet
Date: Mon, 16 Jun 2008 17:56:55 -0400 [thread overview]
Message-ID: <4856E1A7.1020608@domain.hid> (raw)
In-Reply-To: <4856B7AE.9030805@domain.hid>
A bit more info: Interrupt numbers are 0x15 (txeob) and 0x16 (rxeob).
I've added some printk, and at the point where the DHCP message is sent
out, I get:
DHCP: sending class identifier "hydra_temp"
stalled stage <- printed in __ipipe_walk_pipeline
(see below)
__ipipe_grab_irq 15 <- printed at the beginning of
__ipipe_grab_irq
ready to walk 15 <- printed at the finalize:, before
__ipipe_walk_pipeline is called
stalled stage <- printed in __ipipe_walk_pipeline
(see below)
__ipipe_grab_irq 16 <- printed at the beginning of
__ipipe_grab_irq
ready to walk 16 <- printed at the finalize:, before
__ipipe_walk_pipeline is called
stalled stage <- see below
stalled stage <- etc
ipipe_cpudom_var != 0
next_domain == this_domain
stalled stage
So, while I don't pretend to understand this yet, it looks like the
interrupts are coming into ipipe, but perhaps not getting delivered for
some reason?
Steve
void __ipipe_walk_pipeline(struct list_head *pos)
{
struct ipipe_domain *this_domain = ipipe_current_domain, *next_domain;
while (pos != &__ipipe_pipeline) {
next_domain = list_entry(pos, struct ipipe_domain, p_link);
if (test_bit(IPIPE_STALL_FLAG, &ipipe_cpudom_var(next_domain,
status))) {
printk("stalled stage\n");
break; /* Stalled stage -- do not go further. */
}
if (ipipe_cpudom_var(next_domain, irqpend_himask) != 0) {
printk("ipipe_cpudom_var != 0\n");
if (next_domain == this_domain) {
printk("next_domain == this_domain\n");
__ipipe_sync_pipeline(IPIPE_IRQMASK_ANY);
} else {
printk("next_domain != this_domain\n");
ipipe_cpudom_var(this_domain, evsync) = 0;
ipipe_current_domain = next_domain;
ipipe_suspend_domain(); /* Sync stage and propagate
interrupts. */
if (ipipe_current_domain == next_domain)
ipipe_current_domain = this_domain;
/*
* Otherwise, something changed the current domain under our
* feet recycling the register set; do not override the new
* domain.
*/
if (ipipe_cpudom_var(this_domain, irqpend_himask) != 0 &&
!test_bit(IPIPE_STALL_FLAG,
&ipipe_cpudom_var(this_domain, status))) {
printk("recycling the register set\n");
__ipipe_sync_pipeline(IPIPE_IRQMASK_ANY);
}
}
break;
} else if (next_domain == this_domain) {
printk("ipipe_cpudom_var == 0\n");
printk("next_domain == this_domain\n");
break;
}
pos = next_domain->p_link.next;
}
}
next prev parent reply other threads:[~2008-06-16 21:56 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 [this message]
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
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=4856E1A7.1020608@domain.hid \
--to=sfalco@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.