]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r301293:
authormav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 15 Jun 2016 01:42:53 +0000 (01:42 +0000)
committermav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 15 Jun 2016 01:42:53 +0000 (01:42 +0000)
commitff57724f157711538d4ebc2b69f872e9049226d2
tree5d7119d54d2b6e00af1fe83267699478dc859d9f
parent925d80671d41605139a95e05b049c2bffc9872f8
MFC r301293:
When negotiating NTB_SB01BASE_LOCKUP workaround, don't try to limit the
BAR size to 1MB.  According to Xeon v3 specifications and my tests, that
size register is write-once and so not writeable after BIOS written it.

Instead of that, make the code work with BAR of any sufficient size,
properly calculating offset within its base.  It also simplifies the code.

Sponsored by: iXsystems, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@301904 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/ntb/ntb_hw/ntb_hw.c