ntb: Add more debugfs support for ntb_perf testing options
authorGary R Hook <gary.hook@amd.com>
Tue, 9 May 2017 14:33:36 +0000 (09:33 -0500)
committerJon Mason <jdmason@kudzu.us>
Thu, 6 Jul 2017 15:30:08 +0000 (11:30 -0400)
commit8407dd6c16c0d92432323c0ce8daecd13e424703
tree85ffee40d04b0a05cd816e2142a2066b140d2ca4
parent0b93a6dbec96be880a3d58a683669b4a75beee1d
ntb: Add more debugfs support for ntb_perf testing options

The ntb_perf tool uses module parameters to control the
characteristics of its test.  Enable the changing of these
options through debugfs, and eliminating the need to unload
and reload the module to make changes and run additional tests.

Add a new module parameter that forces the DMA channel
selection onto the same node as the NTB device (default: true).

 - seg_order: Size of the NTB memory window; power of 2.
 - run_order: Size of the data buffer; power of 2.
 - use_dma:   Use DMA or memcpy? Default: 0.
 - on_node:   Only use DMA channel(s) on the NTB node. Default: true.

Signed-off-by: Gary R Hook <gary.hook@amd.com>
Acked-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/test/ntb_perf.c