diff options
author | Frederic Barrat <fbarrat@linux.ibm.com> | 2019-07-09 17:05:57 +0200 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2019-07-15 13:48:33 +1000 |
commit | ff81d0d13683904fb3be126b9fbd46a3f97e7062 (patch) | |
tree | e3ae731a7250469b9b5724eeb239677d7136eb3f | |
parent | 4c929bb54629fc60d8178383b4e5f854a8d1909c (diff) | |
download | skiboot-ff81d0d13683904fb3be126b9fbd46a3f97e7062.zip skiboot-ff81d0d13683904fb3be126b9fbd46a3f97e7062.tar.gz skiboot-ff81d0d13683904fb3be126b9fbd46a3f97e7062.tar.bz2 |
hdata: Align SMP link definitions with current HDAT spec
All link usage values other than GPU were unused, so there's no
functional change or backward compatibility issue.
Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
-rw-r--r-- | hdata/spira.c | 2 | ||||
-rw-r--r-- | hdata/spira.h | 9 |
2 files changed, 6 insertions, 5 deletions
diff --git a/hdata/spira.c b/hdata/spira.c index 6891a9c..3d7e21c 100644 --- a/hdata/spira.c +++ b/hdata/spira.c @@ -1370,7 +1370,7 @@ static void add_npu(struct dt_node *xscom, const struct HDIF_array_hdr *links, struct dt_node *node; /* only add a link node if this link is targeted at at device */ - if (be32_to_cpu(link->usage) != SMP_LINK_USE_DEVICE) + if (be32_to_cpu(link->usage) != SMP_LINK_USE_GPU) continue; /* diff --git a/hdata/spira.h b/hdata/spira.h index 09de4da..563a98c 100644 --- a/hdata/spira.h +++ b/hdata/spira.h @@ -1175,10 +1175,11 @@ struct sppcrd_smp_link { __be32 link_id; __be32 usage; #define SMP_LINK_USE_NONE 0 -#define SMP_LINK_USE_DEVICE 1 -#define SMP_LINK_USE_INTERPOSER 2 -#define SMP_LINK_USE_DRAWER 3 -#define SMP_LINK_USE_D2D 4 /* GPU to GPU */ +#define SMP_LINK_USE_GPU 1 +#define SMP_LINK_USE_OPENCAPI 2 +#define SMP_LINK_USE_INTERPOSER 3 +#define SMP_LINK_USE_DRAWER 4 +#define SMP_LINK_USE_D2D 5 /* GPU to GPU */ __be32 brick_id; __be32 lane_mask; |