Skip to contentSkip to conversation

fail clocktest -C CLOCK_HOST_REALTIME

DISCUSSION alessio margan 2 participants 7 messages Jul 3, 2019 x86

lore
Share & tools
lore
#0 lore raw

Hi all,

I ve updated xenomai and switching from 3.0.6 to 3.0.9 with kernel 4.14.89

clocktest -C CLOCK_HOST_REALTIME

fails with this message

NVDSO_FEAT_HOST_REALTIME not available
clock_gettime failed for clock id 32
XNVDSO_FEAT_HOST_REALTIME not available

I can not set CONFIG_XENO_OPT_HOSTRT=y in kernel config and seems that the difference with the config I ve used with 3.0.6 was this.

TIA

Alessio

Signature · 26 lines
ISTITUTO ITALIANO DI TECNOLOGIA

Alessio Margan
Chief Technician
Advanced Robotics Department

[email protected]
Via Morego 30, 16163 Genova
Tel. +39 010 71781-754

www.iit.it

Legal Disclaimer
This electronic message contains information that is confidential. The information is intended for the use of the addressee only.
If you are not the addressee we would appreciate your notification in this respect.
Please note that any disclosure, copy, distribution or use of the contents of this message is prohibited and may be unlawful.
We have taken every reasonable precaution to ensure that any kind of attachment to this e-mail has been swept for viruses.
However, we cannot accept liability for any damage sustained as a result of software viruses
and would advise you to carry out your own virus checks before opening any attachment.
Avvertenza legale
Questo messaggio Email contiene informazioni confidenziali riservate ai soli destinatari.
Qualora  veniate in possesso di tali informazioni senza essere definito come destinatario vi reghiamo di leggere le seguenti note.
Ogni apertura, copia, distribuzione del contenuto del messaggio e dei suoi allegati è proibito e potrebbe violare le presenti leggi.
Abbiamo attivato ogni possibile e ragionevole precauzione per assicurare che gli allegati non contengano virus.
Comunque non assumeremo alcuna responsabilità per ogni eventuale danno causato da virus software e simili
in quanto è onere del destinatario verificarne l’assenza in ogni allegato attuando propri indipendenti controlli.
#1 lore raw
Quoted 8 lines · alessio margan via Xenomai

Hi all,

I ve updated xenomai and switching from 3.0.6 to 3.0.9 with kernel 4.14.89

clocktest -C CLOCK_HOST_REALTIME

fails with this message

Quoted 8 lines

NVDSO_FEAT_HOST_REALTIME not available
clock_gettime failed for clock id 32
XNVDSO_FEAT_HOST_REALTIME not available

I can not set CONFIG_XENO_OPT_HOSTRT=y in kernel config and seems that the difference with the config I ve used with 3.0.6 was this.

Argh... That got lost in the initial x86 ipipe port to 4.14. And, thus, it's now also missing in 4.19. Will update both branches. You can try this hunk already:

arch/x86/Kconfig +1 -0
index b147b5c53af6..8409b9073422 100644
@@ -147,6 +147,7 @@ config X86
 	select HAVE_IRQ_TIME_ACCOUNTING
 	select HAVE_IPIPE_SUPPORT		if X86_64
 	select HAVE_IPIPE_TRACER_SUPPORT
+	select IPIPE_HAVE_HOSTRT if IPIPE
 	select IPIPE_HAVE_SAFE_THREAD_INFO if IPIPE
 	select IPIPE_WANT_PTE_PINNING if IPIPE
 	select IPIPE_HAVE_VM_NOTIFIER if IPIPE

Thanks for reporting!
Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux
#2 lore raw

Hi,

now I have the proper config

(base) embedded@com-exp:/usr/src/linux-4.14.89-xeno-stable-v3.0.x$ cat .config | grep HOSTRT CONFIG_XENO_OPT_HOSTRT=y
CONFIG_IPIPE_HAVE_HOSTRT=y

.. it 's compiling, I let you know

Thanks

Alessio

Quoted 37 lines · Jan Kiszka
Quoted 8 lines · alessio margan via Xenomai

Hi all,

I ve updated xenomai and switching from 3.0.6 to 3.0.9 with kernel 4.14.89

clocktest -C CLOCK_HOST_REALTIME

fails with this message

Quoted 8 lines

NVDSO_FEAT_HOST_REALTIME not available
clock_gettime failed for clock id 32
XNVDSO_FEAT_HOST_REALTIME not available

I can not set CONFIG_XENO_OPT_HOSTRT=y in kernel config and seems that the difference with the config I ve used with 3.0.6 was this.

Argh... That got lost in the initial x86 ipipe port to 4.14. And, thus, it's now also missing in 4.19. Will update both branches. You can try this hunk already:

arch/x86/Kconfig +0 -0
index b147b5c53af6..8409b9073422 100644
@@ -147,6 +147,7 @@ config X86

