All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] [PATCH] Fix host IRQ propagation (was: Troubles with switchtest)
Date: Wed, 13 May 2009 17:55:21 +0200	[thread overview]
Message-ID: <1242230121.26544.977.camel@domain.hid> (raw)
In-Reply-To: <4A0AE726.5090107@domain.hid>

On Wed, 2009-05-13 at 17:28 +0200, Jan Kiszka wrote:
> Philippe Gerum wrote:
> > On Wed, 2009-05-13 at 15:18 +0200, Jan Kiszka wrote:
> >> Gilles Chanteperdrix wrote:
> >>> Jan Kiszka wrote:
> >>>> Hi Gilles,
> >>>>
> >>>> I'm currently facing a nasty effect with switchtest over latest git head
> >>>> (only tested this so far): running it inside my test VM (ie. with
> >>>> frequent excessive latencies) I get a stalled Linux timer IRQ quite
> >>>> quickly. System is otherwise still responsive, Xenomai timers are still
> >>>> being delivered, other Linux IRQs too. switchtest complained about
> >>>>
> >>>>     "Warning: Linux is compiled to use FPU in kernel-space."
> >>>>
> >>>> when it was started. Kernels are 2.6.28.9/ipipe-x86-2.2-07 and
> >>>> 2.6.29.3/ipipe-x86-2.3-01 (LTTng patched in, but unused), both show the
> >>>> same effect.
> >>>>
> >>>> Seen this before?
> >>> The warning about Linux being compiled to use FPU in kernel-space means
> >>> that you enabled soft RAID or compiled for K7, Geode, or any other
> >> RAID is on (ordinary server config).
> >>
> >>> configuration using 3DNow for such simple operations as memcpy. It is
> >>> harmless, it simply means that switchtest can not use fpu in kernel-space.
> >>>
> >>> The bug you have is probably the same as the one described here, which I
> >>> am able to reproduce on my atom:
> >>> https://mail.gna.org/public/xenomai-help/2009-04/msg00200.html
> >>>
> >>> Unfortunately, I for one am working on ARM issues and am not available
> >>> to debug x86 issues. I think Philippe is busy too...
> >> OK, looks like I got the same flu here.
> >>
> >> Philippe, did you find out any more details in the meantime? Then I'm
> >> afraid I have to pick this up.
> > 
> > No, I did not resume this task yet. Working from the powerpc side of the
> > universe here.
> 
> Hoho, don't think this rain here over x86 would have never made it down
> to ARM or PPC land! ;)
> 
> Martin, could you check if this helps you, too?
> 
> Jan
> 
> (as usual, ready to be pulled from 'for-upstream')
> 
> --------->
> 
> Host IRQs may not only be triggered from non-root domains.

Are you sure of this? I can't find any spot where this assumption would
be wrong. host_pend() is basically there to relay RT timer ticks and
device IRQs, and this only happens on behalf of the pipeline head. At
least, this is how rthal_irq_host_pend() should be used in any case. If
you did find a spot where this interface is being called from the lower
stage, then this is the root bug to fix.

>  But
> rthal_propagate_irq's implemenation in I-pipe assumes so, which broke
> host tick propagation under certain load scenarios. Besides that,
> rthal_schedule_irq_root is the more efficient service for this purpose
> anyway.

Ack.

> 
> Signed-off-by: Jan Kiszka <jan.kiszka@domain.hid>
> ---
> 
>  include/asm-generic/hal.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/include/asm-generic/hal.h b/include/asm-generic/hal.h
> index b37e476..8137856 100644
> --- a/include/asm-generic/hal.h
> +++ b/include/asm-generic/hal.h
> @@ -437,7 +437,7 @@ int rthal_irq_host_release(unsigned irq,
>  
>  static inline void rthal_irq_host_pend(unsigned irq)
>  {
> -	rthal_propagate_irq(irq);
> +	rthal_schedule_irq_root(irq);
>  }
>  
>  int rthal_apc_alloc(const char *name,
> 
-- 
Philippe.




  reply	other threads:[~2009-05-13 15:55 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-13 12:49 [Xenomai-core] Troubles with switchtest Jan Kiszka
2009-05-13 12:58 ` Gilles Chanteperdrix
2009-05-13 13:18   ` Jan Kiszka
2009-05-13 13:22     ` Philippe Gerum
2009-05-13 15:28       ` [Xenomai-core] [PATCH] Fix host IRQ propagation (was: Troubles with switchtest) Jan Kiszka
2009-05-13 15:55         ` Philippe Gerum [this message]
2009-05-13 16:10           ` [Xenomai-core] [PATCH] Fix host IRQ propagation Jan Kiszka
2009-05-13 20:50             ` Philippe Gerum
2009-05-14 10:20               ` Jan Kiszka
2009-05-14 10:49                 ` Philippe Gerum
2009-05-14 11:00                   ` Jan Kiszka
2009-05-14 11:10                     ` Philippe Gerum
2009-05-14 12:52                   ` Gilles Chanteperdrix
2009-05-14 13:00                     ` Philippe Gerum
2009-05-14 13:10                       ` Gilles Chanteperdrix
2009-05-17 10:32                         ` Philippe Gerum
2009-05-13 18:14         ` Gilles Chanteperdrix
2009-05-13 18:24           ` Jan Kiszka
2009-05-13 19:06         ` [Xenomai-core] [PATCH] Fix host IRQ propagation (was: Troubles with switchtest) Martin Shepherd
2009-05-14 10:34           ` [Xenomai-core] [PATCH] Fix host IRQ propagation Jan Kiszka
2009-05-14 11:56             ` Gilles Chanteperdrix
2009-05-14 12:02               ` Jan Kiszka
2009-05-13 15:09     ` [Xenomai-core] Troubles with switchtest Gilles Chanteperdrix
2009-05-13 15:40       ` Jan Kiszka
2009-05-13 20:59         ` Gilles Chanteperdrix
2009-05-14  8:18           ` Jan Kiszka
2009-05-14  8:35             ` Gilles Chanteperdrix
2009-05-14  8:38               ` Jan Kiszka
2009-05-14  8:42                 ` Gilles Chanteperdrix

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=1242230121.26544.977.camel@domain.hid \
    --to=rpm@xenomai.org \
    --cc=jan.kiszka@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.