summaryrefslogtreecommitdiffstats
path: root/drivers/ntb
diff options
context:
space:
mode:
authorSanjay R Mehta <sanju.mehta@amd.com>2020-05-05 23:21:51 -0500
committerJon Mason <jdmason@kudzu.us>2020-06-05 20:02:08 -0400
commitd7699665773b6afc14d4eef82bb3ef50467a9353 (patch)
tree8fa065d4fee3e9aed0e7797f30a6edc99ce9245b /drivers/ntb
parent433efe720674efd9fdbcef78be75793393cf05db (diff)
downloadlinux-stable-d7699665773b6afc14d4eef82bb3ef50467a9353.tar.gz
linux-stable-d7699665773b6afc14d4eef82bb3ef50467a9353.tar.bz2
linux-stable-d7699665773b6afc14d4eef82bb3ef50467a9353.zip
ntb_perf: increase sleep time from one milli sec to one sec
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>
Diffstat (limited to 'drivers/ntb')
-rw-r--r--drivers/ntb/test/ntb_perf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ntb/test/ntb_perf.c b/drivers/ntb/test/ntb_perf.c
index b4e3f6e41320..f159e2fa5be9 100644
--- a/drivers/ntb/test/ntb_perf.c
+++ b/drivers/ntb/test/ntb_perf.c
@@ -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