Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Sep 2013 22:52:40 +0000 (UTC)
From:      Carl Delsey <carl@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r255269 - head/sys/dev/ntb/ntb_hw
Message-ID:  <201309052252.r85Mqetm073205@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309052252.r85Mqetm073205>