diff options
author | Frederic Barrat <fbarrat@linux.ibm.com> | 2019-07-09 17:05:58 +0200 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2019-07-15 13:48:33 +1000 |
commit | 4cfc2f773ad55fe23d6d322bf1ccec6a0c0091f7 (patch) | |
tree | f1e3ff68c4500bbb6e2b1bd76429edf09945086e /hdata | |
parent | ff81d0d13683904fb3be126b9fbd46a3f97e7062 (diff) | |
download | skiboot-4cfc2f773ad55fe23d6d322bf1ccec6a0c0091f7.zip skiboot-4cfc2f773ad55fe23d6d322bf1ccec6a0c0091f7.tar.gz skiboot-4cfc2f773ad55fe23d6d322bf1ccec6a0c0091f7.tar.bz2 |
npu2-opencapi: Add opencapi support on ZZ
This patch adds opencapi support on ZZ. It hard-codes the required
device tree entries for the NPU and links. The alternative was to use
HDAT, but it somehow proved too painful to do.
The new device tree entries activate the npu2 init code on ZZ. On
systems with no opencapi adapters, it should go unnoticed, as presence
detection will skip link training.
Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com>
Reviewed-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'hdata')
-rw-r--r-- | hdata/spira.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/hdata/spira.c b/hdata/spira.c index 3d7e21c..a23fd17 100644 --- a/hdata/spira.c +++ b/hdata/spira.c @@ -1369,7 +1369,14 @@ static void add_npu(struct dt_node *xscom, const struct HDIF_array_hdr *links, uint64_t speed = 0, nvlink_speed = 0; struct dt_node *node; - /* only add a link node if this link is targeted at at device */ + /* + * Only add a link node if this link is targeted at a + * GPU device. + * + * If we ever activate it for an opencapi device, we + * should revisit the link definitions hard-coded + * on ZZ. + */ if (be32_to_cpu(link->usage) != SMP_LINK_USE_GPU) continue; |