Skip to contentSkip to conversation

Dovetail 6.14 forward port state

DISCUSSION Florian Bezdeka 1 participant 1 message Feb 18, 2025

lore
Share & tools
lore
#0 lore raw

Hi all,

a short summary of the 6.14 forward porting

- Philippe is currently reviewing a change to the IRQ pipeline that I made around CONFIG_GENERIC_PENDING_IRQ. A bit of code cleanup will be necessary - once we agreed the changes are correct.

- x86 was fine from the beginning

- arm64 needs some fixes to the fpsimd code. Crypto code will use in-kernel fpsimd sections which could not be preempted by OOB so far. The tree already holds a fix for that. Once a couple of tests were successful I will send the patch to the list.

- armhf: Tests look "good" but super slow. I'm now able to reproduce that locally under kvm. Seems some kind of stack miss-alignment. Ideas welcome.

Intercepting the xenomai testsuite while running delivers the following call stack:

  #0  0xc04dd558 in ktime_get_mono_fast_ns ()
  #1  0xc053766c in xnlock_dbg_prepare_acquire ()
  #2  0xc052a0f8 in ___xnlock_get ()
  #3  0xc054af90 in CoBaLt_mutex_unlock ()
  #4  0xc0552fe4 in handle_head_syscall ()
  #5  0xc04003d8 in vector_swi ()
  #6  0xc04003d8 in vector_swi ()
  #7  0xc04003d8 in vector_swi ()
  #8  0xc04003d8 in vector_swi ()
  #9  0xc04003d8 in vector_swi ()

#10 0xc04003d8 in vector_swi ()
(seems to continue to infinity...)

At least the "slow test suite execution" might be related to FPU (vfp) again. We do not allow to preempt in-kernel inband kernel_neon_{begin,end} sections - AFAICT.

The tree (wip/6.14-dovetail-rebase) branch is located here:
https://source.denx.de/Xenomai/linux-dovetail/-/tree/wip/v6.14-dovetail-rebase?ref_type=heads

Best regards,
Florian

Signature · 2 lines
Siemens AG, Foundational Technologies
Linux Expert Center