[Linuxptp-users] Question regarding ptp4l

2022-10-06 Thread vignesh shanmugam via Linuxptp-users
Hi All, I am working on a project where we are using an Ethernet Switch as gPTP Automotive profile master and Intel Denvorton CPU as gPTP Slave. Slave is working perfectly fine most of the time, and stays within the needed offset limit for most of the time (within 20 usec). But there is a

Re: [Linuxptp-users] PTP1 and PTP2 in LEADER and both remain ACTIVE

2022-10-06 Thread Gururaj Badiger
Thanks for the reply Richard. However, when Two LEADERS are running in the same domain then one of them goes to "PASSIVE" state as there can be only one Best Master in the domain. In that case, though there are two ports and they are configured to the same domain, I was expecting the same behavior

Re: [Linuxptp-users] PTP1 and PTP2 in LEADER and both remain ACTIVE

2022-10-06 Thread Richard Cochran
On Thu, Oct 06, 2022 at 02:32:18PM +0530, Gururaj Badiger wrote: > Used two commands on two terminls: > > TERMINAL:~# ptp4l -i eth1 -m -f > /home/root/ptp-manager/source/linuxptp_config_0.conf > TERMINAL:~# ptp4l -i eth2 -m -f > /home/root/ptp-manager/source/linuxptp_config_1.conf You are

[Linuxptp-users] Android clang toolchain issues

2022-10-06 Thread Ondrej Lutera
Hi everyone, I am doing some work with Android and linuxptp so using Android toolchain (clang) to compile all the binaries. When cross-compiling using clang for AARCH64 there are some warnings regarding unaligned access to members of packed structures. This unaligned access could cause app

[Linuxptp-users] PTP1 and PTP2 in LEADER and both remain ACTIVE

2022-10-06 Thread Gururaj Badiger
Hello, I did some testing by running two PTP instances in LEADER mode on same Processor (running Yacto flavour) simultaneously. Having the same domain number . Used two commands on two terminls: TERMINAL:~# ptp4l -i eth1 -m -f /home/root/ptp-manager/source/linuxptp_config_0.conf TERMINAL:~#

Re: [Linuxptp-users] Overflow issue for 32bit machines: ptp_clock_info.max_adj versus timex.freq

2022-10-06 Thread Miroslav Lichvar
On Thu, Oct 06, 2022 at 09:23:57AM +0200, Janusz Użycki wrote: > OK. The issue is not related to linuxptp v3.1. Thank you for pointing the > clamp. > Is it common for phc2sys and ts2phc also ? I see a phc_max_adj() call in both phc2sys and ts2phc, so I'd expect them to handle it correctly. --

Re: [Linuxptp-users] Overflow issue for 32bit machines: ptp_clock_info.max_adj versus timex.freq

2022-10-06 Thread Janusz Użycki
OK. The issue is not related to linuxptp v3.1. Thank you for pointing the clamp. Is it common for phc2sys and ts2phc also ? best regards Janusz W dniu 06/10/2022 o 09:19, Janusz Użycki pisze: On Thu, Oct 06, 2022 at 12:11:39AM +0200, Janusz Użycki wrote: Hi. A lot of PTP/PHC drivers set

Re: [Linuxptp-users] Overflow issue for 32bit machines: ptp_clock_info.max_adj versus timex.freq

2022-10-06 Thread Janusz Użycki
On Thu, Oct 06, 2022 at 12:11:39AM +0200, Janusz Użycki wrote: Hi. A lot of PTP/PHC drivers set max_adj value quite big. Howover due to kernel's API limit of 32bit long type value (freq) and POSIX frequency conversion it should limited to 32767999 ppb. It concerns the frequency limit check

Re: [Linuxptp-users] Overflow issue for 32bit machines: ptp_clock_info.max_adj versus timex.freq

2022-10-06 Thread Miroslav Lichvar
On Thu, Oct 06, 2022 at 12:11:39AM +0200, Janusz Użycki wrote: > Hi. > > A lot of PTP/PHC drivers set max_adj value quite big. Howover due to > kernel's API limit of 32bit long type value (freq) and POSIX frequency > conversion it should limited to 32767999 ppb. > > It concerns the frequency