aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ntb
diff options
context:
space:
mode:
authorCarl Delsey <carl@FreeBSD.org>2013-09-05 22:52:40 +0000
committerCarl Delsey <carl@FreeBSD.org>2013-09-05 22:52:40 +0000
commit12c5baf9f54407ab57d85f3f6c82814261745c8f (patch)
tree18da132ac73111f321ed798feba03401a437dddf /sys/dev/ntb
parentd43c0fbae12cc28866fcf0681edea56c7f7b66a8 (diff)
Notes
Diffstat (limited to 'sys/dev/ntb')
-rw-r--r--sys/dev/ntb/ntb_hw/ntb_hw.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/ntb/ntb_hw/ntb_hw.c b/sys/dev/ntb/ntb_hw/ntb_hw.c
index 2f1d65d41c53..cf5eb637f836 100644
--- a/sys/dev/ntb/ntb_hw/ntb_hw.c
+++ b/sys/dev/ntb/ntb_hw/ntb_hw.c
@@ -637,6 +637,10 @@ ntb_setup_xeon(struct ntb_softc *ntb)
/* Enable Bus Master and Memory Space on the secondary side */
ntb_write_2(ntb->reg_ofs.spci_cmd,
PCIM_CMD_MEMEN | PCIM_CMD_BUSMASTEREN);
+
+ /* Enable link training */
+ ntb_write_4(ntb->reg_ofs.lnk_cntl,
+ NTB_CNTL_BAR23_SNOOP | NTB_CNTL_BAR45_SNOOP);
return (0);
}