Re: [Linuxptp-users] ptp4l and SyncE

2018-04-24 Thread Keller, Jacob E
> -Original Message- > From: Miroslav Lichvar [mailto:mlich...@redhat.com] > Sent: Tuesday, April 24, 2018 12:16 AM > To: Cliff Spradlin > Cc: linuxptp-users@lists.sourceforge.net > Subject: Re: [Linuxptp-users] ptp4l and SyncE > > I have a pair of directly connected X550 cards, which beh

Re: [Linuxptp-users] NULL pointer in port_delay_request

2018-04-24 Thread Richard Cochran
On Tue, Apr 24, 2018 at 05:13:11PM +0100, Richard Hill wrote: > What might be relevant is the type of testing I was doing. This was > operating slaveOnly. Other Masters were appearing and disappearing quite > often. I had this NULL pointer twice over a full day. Okay, so we have an issue with sl

Re: [Linuxptp-users] NULL pointer in port_delay_request

2018-04-24 Thread Richard Hill
> > > I am getting a dst NULL pointer here (in port_delay_request) > > if (p->hybrid_e2e) { > struct ptp_message *dst = TAILQ_FIRST(&p->best->messages); > msg->address = dst->address; > msg->header.flagField[0] |= UNICAST; > } > This appears to be because the li

Re: [Linuxptp-users] ptp4l doesn't recognize /dev/ptp0

2018-04-24 Thread Yan Yankovskyi via Linuxptp-users
> Just making the device node in the system does not instantiate the > actual device in the kernel. Only the device driver can do that. ptp driver is built into the kernel, if you are talking about it. I can see ptp in /proc/devices as well. But /dev/ptp0 device isn't present after startup. On

Re: [Linuxptp-users] ptp4l doesn't recognize /dev/ptp0

2018-04-24 Thread Richard Cochran
On Tue, Apr 24, 2018 at 05:47:10PM +0300, Yan Yankovskyi wrote: > ptp driver is built into the kernel, if you are talking about it. > I can see ptp in /proc/devices as well. But /dev/ptp0 device isn't present > after startup. Just let systemd/udev/mdev/whatever create the device node for you. HTH

Re: [Linuxptp-users] NULL pointer in port_delay_request

2018-04-24 Thread Richard Cochran
On Tue, Apr 24, 2018 at 02:53:38PM +0100, Richard Hill wrote: > > > I am getting a dst NULL pointer here (in port_delay_request) > > if (p->hybrid_e2e) { > struct ptp_message *dst = TAILQ_FIRST(&p->best->messages); > msg->address = dst->address; > msg->header.flagFie

Re: [Linuxptp-users] ptp4l doesn't recognize /dev/ptp0

2018-04-24 Thread Richard Cochran
On Tue, Apr 24, 2018 at 01:35:29PM +0300, Yan Yankovskyi via Linuxptp-users wrote: > I use the following command: > > mknod /dev/ptp0 c 252 0 > > On ptp4l launch I'm getting the following error: > > Failed to open /dev/ptp0: No such device or address > > But it is actually present. Do you have

Re: [Linuxptp-users] NULL pointer in port_delay_request

2018-04-24 Thread Richard Hill
I am getting a dst NULL pointer here (in port_delay_request) if (p->hybrid_e2e) { struct ptp_message *dst = TAILQ_FIRST(&p->best->messages); msg->address = dst->address; msg->header.flagField[0] |= UNICAST; } (gdb) p dst $13 = (struct ptp_message *) 0

Re: [Linuxptp-users] Read out the NTP shared memory with PTP

2018-04-24 Thread Miroslav Lichvar
On Tue, Apr 24, 2018 at 11:28:27AM +, Jord Pool wrote: > Hi, > > I can not find it anywhere specified in the documentation or manual pages; is > it possible with PTP to read out the NTP shared memory (which gets filled by > another process) and to distribute the time it reads out to other PT

[Linuxptp-users] Read out the NTP shared memory with PTP

2018-04-24 Thread Jord Pool
Hi, I can not find it anywhere specified in the documentation or manual pages; is it possible with PTP to read out the NTP shared memory (which gets filled by another process) and to distribute the time it reads out to other PTP clients? Please note that I am aiming on directly reading out the

[Linuxptp-users] ptp4l doesn't recognize /dev/ptp0

2018-04-24 Thread Yan Yankovskyi via Linuxptp-users
Hello, After manual creation of /dev/ptp0 node, ptp4l doesn't accept this node as a PTP clock. I use the following command: mknod /dev/ptp0 c 252 0 On ptp4l launch I'm getting the following error: Failed to open /dev/ptp0: No such device or address But it is actually present. Do you have any t

Re: [Linuxptp-users] ptp4l and SyncE

2018-04-24 Thread Miroslav Lichvar
On Mon, Apr 23, 2018 at 07:20:25PM +, Cliff Spradlin via Linuxptp-users wrote: > Configuration thoughts: > - It seems to me that ptp4l should only examine the time offset between the > master and slave, and not try to estimate or correct for differences in > frequency. I couldn't find a settin