public inbox for xenomai@lists.linux.dev
 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.18 v2 4/4] arm64: irq_pipeline: Fix tracepoint for multiplexed IPIs
Date: Thu, 05 Feb 2026 20:03:13 +0100	[thread overview]
Message-ID: <87ikcb813i.fsf@xenomai.org> (raw)
In-Reply-To: <20260201-wip-flo-fixes-for-6-18-v2-4-28b30dbcfdf8@siemens.com> (Florian Bezdeka's message of "Thu, 05 Feb 2026 15:00:15 +0100")

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

> When IRQ pipelining is enabled the reason for an IPI was always set
> to IPI_RESCHEDULE as this is the IPI used for multiplexing all the
> inband IPIs via a single SGI/LPI.
>
> Signed-off-by: Florian Bezdeka <florian.bezdeka@siemens.com>
> ---
>  arch/arm64/kernel/smp.c | 9 +++++----
>  1 file changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c
> index 53ec370235f93..39499b9797923 100644
> --- a/arch/arm64/kernel/smp.c
> +++ b/arch/arm64/kernel/smp.c
> @@ -1069,9 +1069,10 @@ static void ipi_setup_oob_lpi(int ncpus)
>  		map_oob_ipis(cpu, nr_ipi);
>  }
>  
> -static void __smp_cross_call(const struct cpumask *target, unsigned int ipinr)
> +static void __smp_cross_call(const struct cpumask *target, unsigned int ipinr,
> +			     unsigned int msg)
>  {
> -	trace_ipi_raise(target, ipi_types[ipinr]);
> +	trace_ipi_raise(target, ipi_types[msg]);
>  	arm64_send_ipi(target, ipinr);
>  }
>  
> @@ -1102,7 +1103,7 @@ static void smp_cross_call(const struct cpumask *target, unsigned int ipinr)
>  {
>  	/* regular in-band IPI (multiplexed over SGI0). */
>  	set_ipi_message(target, ipinr);
> -	__smp_cross_call(target, 0);
> +	__smp_cross_call(target, 0, ipinr);
>  }
>  
>  static unsigned int get_ipi_count(int ipi, unsigned int cpu)
> @@ -1120,7 +1121,7 @@ void irq_send_oob_ipi(unsigned int irq, const struct cpumask *cpumask)
>  		return;
>  
>  	/* Out-of-band IPI (SGI1-3). */
> -	__smp_cross_call(cpumask, sgi);
> +	__smp_cross_call(cpumask, sgi, sgi);
>  }
>  EXPORT_SYMBOL_GPL(irq_send_oob_ipi);

Given the added complexity, I would rather not factor __smp_cross_call()
out anymore, open coding it in smp_cross_call() and irq_send_oob_ipi()
instead.

-- 
Philippe.

      reply	other threads:[~2026-02-05 19:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-05 14:00 [PATCH Dovetail 6.18 v2 0/4] Fix IPI mapping for arm64 Florian Bezdeka
2026-02-05 14:00 ` [PATCH Dovetail 6.18 v2 1/4] arm64: irq_pipeline: Fix mapping of IPIs in LPI mode Florian Bezdeka
2026-02-05 17:59   ` Philippe Gerum
2026-02-05 14:00 ` [PATCH Dovetail 6.18 v2 2/4] arm64: irq_pipeline: Fix size of IPI statistics array Florian Bezdeka
2026-02-05 17:59   ` Philippe Gerum
2026-02-05 14:00 ` [PATCH Dovetail 6.18 v2 3/4] arm64: irq_pipeline: Fix IPI_KGDB_ROUNDUP and IPI_CPU_BACKTRACE IPIs Florian Bezdeka
2026-02-05 18:53   ` Philippe Gerum
2026-02-05 14:00 ` [PATCH Dovetail 6.18 v2 4/4] arm64: irq_pipeline: Fix tracepoint for multiplexed IPIs Florian Bezdeka
2026-02-05 19:03   ` Philippe Gerum [this message]

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=87ikcb813i.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox