linux_dsm_epyc7002/drivers/infiniband/hw
Arnd Bergmann f8109d9e7d infiniband: cxgb4: use ktime_get for timestamps
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>
Acked-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2017-12-13 11:00:13 -07:00
..
bnxt_re RDMA/bnxt_re: Remove redundant bnxt_qplib_disable_nq() call 2017-12-13 10:35:31 -07:00
cxgb3 Updates for 4.15 kernel merge window 2017-11-15 14:54:53 -08:00
cxgb4 infiniband: cxgb4: use ktime_get for timestamps 2017-12-13 11:00:13 -07:00
hfi1 IB/hfi1: Use 4096 for default active MTU in query_qp 2017-12-11 16:19:40 -07:00
hns RDMA/hns: Modify the usage of cmd_sn in hip08 2017-11-10 12:32:43 -05:00
i40iw i40iw: Reinitialize add_sd_cnt 2017-12-11 16:19:44 -07:00
mlx4 IB/mlx4: Add CQ moderation capability to query_device 2017-11-13 16:59:22 -05:00
mlx5 IB/mlx5: revisit -Wmaybe-uninitialized warning 2017-12-11 16:19:44 -07:00
mthca treewide: setup_timer() -> timer_setup() (2 field) 2017-11-21 15:57:09 -08:00
nes nes: remove unused 'timeval' struct member 2017-12-11 16:19:42 -07:00
ocrdma IB/ocrdma_hw: remove unnecessary code in ocrdma_mbx_dealloc_lkey 2017-11-13 16:18:33 -05:00
qedr Updates for 4.15 kernel merge window 2017-11-15 14:54:53 -08:00
qib IB/qib: Cleanup qib_set_part_key() with direct returns 2017-12-11 16:19:41 -07:00
usnic Updates for 4.15 kernel merge window 2017-11-15 14:54:53 -08:00
vmw_pvrdma RDMA/vmw_pvrdma: Do not re-calculate npages 2017-12-11 16:19:42 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00