All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <philippe.gerum@gmail.com>
To: Florian Bezdeka <florian.bezdeka@siemens.com>
Cc: xenomai@lists.linux.dev,  Jan Kiszka <jan.kiszka@siemens.com>
Subject: Re: [PATCH RFC Dovetail 6.1 0/3] arm64: Enable in-kernel FPU / FPSIMD usage
Date: Thu, 11 Dec 2025 13:56:02 +0100	[thread overview]
Message-ID: <87h5txuqhp.fsf@xenomai.org> (raw)
In-Reply-To: <0b02043cfe5b2032611180d514dcb2eff690d844.camel@siemens.com> (Florian Bezdeka's message of "Wed, 10 Dec 2025 13:14:59 +0100")

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

> On Mon, 2025-12-01 at 17:29 +0100, Philippe Gerum wrote:
>> Florian Bezdeka <florian.bezdeka@siemens.com> writes:
>> 
>> > Hi all,
>> > 
>> > these are the necessary backports for dovetail 6.1 that would allow us to
>> > enable the in-kernel FPU usage of switchtest. This is currently not
>> > possible as dovetail < 6.12 does not allow / implement the necessary fpsimd
>> > context switching.
>> > 
>> > I have backported the necessary patches down to 5.10. That would allow
>> > us to unconditionally enable the tests for the xenomai3-next branch. I
>> > will send out the 5.15 and 5.10 series once we agreed that this version
>> > (targeting 6.1) is correct.
>> > 
>> > Please note that there is a small problem with this series. Patch 1
>> > removes the check/flag that was used by the dovetail enablement code to
>> > detect in-band FPU usage. The new flag is implemented differently in
>> > patch 2. Patch 2 also fixes the usage of that flag. I had no better
>> > idea. Otherwise I would have to delete? the in-kernel fpu preemption
>> > code (temporary).
>> 
>> TIF_KERNEL_FPSTATE is not covering a preemption of a softirq handler
>> using the NEON unit by an oob thread when PREEMPT_RT is disabled, kernel
>> or user for that matter. i.e. It looks like this aspect was overlooked
>> during the busy -> TIF_KERNEL_FPSTATE transition for Dovetail, so a
>> broader fix may be required. We may have to use a marker which covers
>> any type of preempted context.
>> 
>
> I agree, but this is something that we should address in addition / on
> top, no?
>

Yep, would make backporting easier.

> This issue seems to affect all versions of dovetail. If we do the
> backports first we can address the issue on the same feature set. That
> should simplify the back-porting again. Did I miss something?
>

Agreed.

-- 
Philippe.

  reply	other threads:[~2025-12-11 12:56 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-19 14:25 [PATCH RFC Dovetail 6.1 0/3] arm64: Enable in-kernel FPU / FPSIMD usage Florian Bezdeka
2025-11-19 14:25 ` [PATCH RFC Dovetail 6.1 1/3] arm64: fpsimd: Drop unneeded 'busy' flag Florian Bezdeka
2025-11-19 14:25 ` [PATCH RFC Dovetail 6.1 2/3] arm64: fpsimd: Preserve/restore kernel mode NEON at context switch Florian Bezdeka
2025-11-19 14:25 ` [PATCH RFC Dovetail 6.1 3/3] arm64/fpsimd: Avoid erroneous elide of user state reload Florian Bezdeka
2025-12-01 16:29 ` [PATCH RFC Dovetail 6.1 0/3] arm64: Enable in-kernel FPU / FPSIMD usage Philippe Gerum
2025-12-10 12:14   ` Florian Bezdeka
2025-12-11 12:56     ` Philippe Gerum [this message]
2025-12-15 11:19       ` Florian Bezdeka
2025-12-17 12:46         ` Jan Kiszka
2025-12-17 14:21           ` Philippe Gerum
2025-12-17 16:51 ` Jan Kiszka
2025-12-20  0:03   ` 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=87h5txuqhp.fsf@xenomai.org \
    --to=philippe.gerum@gmail.com \
    --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.