diff options
author | Andrew Donnellan <andrew.donnellan@au1.ibm.com> | 2018-09-14 13:46:25 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2018-09-17 21:39:01 -0500 |
commit | b6cc82cb39c4d891799f4d7a9f8e76fdf8a16125 (patch) | |
tree | c4d041ba07a43591e72eebcbaecd02fca217717e /hdata | |
parent | 68415d5e38ef04e647ad36d59f90c008a0414f56 (diff) | |
download | skiboot-b6cc82cb39c4d891799f4d7a9f8e76fdf8a16125.zip skiboot-b6cc82cb39c4d891799f4d7a9f8e76fdf8a16125.tar.gz skiboot-b6cc82cb39c4d891799f4d7a9f8e76fdf8a16125.tar.bz2 |
hw/npu2, platform: Add NPU2 platform device detection callback
There is no standardised way to determine the presence and type of devices
connected to an NPU on POWER9.
Currently, we hardcode device types based on platform type (as no platform
currently supports both OpenCAPI and NVLink), and for OpenCAPI platforms
we use I2C to detect presence.
Witherspoon (and potentially other platforms later on) supports both
NVLink and OpenCAPI, and additionally uses SXM2 connectors which can carry
more than one link, rather than the SlimSAS connectors used for OpenCAPI on
Zaius and ZZ. This necessitates some special handling.
Add a platform callback for NPU device detection. In a later patch, we
will use this to implement Witherspoon-specific device detection. For now,
add a Witherspoon stub that sets all links to NVLink (i.e. current
behaviour).
Move the existing I2C-based presence detection for OpenCAPI devices on
Zaius/ZZ into common code, which we use by default for platforms which do
not define a callback. Clean up the use of the ibm,npu-link-type property,
which will now be exposed solely for debugging and not consumed internally.
Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Reviewed-by: Frederic Barrat <fbarrat@linux.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'hdata')
-rw-r--r-- | hdata/spira.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/hdata/spira.c b/hdata/spira.c index 3a26f17..2dd0dd3 100644 --- a/hdata/spira.c +++ b/hdata/spira.c @@ -1495,7 +1495,6 @@ static void add_npu(struct dt_node *xscom, const struct HDIF_array_hdr *links, } dt_add_property_string(node, "compatible", "ibm,npu-link"); - dt_add_property_string(node, "ibm,npu-link-type", "nvlink"); dt_add_property_cells(node, "reg", link_count); dt_add_property_cells(node, "ibm,npu-link-index", link_count); dt_add_property_cells(node, "ibm,workbook-link-id", link_id); |