Re: [PATCH net] enetc: Advance the taprio base time in the future

2020-11-24 Thread Jakub Kicinski
On Tue, 24 Nov 2020 21:00:04 + Vladimir Oltean wrote: > On Tue, Nov 24, 2020 at 09:58:12AM -0800, Jakub Kicinski wrote: > > > This is the right way for calculation. For the ENETC, hardware also > > > do the same calculation before send to Operation State Machine. > > > For some TSN IP, like Fe

Re: [PATCH net] enetc: Advance the taprio base time in the future

2020-11-24 Thread Vladimir Oltean
On Tue, Nov 24, 2020 at 09:58:12AM -0800, Jakub Kicinski wrote: > > This is the right way for calculation. For the ENETC, hardware also > > do the same calculation before send to Operation State Machine. > > For some TSN IP, like Felix and DesignWare TSN in RT1170 and IMX8MP > > require the baseti

Re: [PATCH net] enetc: Advance the taprio base time in the future

2020-11-24 Thread Jakub Kicinski
On Tue, 24 Nov 2020 02:40:29 + Po Liu wrote: > > The tc-taprio base time indicates the beginning of the tc-taprio schedule, > > which is cyclic by definition (where the length of the cycle in nanoseconds > > is called the cycle time). The base time is a 64-bit PTP time in the TAI > > domain. >

RE: [PATCH net] enetc: Advance the taprio base time in the future

2020-11-23 Thread Po Liu
Hi Vladimir, > -Original Message- > From: Vladimir Oltean > Sent: 2020年11月24日 9:20 > To: Jakub Kicinski ; netdev@vger.kernel.org; Po Liu > ; Claudiu Manoil > Cc: Vinicius Costa Gomes > Subject: [PATCH net] enetc: Advance the taprio base time in the future > &

[PATCH net] enetc: Advance the taprio base time in the future

2020-11-23 Thread Vladimir Oltean
The tc-taprio base time indicates the beginning of the tc-taprio schedule, which is cyclic by definition (where the length of the cycle in nanoseconds is called the cycle time). The base time is a 64-bit PTP time in the TAI domain. Logically, the base-time should be a future time. But that imposes