Hi,
For a client project I try to port Xenomai 3.1 + I-pipe to the kernel
linux-imx 5.4.70 for arm64 (i.MX8 Mini). I adapted the I-pipe patch
(5.4.72-arm64). The kernel boots and works well.
However, for the non-regression test, I run a client test that uses
Xenomai and UDD (to register a PC
On 05.07.21 08:26, Chen, Hongzhan wrote:
>
>
>>
>>> # UDD support
>>> @@ -469,10 +580,9 @@ CONFIG_XENO_ARCH_OUTOFLINE_XNLOCK=y
>>> # cause troubles with Xenomai. You should disable them.
>>> #
>>> CONFIG_XENO_VERSION_MAJOR=3
>>> -CONFIG_XENO_VERSION_MINOR=0
>>> -CONFIG_XENO_REVISION_LEVEL=90
From: Jan Kiszka
Since rtdm_fd_select started to return EADV for unknown fds
(2db562ad62ec), we were returning that code to applications in case a
selector had been allocated for the caller already. That was because
libcobalt lacked handling of this error.
This fixes it and also establish proper
From: Jan Kiszka
It worked, but it is not nice to read.
Signed-off-by: Jan Kiszka
---
kernel/cobalt/posix/io.c| 8
kernel/cobalt/posix/syscall32.c | 7 ---
2 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/kernel/cobalt/posix/io.c b/kernel/cobalt/posix/io.c
in
From: Jan Kiszka
Already at the time of introduction (8ac3db811d21), -ENOENT was not
returned by any sane function behind rtdm_fd_select(). Today
rtdm_fd_select() officially only returns -EBADF or -EINVAL. By now it
also returns -EADV, via rtdm_fd_get() or a default select handler. The
only remai
From: Jan Kiszka
2db562ad62ec had a point in avoiding EBADF for file descriptors that are
not under RTDM management. But it unfortunately got a lot of other cases
wrong along this.
This one is about returning the right error code if an RTDM driver does
not implement a particular handler. That mu
From: Jan Kiszka
Rather than duplicating lots of code for the sake of compat userspace
accesses, provide a common version that is given a flag to decide
whether to take the compat or regular code paths.
This also brings restart support to the compat selection version which
was forgotten by 36132
From: Jan Kiszka
Commit 36132cdb21cd forgot to align this with the native syscall.
Signed-off-by: Jan Kiszka
---
kernel/cobalt/posix/syscall32.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/cobalt/posix/syscall32.c b/kernel/cobalt/posix/syscall32.c
index 5a6de285f
From: Jan Kiszka
It also returns -EADV since 2db562ad62ec - causing troubles in select.
Signed-off-by: Jan Kiszka
---
kernel/cobalt/rtdm/fd.c | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/kernel/cobalt/rtdm/fd.c b/kernel/cobalt/rtdm/fd.c
index cbaece1327..e5e0c02376
From: Jan Kiszka
Signed-off-by: Jan Kiszka
---
kernel/cobalt/rtdm/fd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/cobalt/rtdm/fd.c b/kernel/cobalt/rtdm/fd.c
index 151884a240..cbaece1327 100644
--- a/kernel/cobalt/rtdm/fd.c
+++ b/kernel/cobalt/rtdm/fd.c
@@ -223,7
This should resolved the EADV bug seen with select when called with
Linux fds. It also fixes wrong EADV reporting for other services. And it
adds the missing syscall restart support for clock_nanosleep and select
when taking the compat path.
Please review and test carefully, some details are rathe
From: Jan Kiszka
There is no use for this outside of the core that implements select. So
stop exporting these helpers. As there are no users outside, simplify
their return value on success to 0 because their callers do not care
about more.
Signed-off-by: Jan Kiszka
---
include/cobalt/kernel/co
From: Jan Kiszka
__this_cpu_read will generate a warning when called by
print_core_clock_status because the context is detected as preemptible.
Avoid this by picking up the name from CPU 0, just like ipipe_timer_name
did.
Signed-off-by: Jan Kiszka
---
kernel/cobalt/dovetail/tick.c | 2 +-
1 fi
From: Jan Kiszka
The I-pipe implementation was lucky in its approach to not wake up the
RT thread in case the non-RT part migrated to an unsupported CPU. For
unclear reasons, the scheduled cancellation made it to the thread and
avoided any lockup. On dovetail, this fails.
So switch both implemen
From: Jan Kiszka
Scheduling a thread on a CPU that is not supported by Xenomai will only
fail and flood the screen with error messages.
Signed-off-by: Jan Kiszka
---
testsuite/clocktest/clocktest.c | 44 +++--
1 file changed, 31 insertions(+), 13 deletions(-)
diff
From: Jan Kiszka
The core assumes in some places that CPU 0 is available for real-time.
Therefore fail if the mask is excluding it.
Signed-off-by: Jan Kiszka
---
kernel/cobalt/init.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/kernel/cobalt/init.c b/kernel/cobalt/init.c
index f949
From: Jan Kiszka
The I-pipe implementation was lucky in its approach to not wake up the
RT thread in case the non-RT part migrated to an unsupported CPU. For
unclear reasons, the scheduled cancellation made it to the thread and
avoided any lockup. On dovetail, this fails.
So switch both implemen
On 05.07.21 09:10, Pierre-Loup Gosse via Xenomai wrote:
> Hi,
>
> For a client project I try to port Xenomai 3.1 + I-pipe to the kernel
> linux-imx 5.4.70 for arm64 (i.MX8 Mini). I adapted the I-pipe patch
> (5.4.72-arm64). The kernel boots and works well.
>
I think the imx8mm is fairly well sup
From: Jan Kiszka
Scheduling a thread on a CPU that is not supported by Xenomai will only
fail and flood the screen with error messages.
Signed-off-by: Jan Kiszka
---
Changes in v2:
- restrict cpu_realtime_set by online cpus
testsuite/clocktest/clocktest.c | 49 --
From: Jan Kiszka
This tests xenomai.supported_cpus not covering all available CPUs,
allowing the related smokey test to run and more.
We restrict this to targets with more than 2 cores, which currently
excludes all QEMU targets.
Signed-off-by: Jan Kiszka
---
tests/jobs/xenomai-hikey.yml
From: Jan Kiszka
Covered by xenomai-x86-64-efi.yml in practice.
Signed-off-by: Jan Kiszka
---
tests/jobs/xenomai-ipc227e.yml | 76 --
1 file changed, 76 deletions(-)
delete mode 100644 tests/jobs/xenomai-ipc227e.yml
diff --git a/tests/jobs/xenomai-ipc227e.yml
From: Jan Kiszka
We replaced the ipc227e with a generic x86-efi target long ago. Also
include the .yml endings in the mentioning to make the relationship
clearer.
Signed-off-by: Jan Kiszka
---
README.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.
On Mon, Jul 5, 2021 at 7:02 AM Jan Kiszka wrote:
> On 05.07.21 09:10, Pierre-Loup Gosse via Xenomai wrote:
> > Hi,
> >
> > For a client project I try to port Xenomai 3.1 + I-pipe to the kernel
> > linux-imx 5.4.70 for arm64 (i.MX8 Mini). I adapted the I-pipe patch
> > (5.4.72-arm64). The kernel b
23 matches
Mail list logo