select HAVE_IRQ_TIME_ACCOUNTING
select HAVE_IPIPE_SUPPORT if X86_64
select HAVE_IPIPE_TRACER_SUPPORT
+ select IPIPE_HAVE_HOSTRT if IPIPE
select IPIPE_HAVE_SAFE_THREAD_INFO if IPIPE
select IPIPE_WANT_PTE_PINNING if IPIPE
select IPIPE_HAVE_VM_NOTIFIER if IPIPE

Thanks for reporting!
Jan

Signature · 26 lines
ISTITUTO ITALIANO DI TECNOLOGIA

Alessio Margan
Chief Technician
Advanced Robotics Department

[email protected]
Via Morego 30, 16163 Genova
Tel. +39 010 71781-754

www.iit.it

Legal Disclaimer
This electronic message contains information that is confidential. The information is intended for the use of the addressee only.
If you are not the addressee we would appreciate your notification in this respect.
Please note that any disclosure, copy, distribution or use of the contents of this message is prohibited and may be unlawful.
We have taken every reasonable precaution to ensure that any kind of attachment to this e-mail has been swept for viruses.
However, we cannot accept liability for any damage sustained as a result of software viruses
and would advise you to carry out your own virus checks before opening any attachment.
Avvertenza legale
Questo messaggio Email contiene informazioni confidenziali riservate ai soli destinatari.
Qualora  veniate in possesso di tali informazioni senza essere definito come destinatario vi reghiamo di leggere le seguenti note.
Ogni apertura, copia, distribuzione del contenuto del messaggio e dei suoi allegati è proibito e potrebbe violare le presenti leggi.
Abbiamo attivato ogni possibile e ragionevole precauzione per assicurare che gli allegati non contengano virus.
Comunque non assumeremo alcuna responsabilità per ogni eventuale danno causato da virus software e simili
in quanto è onere del destinatario verificarne l’assenza in ogni allegato attuando propri indipendenti controlli.
#3 lore raw
Quoted 9 lines · alessio margan via Xenomai

Hi,

now I have the proper config

(base) embedded@com-exp:/usr/src/linux-4.14.89-xeno-stable-v3.0.x$ cat .config | grep HOSTRT CONFIG_XENO_OPT_HOSTRT=y
CONFIG_IPIPE_HAVE_HOSTRT=y

.. it 's compiling, I let you know

My own test already succeed. Waiting for your ok, then I'll role out 4.14.132 with this fixed. And 4.19.57 as well.

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux
#4 lore raw

Hi,

ok, it is also fine for me.

Alessio

Quoted 15 lines · Jan Kiszka
Quoted 9 lines · alessio margan via Xenomai

Hi,

now I have the proper config

(base) embedded@com-exp:/usr/src/linux-4.14.89-xeno-stable-v3.0.x$ cat .config | grep HOSTRT CONFIG_XENO_OPT_HOSTRT=y
CONFIG_IPIPE_HAVE_HOSTRT=y

.. it 's compiling, I let you know

My own test already succeed. Waiting for your ok, then I'll role out 4.14.132 with this fixed. And 4.19.57 as well.

Jan

Signature · 26 lines
ISTITUTO ITALIANO DI TECNOLOGIA

Alessio Margan
Chief Technician
Advanced Robotics Department

[email protected]
Via Morego 30, 16163 Genova
Tel. +39 010 71781-754

www.iit.it

Legal Disclaimer
This electronic message contains information that is confidential. The information is intended for the use of the addressee only.
If you are not the addressee we would appreciate your notification in this respect.
Please note that any disclosure, copy, distribution or use of the contents of this message is prohibited and may be unlawful.
We have taken every reasonable precaution to ensure that any kind of attachment to this e-mail has been swept for viruses.
However, we cannot accept liability for any damage sustained as a result of software viruses
and would advise you to carry out your own virus checks before opening any attachment.
Avvertenza legale
Questo messaggio Email contiene informazioni confidenziali riservate ai soli destinatari.
Qualora  veniate in possesso di tali informazioni senza essere definito come destinatario vi reghiamo di leggere le seguenti note.
Ogni apertura, copia, distribuzione del contenuto del messaggio e dei suoi allegati è proibito e potrebbe violare le presenti leggi.
Abbiamo attivato ogni possibile e ragionevole precauzione per assicurare che gli allegati non contengano virus.
Comunque non assumeremo alcuna responsabilità per ogni eventuale danno causato da virus software e simili
in quanto è onere del destinatario verificarne l’assenza in ogni allegato attuando propri indipendenti controlli.
#5 lore raw
Quoted 4 lines · alessio margan via Xenomai

Hi,

ok, it is also fine for me.

Perfect. The next 4.14 ipipe is released, so you can move to that latest kernel version. Or to 4.19 which will receive update for much longer.

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux
#6 lore raw
Quoted 7 lines · Jan Kiszka
Quoted 4 lines · alessio margan via Xenomai

Hi,

ok, it is also fine for me.

Perfect. The next 4.14 ipipe is released, so you can move to that latest kernel version. Or to 4.19 which will receive update for much longer.

Ah, sorry: 4.19 is not supported by Xenomai 3.0, only via upcoming 3.1.

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux