Patch "IB/mlx5: Fix fatal error dispatching" has been added to the 4.4-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
IB/mlx5: Fix fatal error dispatching
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
ib-mlx5-fix-fatal-error-dispatching.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
dbaaff2a2caa03d472b5cc53a3fbfd415c97dc26Mon Sep 17 00:00:00 2001
From: Eli Cohen <[email protected]>
Date: Thu, 27 Oct 2016 16:36:44 +0300
Subject: IB/mlx5: Fix fatal error dispatching
From: Eli Cohen <[email protected]>
commit dbaaff2a2caa03d472b5cc53a3fbfd415c97dc26 upstream.
When an internal error condition is detected, make sure to set the device inactive after dispatching the event so ULPs can get a notification of this event.
--- drivers/infiniband/hw/mlx5/main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/infiniband/hw/mlx5/main.c +5 -2
@@ -947,13 +947,13 @@ static void mlx5_ib_event(struct mlx5_co {struct mlx5_ib_dev *ibdev = (struct mlx5_ib_dev *)context;struct ib_event ibev; - +bool fatal = false;u8 port =0 ;switch (event) {case MLX5_DEV_EVENT_SYS_ERROR : - ibdev->ib_active = false; ibev.event =IB_EVENT_DEVICE_FATAL ; + fatal = true;break ;case MLX5_DEV_EVENT_PORT_UP :
@@ -998,6 +998,9 @@ static void mlx5_ib_event(struct mlx5_coif (ibdev->ib_active)ib_dispatch_event (&ibev); + +if (fatal) + ibdev->ib_active = false; }static void get_ext_port_caps (struct mlx5_ib_dev *dev)
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/ib-mlx5-fix-fatal-error-dispatching.patch