Re: [PATCH net-next v3 00/12] net: dsa: microchip: PTP support for KSZ956x

2020-11-30 Thread Richard Cochran
On Mon, Nov 30, 2020 at 09:01:25PM +, tristram...@microchip.com wrote: > The 1588 PTP engine in the KSZ switches was designed to be controlled closely > by > a PTP stack, so it is a little difficult to use when there is a layer of > kernel support > between the application and the driver. Ar

RE: [PATCH net-next v3 00/12] net: dsa: microchip: PTP support for KSZ956x

2020-11-30 Thread Tristram.Ha
> Hi Microchip, > > as ACL based blocking of PTP traffic seems not to work, I tried to install MAC > based static lookup rules on the switch I successfully managed to block other > non-PTP traffic, but for PTP the lookup table entry (see below) seems not to > work. Incoming SYNC messages on port a

Re: [PATCH net-next v3 00/12] net: dsa: microchip: PTP support for KSZ956x

2020-11-26 Thread Christian Eggers
Hi Microchip, as ACL based blocking of PTP traffic seems not to work, I tried to install MAC based static lookup rules on the switch I successfully managed to block other non-PTP traffic, but for PTP the lookup table entry (see below) seems not to work. Incoming SYNC messages on port are still for

Re: [PATCH net-next v3 00/12] net: dsa: microchip: PTP support for KSZ956x

2020-11-25 Thread Christian Eggers
I need some help from Microchip, please read below. On Thursday, 19 November 2020, 19:51:15 CET, tristram...@microchip.com wrote: > There is one more requirement that is a little difficult to do. The > calculated peer delay > needs to be programmed in hardware register, but the regular PTP stack

Re: [PATCH net-next v3 00/12] net: dsa: microchip: PTP support for KSZ956x

2020-11-21 Thread Richard Cochran
On Sat, Nov 21, 2020 at 03:26:11AM +0200, Vladimir Oltean wrote: > On Thu, Nov 19, 2020 at 06:51:15PM +, tristram...@microchip.com wrote: > > I think the right implementation is for the driver to remember this receive > > timestamp > > of Pdelay_Req and puts it in the tail tag when it sees a

Re: [PATCH net-next v3 00/12] net: dsa: microchip: PTP support for KSZ956x

2020-11-21 Thread Richard Cochran
On Sat, Nov 21, 2020 at 03:26:11AM +0200, Vladimir Oltean wrote: > On Thu, Nov 19, 2020 at 06:51:15PM +, tristram...@microchip.com wrote: > > The receive and transmit latencies are different for different connected > > speed. So the > > driver needs to change them when the link changes. For

Re: [PATCH net-next v3 00/12] net: dsa: microchip: PTP support for KSZ956x

2020-11-20 Thread Vladimir Oltean
On Thu, Nov 19, 2020 at 06:51:15PM +, tristram...@microchip.com wrote: > The initial proposal in tag_ksz.c is for the switch driver to provide > callback functions > to handle receiving and transmitting. Then each switch driver can be added to > process the tail tag in its own driver and leav

Re: [PATCH net-next v3 00/12] net: dsa: microchip: PTP support for KSZ956x

2020-11-19 Thread Christian Eggers
Hi Tristram, thank you for joining this thread. On Thursday, 19 November 2020, 19:51:15 CET, tristram...@microchip.com wrote: > > On Thursday, 19 November 2020, 00:40:18 CET, Vladimir Oltean wrote: > > > On Wed, Nov 18, 2020 at 09:30:01PM +0100, Christian Eggers wrote: > > > [...] > > [...] > The

RE: [PATCH net-next v3 00/12] net: dsa: microchip: PTP support for KSZ956x

2020-11-19 Thread Tristram.Ha
> On Thursday, 19 November 2020, 00:40:18 CET, Vladimir Oltean wrote: > > On Wed, Nov 18, 2020 at 09:30:01PM +0100, Christian Eggers wrote: > > > This series adds support for PTP to the KSZ956x and KSZ9477 devices. > > > > > > There is only little documentation for PTP available on the data sheet >

Re: [PATCH net-next v3 00/12] net: dsa: microchip: PTP support for KSZ956x

2020-11-18 Thread Christian Eggers
Hi Vladimir, On Thursday, 19 November 2020, 00:40:18 CET, Vladimir Oltean wrote: > On Wed, Nov 18, 2020 at 09:30:01PM +0100, Christian Eggers wrote: > > This series adds support for PTP to the KSZ956x and KSZ9477 devices. > > > > There is only little documentation for PTP available on the data sh

Re: [PATCH net-next v3 00/12] net: dsa: microchip: PTP support for KSZ956x

2020-11-18 Thread Vladimir Oltean
On Wed, Nov 18, 2020 at 09:30:01PM +0100, Christian Eggers wrote: > This series adds support for PTP to the KSZ956x and KSZ9477 devices. > > There is only little documentation for PTP available on the data sheet > [1] (more or less only the register reference). Questions to the > Microchip support

[PATCH net-next v3 00/12] net: dsa: microchip: PTP support for KSZ956x

2020-11-18 Thread Christian Eggers
This series adds support for PTP to the KSZ956x and KSZ9477 devices. There is only little documentation for PTP available on the data sheet [1] (more or less only the register reference). Questions to the Microchip support were seldom answered comprehensively or in reasonable time. So this is more