Re: [PATCH v2 4/4] Added getsynctime64() callback

2015-08-13 Thread Richard Cochran
On Thu, Aug 13, 2015 at 09:10:36PM +, Hall, Christopher S wrote: > > > + if (!cpu_has_art) > > > + return -EOPNOTSUPP; > > > > Perform this check before registration, setting .getsynctime64 > > accordingly. > > The problem here is that ART initialization doesn't happen until we > inst

RE: [PATCH v2 4/4] Added getsynctime64() callback

2015-08-13 Thread Hall, Christopher S
@kernel.org; linux- > ker...@vger.kernel.org; netdev@vger.kernel.org > Subject: Re: [PATCH v2 4/4] Added getsynctime64() callback > > On Fri, Aug 07, 2015 at 04:01:35PM -0700, Christopher Hall wrote: > > --- a/drivers/net/ethernet/intel/e1000e/defines.h > > +++ b/d

Re: [PATCH v2 4/4] Added getsynctime64() callback

2015-08-10 Thread Richard Cochran
On Fri, Aug 07, 2015 at 04:01:35PM -0700, Christopher Hall wrote: > --- a/drivers/net/ethernet/intel/e1000e/defines.h > +++ b/drivers/net/ethernet/intel/e1000e/defines.h > @@ -527,6 +527,13 @@ > #define E1000_RXCW_C 0x2000/* Receive config */ > #define E1000_RXCW_SYNCH 0

[PATCH v2 4/4] Added getsynctime64() callback

2015-08-07 Thread Christopher Hall
Reads ART (TSC correlated clocksource), converts to realtime clock, and reports cross timestamp to PTP driver --- drivers/net/ethernet/intel/e1000e/defines.h | 7 +++ drivers/net/ethernet/intel/e1000e/ptp.c | 88 + drivers/net/ethernet/intel/e1000e/regs.h