aboutsummaryrefslogtreecommitdiff
path: root/hw/npu2-opencapi.c
diff options
context:
space:
mode:
authorFrederic Barrat <fbarrat@linux.ibm.com>2018-06-05 12:27:32 +0200
committerStewart Smith <stewart@linux.ibm.com>2018-06-18 22:13:06 -0500
commit94140dbc6a9cafd868609567f944349a1ed5cfe4 (patch)
tree7655c37abcdeb54fc32d6d56eec68cc6ed812c23 /hw/npu2-opencapi.c
parentdc24a1fd61e0b3fbceb1027b2c458bde0257fb38 (diff)
downloadskiboot-94140dbc6a9cafd868609567f944349a1ed5cfe4.zip
skiboot-94140dbc6a9cafd868609567f944349a1ed5cfe4.tar.gz
skiboot-94140dbc6a9cafd868609567f944349a1ed5cfe4.tar.bz2
npu2-opencapi: reduce number of retries to train the link
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>
Diffstat (limited to 'hw/npu2-opencapi.c')
-rw-r--r--hw/npu2-opencapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/npu2-opencapi.c b/hw/npu2-opencapi.c
index 3465d70..d085cd1 100644
--- a/hw/npu2-opencapi.c
+++ b/hw/npu2-opencapi.c
@@ -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