All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Florian Bezdeka <florian.bezdeka@siemens.com>
Cc: xenomai@lists.linux.dev,  Jan Kiszka <jan.kiszka@siemens.com>
Subject: Re: [PATCH Dovetail 6.16 v3 3/3] irq_pipeline: Fix pipelining code for level triggered IRQs
Date: Mon, 08 Sep 2025 14:40:55 +0200	[thread overview]
Message-ID: <87ldmp86co.fsf@xenomai.org> (raw)
In-Reply-To: <20250820-wip-flo-fixes-for-dovetail-6-15-v3-3-ae4a674d8e10@siemens.com> (Florian Bezdeka's message of "Fri, 05 Sep 2025 16:26:27 +0200")

Florian Bezdeka <florian.bezdeka@siemens.com> writes:

> During the last forward port to 6.16 the pipelining code was
> accidentally removed from handle_level_irq().
>
> Forward porting the (old) code from 6.15 again to fix this problem.
>
> Signed-off-by: Florian Bezdeka <florian.bezdeka@siemens.com>
> ---
>  kernel/irq/chip.c | 22 ++++++++++++++++++++--
>  1 file changed, 20 insertions(+), 2 deletions(-)
>
> diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c
> index 8a0831193d74..f5dfc378ccf2 100644
> --- a/kernel/irq/chip.c
> +++ b/kernel/irq/chip.c
> @@ -846,15 +846,33 @@ static void cond_unmask_irq(struct irq_desc *desc)
>   */
>  void handle_level_irq(struct irq_desc *desc)
>  {
> +	int flow;
> +
>  	guard(hybrid_spinlock)(&desc->lock);
> -	mask_ack_irq(desc);
>  
> -	if (!irq_can_handle(desc))
> +	flow = get_flow_step(desc);
> +	if (may_start_flow(flow)) {
> +		mask_ack_irq(desc);
> +
> +		if (!irq_can_handle(desc))
> +			return;
> +	}
> +
> +	if (should_feed_pipeline(desc, flow)) {
> +		if (handle_oob_irq(desc))
> +			goto out_unmask;
> +		return;
> +	}
> +
> +	if (flow == IRQ_FLOW_FORWARD) {
> +		forward_irq_event(desc);
>  		return;
> +	}
>  
>  	kstat_incr_irqs_this_cpu(desc);
>  	handle_irq_event(desc);
>  
> +out_unmask:
>  	cond_unmask_irq(desc);
>  }
>  EXPORT_SYMBOL_GPL(handle_level_irq);

Ack.

-- 
Philippe.

  reply	other threads:[~2025-09-08 12:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-05 14:26 [PATCH Dovetail 6.16 v3 0/3] Dovetail 6.16: Fix some regressions introduced during last forward port Florian Bezdeka
2025-09-05 14:26 ` [PATCH Dovetail 6.16 v3 1/3] x86/fpu: dovetail: Fix FPU corruption Florian Bezdeka
2025-09-08 12:37   ` Philippe Gerum
2025-09-08 12:53     ` Florian Bezdeka
2025-09-05 14:26 ` [PATCH Dovetail 6.16 v3 2/3] arm64: fpsimd: dovetail: Align with x86 implementation Florian Bezdeka
2025-09-08 12:38   ` Philippe Gerum
2025-09-05 14:26 ` [PATCH Dovetail 6.16 v3 3/3] irq_pipeline: Fix pipelining code for level triggered IRQs Florian Bezdeka
2025-09-08 12:40   ` Philippe Gerum [this message]
2025-09-08  9:20 ` [PATCH Dovetail 6.16 v3 0/3] Dovetail 6.16: Fix some regressions introduced during last forward port Florian Bezdeka

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=87ldmp86co.fsf@xenomai.org \
    --to=rpm@xenomai.org \
    --cc=florian.bezdeka@siemens.com \
    --cc=jan.kiszka@siemens.com \
    --cc=xenomai@lists.linux.dev \
    /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.