mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-30 16:51:41 +00:00
NTB: Pull copy of soc_link_is_err out of recover_soc_link
Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
e638b59556
commit
2d53c202a1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=289609
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user