ntb_perf: increase sleep time from one milli sec to one sec
authorSanjay R Mehta <sanju.mehta@amd.com>
Wed, 6 May 2020 04:21:51 +0000 (23:21 -0500)
committerJon Mason <jdmason@kudzu.us>
Sat, 6 Jun 2020 00:02:08 +0000 (20:02 -0400)
After trying to send commands for a maximum of MSG_TRIES
re-tries, link-up fails due to short sleep time(1ms) between
re-tries. Hence increasing the sleep time to one second providing
sufficient time for perf link-up.

Signed-off-by: Sanjay R Mehta <sanju.mehta@amd.com>
Signed-off-by: Arindam Nath <arindam.nath@amd.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/test/ntb_perf.c

index b4e3f6e..f159e2f 100644 (file)
@@ -101,8 +101,8 @@ MODULE_DESCRIPTION("PCIe NTB Performance Measurement Tool");
 #define DMA_MDELAY             10
 
 #define MSG_TRIES              1000
-#define MSG_UDELAY_LOW         1000
-#define MSG_UDELAY_HIGH                2000
+#define MSG_UDELAY_LOW         1000000
+#define MSG_UDELAY_HIGH                2000000
 
 #define PERF_BUF_LEN 1024