[I-PIPE] ipipe-core-5.4.119-arm-2 released

2021-05-20 Thread xenomai--- via Xenomai
Download URL: https://xenomai.org/downloads/ipipe/v5.x/arm/ipipe-core-5.4.119-arm-2.patch Repository: https://git.xenomai.org/ipipe-arm Release tag: ipipe-core-5.4.119-arm-2

[I-PIPE] ipipe-core-4.19.190-cip49-arm-15 released

2021-05-20 Thread xenomai--- via Xenomai
Download URL: https://xenomai.org/downloads/ipipe/v4.x/arm/ipipe-core-4.19.190-cip49-arm-15.patch Repository: https://git.xenomai.org/ipipe-arm Release tag: ipipe-core-4.19.190-cip49-arm-15

RE: [PATCH V3 1/3] rtdm/testing: latmus: introduce latmus driver

2021-05-20 Thread Chen, Hongzhan via Xenomai
> >-Original Message- >From: Jan Kiszka >Sent: Thursday, May 20, 2021 11:54 PM >To: Chen, Hongzhan ; xenomai@xenomai.org >Subject: Re: [PATCH V3 1/3] rtdm/testing: latmus: introduce latmus driver > >On 21.04.21 07:05, hongzha1 via Xenomai wrote: >> To support the latmus application for

[PATCH 19/25] cobalt/timer: dovetail: handle ONESHOT_STOPPED mode

2021-05-20 Thread Jan Kiszka via Xenomai
From: Hongzhan Chen Force the next tick to be programmed in the hardware as a result of leaving the ONESHOT_STOPPED Signed-off-by: Hongzhan Chen Signed-off-by: Jan Kiszka --- include/cobalt/kernel/dovetail/pipeline/tick.h | 4 kernel/cobalt/dovetail/tick.c | 6 ++ 2

[PATCH 16/25] cobalt/tick: dovetail: implement pipeline_set_timer_shot()

2021-05-20 Thread Jan Kiszka via Xenomai
From: Hongzhan Chen Signed-off-by: Hongzhan Chen [Philippe: clarify some variable names] Signed-off-by: Philippe Gerum Signed-off-by: Jan Kiszka --- .../cobalt/kernel/dovetail/pipeline/clock.h | 12 +--- kernel/cobalt/dovetail/tick.c | 28 +++ 2 files

[PATCH 20/25] cobalt/tick: dovetail: flatten the call stack to pipeline services

2021-05-20 Thread Jan Kiszka via Xenomai
From: Philippe Gerum Since we are dealing with pipeline specific code, we may flatten the call stack by using the Dovetail API directly. Signed-off-by: Philippe Gerum Signed-off-by: Jan Kiszka --- .../kernel/dovetail/pipeline/pipeline.h | 43 +--

[PATCH 05/25] cobalt/kevents: dovetail: enable back tracing

2021-05-20 Thread Jan Kiszka via Xenomai
From: Hongzhan Chen enable back tracing for handle_oob_trap_entry Signed-off-by: Hongzhan Chen Signed-off-by: Jan Kiszka --- kernel/cobalt/dovetail/kevents.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kernel/cobalt/dovetail/kevents.c

[PATCH 21/25] cobalt/clock: dovetail: implement pipeline_read_cycle_counter()

2021-05-20 Thread Jan Kiszka via Xenomai
From: Hongzhan Chen Signed-off-by: Hongzhan Chen Signed-off-by: Jan Kiszka --- include/cobalt/kernel/dovetail/pipeline/clock.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/cobalt/kernel/dovetail/pipeline/clock.h

[PATCH 22/25] lib/cobalt: ticks: drop cobalt_read_hrclock()

2021-05-20 Thread Jan Kiszka via Xenomai
From: Philippe Gerum As we move away from the representation of time based on hardware clock ticks, keeping cobalt_read_hrclock() makes no sense anymore. This was an internal, undocumented service returning the hardware TSC value for the platform. The log of commit #d584a57 which introduced it

[PATCH 06/25] cobalt/x86: ipipe: Remove leftover from x86_32 removal

