diff options
| author | Matan Barak <matanb@mellanox.com> | 2015-12-15 13:30:11 -0500 |
|---|---|---|
| committer | Doug Ledford <dledford@redhat.com> | 2015-12-23 23:25:59 -0500 |
| commit | 7c60bcbb68122b39fe3e92143abce01be75f3fa6 (patch) | |
| tree | dc2b61432d3c977071115f5e32ce0084be382b35 /drivers | |
| parent | 301a721e1fcb890afc29997f46de9561686ed391 (diff) | |
IB/mlx5: Add support for hca_core_clock and timestamp_mask
Reporting the hca_core_clock (in kHZ) and the timestamp_mask in
query_device extended verb. timestamp_mask is used by users in order
to know what is the valid range of the raw timestamps, while
hca_core_clock reports the clock frequency that is used for
timestamps.
Signed-off-by: Matan Barak <matanb@mellanox.com>
Reviewed-by: Moshe Lazer <moshel@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/infiniband/hw/mlx5/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c index 22ae0939b20e..2d7fac53214f 100644 --- a/drivers/infiniband/hw/mlx5/main.c +++ b/drivers/infiniband/hw/mlx5/main.c | |||
| @@ -503,6 +503,8 @@ static int mlx5_ib_query_device(struct ib_device *ibdev, | |||
| 503 | props->max_total_mcast_qp_attach = props->max_mcast_qp_attach * | 503 | props->max_total_mcast_qp_attach = props->max_mcast_qp_attach * |
| 504 | props->max_mcast_grp; | 504 | props->max_mcast_grp; |
| 505 | props->max_map_per_fmr = INT_MAX; /* no limit in ConnectIB */ | 505 | props->max_map_per_fmr = INT_MAX; /* no limit in ConnectIB */ |
| 506 | props->hca_core_clock = MLX5_CAP_GEN(mdev, device_frequency_khz); | ||
| 507 | props->timestamp_mask = 0x7FFFFFFFFFFFFFFFULL; | ||
| 506 | 508 | ||
| 507 | #ifdef CONFIG_INFINIBAND_ON_DEMAND_PAGING | 509 | #ifdef CONFIG_INFINIBAND_ON_DEMAND_PAGING |
| 508 | if (MLX5_CAP_GEN(mdev, pg)) | 510 | if (MLX5_CAP_GEN(mdev, pg)) |
