]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Delay during kdump load
authorYuval Mintz <Yuval.Mintz@qlogic.com>
Wed, 29 Apr 2015 05:09:49 +0000 (08:09 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Apr 2015 19:49:21 +0000 (15:49 -0400)
commit09bfac4e19a298c7c2c7f8266cf01037d0917e3a
treeb3c990dd9bdda48c0f1eecd97db51ccd7f388f2f
parent5b1cef60403dafca627db65c3b36afbeedecb53d
bnx2x: Delay during kdump load

In a kdump environment interfaces might be re-loaded without a proper
unload sequence in the previous running kernel.
bnx2x management FW and driver maintains a `pulse' that notifies the FW
that the driver is still up and running.

Driver load on the kdump kernel should be performed only after the pulse
has been out-of-sync long enough for the management FW to identify that
the driver has crashed, on which point it will perform some necessary
cleanup of the HW.

In today's distros kdump loading is quite fast, sometimes too fast for our
FW to get out-of-sync. This patch delays the bnx2x's probe during kdump
to allow a proper re-load on the kdump kernel.

Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c