• Gary R Hook's avatar
    ntb: Add more debugfs support for ntb_perf testing options · 8407dd6c
    Gary R Hook authored
    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: default avatarGary R Hook <gary.hook@amd.com>
    Acked-by: default avatarDave Jiang <dave.jiang@intel.com>
    Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
    8407dd6c
ntb_perf.c 20.6 KB