Skip to content

Commit f3fd2af

Browse files
davejiangjonmason
authored andcommitted
ntb: transport shouldn't disable link due to bogus values in SPADs
It seems that under certain scenarios the SPAD can have bogus values caused by an agent (i.e. BIOS or other software) that is not the kernel driver, and that causes memory window setup failure. This should not cause the link to be disabled because if we do that, the driver will never recover again. We have verified in testing that this issue happens and prevents proper link recovery. Signed-off-by: Dave Jiang <[email protected]> Acked-by: Allen Hubbe <[email protected]> Signed-off-by: Jon Mason <[email protected]> Fixes: 84f7668 ("ntb: stop link work when we do not have memory")
1 parent bc240ee commit f3fd2af

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/ntb/ntb_transport.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -924,10 +924,8 @@ static void ntb_transport_link_work(struct work_struct *work)
924924
ntb_free_mw(nt, i);
925925

926926
/* if there's an actual failure, we should just bail */
927-
if (rc < 0) {
928-
ntb_link_disable(ndev);
927+
if (rc < 0)
929928
return;
930-
}
931929

932930
out:
933931
if (ntb_link_is_up(ndev, NULL, NULL) == 1)

0 commit comments

Comments
 (0)