summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFrederic Barrat <fbarrat@linux.vnet.ibm.com>2018-05-23 19:25:43 +0200
committerStewart Smith <stewart@linux.ibm.com>2018-06-01 02:07:26 -0500
commit465bc3cac5b6edf533682fbecac3dc9e09a5d6ba (patch)
tree82a82892b514795c23197938339f9763dcd0032b /include
parentbaa4156c71f40dc69c2f65d075e726054dba059d (diff)
downloadblackbird-skiboot-465bc3cac5b6edf533682fbecac3dc9e09a5d6ba.tar.gz
blackbird-skiboot-465bc3cac5b6edf533682fbecac3dc9e09a5d6ba.zip
npu2-opencapi: Train links on fundamental reset
Reorder our link training steps so that they are executed on fundamental reset instead of during the initial setup. Skiboot always call a fundamental reset on all the PHBs during pci init. It is done through a state machine, similarly to what is done for 'real' PHBs. This is the first step for a longer term goal to be able to trigger an adapter reset from linux. We'll need the reset callbacks of the PHB to be defined. We have to handle the various delays differently, since a linux thread shouldn't stay stuck waiting in opal for too long. No functional changes. Signed-off-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com> Acked-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'include')
-rw-r--r--include/npu2.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/npu2.h b/include/npu2.h
index b95e1d3a..eb4af5e6 100644
--- a/include/npu2.h
+++ b/include/npu2.h
@@ -135,6 +135,8 @@ struct npu2_dev {
/* OpenCAPI */
struct phb phb_ocapi;
uint64_t i2c_port_id_ocapi;
+ bool train_need_fence;
+ bool train_fenced;
};
struct npu2 {
OpenPOWER on IntegriCloud