Hi Miroslav

Yes, it is 1 for now.

The CLOCK_TAI and CLOCK_REALTIME for any of the machines is same. However,
there is always a constant difference in time of slave from master with a
value very close to the currentUTCOffset as shown by PMC. For example,

   - if I manually change the currentUTCOffset on master to 30 secs, the
   CLOCK_REALTIME and CLOCK_TAI on master shows me a value "*X*"  whereas
   the CLOCK_REALTIME and CLOCK_TAI on slave shows me a value "*X-32*".
   - if I manually change the currentUTCOffset on master to 100 secs, the
   CLOCK_REALTIME and CLOCK_TAI on master shows me a value "Y* secs*"
   whereas the CLOCK_REALTIME and CLOCK_TAI on slave shows me a value "Y
   *-103* secs".


In any case the kernel parameter tai_offset does not get set and calling
ntptime from the shell gives me "TAI Offset 0". We also tried to set the
"GRAND_MASTER_SETTINGS_NP" with different variations as mentioned by
Richard but with no help. What could be the reason?

On Thu, Nov 1, 2018 at 1:37 PM Puneet Patwari <
puneet.patw...@thoughtworks.com> wrote:

> Hi Miroslav
>
> Yes, it is 1 for now.
>
> The CLOCK_TAI and CLOCK_REALTIME for any of the machines is same. However,
> there is always a constant difference in time of slave from master with a
> value very close to the currentUTCOffset as shown by PMC. For example,
>
>    - if I manually change the currentUTCOffset on master to 30 secs, the
>    CLOCK_REALTIME and CLOCK_TAI on master shows me a value "*X*"  whereas
>    the CLOCK_REALTIME and CLOCK_TAI on slave shows me a value "*X-32*".
>    - if I manually change the currentUTCOffset on master to 100 secs, the
>    CLOCK_REALTIME and CLOCK_TAI on master shows me a value "Y* secs*"
>    whereas the CLOCK_REALTIME and CLOCK_TAI on slave shows me a value "Y
>    *-103* secs".
>
>
> In any case the kernel parameter tai_offset does not get set and calling
> ntptime from the shell gives me "TAI Offset 0". We also tried to set the
> "GRAND_MASTER_SETTINGS_NP" with different variations as mentioned by
> Richard but with no help. What could be the reason?
>
> Regards
> Puneet
>
> On Thu, Nov 1, 2018 at 1:15 PM Miroslav Lichvar <mlich...@redhat.com>
> wrote:
>
>> On Thu, Nov 01, 2018 at 11:15:44AM +0530, Dolly Gyanchandani wrote:
>> > @Miroslav, after setting currentUtcOffsetValid and timeTraceable
>> parameters
>> > to 1, we still get clock_gettime(CLOCK_TAI) same as
>> > clock_gettime(CLOCK_REALTIME).
>> > And we still don't see kernel parameter tai_offset  being set (verified
>> by
>> > ntptime command)
>>
>> Is ptpTimescale 1?
>>
>> --
>> Miroslav Lichvar
>>
>
>
> --
> Regards
> Puneet Patwari
> Application Developer
> ThoughtWorks, Pune
>
_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to