All of lore.kernel.org
 help / color / mirror / Atom feed
From: Scott Reed <scott.reed@arcor.de>
To: xenomai@xenomai.org
Subject: Does Xenomai 3.2.x work with 4.14.x kernels?
Date: Wed, 13 Apr 2022 11:25:10 +0200	[thread overview]
Message-ID: <3e06adcf-fa06-b69c-d91e-972f283d9b08@arcor.de> (raw)

Hello,

I am trying to build a 4.14.110 kernel+ipipe+xenomai_3.2.7 and running into
issues when trying to compile. Namely, the 4.14.x kernel does not seem
to understand the "__kernel_timespec" struct.

Is it known if Xenomai 3.2.x works with 4.14.x kernels?

Some background information
---------------------------
Our platform is based on an ARM iMx6q.

I have tried to move to a 5.4.x kernel, but ran into another issue
in that we have an RTDM driver which uses PCI MSI interrupts and
when I try to register the interrupt with rtdm_irq_request the
function returns EINVAL(-22).

When working with a vanilla 5.4.x kernel and non-RTDM version of
the driver, there are no issues when registering the interrupt.

I started to dive into this problem, but saw that as of kernel
4.16, the PCI MSI interrupts for our platform have been changed
to be handled as chained interrupts.

In this forum, I have seen multiple discussions and patches regarding
chained interrupts for X86, but not for ARM and began to think that
maybe chained interrupt support in xenomai is not complete for ARM.

Could this be the case?

For this reason, I backed down to the 4.14.x kernel, but now have run
into the compiling issue as mentioned at the start of this email.

One last piece of background information, my initial motivation to move
to a new xenomai was that we moved to GCC 10.2 (in the meantime GCC 11.1)
and I was concerned regarding the ARM r7 register clobbering issues/patches
posted to the forum as I am fighting against a bug in our system where 
registers get corrupted albeit not r7 (typically r0 with a value of 
0xFFFFFFFA (-38)). This problem seems to have come in after we upgraded
to GCC 10.2

Thanks for any help,

Scott


             reply	other threads:[~2022-04-13  9:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-13  9:25 Scott Reed [this message]
2022-04-13 18:57 ` Does Xenomai 3.2.x work with 4.14.x kernels? Jan Kiszka
2022-04-14 16:18   ` Scott Reed

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=3e06adcf-fa06-b69c-d91e-972f283d9b08@arcor.de \
    --to=scott.reed@arcor.de \
    --cc=xenomai@xenomai.org \
    /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.