summaryrefslogtreecommitdiffstats
path: root/include/npu2.h
diff options
context:
space:
mode:
authorReza Arbab <arbab@linux.vnet.ibm.com>2017-03-24 12:22:24 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-03-30 19:37:48 +1100
commitafc78b0856d5cba129e96bb1f006be3fd56b598a (patch)
tree26f36959c37b5dc01bba5db7e2c9cc2ccf41182a /include/npu2.h
parentd8c880ecc2c8308395e51e28b12fb19a826dc0f6 (diff)
downloadtalos-skiboot-afc78b0856d5cba129e96bb1f006be3fd56b598a.tar.gz
talos-skiboot-afc78b0856d5cba129e96bb1f006be3fd56b598a.zip
npu2: Allocate GPU memory and describe it in the dt
Allocate memory for the GPU vidmem aperture and create "memory@" dt nodes to describe GPU memory with a phandle in each pointing to the emulated PCI device. Also provide the compressed 47-bit device address in "ibm,device-tgt-addr". Signed-off-by: Reza Arbab <arbab@linux.vnet.ibm.com> Signed-off-by: Alistair Popple <alistair@popple.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/npu2.h')
-rw-r--r--include/npu2.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/npu2.h b/include/npu2.h
index ec62ad21..d535e656 100644
--- a/include/npu2.h
+++ b/include/npu2.h
@@ -29,6 +29,8 @@
#define NPU2_MAX_PE_NUM 16
#define NPU2_RESERVED_PE_NUM 15
+#define NPU2_LINKS_PER_CHIP 6
+
/* Return the stack (0-2) of a device */
#define NPU2DEV_STACK(ndev) ((ndev)->index / 2)
OpenPOWER on IntegriCloud