Skip to contentSkip to conversation

ntb: Correct modinfo usage statement for ntb_perf

PATCH In review Gary R Hook 3 participants 3 messages May 4, 2017 – Jun 9, 2017 NTB driver core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ntb: Correct modinfo usage statement for ntb_perf

The order parameters are powers of 2; adjust the usage information to use correct mathematical representations.

---
 drivers/ntb/test/ntb_perf.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/ntb/test/ntb_perf.c +2 -2
index 9c4a21f1a9d9..42756a98a728 100644
@@ -91,11 +91,11 @@
 
 static unsigned int seg_order = 19; /* 512K */
 module_param(seg_order, uint, 0644);
-MODULE_PARM_DESC(seg_order, "size order [n^2] of buffer segment for testing");
+MODULE_PARM_DESC(seg_order, "size order [2^n] of buffer segment for testing");
 
 static unsigned int run_order = 32; /* 4G */
 module_param(run_order, uint, 0644);
-MODULE_PARM_DESC(run_order, "size order [n^2] of total data to transfer");
+MODULE_PARM_DESC(run_order, "size order [2^n] of total data to transfer");
 
 static bool use_dma; /* default to 0 */
 module_param(use_dma, bool, 0644);
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Gary R Hook

The order parameters are powers of 2; adjust the usage information to use correct mathematical representations.

Quoted 23 lines
---
 drivers/ntb/test/ntb_perf.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/ntb/test/ntb_perf.c +2 -2
index 9c4a21f1a9d9..42756a98a728 100644
@@ -91,11 +91,11 @@
 
 static unsigned int seg_order = 19; /* 512K */
 module_param(seg_order, uint, 0644);
-MODULE_PARM_DESC(seg_order, "size order [n^2] of buffer segment for testing");
+MODULE_PARM_DESC(seg_order, "size order [2^n] of buffer segment for testing");
 
 static unsigned int run_order = 32; /* 4G */
 module_param(run_order, uint, 0644);
-MODULE_PARM_DESC(run_order, "size order [n^2] of total data to transfer");
+MODULE_PARM_DESC(run_order, "size order [2^n] of total data to transfer");
 
 static bool use_dma; /* default to 0 */
 module_param(use_dma, bool, 0644);
maintainer
#2 lore raw
Quoted 8 lines · Dave Jiang
Quoted 4 lines · Gary R Hook

The order parameters are powers of 2; adjust the usage information to use correct mathematical representations.

Sorry, I think I missed this one. Adding to my ntb branch with the following line

Fixes 8a7b6a778a85 ("ntb: ntb perf tool")

This enables the stable kernels it is a bug fix and to pick it up.

Quoted 24 lines
Quoted 24 lines
---
 drivers/ntb/test/ntb_perf.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/ntb/test/ntb_perf.c +2 -2
index 9c4a21f1a9d9..42756a98a728 100644
@@ -91,11 +91,11 @@
 
 static unsigned int seg_order = 19; /* 512K */
 module_param(seg_order, uint, 0644);
-MODULE_PARM_DESC(seg_order, "size order [n^2] of buffer segment for testing");
+MODULE_PARM_DESC(seg_order, "size order [2^n] of buffer segment for testing");
 
 static unsigned int run_order = 32; /* 4G */
 module_param(run_order, uint, 0644);
-MODULE_PARM_DESC(run_order, "size order [n^2] of total data to transfer");
+MODULE_PARM_DESC(run_order, "size order [2^n] of total data to transfer");
 
 static bool use_dma; /* default to 0 */
 module_param(use_dma, bool, 0644);