diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-07-14 16:31:52 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-07-14 16:31:52 -0400 |
| commit | ccd5d1b91f22351b55feb6fdee504cb84d97752f (patch) | |
| tree | c85966f14a3c1efbb2379a3697b00d43937e20b2 /tools/testing | |
| parent | 4d25ec19669292a65a32498eabdabdd32b1a8747 (diff) | |
| parent | 854b1dd9c39d8c8c8647a44de47ef18506ae11f9 (diff) | |
Merge tag 'ntb-4.13' of git://github.com/jonmason/ntb
Pull NTB updates from Jon Mason:
"The major change in the series is a rework of the NTB infrastructure
to all for IDT hardware to be supported (and resulting fallout from
that). There are also a few clean-ups, etc.
New IDT NTB driver and changes to the NTB infrastructure to allow for
this different kind of NTB HW, some style fixes (per Greg KH
recommendation), and some ntb_test tweaks"
* tag 'ntb-4.13' of git://github.com/jonmason/ntb:
ntb_netdev: set the net_device's parent
ntb: Add error path/handling to Debug FS entry creation
ntb: Add more debugfs support for ntb_perf testing options
ntb: Remove debug-fs variables from the context structure
ntb: Add a module option to control affinity of DMA channels
NTB: Add IDT 89HPESxNTx PCIe-switches support
ntb_hw_intel: Style fixes: open code macros that just obfuscate code
ntb_hw_amd: Style fixes: open code macros that just obfuscate code
NTB: Add ntb.h comments
NTB: Add PCIe Gen4 link speed
NTB: Add new Memory Windows API documentation
NTB: Add Messaging NTB API
NTB: Alter Scratchpads API to support multi-ports devices
NTB: Alter MW API to support multi-ports devices
NTB: Alter link-state API to support multi-port devices
NTB: Add indexed ports NTB API
NTB: Make link-state API being declared first
NTB: ntb_test: add parameter for doorbell bitmask
NTB: ntb_test: modprobe on remote host
Diffstat (limited to 'tools/testing')
| -rwxr-xr-x | tools/testing/selftests/ntb/ntb_test.sh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/testing/selftests/ntb/ntb_test.sh b/tools/testing/selftests/ntb/ntb_test.sh index 13f5198ba0ee..1c12b5855e4f 100755 --- a/tools/testing/selftests/ntb/ntb_test.sh +++ b/tools/testing/selftests/ntb/ntb_test.sh | |||
| @@ -18,6 +18,7 @@ LIST_DEVS=FALSE | |||
| 18 | 18 | ||
| 19 | DEBUGFS=${DEBUGFS-/sys/kernel/debug} | 19 | DEBUGFS=${DEBUGFS-/sys/kernel/debug} |
| 20 | 20 | ||
| 21 | DB_BITMASK=0x7FFF | ||
| 21 | PERF_RUN_ORDER=32 | 22 | PERF_RUN_ORDER=32 |
| 22 | MAX_MW_SIZE=0 | 23 | MAX_MW_SIZE=0 |
| 23 | RUN_DMA_TESTS= | 24 | RUN_DMA_TESTS= |
| @@ -38,6 +39,7 @@ function show_help() | |||
| 38 | echo "be highly recommended." | 39 | echo "be highly recommended." |
| 39 | echo | 40 | echo |
| 40 | echo "Options:" | 41 | echo "Options:" |
| 42 | echo " -b BITMASK doorbell clear bitmask for ntb_tool" | ||
| 41 | echo " -C don't cleanup ntb modules on exit" | 43 | echo " -C don't cleanup ntb modules on exit" |
| 42 | echo " -d run dma tests" | 44 | echo " -d run dma tests" |
| 43 | echo " -h show this help message" | 45 | echo " -h show this help message" |
| @@ -52,8 +54,9 @@ function show_help() | |||
| 52 | function parse_args() | 54 | function parse_args() |
| 53 | { | 55 | { |
| 54 | OPTIND=0 | 56 | OPTIND=0 |
| 55 | while getopts "Cdhlm:r:p:w:" opt; do | 57 | while getopts "b:Cdhlm:r:p:w:" opt; do |
| 56 | case "$opt" in | 58 | case "$opt" in |
| 59 | b) DB_BITMASK=${OPTARG} ;; | ||
| 57 | C) DONT_CLEANUP=1 ;; | 60 | C) DONT_CLEANUP=1 ;; |
| 58 | d) RUN_DMA_TESTS=1 ;; | 61 | d) RUN_DMA_TESTS=1 ;; |
| 59 | h) show_help; exit 0 ;; | 62 | h) show_help; exit 0 ;; |
| @@ -85,6 +88,10 @@ set -e | |||
| 85 | function _modprobe() | 88 | function _modprobe() |
| 86 | { | 89 | { |
| 87 | modprobe "$@" | 90 | modprobe "$@" |
| 91 | |||
| 92 | if [[ "$REMOTE_HOST" != "" ]]; then | ||
| 93 | ssh "$REMOTE_HOST" modprobe "$@" | ||
| 94 | fi | ||
| 88 | } | 95 | } |
| 89 | 96 | ||
| 90 | function split_remote() | 97 | function split_remote() |
| @@ -154,7 +161,7 @@ function doorbell_test() | |||
| 154 | 161 | ||
| 155 | echo "Running db tests on: $(basename $LOC) / $(basename $REM)" | 162 | echo "Running db tests on: $(basename $LOC) / $(basename $REM)" |
| 156 | 163 | ||
| 157 | write_file "c 0xFFFFFFFF" "$REM/db" | 164 | write_file "c $DB_BITMASK" "$REM/db" |
| 158 | 165 | ||
| 159 | for ((i=1; i <= 8; i++)); do | 166 | for ((i=1; i <= 8; i++)); do |
| 160 | let DB=$(read_file "$REM/db") || true | 167 | let DB=$(read_file "$REM/db") || true |
