svn commit: r255269 - head/sys/dev/ntb/ntb_hw

Carl Delsey carl at FreeBSD.org
Thu Sep 5 22:52:41 UTC 2013


Author: carl
Date: Thu Sep  5 22:52:40 2013
New Revision: 255269
URL: http://svnweb.freebsd.org/changeset/base/255269

Log:
  Throw a bit to enable the link to come up on Xeon.
  
  Approved by:	jimharris
  Sponsored by:	Intel

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	Thu Sep  5 22:46:48 2013	(r255268)
+++ head/sys/dev/ntb/ntb_hw/ntb_hw.c	Thu Sep  5 22:52:40 2013	(r255269)
@@ -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);
 }


More information about the svn-src-head mailing list