Re: [PATCH rdma-next 11/15] RDMA/mlx5: Enable relaxed ordering on Memory Window mkey on strict-RO HW

From: Jason Gunthorpe

Date: Tue Aug 11 2026 - 15:33:46 EST


> On hardware that restricts strong-ordering access for memory
> registrations, set relaxed ordering on MW mkeys.
> Without this change, MW allocation mkey creation fails on such HW.
>
> Enabling RO implicitly for users in this case is acceptable since all
> users share the same memory registration restriction, so any MR bound to
> this MW is guaranteed to have relaxed ordering as well.

Are you sure this isn't a FW issue? With a KLM mkey what flags actually take
effect? I would expect the leaf mkey to be the one that provides the actual
in effect flags, not the MW.

If so then the FW shouldn't even be checking the ordering flags on the KLM
creations?

It is harmless either way, but it doesn't seem right.

--
Jason