Re: [Linuxptp-devel] linuxptp filter architure

2019-09-23 Thread Miroslav Lichvar
On Fri, Sep 20, 2019 at 04:39:06PM +, Stuart Venters wrote: > To support separate filtering and give the filter access to everything it > needs, I think what I would like to see is the following refactoring and see > how it works out: > > Change the argument list for filter_create to add

Re: [Linuxptp-devel] [Linuxptp-users] How do I implement Sync message receive timeout according to Automotive and 802.1 AS profiles?

2019-09-23 Thread Y.b. Lu
Hi Richard, That's great to see this discussion. I'm working on the TAB implementation too. What I didn’t see in the discussion is how to synchronize gPTP time with free-running clock. As I understand, 802.1AS uses free-running clock and corresponding timestamping, but maintains synchronized

Re: [Linuxptp-devel] [Linuxptp-users] How do I implement Sync message receive timeout according to Automotive and 802.1 AS profiles?

2019-09-23 Thread Richard Cochran
On Mon, Sep 23, 2019 at 04:17:02AM +, Y.b. Lu wrote: > May I have your suggestion here? To maintain gPTP time in software, > I just copied kernel timecounter code into linuxptp for usage. Why? That sounds wrong. Thanks, Richard ___

Re: [Linuxptp-devel] [Linuxptp-users] How do I implement Sync message receive timeout according to Automotive and 802.1 AS profiles?

2019-09-23 Thread Richard Cochran
On Mon, Sep 23, 2019 at 04:17:02AM +, Y.b. Lu wrote: > BTW, I have another problem. Usually hardware has a 1588 PHC clock > which is shared by Qbv/Qci for TSN. We are facing problem that > 802.1AS requires free-running clock which TSN requires synchronized > PHC. Right. If you want to use

Re: [Linuxptp-devel] linuxptp filter architure

2019-09-23 Thread Richard Cochran
On Mon, Sep 23, 2019 at 08:31:30PM +, Stuart Venters wrote: > The remaining part appears to be figuring out how to turn off the all the > kernel packet timestamping help. > Also, turning off the /dev/ptp0 stuff. > > > Thoughts? Sounds like a great step backwards. Really. I didn't quite

Re: [Linuxptp-devel] linuxptp filter architure

2019-09-23 Thread Jagmeet Singh Hanspal
Very nice read. But some points: The rethinking of old-decisions w.r.t. new info may not be valid as the time to apply them is long gone since the conditions under which those decisions were made. Maybe the local clock was actually leading or lagging behind at that time, which might not be the

Re: [Linuxptp-devel] [Linuxptp-users] How do I implement Sync message receive timeout according to Automotive and 802.1 AS profiles?

2019-09-23 Thread Y.b. Lu
Hi Richard, > -Original Message- > From: Richard Cochran > Sent: Tuesday, September 24, 2019 2:28 AM > To: Y.b. Lu > Cc: Андрей Иванов ; rodney.greenstr...@gmail.com; > erik.h...@ni.com; linuxptp-devel@lists.sourceforge.net > Subject: Re: [Linuxptp-devel] [Linuxptp-users] How do I

Re: [Linuxptp-devel] linuxptp filter architure

2019-09-23 Thread Stuart Venters
Richard, Miroslav, Thanks for the response. Yes definitely, tsproc instead of port.c, not sure what I was thinking. I'm glad I asked. I'm trying to figure out how to fit an experiment into LinuxPtp and end up with as much as possible worth pushing back up. It looks like the dual filters are