IB/mlx5: Mmap the HCA's core clock register to user-space
authorMatan Barak <matanb@mellanox.com>
Tue, 15 Dec 2015 18:30:13 +0000 (20:30 +0200)
committerDoug Ledford <dledford@redhat.com>
Thu, 24 Dec 2015 04:25:59 +0000 (23:25 -0500)
commitd69e3bcf79764ed833e0cc6e0645dc87589cec22
tree5f443d6aafe32729363f65f2035bea6d892b0763
parentb368d7cb8ceb77f481b066bd8be5fada82da7301
IB/mlx5: Mmap the HCA's core clock register to user-space

In order to read the HCA's current cycles register, we need
to map it to user-space. Add support to map this register
via mmap command.

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