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: Jan Kiszka <jan.kiszka@siemens.com>,  Xenomai <xenomai@lists.linux.dev>
Subject: Re: [PATCH Dovetail v2 1/2] dovetail: genirq: Add request_percpu_irq_affinity_flags()
Date: Fri, 20 Feb 2026 09:16:00 +0100	[thread overview]
Message-ID: <87342vj0e7.fsf@xenomai.org> (raw)
In-Reply-To: <d4944aa75e5874d6a7566fc7be0fc5560a4b8ab0.camel@siemens.com> (Florian Bezdeka's message of "Thu, 19 Feb 2026 22:49:11 +0100")

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

> On Thu, 2026-02-19 at 18:10 +0100, Philippe Gerum wrote:
>> Florian Bezdeka <florian.bezdeka@siemens.com> writes:
>> 
>> > On Wed, 2026-02-18 at 08:30 +0100, Jan Kiszka wrote:
>> > > On 18.02.26 00:05, Florian Bezdeka wrote:
>> > > > On Tue, 2026-02-17 at 23:54 +0100, Florian Bezdeka wrote:
>> > > > > cobalt / evl are currently using __request_percpu_irq() for setting up
>> > > > > OOB IRQs. In 6.19 the signature of __request_percpu_irq() has been
>> > > > > updated and 7.0 will remove the function entirely, so we need a
>> > > > > replacement.
>> > > > > 
>> > > > > All other variants (like the upcoming request_percpu_irq_affinity())
>> > > > > are missing the flags parameter which we require.
>> > > > > 
>> > > > > This could be backported to all supported dovetail versions. That
>> > > > > would allow co-kernels to switch to the new API unconditionally.
>> > > > > 
>> > > > > Signed-off-by: Florian Bezdeka <florian.bezdeka@siemens.com>
>> > > > > ---
>> > > > >  include/linux/interrupt.h |  5 +++++
>> > > > >  kernel/irq/manage.c       | 10 ++++++++++
>> > > > >  2 files changed, 15 insertions(+)
>> > > > > 
>> > > > > diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h
>> > > > > index bf0511b438c65e119af917763ce92a8f3bfb4c4c..6cd8ad02ffbd87f71869d6737fbc8c1ae477c1ee 100644
>> > > > > --- a/include/linux/interrupt.h
>> > > > > +++ b/include/linux/interrupt.h
>> > > > > @@ -213,6 +213,11 @@ request_percpu_irq_affinity(unsigned int irq, irq_handler_t handler,
>> > > > >  				    devname, affinity, percpu_dev_id);
>> > > > >  }
>> > > > >  
>> > > > > +int request_percpu_irq_affinity_flags(unsigned int irq, irq_handler_t handler,
>> > > > > +				      unsigned long flags, const char *devname,
>> > > > > +				      const cpumask_t *affinity,
>> > > > > +				      void __percpu *dev_id);
>> > > > > +
>> > > > > 
>> > > > 
>> > > > Would be nice to get some feedback here. The affinity parameter is
>> > > > currently not in use, but would allow us to provide it in the future.
>> > > > Not sure if that will be necessary...
>> > > > 
>> > > 
>> > > This is what I was wondering as well... When would one need that? Maybe
>> > > in the context of confining Xenomai to a subset of physical CPUs? Would
>> > > be good to check that again.
>> > 
>> > @Philippe: Any thoughts?
>> > 
>> > I would like to complete the 6.19 port on Xenomai side. This is a
>> > blocker right now.
>> > 
>> 
>> To me this is a no-brainer, given that __request_percpu_irq() requires
>> an affinity mask, having request_percpu_irq_affinity_flags() is the only
>> sane way to set all the properties of a per-cpu interrupt, including
>> flags and affinity, in one go. In any case, callers who don't care about
>> such affinity can pass NULL.
>> 
>
> Thanks for the confirmation. 
>
> I will add the series now to the wip/flo/v6.19-dovetail-rebase branch
> and continue with the Xeno 3 adaptions. evl will need the same changes.
> Philippe, can you look into that or should I try to reserve some cycles?
>
> The Xeno 3 testsuite is already passing on that branch.

Ok. I'll handle the x4 updates.

-- 
Philippe.

  reply	other threads:[~2026-02-20  8:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-17 22:54 [PATCH Dovetail v2 0/2] Dovetail: Fix for arm64 IRQ pipelining, API for co-kernels Florian Bezdeka
2026-02-17 22:54 ` [PATCH Dovetail v2 1/2] dovetail: genirq: Add request_percpu_irq_affinity_flags() Florian Bezdeka
2026-02-17 23:05   ` Florian Bezdeka
2026-02-18  7:30     ` Jan Kiszka
2026-02-19 16:38       ` Florian Bezdeka
2026-02-19 17:10         ` Philippe Gerum
2026-02-19 21:49           ` Florian Bezdeka
2026-02-20  8:16             ` Philippe Gerum [this message]
2026-02-17 22:54 ` [PATCH Dovetail v2 2/2] arm64: irq_pipeline: Cleanup demotion check for el1 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=87342vj0e7.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