2021-05-20 Thread Jan Kiszka via Xenomai
From: Jan Kiszka Signed-off-by: Jan Kiszka --- .../cobalt/arch/x86/ipipe/include/asm/xenomai/syscall.h | 8 1 file changed, 8 deletions(-) diff --git a/kernel/cobalt/arch/x86/ipipe/include/asm/xenomai/syscall.h b/kernel/cobalt/arch/x86/ipipe/include/asm/xenomai/syscall.h index

[PATCH 00/25] Dovetail integration, next round

2021-05-20 Thread Jan Kiszka via Xenomai
This is just half-way through to one working arch. A split at this at the point libcobalt is refactored for dovetail ticks. Test target for this part remains I-pipe, i.e. the check for no regressions on it. Jan CC: Hongzhan Chen CC: Philippe Gerum Hongzhan Chen (12): cobalt/irq: dovetail:

[PATCH 24/25] lib/cobalt: add default wrapper to clock_settime()

2021-05-20 Thread Jan Kiszka via Xenomai
From: Philippe Gerum Signed-off-by: Philippe Gerum Signed-off-by: Jan Kiszka --- lib/cobalt/wrappers.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/lib/cobalt/wrappers.c b/lib/cobalt/wrappers.c index 860b260201..18c237734f 100644 --- a/lib/cobalt/wrappers.c +++

[PATCH 09/25] cobalt/x86: dovetail: add architecture bits

2021-05-20 Thread Jan Kiszka via Xenomai
From: Philippe Gerum Signed-off-by: Philippe Gerum [Jan: style fixes, dropped/linked shared files] Signed-off-by: Jan Kiszka --- kernel/cobalt/arch/x86/dovetail/Makefile | 5 ++ kernel/cobalt/arch/x86/dovetail/c1e.c | 1 + .../include/asm/xenomai/calibration.h | 37

[PATCH 13/25] cobalt/init: dovetail: add oob stage enabling, disabling services

2021-05-20 Thread Jan Kiszka via Xenomai
From: Hongzhan Chen Signed-off-by: Hongzhan Chen Signed-off-by: Jan Kiszka --- kernel/cobalt/dovetail/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/cobalt/dovetail/init.c b/kernel/cobalt/dovetail/init.c index 983186abe1..bc891b4c13 100644 ---

[PATCH 15/25] cobalt/tick: dovetail: install/uninstall proxy tick device

2021-05-20 Thread Jan Kiszka via Xenomai
From: Hongzhan Chen Signed-off-by: Hongzhan Chen [Philippe: protect xntimer_start with nklock] Signed-off-by: Philippe Gerum Signed-off-by: Jan Kiszka --- kernel/cobalt/dovetail/tick.c | 83 ++- 1 file changed, 81 insertions(+), 2 deletions(-) diff --git

[PATCH 08/25] cobalt/x86: Move shared headers out of pipeline specific folder

