Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/uct/ib/mlx5/dv/ib_mlx5_dv.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,16 @@ ucs_status_t uct_ib_mlx5_devx_create_qp_common(uct_ib_iface_t *iface,
uct_ib_mlx5_devx_uar_t *uar;
ucs_status_t status;
void *qpc;
uint64_t bf_size = 0;

uct_ib_iface_fill_attr(iface, &attr->super);

if (md->flags & UCT_IB_MLX5_MD_FLAG_UAR_USE_WC) {
bf_size = UCT_IB_MLX5_BF_REG_SIZE;
}

status = uct_ib_mlx5_get_mmio_mode(iface->super.worker, attr->mmio_mode, 0,
UCT_IB_MLX5_BF_REG_SIZE, &mmio_mode);
bf_size, &mmio_mode);
if (status != UCS_OK) {
goto err;
}
Expand Down
5 changes: 5 additions & 0 deletions src/uct/ib/mlx5/rc/rc_mlx5_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,11 @@ uct_rc_mlx5_iface_common_dm_init(uct_rc_mlx5_iface_common_t *iface,
goto fallback;
}

if (!(uct_ib_mlx5_iface_md(&rc_iface->super)->flags &
UCT_IB_MLX5_MD_FLAG_UAR_USE_WC)) {
goto fallback;
}

iface->dm.dm = uct_worker_tl_data_get(iface->super.super.super.worker,
UCT_IB_MLX5_WORKER_DM_KEY,
uct_mlx5_dm_data_t,
Expand Down
Loading