svn commit: r323844 - stable/11/sys/dev/ntb/ntb_hw
Alexander Motin
mav at FreeBSD.org
Thu Sep 21 07:35:24 UTC 2017
Author: mav
Date: Thu Sep 21 07:35:22 2017
New Revision: 323844
URL: https://svnweb.freebsd.org/changeset/base/323844
Log:
MFC r323575: Add second entry to LUT on a link side in B2B mode.
Each of two entries on a virtual side should have its counterpart on a
peer's link side.
Modified:
stable/11/sys/dev/ntb/ntb_hw/ntb_hw_plx.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/dev/ntb/ntb_hw/ntb_hw_plx.c
==============================================================================
--- stable/11/sys/dev/ntb/ntb_hw/ntb_hw_plx.c Thu Sep 21 05:46:28 2017 (r323843)
+++ stable/11/sys/dev/ntb/ntb_hw/ntb_hw_plx.c Thu Sep 21 07:35:22 2017 (r323844)
@@ -197,8 +197,8 @@ ntb_plx_init(device_t dev)
}
}
- /* Enable Link Interface LUT entry 0 for 0:0.0. */
- PNTX_WRITE(sc, 0xdb4, 1);
+ /* Enable Link Interface LUT entries 0/1 for peer 0/1. */
+ PNTX_WRITE(sc, 0xdb4, 0x00090001);
}
/*
@@ -631,13 +631,12 @@ ntb_plx_mw_set_trans_internal(device_t dev, unsigned m
val64 = 0;
if (size > 0)
val64 = (~(size - 1) & ~0xfffff);
- val64 |= 0x4;
+ val64 |= 0xc;
PNTX_WRITE(sc, 0xe8 + (mw->mw_bar - 2) * 4, val64);
PNTX_WRITE(sc, 0xe8 + (mw->mw_bar - 2) * 4 + 4, val64 >> 32);
/* Set Link Interface BAR address. */
val64 = 0x2000000000000000 * mw->mw_bar + off;
- val64 |= 0x4;
PNTX_WRITE(sc, PCIR_BAR(mw->mw_bar), val64);
PNTX_WRITE(sc, PCIR_BAR(mw->mw_bar) + 4, val64 >> 32);
}
More information about the svn-src-stable
mailing list