2021-05-20 Thread Jan Kiszka via Xenomai
From: Jan Kiszka Those are not affected by pipeline differences. Signed-off-by: Jan Kiszka --- kernel/cobalt/arch/x86/{ipipe => }/include/asm/xenomai/c1e.h | 0 kernel/cobalt/arch/x86/{ipipe => }/include/asm/xenomai/features.h | 0 kernel/cobalt/arch/x86/{ipipe =>

[PATCH 17/25] cobalt/tick: dovetail: implement pipeline_timer_name()

2021-05-20 Thread Jan Kiszka via Xenomai
From: Hongzhan Chen Get the name of real device controlled by the proxy tick device. Signed-off-by: Hongzhan Chen Signed-off-by: Jan Kiszka --- include/cobalt/kernel/dovetail/pipeline/clock.h | 11 +-- kernel/cobalt/dovetail/tick.c | 12 2 files

[PATCH 03/25] cobalt/intr: dovetail: implement interrupt management, handling

2021-05-20 Thread Jan Kiszka via Xenomai
From: Philippe Gerum We are using regular request/free_irq under dovetail. This also means there is no extra task to be done in the interrupt enable/disable services. The affinity hint set during request needs to be cleared before freeing the IRQ, or Linux will complain. Signed-off-by:

[PATCH 04/25] cobalt/irq: dovetail: implement out-of-band irq management and handling

2021-05-20 Thread Jan Kiszka via Xenomai
From: Hongzhan Chen implement oob irq request and free and post for both TIMER_OOB_IPI and RESCHEDULE_OOB_IPI Signed-off-by: Hongzhan Chen Signed-off-by: Jan Kiszka --- .../kernel/dovetail/pipeline/pipeline.h | 41 ++- 1 file changed, 31 insertions(+), 10 deletions(-)

[PATCH 18/25] cobalt/timer: pipeline: abstract handling of ONESHOT_STOPPED mode

2021-05-20 Thread Jan Kiszka via Xenomai
From: Hongzhan Chen It adds a way to force the timer management code to reprogram the hardware on option, to make the real device controlled by the proxy tick again as it leaves the ONESHOT_STOPPED mode. The I-pipe does not require any further action in this case, leading to a nop.

[PATCH 25/25] lib/cobalt: dovetail: use clock_gettime() vcall for reading timestamps

2021-05-20 Thread Jan Kiszka via Xenomai
From: Philippe Gerum Dovetail enables out-of-band access to the vDSO-based clock_gettime() vcall from applications. If present, select this method instead of relying on the hardware tick counter for CLOCK_MONOTONIC, CLOCK_MONOTONIC_RAW, CLOCK_REALTIME and CLOCK_HOST_REALTIME. At binding time,

[PATCH 02/25] cobalt/kevents: dovetail: drop call to obsolete force_commit_memory()

2021-05-20 Thread Jan Kiszka via Xenomai
From: Philippe Gerum A process is now marked for COW-breaking on fork() upon the first call to dovetail_init_altsched(), and must ensure its memory is locked via a call to mlockall(MCL_CURRENT|MCL_FUTURE) as usual. As a result, force_commit_memory() became pointless and was removed from the

[PATCH 01/25] cobalt/kernel: ipipe: rename xnsched_realtime_domain to xnsched_primary_domain

2021-05-20 Thread Jan Kiszka via Xenomai
From: Philippe Gerum This symbol is now I-pipe specific, stick to the I-pipe nomenclature when referring to the high priority execution domain. Signed-off-by: Philippe Gerum Signed-off-by: Jan Kiszka --- .../cobalt/kernel/ipipe/pipeline/pipeline.h | 2 +- kernel/cobalt/ipipe/init.c

[PATCH 11/25] cobalt/sched: dovetail: add task control block initializers

2021-05-20 Thread Jan Kiszka via Xenomai
From: Hongzhan Chen Signed-off-by: Hongzhan Chen Signed-off-by: Jan Kiszka --- kernel/cobalt/dovetail/sched.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/cobalt/dovetail/sched.c b/kernel/cobalt/dovetail/sched.c index 71f763d399..82e29136ca 100644 ---

[PATCH 23/25] lib/cobalt: dovetail: allow representing time as count of nanoseconds

2021-05-20 Thread Jan Kiszka via Xenomai
From: Philippe Gerum When the core runs on top of Dovetail, all time values are represented as counts of nanoseconds, in which case a Cobalt tick equals a nanosecond. Introduce inline wrappers for tick-to/from-ns conversion which are nops in the latter case. Cobalt passes us a null clock

[PATCH 10/25] cobalt/kernel: dovetail: implement sirq services

2021-05-20 Thread Jan Kiszka via Xenomai
From: Hongzhan Chen inband sirq request through synthetic_irq_domain and free and post srq. Signed-off-by: Hongzhan Chen Signed-off-by: Jan Kiszka --- .../cobalt/kernel/dovetail/pipeline/sirq.h| 28 +++ 1 file changed, 23 insertions(+), 5 deletions(-) diff --git

[PATCH 14/25] cobalt/timer: Check if nklock is held in timer services

2021-05-20 Thread Jan Kiszka via Xenomai
From: Philippe Gerum Signed-off-by: Philippe Gerum Signed-off-by: Jan Kiszka --- kernel/cobalt/timer.c | 12 1 file changed, 12 insertions(+) diff --git a/kernel/cobalt/timer.c b/kernel/cobalt/timer.c index f9aa457ce9..9297cca186 100644 --- a/kernel/cobalt/timer.c +++

[PATCH 12/25] cobalt/clock: dovetail: provide backend code to CLOCK_HOST_REALTIME

2021-05-20 Thread Jan Kiszka via Xenomai
From: Hongzhan Chen Signed-off-by: Hongzhan Chen Signed-off-by: Jan Kiszka --- include/cobalt/kernel/dovetail/pipeline/clock.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/cobalt/kernel/dovetail/pipeline/clock.h

Re: arm/arm64 ipipe performance

2021-05-20 Thread Robert Berger via Xenomai
Hi, On 18/05/2021 22:06, Greg Gallagher via Xenomai wrote: On Tue, May 18, 2021 at 2:49 PM Jan Kiszka wrote: Hi, I mean disabled during build time. That’s at least how I tested to see that the issue went away. Hopefully I’ll have a solution soon. Thanks Greg I guess that's the

linux-v5.10.y-dovetail

2021-05-20 Thread Jan Kiszka via Xenomai
Hi Philippe, first, is source.denx.de/Xenomai/xenomai4/linux-evl.git already replacing git.evlproject.org/linux-evl.git? At least CI is currently stuck over the latter [update: was stuck, it's moving again]. Regarding 5.10, I think we are getting closer to the point where our users also need a

"cobalt/vfile: seq_file seek index must progress"

2021-05-20 Thread Jan Kiszka via Xenomai
Hi Philippe, https://source.denx.de/Xenomai/xenomai/-/commit/dd9a5ee0ed6f734f40d3733f9fff23394c8647bd Bug fix unrelated to dovetail? There is no description, so I cannot easily asses this. Jan

Re: [PATCH V3 1/3] rtdm/testing: latmus: introduce latmus driver

2021-05-20 Thread Jan Kiszka via Xenomai
On 21.04.21 07:05, hongzha1 via Xenomai wrote: > To support the latmus application for determining the best > gravity values for the cobalt core clock, and measuring > the response time to timer events. > > Signed-off-by: hongzha1 > --- > include/rtdm/uapi/testing.h | 63 ++ >

Re: [lttng-dev] LTTng - Xenomai : different results between timestamp-lttng and rt_time_read()

2021-05-20 Thread Norbert Lange via Xenomai
Am Do., 20. Mai 2021 um 17:09 Uhr schrieb Mathieu Desnoyers : > > - On May 20, 2021, at 9:56 AM, Mathieu Desnoyers > mathieu.desnoy...@efficios.com wrote: > > > - On May 20, 2021, at 9:54 AM, lttng-dev lttng-...@lists.lttng.org > > wrote: > > > >> - On May 20, 2021, at 5:11 AM,

Re: [lttng-dev] LTTng - Xenomai : different results between timestamp-lttng and rt_time_read()

2021-05-20 Thread Jan Kiszka via Xenomai
On 20.05.21 17:09, Mathieu Desnoyers wrote: > - On May 20, 2021, at 9:56 AM, Mathieu Desnoyers > mathieu.desnoy...@efficios.com wrote: > >> - On May 20, 2021, at 9:54 AM, lttng-dev lttng-...@lists.lttng.org wrote: >> >>> - On May 20, 2021, at 5:11 AM, lttng-dev

Re: [lttng-dev] LTTng - Xenomai : different results between timestamp-lttng and rt_time_read()

2021-05-20 Thread Mathieu Desnoyers via Xenomai
- On May 20, 2021, at 9:56 AM, Mathieu Desnoyers mathieu.desnoy...@efficios.com wrote: > - On May 20, 2021, at 9:54 AM, lttng-dev lttng-...@lists.lttng.org wrote: > >> - On May 20, 2021, at 5:11 AM, lttng-dev lttng-...@lists.lttng.org wrote: >> >>> Am Do., 20. Mai 2021 um 10:28 Uhr