On 16.06.20 11:41, Lange Norbert wrote:
> 
> 
>> -----Original Message-----
>> From: Xenomai <[email protected]> On Behalf Of Jan Kiszka
>> via Xenomai
>> Sent: Dienstag, 16. Juni 2020 10:58
>> To: Stéphane Ancelot <[email protected]>; [email protected]
>> Subject: Re: TSN support on xenomai
>>
>> NON-ANDRITZ SOURCE: BE CAUTIOUS WITH CONTENT, LINKS OR
>> ATTACHMENTS.
>>
>>
>> On 16.06.20 10:55, Stéphane Ancelot via Xenomai wrote:
>>> Hi,
>>>
>>> This is natively supported in standard linux kernel
>>>
>>
>> Right. What is missing it linking the Xenomai timebase with that of the 
>> kernel
>> so that we would benefit from Linux doing the sync for us already.
> 
> But that means you can't use the synchronizing NIC with RTNet / Realtime 
> traffic.
> 
> Regarding linking timebases, it would help (for various things)
> If you could easily read those various timebases from the kernel. The rest 
> can happen in
> userspace.
> 
> I actually have 3: Linux Monotonic, Xenomai Monotonic, and a PPS synchronized 
> IEEE1588 clock,
> Cant fold them into one but sometimes need to map between these.
> Solved this by letting the NIC read out all 3 and providing them to (Xenomai) 
> userspace.
> 
> Better would be a shared mmap (with 2 or more buffers), so that Linux tasks 
> can asynchronously get that info too.
> 

Latest Intel hardware supports mapping for the PTP time to the system
time (tsc) natively. You only need to read out the conversion factors in
the end. That's what we want to have as well.

If using that will create a conflict with using the NIC for RT traffic?
Likely. But that needs to be sorted out in the future, not only on Intel hw.

Jan

-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

Reply via email to