Skip to content

Commit bfc56ce

Browse files
committed
mlx5: Setup mlx5 vfio context
Setup mlx5 vfio context by using the ioctl API over vfio to read the device initialization segment and other required stuff. As part of that the applicable IOVA ranges are set to be ready for DMA usage and the command interface is initialized. Signed-off-by: Yishai Hadas <[email protected]>
1 parent 9b239d0 commit bfc56ce

File tree

3 files changed

+872
-0
lines changed

3 files changed

+872
-0
lines changed

providers/mlx5/mlx5.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ enum {
7272

7373
enum {
7474
MLX5_ADAPTER_PAGE_SIZE = 4096,
75+
MLX5_ADAPTER_PAGE_SHIFT = 12,
7576
};
7677

7778
#define MLX5_CQ_PREFIX "MLX_CQ"

0 commit comments

Comments
 (0)