]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7237347debf4f73c1cbe7ad4de54cac4ffbc7be7
tree5f443d6aafe32729363f65f2035bea6d892b0763
parent01f2d3b088061969c8b8784ea81647d32b5b519f
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