Skip to content

Commit bc47870

Browse files
Huy Nguyengregkh
authored andcommitted
net/mlx5: Take only bit 24-26 of wqe.pftype_wq for page fault type
[ Upstream commit a48bc51 ] The HW spec defines only bits 24-26 of pftype_wq as the page fault type, use the required mask to ensure that. Fixes: d9aaed8 ("{net,IB}/mlx5: Refactor page fault handling") Signed-off-by: Huy Nguyen <huyn@mellanox.com> Signed-off-by: Eli Cohen <eli@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 1d50b74 commit bc47870

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • drivers/net/ethernet/mellanox/mlx5/core

drivers/net/ethernet/mellanox/mlx5/core/eq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ static void eq_pf_process(struct mlx5_eq *eq)
262262
case MLX5_PFAULT_SUBTYPE_WQE:
263263
/* WQE based event */
264264
pfault->type =
265-
be32_to_cpu(pf_eqe->wqe.pftype_wq) >> 24;
265+
(be32_to_cpu(pf_eqe->wqe.pftype_wq) >> 24) & 0x7;
266266
pfault->token =
267267
be32_to_cpu(pf_eqe->wqe.token);
268268
pfault->wqe.wq_num =

0 commit comments

Comments
 (0)