Repository navigation
UCT/IB: Fix RC provider bandwidth query isolation - #12338
Conversation
Limit provider queries to bandwidth when native endpoint attributes are also requested. Clarify internal cancellation ownership and WQE range semantics, and group the provider lookup declaration with the extension interface. Add focused RC coverage for mixed queries, bandwidth fallback, and endpoint event registration.
|
🤖 Starting review — findings will be posted here when done. |
| @@ -9,7 +9,6 @@ | |||
| #endif | |||
|
|
|||
| #include "ib_mlx5_ext.h" | |||
There was a problem hiding this comment.
ib_mlx5.h was the only include that pulled in <string.h>, and the file still calls strncmp(). It compiles only because uct_iface.h → ucs/arch/cpu.h → <arch>/cpu.h includes <string.h> on every supported arch.
minor: pls add #include <string.h> here; ib_mlx5.h was providing it for the strncmp() call in uct_ib_mlx5_ext_unregister().
| #include "ib_mlx5_ext.h" | |
| #include "ib_mlx5_ext.h" | |
| #include <string.h> |
|
Residual coverage gap (not blocking): the tests install the hook by overwriting |
|
🤖 Starting review — findings will be posted here when done. |
|
🤖 CI Triage Agent — TL;DR: The Full analysisSummary: Build 145199, job Root cause: Not a product failure — no checkout, build, or test step ever executed (the whole job log is 12 lines, start to finish in ~1 second). Implicated commit: a25f47e — Alexey Rivkin, "AZP: Full workspace cleanup to fix checkout failures - master (#11136)" (introduced File: Suggested fix:
Related: #11136 (added full workspace cleanup to jucx job), #11030 and bcd935d (prior jucx checkout/workspace fixes); no existing open issue found for this exact
|
| */ | ||
| ucs_status_t uct_ib_mlx5_ext_register(const uct_ib_mlx5_ext_ops_t *ops); | ||
|
|
||
| const uct_rc_mlx5_ext_ops_t *uct_ib_mlx5_ext_get_rc_provider(void); |
There was a problem hiding this comment.
minor: pls add a doxygen comment (and maybe put it next to the RC ops section), every other prototype in this header is documented.
| uct_rc_mlx5_ext_ops_t ops = {}; | ||
| uct_rc_mlx5_tx_token_t tx_token = {}; | ||
| uct_ep_attr_t attr = {}; | ||
| ucs::handle<uct_rc_mlx5_iface_common_t*, const uct_rc_mlx5_ext_ops_t*> |
There was a problem hiding this comment.
minor: the same ucs::handle<...> ext_ops save/restore block is now duplicated in both tests — pls move it to a small fixture helper.
|
Residual coverage gap: Residual coverage gap (previously reported, unchanged): no gtest goes through |
|
🤖 Starting review — findings will be posted here when done. |
| UCT_RC_MLX5_BASE_EP_DECL(tl_ep, iface, ep); | ||
| uct_ep_attr_t result = {.field_mask = ep_attr->field_mask}; | ||
| uct_ep_attr_t result = {.field_mask = ep_attr->field_mask & | ||
| UCT_EP_ATTR_FIELD_BANDWIDTH}; |
There was a problem hiding this comment.
pls also document this in the ep_query hook comment in ib_mlx5_ext.h — that it is always called with only UCT_EP_ATTR_FIELD_BANDWIDTH set, so a provider can rely on it instead of guessing from the mask. The new provider-visible contract is asserted by the gtest but not stated in the hook documentation, whose current text only says "Requested attributes and provider-owned outputs"; providers cannot rely on an undocumented invariant.
| */ | ||
| ucs_status_t uct_ib_mlx5_ext_register(const uct_ib_mlx5_ext_ops_t *ops); | ||
|
|
||
| const uct_rc_mlx5_ext_ops_t *uct_ib_mlx5_ext_get_rc_provider(void); |
There was a problem hiding this comment.
minor: pls add a doxygen comment like the other registry functions above (uct_ib_mlx5_ext_cleanup, _unregister, _register), noting it returns the rc_ops of the first plugin which provides them, or NULL. The selection rule is not obvious from the name.
|
Residual coverage gap (not raised inline, previously reported and unchanged): no gtest exercises |
|
🤖 CI Triage Agent — TL;DR: The gtest run failed on a single case, Full analysisSummary: Root cause: The log tail (only the last ~500 lines are retained by Azure's log fetch, and the failing case ran much earlier in the ~3165 s run) shows the failure summary but not the assertion text. From the sources, Implicated commit: Not this PR's commits (89067e7 / 708af17, Roie Danino — RC provider query/bandwidth isolation). The implicated behavior comes from 15e2185, dmitrygx — "UCT/IB/MLX5/RC: Complete SGL op with ep error status on peer failure (#12205)". File: test/gtest/uct/test_peer_failure.cc:1634 (assertion), test case at test/gtest/uct/test_peer_failure.cc:1868 Suggested fix: Re-trigger the "Tests new on worker 3" job — this failure is unrelated to the RC provider query change in PR #12338. If it reproduces, fix it in the SGL peer-failure path rather than in this PR: either guarantee in rc_mlx5 that a failed SGL chain is completed with the endpoint error status before the flush/purge can cancel it, or relax the test to accept the purge outcome, e.g. Related: #12205 (added the asserted behavior), #12338 (this PR), #12162 (RC plugin hooks) |
|
🤖 CI Triage Agent — Summary: Unable to fetch logs — cannot diagnose without them.
|
What?
Fix the attribute mask sent to RC provider bandwidth queries. Move the provider lookup declaration into the extension header.
Why?
A combined bandwidth and TX-token query can cause a bandwidth-only provider to reject the request and lose its cached sample.
Follow-up to #12162.