diff options
author | Dave Olson <dave.olson@qlogic.com> | 2008-04-17 00:09:25 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-04-17 00:09:25 -0400 |
commit | 72708a0a2b60e83255631f2557a85ac7daf33fac (patch) | |
tree | ba0b26fe6842240ed90cecd2fb741dc4c9f82908 /drivers/infiniband/hw/ipath/ipath_kernel.h | |
parent | a51a2513a8cb201f02d83c37e106909938d2f761 (diff) |
IB/ipath: HW workaround for case where chip can send but not receive
Workaround a QLE7140 problem that in rare cases causes flow control
problems after link recovery by forcing a link retrain after recovery.
A module parameter is provided to control the behavior in case it causes
problems.
Signed-off-by: Dave Olson <dave.olson@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/ipath/ipath_kernel.h')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_kernel.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_kernel.h b/drivers/infiniband/hw/ipath/ipath_kernel.h index 960d5b7e7865..b8b81cb745b9 100644 --- a/drivers/infiniband/hw/ipath/ipath_kernel.h +++ b/drivers/infiniband/hw/ipath/ipath_kernel.h | |||
@@ -309,6 +309,7 @@ struct ipath_devdata { | |||
309 | ipath_err_t ipath_lasthwerror; | 309 | ipath_err_t ipath_lasthwerror; |
310 | /* errors masked because they occur too fast */ | 310 | /* errors masked because they occur too fast */ |
311 | ipath_err_t ipath_maskederrs; | 311 | ipath_err_t ipath_maskederrs; |
312 | u64 ipath_lastlinkrecov; /* link recoveries at last ACTIVE */ | ||
312 | /* time in jiffies at which to re-enable maskederrs */ | 313 | /* time in jiffies at which to re-enable maskederrs */ |
313 | unsigned long ipath_unmasktime; | 314 | unsigned long ipath_unmasktime; |
314 | /* count of egrfull errors, combined for all ports */ | 315 | /* count of egrfull errors, combined for all ports */ |
@@ -1099,6 +1100,7 @@ dma_addr_t ipath_map_single(struct pci_dev *, void *, size_t, int); | |||
1099 | #endif | 1100 | #endif |
1100 | 1101 | ||
1101 | extern unsigned ipath_debug; /* debugging bit mask */ | 1102 | extern unsigned ipath_debug; /* debugging bit mask */ |
1103 | extern unsigned ipath_linkrecovery; | ||
1102 | extern unsigned ipath_mtu4096; | 1104 | extern unsigned ipath_mtu4096; |
1103 | 1105 | ||
1104 | #define IPATH_MAX_PARITY_ATTEMPTS 10000 /* max times to try recovery */ | 1106 | #define IPATH_MAX_PARITY_ATTEMPTS 10000 /* max times to try recovery */ |