Skip to content

UCT/MLX5: Add put fence for DDP - #10658

Merged
roiedanino merged 4 commits into
openucx:masterfrom
Artemy-Mellanox:topic/ddp_fence
Jun 28, 2026
Merged

roiedanino merged 4 commits into
openucx:masterfrom
Artemy-Mellanox:topic/ddp_fence

Conversation

@Artemy-Mellanox

@Artemy-Mellanox Artemy-Mellanox commented Apr 28, 2025 •

Copy link
Copy Markdown
Contributor

What?

Add strong ordering flag for fenced RDMA write operations.

Why?

Stuck of UCT put perf test show that RDMA write operations may be reordered on CX8 HW.

Comment thread src/uct/ib/mlx5/rc/rc_mlx5_common.c Resolved

uct_rc_mlx5_ep_fence_put(iface, &ep->tx.wq, &rkey, &remote_addr,
ep->super.atomic_mr_offset);
ep->super.atomic_mr_offset, &fm_ce_se);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i would say uct_rc_mlx5_ep_fence_put should set (and not update) the value of fm_ce_se, so it is more clear.
and pass fm_ce_se|MLX5_WQE_CTRL_CQ_UPDATE to uct_rc_mlx5_base_ep_zcopy_post below

Comment thread src/uct/ib/mlx5/rc/rc_mlx5_iface.c Resolved
nbellalou
nbellalou previously approved these changes Feb 1, 2026
@roiedanino

Copy link
Copy Markdown
Contributor

@yosefe can we merge this one?

@roiedanino roiedanino self-assigned this Feb 17, 2026

@yosefe yosefe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we also need to update Verbs transports to set ordering flags?

Comment thread src/uct/ib/mlx5/rc/rc_mlx5.inl Resolved
Comment thread src/uct/ib/mlx5/rc/rc_mlx5_common.c Resolved
Comment thread src/uct/ib/mlx5/rc/rc_mlx5_common.c Resolved
@openucx openucx deleted a comment from svc-nixl May 4, 2026
@gleon99

gleon99 commented May 21, 2026

Copy link
Copy Markdown
Contributor

@roiedanino as discussed, please prepare this PR for merging, update when done.

gleon99
gleon99 previously approved these changes Jun 4, 2026
@gleon99
gleon99 enabled auto-merge (squash) June 4, 2026 12:01
@yosefe

yosefe commented Jun 4, 2026

Copy link
Copy Markdown
Member

@svc-nvidia-pr-review

@svc-nvidia-pr-review

Copy link
Copy Markdown

🤖 Starting review — findings will be posted here when done.

@svc-nvidia-pr-review svc-nvidia-pr-review left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

4 findings — ⚠️ 2 minors, ℹ️ 2 infos

4 findings posted as inline comments.

Comment thread src/uct/ib/mlx5/rc/rc_mlx5_iface.c Resolved
Comment thread src/uct/ib/mlx5/rc/rc_mlx5_iface.c Resolved
Comment thread src/uct/ib/mlx5/gga/gga_mlx5.c Resolved
Comment thread src/uct/ib/mlx5/dc/dc_mlx5_ep.c Resolved
Comment thread src/uct/ib/mlx5/gga/gga_mlx5.c Resolved
Comment thread src/uct/ib/mlx5/gga/gga_mlx5.c Resolved
Comment thread src/uct/ib/mlx5/rc/rc_mlx5.inl Resolved
Comment thread src/uct/ib/mlx5/rc/rc_mlx5_ep.c Resolved
Comment thread src/uct/ib/mlx5/dc/dc_mlx5_ep.c Resolved
Comment thread src/uct/ib/mlx5/rc/rc_mlx5_iface.c Resolved
gleon99
gleon99 previously approved these changes Jun 7, 2026

@gleon99 gleon99 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼 all comments resolved.

@gleon99

gleon99 commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

@roiedanino as discussed please check branch/commits range issue

Signed-off-by: Roie Danino <rdanino@nvidia.com>
@roiedanino
roiedanino enabled auto-merge (squash) June 24, 2026 06:56
@roiedanino

Copy link
Copy Markdown
Contributor

@yosefe @gleon99 I need another approval after fixing comments and CI issues

@roiedanino
roiedanino requested review from gleon99 and yosefe June 24, 2026 06:57
@roiedanino
roiedanino merged commit 827c995 into openucx:master Jun 28, 2026
160 checks passed
roiedanino added a commit to roiedanino/ucx that referenced this pull request Jun 29, 2026
* UCT/MLX5: Add put fence for DDP

* UCT/MLX5: Add put fence for DDP - 2

* UCT/IB/MLX5: fix CR comments

Signed-off-by: Roie Danino <rdanino@nvidia.com>

---------

Signed-off-by: Roie Danino <rdanino@nvidia.com>
Co-authored-by: Roie Danino <rdanino@nvidia.com>
(cherry picked from commit 827c995)
gleon99 pushed a commit that referenced this pull request Jun 30, 2026
UCT/MLX5: Add put fence for DDP (#10658)

* UCT/MLX5: Add put fence for DDP

* UCT/MLX5: Add put fence for DDP - 2

* UCT/IB/MLX5: fix CR comments



---------



(cherry picked from commit 827c995)

Signed-off-by: Roie Danino <rdanino@nvidia.com>
Co-authored-by: Artemy Kovalyov <artemyko@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants