Skip to content

Commit

Permalink
npu2-opencapi: Configure NPU for OpenCAPI
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ajdlinux authored and stewartsmith committed Mar 2, 2018
1 parent 3603f47 commit b5f1fd3
Show file tree
Hide file tree
Showing 7 changed files with 927 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 2 additions & 0 deletions hw/Makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ HW_OBJS += phb3.o sfc-ctrl.o fake-rtc.o bt.o p8-i2c.o prd.o
HW_OBJS += dts.o lpc-rtc.o npu.o npu-hw-procedures.o xive.o phb4.o
HW_OBJS += fake-nvram.o lpc-mbox.o npu2.o npu2-hw-procedures.o
HW_OBJS += npu2-common.o phys-map.o sbe-p9.o capp.o occ-sensor.o vas.o
HW_OBJS += npu2-common.o npu2-opencapi.o phys-map.o sbe-p9.o capp.o occ-sensor.o
HW_OBJS += vas.o
HW=hw/built-in.a

# FIXME hack this for now
Expand Down

0 comments on commit b5f1fd3

Please sign in to comment.