Skip to content

Commit

Permalink
npu2-opencapi: reduce number of retries to train the link
Browse files Browse the repository at this point in the history
We've been reliably training the opencapi link on the first attempt
for quite a while. Furthermore, if it doesn't train on the first
attempt, retries haven't been that useful. So let's reduce the number
of attempts we do to train the link.

2 retries = 3 attempts to train.

Each (failed) training sequence costs about 3 seconds.

Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com>
Acked-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
  • Loading branch information
fbarrat authored and stewartsmith committed Jun 19, 2018
1 parent dc24a1f commit 94140db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/npu2-opencapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
#define OCAPI_SLOT_FRESET_DEASSERT_DELAY (OCAPI_SLOT_FRESET + 4)
#define OCAPI_SLOT_FRESET_INIT_DELAY (OCAPI_SLOT_FRESET + 5)

#define OCAPI_LINK_TRAINING_RETRIES 5
#define OCAPI_LINK_TRAINING_RETRIES 2
#define OCAPI_LINK_TRAINING_TIMEOUT 3000 /* ms */
#define OCAPI_LINK_STATE_TRAINED 0x7

Expand Down

0 comments on commit 94140db

Please sign in to comment.