From 9d449363899711766e6075b578a2321101946aa1 Mon Sep 17 00:00:00 2001 From: Patrisious Haddad Date: Mon, 9 Sep 2024 13:47:47 +0300 Subject: [PATCH] mlx5: Fix mlx5_sig_err output for sig_type and domain Fix mlx5_sig_err output for sig_type and domain to include only 3 bits value, following the device specification. Fixes: 6b8e6de03482 ("mlx5: Handling of signature error") Signed-off-by: Patrisious Haddad Reviewed-by: Sergey Gorenko Signed-off-by: Yishai Hadas --- providers/mlx5/cq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/providers/mlx5/cq.c b/providers/mlx5/cq.c index 32d5938fc..73bde7261 100644 --- a/providers/mlx5/cq.c +++ b/providers/mlx5/cq.c @@ -691,8 +691,8 @@ static inline void get_sig_err_info(struct mlx5_sigerr_cqe *cqe, err->actual = (uint64_t)be32toh(cqe->actual_trans_sig) << 32 | be32toh(cqe->actual_ref_tag); err->offset = be64toh(cqe->sig_err_offset); - err->sig_type = cqe->sig_type; - err->domain = cqe->domain; + err->sig_type = cqe->sig_type & 0x7; + err->domain = cqe->domain & 0x7; } static inline int is_odp_pfault_err(struct mlx5_err_cqe *ecqe)