All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Jan Kiszka <jan.kiszka@siemens.com>,
	Lange Norbert <norbert.lange@andritz.com>,
	"Xenomai (xenomai@xenomai.org)" <xenomai@xenomai.org>
Subject: Re: ipipe 4.19: spurious APIC interrupt when setting rt_igp to up
Date: Thu, 11 Jul 2019 16:40:01 +0200	[thread overview]
Message-ID: <00b30eb9-a3fa-4467-d60e-88759fbc05ad@xenomai.org> (raw)
In-Reply-To: <ab6862a6-de5c-2c37-50a1-86e509768ecf@siemens.com>

On 7/5/19 9:38 AM, Jan Kiszka wrote:

> This addresses it on x86 for me:
> 
> diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c
> index 6c279e065879..d503b875f086 100644
> --- a/kernel/irq/chip.c
> +++ b/kernel/irq/chip.c
> @@ -1099,7 +1099,8 @@ void ipipe_enable_irq(unsigned int irq)
>  		ipipe_root_only();
>  
>  		raw_spin_lock_irqsave(&desc->lock, flags);
> -		if (desc->istate & IPIPE_IRQS_NEEDS_STARTUP) {
> +		if (desc->istate & IPIPE_IRQS_NEEDS_STARTUP &&
> +		    !WARN_ON(irq_activate(desc))) {
>  			desc->istate &= ~IPIPE_IRQS_NEEDS_STARTUP;
>  			chip->irq_startup(&desc->irq_data);
>  		}
> 
> Probably upstream commit c942cee46bba (genirq: Separate activation and
> startup) makes this necessary.
> 
> Philippe, I suppose this is either not essential on arm, or external
> interrupts weren't tested yet, like I missed on x86. Fine to make this a
> noarch patch?

No issue. I've not been working on/with the I-pipe but Dovetail instead
in the past weeks, so testing of 4.19 is still very limited on my end. I
have several full-fledged real world ARM*-based application systems to
improve this, just need to find a way to squeeze this work in.

-- 
Philippe.


  parent reply	other threads:[~2019-07-11 14:40 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-04  8:57 ipipe 4.19: spurious APIC interrupt when setting rt_igp to up Lange Norbert
2019-07-04 10:15 ` Jan Kiszka
2019-07-04 10:21   ` Jan Kiszka
2019-07-05  7:38     ` Jan Kiszka
2019-07-05 10:43       ` Lange Norbert
2019-07-05 11:29         ` Jan Kiszka
2019-07-05 13:56           ` Jan Kiszka
2019-07-09 16:21             ` Lange Norbert
2019-07-09 16:33               ` Jan Kiszka
2019-07-09 17:54                 ` Jan Kiszka
2019-07-10  8:44                   ` Lange Norbert
2019-07-10 21:30                   ` Jan Kiszka
2019-07-11 12:23                     ` Lange Norbert
2019-07-11 14:40       ` Philippe Gerum [this message]
2019-07-11 15:09         ` Jan Kiszka
2019-07-11 16:00           ` Philippe Gerum
2019-07-11 16:34             ` Jan Kiszka
2019-07-11 16:48               ` Philippe Gerum
2019-07-11 19:42                 ` Jan Kiszka

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=00b30eb9-a3fa-4467-d60e-88759fbc05ad@xenomai.org \
    --to=rpm@xenomai.org \
    --cc=jan.kiszka@siemens.com \
    --cc=norbert.lange@andritz.com \
    --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.