Skip to content

Commit d769966

Browse files
Sanjay R Mehtajonmason
authored andcommitted
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>
1 parent 433efe7 commit d769966

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/ntb/test/ntb_perf.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ MODULE_DESCRIPTION("PCIe NTB Performance Measurement Tool");
101101
#define DMA_MDELAY 10
102102

103103
#define MSG_TRIES 1000
104-
#define MSG_UDELAY_LOW 1000
105-
#define MSG_UDELAY_HIGH 2000
104+
#define MSG_UDELAY_LOW 1000000
105+
#define MSG_UDELAY_HIGH 2000000
106106

107107
#define PERF_BUF_LEN 1024
108108

0 commit comments

Comments
 (0)