Lines Matching +full:link +full:- +full:trigger +full:- +full:order
2 # SPDX-License-Identifier: GPL-2.0-or-later
10 DEBUGFS=${DEBUGFS-/sys/kernel/debug}
25 echo "sufficient. Otherwise, if the NTB link spans two hosts"
26 echo "use the -r option to specify the hostname for the remote"
32 echo " -C don't cleanup ntb modules on exit"
33 echo " -h show this help message"
34 echo " -l list available local and remote PCI ids"
35 echo " -r REMOTE_HOST specify the remote's hostname to connect"
37 echo " -m MW_SIZE memory window size for ntb_tool"
39 echo " -d run dma tests for ntb_perf"
40 echo " -p ORDER total data order for ntb_perf"
42 echo " -w MAX_MW_SIZE maxmium memory window size for ntb_perf"
60 echo "Invalid option: -$OPTARG" >&2
68 shift $((OPTIND-1))
72 shift $((OPTIND-1))
77 set -e
126 ssh "$REMOTE" "[[ -e ${VPATH} ]]"
128 [[ -e ${VPATH} ]]
148 if [[ ${PORT} -eq $PEER_PORT ]]; then
182 echo "Running link tests on: $(subdirname $LOC) / $(subdirname $REM)"
184 if ! write_file "N" "$LOC/../link" 2> /dev/null; then
191 if [[ $(read_file "$REM/link") != "N" ]]; then
192 echo "Expected link to be down in $REM/link" >&2
193 exit -1
196 write_file "Y" "$LOC/../link"
215 if [[ "$DB" -ne "$EXP" ]]; then
218 exit -1
244 echo $(ls -1 "$VPATH"/${NAME}* 2>/dev/null | wc -l)
246 echo $(ssh "$REMOTE" "ls -1 \"$VPATH\"/${NAME}* | \
247 wc -l" 2> /dev/null)
260 if [[ $CNT -eq 0 ]]; then
270 if [[ "$VAL" -ne "$RVAL" ]]; then
272 exit -1
288 if [[ $CNT -eq 0 ]]; then
304 if [[ "$VAL" -ne "${RVAL%%<-*}" ]]; then
306 exit -1
317 sed -n "s/^\(${KEY}\)[ \t]*\(0x[0-9a-fA-F]*\)\(\[p\]\)\?$/\2/p"
334 if [[ $MW_SIZE -ne $MW_ALIGNED_SIZE ]]; then
375 cmp -n $MW_ALIGNED_SIZE "$A" "$B"
457 write_file $i $LOC/trigger
460 if [[ $(($END - $START)) != 1 ]]; then
461 echo "MSI did not trigger the interrupt on the remote side!" >&2
484 echo -n " "
490 echo -n " "
494 _modprobe -r ntb_perf
514 #Ensure the link is up on both sides before continuing
530 _modprobe -r ntb_tool
544 _modprobe -r ntb_pingpong
567 _modprobe -r ntb_msi_test
587 _modprobe -r ntb_tool 2> /dev/null
588 _modprobe -r ntb_perf 2> /dev/null
589 _modprobe -r ntb_pingpong 2> /dev/null
590 _modprobe -r ntb_transport 2> /dev/null
591 _modprobe -r ntb_msi_test 2> /dev/null
592 set -e
601 if [ "$(id -u)" != "0" ]; then
608 ls -1 /sys/bus/ntb/devices
613 ssh $REMOTE_HOST ls -1 /sys/bus/ntb/devices