Introduce DEVX to enable direct device commands in downstream patches from this series. In that mode of work the firmware manages the isolation between processes' resources and as such a DEVX user id is created and assigned to the given user context upon allocation request. A capability check is done to make sure that this feature is really supported by the firmware prior to creating the DEVX user id.
Showing the changes to include/uapi (1 of 5 files). Show all
Unified · Split
| @@ -76,6 +76,9 @@ enum mlx5_lib_caps { · 75 unmodified lines | ||
| 76 | 76 | MLX5_LIB_CAP_4K_UAR = (__u64)1 << 0, |
| 77 | 77 | }; |
| 78 | 78 | |
| 79 | +enum mlx5_ib_alloc_uctx_v2_flags { | |
| 80 | + MLX5_IB_ALLOC_UCTX_DEVX = 1 << 0, | |
| 81 | +}; | |
| 79 | 82 | struct mlx5_ib_alloc_ucontext_req_v2 { |
| 80 | 83 | __u32 total_num_bfregs; |
| 81 | 84 | __u32 num_low_latency_bfregs; |