All of lore.kernel.org
 help / color / mirror / Atom feed
* xenomai 3.1/ipipe-core-4.19.128-cip28-arm-10.patch
@ 2020-07-04 18:59 Robert Berger
  2020-07-04 19:03 ` Robert Berger
  0 siblings, 1 reply; 15+ messages in thread
From: Robert Berger @ 2020-07-04 18:59 UTC (permalink / raw)
  To: Xenomai@xenomai.org

Hi,

I just took the latest and greatest stuff and built it with some Yocto 
dunfell/3.1.1 SDK for some 32 bit ARM i.mx6.

Xenomai/cobalt v3.1 -- #5714ceede (2020-02-04 16:06:11 +0100)

When I run xeno-test I get this:

./xeno-test
++ echo 0
++ testdir=/usr/local/xenomai/bin
++ /usr/local/xenomai/bin/smokey --run random_alloc_rounds=64 
pattern_check_rounds=64
arith OK
...
posix_clock OK
posix_cond OK
posix_fork OK
[  466.998532] [Xenomai] bad syscall <0x197>
posix_mutex OK
posix_select OK
...

0x197 (407) is not avail in 4.19[1], but in 5.4[2]

[1] 
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/arm/tools/syscall.tbl?h=v4.19.131#n416

[2] 
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/arm/tools/syscall.tbl?h=v5.4.50#n424 


The SDK was built against 5.4 kernel headers (which is the default for 
Yocto dunfell/3.1.1).

If I run a small C app (without xenomai) which calls this:

static void xeno_sleep_ms(unsigned int ms)
{                               /* < 1000 */
         struct timespec ts;

         ts.tv_sec = 0;
         ts.tv_nsec = ms * 1000000;
         clock_nanosleep(CLOCK_MONOTONIC, 0, &ts, NULL);
}

all is good both with 4.19.x and 4.5.kernel.

Can someone tell me tell me please where the bad syscall comes from?

It looks like someone calls clock_nanosleep_time64, but xenomai is 
developed against 4.19.x where this sycall does not exist, so my first 
idea would be that it comes from the glibc which was built against 5.4 
kernel headers. But the xenomai test case triggers it! I suspect some 
sleep_ms(1) in some weird combination with something but I am not sure 
about it.

[  251.080655] [Xenomai] bad syscall <0x197>

407     common  clock_nanosleep_time64          sys_clock_nanosleep

Please point me towards where to search further.

Regards,

Robert


^ permalink raw reply	[flat|nested] 15+ messages in thread
* xenomai 3.1/ipipe-core-4.19.128-cip28-arm-10.patch
@ 2020-07-06 23:28 Robert Berger
  2020-07-06 23:49 ` Greg Gallagher
  0 siblings, 1 reply; 15+ messages in thread
From: Robert Berger @ 2020-07-06 23:28 UTC (permalink / raw)
  To: Xenomai@xenomai.org

Hi,

Now I am a bit puzzled ;)

I rebuilt the rootfs against 4.14.x kernel headers, at least so I think ;)

bitbake -s | grep headers
linux-libc-headers                                   :4.19-r0 

nativesdk-linux-libc-headers                         :4.19-r0

... but still get the same syscall error:

root@multi-v7-ml:~# /usr/bin/smokey --run=16
[  448.996933] [Xenomai] bad syscall <0x197>
posix_mutex OK
root@multi-v7-ml:~#

0x197 is not present in a 4.19 kernel, so the error makes sense, but who 
calls it? It looks like something in the posix_mutex test triggers it.

Regards,

Robert


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2020-07-13 22:00 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-04 18:59 xenomai 3.1/ipipe-core-4.19.128-cip28-arm-10.patch Robert Berger
2020-07-04 19:03 ` Robert Berger
  -- strict thread matches above, loose matches on Subject: below --
2020-07-06 23:28 Robert Berger
2020-07-06 23:49 ` Greg Gallagher
2020-07-07 10:06   ` Robert Berger
2020-07-07 16:30   ` Robert Berger
2020-07-07 17:48     ` Greg Gallagher
2020-07-07 21:12       ` Robert Berger
2020-07-07 22:57       ` Robert Berger
2020-07-07 23:04       ` Robert Berger
2020-07-08 12:41         ` Greg Gallagher
2020-07-08 21:19           ` Robert Berger
2020-07-09  3:55             ` Greg Gallagher
2020-07-13 17:08         ` Jan Kiszka
2020-07-13 22:00           ` Robert Berger

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.