aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorMichael Chan <[email protected]>2021-02-14 23:04:57 +0000
committerDavid S. Miller <[email protected]>2021-02-15 01:27:50 +0000
commitdab62e7c2de7b035c928a8babee27a6127891fdf (patch)
tree3ab86a6f6e95d588de82befb8019d1838832234a /net/switchdev/switchdev.c
parentbnxt_en: selectively allocate context memories (diff)
downloadkernel-dab62e7c2de7b035c928a8babee27a6127891fdf.tar.gz
kernel-dab62e7c2de7b035c928a8babee27a6127891fdf.zip
bnxt_en: Implement faster recovery for firmware fatal error.
During some fatal firmware error conditions, the PCI config space register 0x2e which normally contains the subsystem ID will become 0xffff. This register will revert back to the normal value after the chip has completed core reset. If we detect this condition, we can poll this config register immediately for the value to revert. Because we use config read cycles to poll this register, there is no possibility of Master Abort if we happen to read it during core reset. This speeds up recovery significantly as we don't have to wait for the conservative min_time before polling MMIO to see if the firmware has come out of reset. As soon as this register changes value we can proceed to re-initialize the device. Reviewed-by: Edwin Peer <[email protected]> Reviewed-by: Vasundhara Volam <[email protected]> Reviewed-by: Andy Gospodarek <[email protected]> Signed-off-by: Michael Chan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions