summaryrefslogtreecommitdiffstats
path: root/core/init.c
diff options
context:
space:
mode:
authorAndrew Donnellan <andrew.donnellan@au1.ibm.com>2018-03-01 18:57:13 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2018-03-01 20:17:54 -0600
commitb5f1fd30ef56290a6171c79b71bbecb3516e7cf7 (patch)
tree87c747623ea75d9e7ad3d84a00ab4375a24fa751 /core/init.c
parent3603f474e56693d7fcf9c41aa1cb83c4f127aefb (diff)
downloadtalos-skiboot-b5f1fd30ef56290a6171c79b71bbecb3516e7cf7.tar.gz
talos-skiboot-b5f1fd30ef56290a6171c79b71bbecb3516e7cf7.zip
npu2-opencapi: Configure NPU for OpenCAPI
Scan the device tree for NPUs with OpenCAPI links and configure the NPU per the initialisation sequence in the NPU OpenCAPI workbook. Training of individual links and setup of per-AFU/link configuration will be in a later patch. Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Signed-off-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com> Reviewed-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/init.c')
-rw-r--r--core/init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/init.c b/core/init.c
index 1d6ce70d..a60b7843 100644
--- a/core/init.c
+++ b/core/init.c
@@ -1072,6 +1072,8 @@ void __noreturn __nomcount main_cpu_entry(const void *fdt)
/* Probe NPUs */
probe_npu();
probe_npu2();
+ /* TODO: Eventually, we'll do NVLink and OpenCAPI together */
+ probe_npu2_opencapi();
/* Initialize PCI */
pci_init_slots();
OpenPOWER on IntegriCloud