Linux PCI Non-Transparent Bridge framework and drivers
 help / color / mirror / Atom feed
From: Jon Mason <jdmason@kudzu.us>
To: Logan Gunthorpe <logang@deltatee.com>
Cc: Allen Hubbe <Allen.Hubbe@dell.com>, linux-ntb@googlegroups.com
Subject: Re: [PATCH 2/2] NTB: ntb_test: add parameter for doorbell bitmask
Date: Tue, 10 Jan 2017 16:45:18 -0500	[thread overview]
Message-ID: <20170110214518.GA13381@kudzu.us> (raw)
In-Reply-To: <ccae681c-e5f6-2018-af1b-517170717773@deltatee.com>

On Tue, Dec 27, 2016 at 05:17:07PM -0700, Logan Gunthorpe wrote:
> Ditto.
> 
> Acked-by: Logan Gunthorpe <logang@deltatee.com>
> 
> On 27/12/16 05:12 PM, Allen Hubbe wrote:
> > If the test attempts to clear doorbell bits that are invalid for the
> > hardware, then the test will fail.  Provide a parameter to specify the
> > doorbell bits to clear.  Set default doorbell bits that work for XEON.
> > 
> > Signed-off-by: Allen Hubbe <Allen.Hubbe@dell.com>

Applied to my ntb tree

Thanks,
Jon

> > ---
> >  tools/testing/selftests/ntb/ntb_test.sh | 7 +++++--
> >  1 file changed, 5 insertions(+), 2 deletions(-)
> > 
> > diff --git a/tools/testing/selftests/ntb/ntb_test.sh b/tools/testing/selftests/ntb/ntb_test.sh
> > index 4e70e19255bc..d25b91b2ee2e 100755
> > --- a/tools/testing/selftests/ntb/ntb_test.sh
> > +++ b/tools/testing/selftests/ntb/ntb_test.sh
> > @@ -18,6 +18,7 @@ LIST_DEVS=FALSE
> >  
> >  DEBUGFS=${DEBUGFS-/sys/kernel/debug}
> >  
> > +DB_BITMASK=0x7FFF
> >  PERF_RUN_ORDER=32
> >  MAX_MW_SIZE=0
> >  RUN_DMA_TESTS=
> > @@ -38,6 +39,7 @@ function show_help()
> >  	echo "be highly recommended."
> >  	echo
> >  	echo "Options:"
> > +	echo "  -b BITMASK      doorbell clear bitmask for ntb_tool"
> >  	echo "  -C              don't cleanup ntb modules on exit"
> >  	echo "  -d              run dma tests"
> >  	echo "  -h              show this help message"
> > @@ -52,8 +54,9 @@ function show_help()
> >  function parse_args()
> >  {
> >  	OPTIND=0
> > -	while getopts "Cdhlm:r:p:w:" opt; do
> > +	while getopts "b:Cdhlm:r:p:w:" opt; do
> >  		case "$opt" in
> > +		b)  DB_BITMASK=${OPTARG} ;;
> >  		C)  DONT_CLEANUP=1 ;;
> >  		d)  RUN_DMA_TESTS=1 ;;
> >  		h)  show_help; exit 0 ;;
> > @@ -158,7 +161,7 @@ function doorbell_test()
> >  
> >  	echo "Running db tests on: $(basename $LOC) / $(basename $REM)"
> >  
> > -	write_file "c 0xFFFFFFFF" "$REM/db"
> > +	write_file "c $DB_BITMASK" "$REM/db"
> >  
> >  	for ((i=1; i <= 8; i++)); do
> >  		let DB=$(read_file "$REM/db") || true
> > 

  reply	other threads:[~2017-01-10 21:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-28  0:12 [PATCH 1/2] NTB: ntb_test: modprobe on remote host Allen Hubbe
2016-12-28  0:12 ` [PATCH 2/2] NTB: ntb_test: add parameter for doorbell bitmask Allen Hubbe
2016-12-28  0:17   ` Logan Gunthorpe
2017-01-10 21:45     ` Jon Mason [this message]
2016-12-28  0:16 ` [PATCH 1/2] NTB: ntb_test: modprobe on remote host Logan Gunthorpe
2017-01-10 21:51   ` Jon Mason

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170110214518.GA13381@kudzu.us \
    --to=jdmason@kudzu.us \
    --cc=Allen.Hubbe@dell.com \
    --cc=linux-ntb@googlegroups.com \
    --cc=logang@deltatee.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox