IB/mlx5: Add hca_core_clock_offset to udata in init_ucontext
authorMatan Barak <matanb@mellanox.com>
Tue, 15 Dec 2015 18:30:12 +0000 (20:30 +0200)
committerDoug Ledford <dledford@redhat.com>
Thu, 24 Dec 2015 04:25:59 +0000 (23:25 -0500)
commitb368d7cb8ceb77f481b066bd8be5fada82da7301
treedcbb13dfff86700faf16307623573f8989e43fe6
parent7c60bcbb68122b39fe3e92143abce01be75f3fa6
IB/mlx5: Add hca_core_clock_offset to udata in init_ucontext

Pass hca_core_clock_offset to user-space is mandatory in order to
let the user-space read the free-running clock register from the
right offset in the memory mapped page.
Passing this value is done by changing the vendor's command
and response of init_ucontext to be in extensible form.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Reviewed-by: Moshe Lazer <moshel@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/user.h
include/linux/mlx5/device.h