Commit d7699665 authored by Sanjay R Mehta's avatar Sanjay R Mehta Committed by Jon Mason

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: default avatarSanjay R Mehta <sanju.mehta@amd.com>
Signed-off-by: default avatarArindam Nath <arindam.nath@amd.com>
Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
parent 433efe72
...@@ -101,8 +101,8 @@ MODULE_DESCRIPTION("PCIe NTB Performance Measurement Tool"); ...@@ -101,8 +101,8 @@ MODULE_DESCRIPTION("PCIe NTB Performance Measurement Tool");
#define DMA_MDELAY 10 #define DMA_MDELAY 10
#define MSG_TRIES 1000 #define MSG_TRIES 1000
#define MSG_UDELAY_LOW 1000 #define MSG_UDELAY_LOW 1000000
#define MSG_UDELAY_HIGH 2000 #define MSG_UDELAY_HIGH 2000000
#define PERF_BUF_LEN 1024 #define PERF_BUF_LEN 1024
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment