From: "Steve Wise" <swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
To: 'Jason Gunthorpe' <jgg-uk2M96/98Pc@public.gmane.org>,
'Arnd Bergmann' <arnd-r2nGTMty4D4@public.gmane.org>
Cc: 'Steve Wise' <swise-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org>,
'Doug Ledford' <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
'Bharat Potnuri' <bharat-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org>,
'Leon Romanovsky' <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
'Ganesh Goudar'
<ganeshgr-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org>,
linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: RE: [PATCH] infiniband: cxgb4: use ktime_get for timestamps
Date: Mon, 11 Dec 2017 17:02:36 -0600 [thread overview]
Message-ID: <06fc01d372d4$22bbe9d0$6833bd70$@opengridcomputing.com> (raw)
In-Reply-To: <20171211225620.GB7551-uk2M96/98Pc@public.gmane.org>
> Subject: Re: [PATCH] infiniband: cxgb4: use ktime_get for timestamps
>
> On Mon, Nov 27, 2017 at 12:44:53PM +0100, Arnd Bergmann wrote:
> > The debugfs file prints the difference between host timestamps as a
> > seconds/nanoseconds tuple, along with a 64-bit nanoseconds hardware
> > timestamp. The host time is read using getnstimeofday() which is
> > deprecated because of the y2038 overflow, and it suffers from time jumps
> > during settimeofday() and leap seconds.
> >
> > Converting to ktime_get_ts64() would solve those two, but I'm going
> > a little further here by changing to ktime_get() and printing 64-bit
> > nanoseconds on both host and hw timestamps. This simplifies the code
> > further and makes the output easier to understand.
> >
> > The format of the debugfs file obviously changes here, but this should
> > only be read by humans and not scripts, so I assume it's fine.
> >
> > Signed-off-by: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>
> > drivers/infiniband/hw/cxgb4/device.c | 34
+++++++++++++++-------------------
> > drivers/infiniband/hw/cxgb4/iw_cxgb4.h | 4 ++--
> > drivers/infiniband/hw/cxgb4/qp.c | 6 +++---
> > drivers/infiniband/hw/cxgb4/t4.h | 4 ++--
> > 4 files changed, 22 insertions(+), 26 deletions(-)
>
> Steve? This changes the format of the debugfs files, so please ack it
> if it is Ok..
>
I apologize for missing this patch initially. I think this is fine.
Acked-by: Steve Wise <swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
---
This email has been checked for viruses by AVG.
http://www.avg.com
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
WARNING: multiple messages have this Message-ID (diff)
From: "Steve Wise" <swise@opengridcomputing.com>
To: "'Jason Gunthorpe'" <jgg@ziepe.ca>, "'Arnd Bergmann'" <arnd@arndb.de>
Cc: "'Steve Wise'" <swise@chelsio.com>,
"'Doug Ledford'" <dledford@redhat.com>,
"'Bharat Potnuri'" <bharat@chelsio.com>,
"'Leon Romanovsky'" <leon@kernel.org>,
"'Ganesh Goudar'" <ganeshgr@chelsio.com>,
<linux-rdma@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: RE: [PATCH] infiniband: cxgb4: use ktime_get for timestamps
Date: Mon, 11 Dec 2017 17:02:36 -0600 [thread overview]
Message-ID: <06fc01d372d4$22bbe9d0$6833bd70$@opengridcomputing.com> (raw)
In-Reply-To: <20171211225620.GB7551@ziepe.ca>
> Subject: Re: [PATCH] infiniband: cxgb4: use ktime_get for timestamps
>
> On Mon, Nov 27, 2017 at 12:44:53PM +0100, Arnd Bergmann wrote:
> > The debugfs file prints the difference between host timestamps as a
> > seconds/nanoseconds tuple, along with a 64-bit nanoseconds hardware
> > timestamp. The host time is read using getnstimeofday() which is
> > deprecated because of the y2038 overflow, and it suffers from time jumps
> > during settimeofday() and leap seconds.
> >
> > Converting to ktime_get_ts64() would solve those two, but I'm going
> > a little further here by changing to ktime_get() and printing 64-bit
> > nanoseconds on both host and hw timestamps. This simplifies the code
> > further and makes the output easier to understand.
> >
> > The format of the debugfs file obviously changes here, but this should
> > only be read by humans and not scripts, so I assume it's fine.
> >
> > Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> > drivers/infiniband/hw/cxgb4/device.c | 34
+++++++++++++++-------------------
> > drivers/infiniband/hw/cxgb4/iw_cxgb4.h | 4 ++--
> > drivers/infiniband/hw/cxgb4/qp.c | 6 +++---
> > drivers/infiniband/hw/cxgb4/t4.h | 4 ++--
> > 4 files changed, 22 insertions(+), 26 deletions(-)
>
> Steve? This changes the format of the debugfs files, so please ack it
> if it is Ok..
>
I apologize for missing this patch initially. I think this is fine.
Acked-by: Steve Wise <swise@opengridcomputing.com>
---
This email has been checked for viruses by AVG.
http://www.avg.com
next prev parent reply other threads:[~2017-12-11 23:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-27 11:44 [PATCH] infiniband: cxgb4: use ktime_get for timestamps Arnd Bergmann
2017-11-27 11:44 ` Arnd Bergmann
[not found] ` <20171127114518.2662754-1-arnd-r2nGTMty4D4@public.gmane.org>
2017-12-11 22:56 ` Jason Gunthorpe
2017-12-11 22:56 ` Jason Gunthorpe
[not found] ` <20171211225620.GB7551-uk2M96/98Pc@public.gmane.org>
2017-12-11 23:02 ` Steve Wise [this message]
2017-12-11 23:02 ` Steve Wise
2017-12-13 18:19 ` Jason Gunthorpe
2017-12-13 18:19 ` Jason Gunthorpe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='06fc01d372d4$22bbe9d0$6833bd70$@opengridcomputing.com' \
--to=swise-7bpotxp6k4+p2yhjcf5u+vpxobypeauw@public.gmane.org \
--cc=arnd-r2nGTMty4D4@public.gmane.org \
--cc=bharat-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org \
--cc=dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=ganeshgr-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org \
--cc=jgg-uk2M96/98Pc@public.gmane.org \
--cc=leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=swise-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.