* [Xenomai-core] Xenomai/Blackfin upgrade
@ 2007-10-17 17:18 Philippe Gerum
2007-10-20 11:00 ` [Xenomai-core] [Xenomai-help] " Jan Kiszka
0 siblings, 1 reply; 4+ messages in thread
From: Philippe Gerum @ 2007-10-17 17:18 UTC (permalink / raw)
To: xenomai
Our Blackfin port has just been upgraded to the latest 2.6.23. The other
good news is that we have now rebased this work over mainline kernels.
The I-pipe patch below is an all-in-one, supporting the bf533, bf537 and
bf561 dual core boards. Any Xenomai version from 2.3.2 and on can be
used (albeit pre 2.4-rc4 will require to fix the default calibration
value by hand for the bf561).
If you happen to have any of these boards at hand, and really don't know
how to spend geek time these days, please give this a try and send some
feedback.
http://download.gna.org/adeos/patches/v2.6/blackfin/adeos-ipipe-2.6.23-bf5xx-1.7-00.patch
--
Philippe.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai-core] [Xenomai-help] Xenomai/Blackfin upgrade
2007-10-17 17:18 [Xenomai-core] Xenomai/Blackfin upgrade Philippe Gerum
@ 2007-10-20 11:00 ` Jan Kiszka
2007-10-20 15:25 ` Philippe Gerum
0 siblings, 1 reply; 4+ messages in thread
From: Jan Kiszka @ 2007-10-20 11:00 UTC (permalink / raw)
To: rpm; +Cc: xenomai
[-- Attachment #1: Type: text/plain, Size: 1292 bytes --]
Philippe Gerum wrote:
> Our Blackfin port has just been upgraded to the latest 2.6.23. The other
> good news is that we have now rebased this work over mainline kernels.
> The I-pipe patch below is an all-in-one, supporting the bf533, bf537 and
> bf561 dual core boards. Any Xenomai version from 2.3.2 and on can be
> used (albeit pre 2.4-rc4 will require to fix the default calibration
> value by hand for the bf561).
>
> If you happen to have any of these boards at hand, and really don't know
> how to spend geek time these days, please give this a try and send some
> feedback.
>
> http://download.gna.org/adeos/patches/v2.6/blackfin/adeos-ipipe-2.6.23-bf5xx-1.7-00.patch
>
Unfortunately, ipipe for bfin is still borken: my setup is 2.6.23.1 +
"uclinux mtd maps: add blackfin maps" + the ipipe patch above on a BF537
stamp. I'm running the cache calibrator over the serial console and a
hello world shell loop over telnet. When ipipe is enabled (no Xenomai)
and the calibrator is in its measurement cycle, the telnet connection
stalls. Actually, it seems the whole Linux scheduling stalls, because
when I turn this into a background loop, it doesn't make progress when
the calibrator runs. All this does not happen when I disable ipipe in
the config.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai-core] [Xenomai-help] Xenomai/Blackfin upgrade
2007-10-20 11:00 ` [Xenomai-core] [Xenomai-help] " Jan Kiszka
@ 2007-10-20 15:25 ` Philippe Gerum
2007-10-20 18:59 ` Jan Kiszka
0 siblings, 1 reply; 4+ messages in thread
From: Philippe Gerum @ 2007-10-20 15:25 UTC (permalink / raw)
To: Jan Kiszka; +Cc: xenomai
Jan Kiszka wrote:
> Philippe Gerum wrote:
>> Our Blackfin port has just been upgraded to the latest 2.6.23. The other
>> good news is that we have now rebased this work over mainline kernels.
>> The I-pipe patch below is an all-in-one, supporting the bf533, bf537 and
>> bf561 dual core boards. Any Xenomai version from 2.3.2 and on can be
>> used (albeit pre 2.4-rc4 will require to fix the default calibration
>> value by hand for the bf561).
>>
>> If you happen to have any of these boards at hand, and really don't know
>> how to spend geek time these days, please give this a try and send some
>> feedback.
>>
>> http://download.gna.org/adeos/patches/v2.6/blackfin/adeos-ipipe-2.6.23-bf5xx-1.7-00.patch
>>
>
> Unfortunately, ipipe for bfin is still borken: my setup is 2.6.23.1 +
> "uclinux mtd maps: add blackfin maps" + the ipipe patch above on a BF537
> stamp. I'm running the cache calibrator over the serial console and a
> hello world shell loop over telnet. When ipipe is enabled (no Xenomai)
> and the calibrator is in its measurement cycle, the telnet connection
> stalls. Actually, it seems the whole Linux scheduling stalls, because
> when I turn this into a background loop, it doesn't make progress when
> the calibrator runs. All this does not happen when I disable ipipe in
> the config.
>
Does the bug disappear with the patch below? (this is obviously not a
fix since latency would skyrocket with this patch in, only a way to
confirm that threading the timer IRQ causes the stall as we already
observed a while ago with earlier versions).
--- a/arch/blackfin/kernel/ipipe.c
+++ b/arch/blackfin/kernel/ipipe.c
@@ -388,7 +388,7 @@ static void kick_irqd(unsigned irq, void *cookie)
int ipipe_start_irq_thread(unsigned irq, struct irq_desc *desc)
{
- if (desc->thread || !create_irq_threads)
+ if (desc->thread || !create_irq_threads || irq == IRQ_SYSTMR)
return 0;
if (desc->ipipe_demux != NULL)
--
Philippe
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai-core] [Xenomai-help] Xenomai/Blackfin upgrade
2007-10-20 15:25 ` Philippe Gerum
@ 2007-10-20 18:59 ` Jan Kiszka
0 siblings, 0 replies; 4+ messages in thread
From: Jan Kiszka @ 2007-10-20 18:59 UTC (permalink / raw)
To: rpm; +Cc: xenomai
[-- Attachment #1: Type: text/plain, Size: 2102 bytes --]
Philippe Gerum wrote:
> Jan Kiszka wrote:
>> Philippe Gerum wrote:
>>> Our Blackfin port has just been upgraded to the latest 2.6.23. The other
>>> good news is that we have now rebased this work over mainline kernels.
>>> The I-pipe patch below is an all-in-one, supporting the bf533, bf537 and
>>> bf561 dual core boards. Any Xenomai version from 2.3.2 and on can be
>>> used (albeit pre 2.4-rc4 will require to fix the default calibration
>>> value by hand for the bf561).
>>>
>>> If you happen to have any of these boards at hand, and really don't know
>>> how to spend geek time these days, please give this a try and send some
>>> feedback.
>>>
>>> http://download.gna.org/adeos/patches/v2.6/blackfin/adeos-ipipe-2.6.23-bf5xx-1.7-00.patch
>>>
>> Unfortunately, ipipe for bfin is still borken: my setup is 2.6.23.1 +
>> "uclinux mtd maps: add blackfin maps" + the ipipe patch above on a BF537
>> stamp. I'm running the cache calibrator over the serial console and a
>> hello world shell loop over telnet. When ipipe is enabled (no Xenomai)
>> and the calibrator is in its measurement cycle, the telnet connection
>> stalls. Actually, it seems the whole Linux scheduling stalls, because
>> when I turn this into a background loop, it doesn't make progress when
>> the calibrator runs. All this does not happen when I disable ipipe in
>> the config.
>>
>
> Does the bug disappear with the patch below? (this is obviously not a
> fix since latency would skyrocket with this patch in, only a way to
> confirm that threading the timer IRQ causes the stall as we already
> observed a while ago with earlier versions).
>
> --- a/arch/blackfin/kernel/ipipe.c
> +++ b/arch/blackfin/kernel/ipipe.c
> @@ -388,7 +388,7 @@ static void kick_irqd(unsigned irq, void *cookie)
>
> int ipipe_start_irq_thread(unsigned irq, struct irq_desc *desc)
> {
> - if (desc->thread || !create_irq_threads)
> + if (desc->thread || !create_irq_threads || irq == IRQ_SYSTMR)
> return 0;
>
> if (desc->ipipe_demux != NULL)
>
Yep, this "solves" the problem here.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-10-20 18:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-17 17:18 [Xenomai-core] Xenomai/Blackfin upgrade Philippe Gerum
2007-10-20 11:00 ` [Xenomai-core] [Xenomai-help] " Jan Kiszka
2007-10-20 15:25 ` Philippe Gerum
2007-10-20 18:59 ` Jan Kiszka
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.