From: Philippe Gerum <rpm@xenomai.org>
To: Wolfgang Grandegger <wg@domain.hid>
Cc: adeos-main@gna.org, xenomai@xenomai.org
Subject: [Xenomai-core] Re: [Adeos-main] Re: adeos-ipipe-2.6.18-ppc-1.4-00.patch, first version
Date: Sun, 08 Oct 2006 22:56:31 +0200 [thread overview]
Message-ID: <1160340992.4963.31.camel@domain.hid> (raw)
In-Reply-To: <451E378F.5030305@domain.hid>
On Sat, 2006-09-30 at 11:23 +0200, Wolfgang Grandegger wrote:
> Hi Philippe,
>
> Philippe Gerum wrote:
> > On Sun, 2006-09-24 at 22:55 +0200, Wolfgang Grandegger wrote:
> >> Hi Philippe,
> >>
> >> attached you will find a first version of the PPC ADEOS-IPipe patch for
> >> Linux 2.6.18 (from kernel.org) for review. I have also included a
> >> commented log file with more information on the porting of
> >> adeos-ipipe-2.6.14-ppc-1.4-00 to Linux 2.6.18. It works with a recent
> >> version of Xenomai.
> >>
> >
> > Thanks, at first sight, this looks good. I don't see any obvious problem
> > in the tracer code either. Anyway, I will play with it asap.
> >
> >> The patch currently only supports devices in the "arch/ppc" tree with
> >> the option "CONFIG_PPC_MERGE" not set. Porting the "arch/powerpc" tree
> >> requires further effort and I need a test system as well. Puh, let's
> >> hope that the merge ppc -> powerpc will be completed soon.
> >>
> >> The idle loop is not yet working for 6xx and I have disabled it for
> >> this reason (check arch/powerpc/kernel/idle.c). It needs further
> >> debugging. I hope to find more time beginning of October.
> >
> > Ok, thanks. Btw, returning from NAP on 6xx is done through an exception,
> > right? If so, maybe we have a problem with this particular
> > exception/interrupt branching directly to transfer_to_handler_full (i.e.
> > the vanilla way) without being known from the Adeos pipeline, albeit it
> > should? (red blinking warning: this is just a wild guess).
>
> Attached is a revised patch including a fix for remaining problem in the
> 6xx idle loop mentioned above. The bug was here (diff to old patch):
>
> -+++ linux-2.6.18/arch/ppc/kernel/entry.S
> ++++ linux-2.6.18/arch/ppc/kernel/entry.S
> @@ -132,8 +132,23 @@
> * check for stack overflow
> */
> @@ -78,9 +73,9 @@
> + ¤t->thread_info to ¤t->thread, which is coarser
> + than the vanilla implementation, but likely sensitive enough
> + to catch overflows soon enough though.*/
> -+ addi r11,r9,THREAD
> ++ addi r12,r9,THREAD
> + cmplw 0,r1,r9
> -+ cmplw 1,r1,r11
> ++ cmplw 1,r1,r12
> + crand 1,1,4
> + bgt- stack_ovf /* if r9 < r1 < r9+THREAD */
> +#else /* CONFIG_IPIPE */
>
> I accidentally used r11 for the above logic, which is in fact used in
> power_save_6xx_restore:
Gasp. Hopefully, one day, we will not have to work around the dual stack
model anymore, because even Xenomai kernel threads will be based on
regular Linux TCBs. Thanks for the patch.
--
Philippe.
next prev parent reply other threads:[~2006-10-08 20:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-24 20:55 [Xenomai-core] adeos-ipipe-2.6.18-ppc-1.4-00.patch, first version Wolfgang Grandegger
2006-09-24 22:08 ` [Xenomai-core] " Philippe Gerum
2006-09-25 7:21 ` Wolfgang Grandegger
2006-09-30 9:23 ` [Xenomai-core] Re: [Adeos-main] " Wolfgang Grandegger
2006-10-08 20:56 ` Philippe Gerum [this message]
2006-10-14 21:35 ` 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=1160340992.4963.31.camel@domain.hid \
--to=rpm@xenomai.org \
--cc=adeos-main@gna.org \
--cc=wg@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.