]> bbs.cooldavid.org Git - net-next-2.6.git/commit
bnx2x: Parity errors handling for 57710 and 57711
authorVladislav Zolotarov <vladz@broadcom.com>
Mon, 19 Apr 2010 01:13:12 +0000 (01:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Apr 2010 20:17:05 +0000 (13:17 -0700)
commit72fd0718332e6514fb9db325e89ffc694bb31f6e
tree944305857677a520b4ac33732feb139b52c8af29
parentfc6055a5ba31e2c14e36e8939f9bf2b6d586a7f5
bnx2x: Parity errors handling for 57710 and 57711

This patch introduces the parity errors handling code for 57710 and 57711 chips.

HW is configured to stop all DMA transactions to the host and sending packets to the network
once parity error is detected, which is meant to prevent silent data corruption.
At the same time HW generates the attention interrupt to every function of the device where parity
has been detected so that driver can start the recovery flow.

The recovery is actually resetting the chip and restarting the driver on all active functions
of the chip where the parity error has been reported.

Signed-off-by: Vladislav Zolotarov <vladz@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2x.h
drivers/net/bnx2x_main.c
drivers/net/bnx2x_reg.h