diff options
author | Dhananjay Phadke <dhananjay@netxen.com> | 2009-09-05 21:43:08 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-07 12:53:06 +0400 |
commit | 6a581e93981e8838c85e407303186faf937830d3 (patch) | |
tree | 3e2f083971fc33d4a3e88e7cc37e346f775d7168 /net/wimax | |
parent | db4cfd8a6149e778befb2ff6e6f91cdc6394cbe6 (diff) | |
download | linux-6a581e93981e8838c85e407303186faf937830d3.tar.xz |
netxen: firmware hang detection
Implement state machine to detect firmware hung state
and recover. Since firmware will be shared by all PCI
functions that have different class drivers (NIC or
FCOE or iSCSI), explicit hardware based serialization
is required for initializing firmware.
o Used global scratchpad register to maintain device
reference count. Every probed pci function adds to
ref count.
o Implement timer (delayed work) for each pci func
that checks firmware heartbit every 5 sec and detaches
itself if firmware is dead. Last detaching function
reloads firmware. Other functions wait for firmware
init, and re-attach themselves.
Heartbit is not supported by NX2031 firmware.
Signed-off-by: Amit Kumar Salecha <amit@netxen.com>
Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/wimax')
0 files changed, 0 insertions, 0 deletions