NTB: ntb_test: Update ntb_tool MW tests
authorSerge Semin <fancer.lancer@gmail.com>
Wed, 6 Dec 2017 14:32:04 +0000 (17:32 +0300)
committerJon Mason <jdmason@kudzu.us>
Mon, 29 Jan 2018 03:17:24 +0000 (22:17 -0500)
commitfa63be5428ef8756ec583aed0408ddd96109ff28
treee92026cd04c4fc7e08ae4de64da54cd7dd6c747c
parente770112b2dfa38a9481309f0333d84e122c23e2d
NTB: ntb_test: Update ntb_tool MW tests

There are devices (like IDT PCIe switches), which outbound MWs xlat address
is setup on peer side. In this case local side is supposed to allocate
a memory buffer and somehow deliver the xlat DMA address to peer so one
could set the outbound MW up. The MW test is altered so to support both
previous Intel/AMD and new IDT-like devices.

Signed-off-by: Serge Semin <fancer.lancer@gmail.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
tools/testing/selftests/ntb/ntb_test.sh