Skip to content

Commit

Permalink
mlx5: Fix mlx5_sig_err output for sig_type and domain
Browse files Browse the repository at this point in the history
[ Upstream commit 9d44936 ]

Fix mlx5_sig_err output for sig_type and domain to include only 3 bits
value, following the device specification.

Fixes: 6b8e6de ("mlx5: Handling of signature error")
Signed-off-by: Patrisious Haddad <phaddad@nvidia.com>
Reviewed-by: Sergey Gorenko <sergeygo@nvidia.com>
Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Signed-off-by: Nicolas Morey <nmorey@suse.com>
  • Loading branch information
PatrisiousHaddad authored and nmorey committed Sep 16, 2024
1 parent 723f81c commit 0131708
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions providers/mlx5/cq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0131708

Please sign in to comment.