svn commit: r289609 - head/sys/dev/ntb/ntb_hw
Conrad E. Meyer
cem at FreeBSD.org
Tue Oct 20 01:45:58 UTC 2015
Author: cem
Date: Tue Oct 20 01:45:57 2015
New Revision: 289609
URL: https://svnweb.freebsd.org/changeset/base/289609
Log:
NTB: Pull copy of soc_link_is_err out of recover_soc_link
Sponsored by: EMC / Isilon Storage Division
Modified:
head/sys/dev/ntb/ntb_hw/ntb_hw.c
Modified: head/sys/dev/ntb/ntb_hw/ntb_hw.c
==============================================================================
--- head/sys/dev/ntb/ntb_hw/ntb_hw.c Tue Oct 20 01:45:48 2015 (r289608)
+++ head/sys/dev/ntb/ntb_hw/ntb_hw.c Tue Oct 20 01:45:57 2015 (r289609)
@@ -1759,12 +1759,7 @@ recover_soc_link(void *arg)
status32 = arc4random() % SOC_LINK_RECOVERY_TIME;
pause("Link", (SOC_LINK_RECOVERY_TIME + status32) * hz / 1000);
- status32 = ntb_reg_read(4, SOC_LTSSMSTATEJMP_OFFSET);
- if ((status32 & SOC_LTSSMSTATEJMP_FORCEDETECT) != 0)
- goto retry;
-
- status32 = ntb_reg_read(4, SOC_IBSTERRRCRVSTS0_OFFSET);
- if ((status32 & SOC_IBIST_ERR_OFLOW) != 0)
+ if (soc_link_is_err(ntb))
goto retry;
status32 = ntb_reg_read(4, ntb->reg->ntb_ctl);
More information about the svn-src-all
mailing list