OSDN Git Service

be2net: Fix UE detection logic for BE3
authorSuresh Reddy <suresh.reddy@broadcom.com>
Thu, 25 May 2017 02:24:38 +0000 (22:24 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 May 2017 18:44:49 +0000 (14:44 -0400)
commit673c96e5af99b6f8eab3ce37afa11cb28c14cf2f
tree9f56f8e36b98d0305b3173d2834018da6a2c8abe
parent2baec2c3f854d1f79c7bb28386484e144e864a14
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>
drivers/net/ethernet/emulex/benet/be_hw.h
drivers/net/ethernet/emulex/benet/be_main.c