Currently, if the user asks for a real-time timestamp, the device will return a free-running one, and the timestamp will be translated to real-time in the user-space. When the device supports only real-time timestamp and not free-running, the creation of the QP will fail even though the user needs supported the real-time one. To prevent this, we will return the real-time timestamp directly from the device.
Showing the changes to include/uapi (1 of 5 files). Show all
Unified · Split
| @@ -101,6 +101,7 @@ enum mlx5_ib_alloc_ucontext_resp_mask { · 100 unmodified lines | |||
| 101 | MLX5_IB_ALLOC_UCONTEXT_RESP_MASK_CORE_CLOCK_OFFSET = 1UL << 0, | 101 | MLX5_IB_ALLOC_UCONTEXT_RESP_MASK_CORE_CLOCK_OFFSET = 1UL << 0, |
| 102 | MLX5_IB_ALLOC_UCONTEXT_RESP_MASK_DUMP_FILL_MKEY = 1UL << 1, | 102 | MLX5_IB_ALLOC_UCONTEXT_RESP_MASK_DUMP_FILL_MKEY = 1UL << 1, |
| 103 | MLX5_IB_ALLOC_UCONTEXT_RESP_MASK_ECE = 1UL << 2, | 103 | MLX5_IB_ALLOC_UCONTEXT_RESP_MASK_ECE = 1UL << 2, |
| 104 | MLX5_IB_ALLOC_UCONTEXT_RESP_MASK_REAL_TIME_TS = 1UL << 4, | ||
| 104 | }; | 105 | }; |
| 105 | 106 | ||
| 106 | enum mlx5_user_cmds_supp_uhw { | 107 | enum mlx5_user_cmds_supp_uhw { |
| @@ -270,6 +271,7 @@ struct mlx5_ib_query_device_resp { · 163 unmodified lines | |||
| 270 | enum mlx5_ib_create_cq_flags { | 271 | enum mlx5_ib_create_cq_flags { |
| 271 | MLX5_IB_CREATE_CQ_FLAGS_CQE_128B_PAD = 1 << 0, | 272 | MLX5_IB_CREATE_CQ_FLAGS_CQE_128B_PAD = 1 << 0, |
| 272 | MLX5_IB_CREATE_CQ_FLAGS_UAR_PAGE_INDEX = 1 << 1, | 273 | MLX5_IB_CREATE_CQ_FLAGS_UAR_PAGE_INDEX = 1 << 1, |
| 274 | MLX5_IB_CREATE_CQ_FLAGS_REAL_TIME_TS = 1 << 2, | ||
| 273 | }; | 275 | }; |
| 274 | 276 | ||
| 275 | struct mlx5_ib_create_cq { | 277 | struct mlx5_ib_create_cq { |