Re: [Linuxptp-users] (no subject)

2022-10-18 Thread Nemo Crypto
 Hi Akash,

At any given time, for a multi port switch, you can have only 1 port as Slave. 
And the other ports would become MASTER. This is a typical BC way of operation.
Do you mean to have 3 ports on MASTER and one on SLAVE? If yes, this means, you 
want your device to be SLAVE to some master and MASTER to 3 slave devices.

Thanks!

On Monday, 17 October, 2022 at 04:27:52 am GMT-4, Akash Munirathinam 
 wrote:  
 
 
Hey guys,
I really would like to know the answer to this question that's bugging me.
I have a NIC I350 with 4 ports. is it possible to make one port as  
Master and the other ports as slave? or do i need to have another NIC  
which can act as a slave.
Thanks in advance




___
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users
  ___
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users


Re: [Linuxptp-users] Need help in understanding of PHC in ptp4l

2022-10-18 Thread Nemo Crypto
 Hi Aditya,

 
-> Is it enough if I supply functions to gettime64, settime64 functions of 
ptp_clock_info structure?-> What functions does ptp4l expect to be implemented 
in the driver for above said ptp configuration(master,two step timestamp, 
ethernet protocol) if I use HW timestamping? -> Can you please point me to 
where exactly the HW timestamping is happening in the ptp4l code?HW 
timestamping must happen in the HW level (MAC layer or PHY layer of your FPGA). 
And this timestamp in general will get stored in some HW FIFO and an interrupt 
would be generated to the driver. The driver should read this timestamp from 
the HW, and keep it ready for ptp4l to use. To match the timestamp with certain 
PTP event frames, the PTPFrameType & the seqID is also logged into FIFO with 
the timestamp. In some HW, instead of using interrupts & FW FIFO, they use 
in-band timestamping, where the PTPEvnetFrame's unused field could be used to 
carry the ingress timestamps. 

Thanks!



On Monday, 17 October, 2022 at 03:30:04 am GMT-4, Aditya Venu via 
Linuxptp-users  wrote:  
 
 Hi,
Can you please resolve my following queries.  Below are the steps I've followed.
-> I have a FPGA card(PCIe based) on which I've implemented a network driver(on 
x86, linux) so that ptp4l messages flow to and from the NIC card.-> I have 
implemented software timestamping. skb_tx_timestamp() in the transmit function 
and  skb_defer_rx_timestamp() in the bottom half of the receive interrupt 
handler.  -> I'm running my system as a PTP master (two step timestamping, raw 
ethernet protocol) and connected to a link partner which runs a ptp slave. With 
the sw timestamping, the slave's offset from master is very high(100s of us). 
But I need ns level offset.-> To achieve that level of offset accuracy, I think 
I'll have to implement HW timestamping.  -> But then, I have to implement a PHC 
in my FPGA and add support for that PHC in my linux driver.My query is on the 
driver side.
-> Is it enough if I supply functions to gettime64, settime64 functions of 
ptp_clock_info structure?-> What functions does ptp4l expect to be implemented 
in the driver for above said ptp configuration(master,two step timestamp, 
ethernet protocol) if I use HW timestamping? -> Can you please point me to 
where exactly the HW timestamping is happening in the ptp4l code?
Thanks,Aditya.

Disclaimer:- This footer text is to convey that this email is sent by one of 
the users of IITH. So, do not mark it as SPAM.
___
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users
  ___
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users


Re: [Linuxptp-users] (no subject)

2022-10-18 Thread Richard Cochran
On Mon, Oct 17, 2022 at 10:24:36AM +0200, Akash Munirathinam wrote:
> 
> Hey guys,
> I really would like to know the answer to this question that's bugging me.
> I have a NIC I350 with 4 ports. is it possible to make one port as Master
> and the other ports as slave? or do i need to have another NIC which can act
> as a slave.

If each of the 4 ports has its own PHC, then you can run one ptp4l
instance on each port.  The easiest way is with layer2 (-2) transport.

HTH,
Richard


___
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users