summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/emulex/benet/be_hw.h
diff options
context:
space:
mode:
authorSuresh Reddy <suresh.reddy@broadcom.com>2017-05-24 22:24:38 -0400
committerDavid S. Miller <davem@davemloft.net>2017-05-25 14:44:49 -0400
commit673c96e5af99b6f8eab3ce37afa11cb28c14cf2f (patch)
tree9f56f8e36b98d0305b3173d2834018da6a2c8abe /drivers/net/ethernet/emulex/benet/be_hw.h
parent2baec2c3f854d1f79c7bb28386484e144e864a14 (diff)
downloadlinux-673c96e5af99b6f8eab3ce37afa11cb28c14cf2f.tar.bz2
be2net: Fix UE detection logic for BE3
On certain platforms BE3 chips may indicate spurious UEs (unrecoverable error). Because of the UE detection logic was disabled in the driver for BE3 chips. Because of this, even in cases of a real UE, a failover will not occur. This patch re-enables UE detection on BE3 and if a UE is detected, reads the POST register. If the POST register, reports either a FAT_LOG_STATE or a ARMFW_UE, then it means that a valid UE occurred in the chip. Signed-off-by: Suresh Reddy <suresh.reddy@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/emulex/benet/be_hw.h')
-rw-r--r--drivers/net/ethernet/emulex/benet/be_hw.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_hw.h b/drivers/net/ethernet/emulex/benet/be_hw.h
index 36e4232ed6b8..c967f45705d9 100644
--- a/drivers/net/ethernet/emulex/benet/be_hw.h
+++ b/drivers/net/ethernet/emulex/benet/be_hw.h
@@ -49,6 +49,9 @@
#define POST_STAGE_BE_RESET 0x3 /* Host wants to reset chip */
#define POST_STAGE_ARMFW_RDY 0xc000 /* FW is done with POST */
#define POST_STAGE_RECOVERABLE_ERR 0xE000 /* Recoverable err detected */
+/* FW has detected a UE and is dumping FAT log data */
+#define POST_STAGE_FAT_LOG_START 0x0D00
+#define POST_STAGE_ARMFW_UE 0xF000 /*FW has asserted an UE*/
/* Lancer SLIPORT registers */
#define SLIPORT_STATUS_OFFSET 0x404