diff options
author | Michael Guralnik <michaelgur@nvidia.com> | 2025-07-09 09:42:10 +0300 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2025-07-13 03:14:14 -0400 |
commit | fcfb03597b7d7737aac6bdfda1f7b5d152cfed73 (patch) | |
tree | c88c1b57eaf687b3e97e80809f62469d3383ff6a /kernel/locking/rtmutex_api.c | |
parent | 9879bddf5ab47ad3d889d31ca7550605a4207dba (diff) |
RDMA/mlx5: Align mkc page size capability check to PRM
Align the capabilities checked when using the log_page_size 6th bit in the
mkey context to the PRM definition. The upper and lower bounds are set by
max/min caps, and modification of the 6th bit by UMR is allowed only when
a specific UMR cap is set.
Current implementation falsely assumes all page sizes up-to 2^63 are
supported when the UMR cap is set. In case the upper bound cap is lower
than 63, this might result a FW syndrome on mkey creation, e.g:
mlx5_core 0000:c1:00.0: mlx5_cmd_out_err:832:(pid 0): CREATE_MKEY(0×200) op_mod(0×0) failed, status bad parameter(0×3), syndrome (0×38a711), err(-22)
Previous cap enforcement is still correct for all current HW, FW and
driver combinations. However, this patch aligns the code to be PRM
compliant in the general case.
Signed-off-by: Michael Guralnik <michaelgur@nvidia.com>
Link: https://patch.msgid.link/eab4eeb4785105a4bb5eb362dc0b3662cd840412.1751979184.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'kernel/locking/rtmutex_api.c')
0 files changed, 0 insertions, 0 deletions