summaryrefslogtreecommitdiffstats
path: root/include/npu2.h
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2017-11-14 22:23:06 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-11-15 01:03:53 -0600
commitc76636f3d73fbbc3a1f56ca085eb80f9e56d0411 (patch)
treec4de95dd9ec2888528ff5c5643ffba939d699e56 /include/npu2.h
parent74d9a50ac2a79d39b07bbe7d7e0bbb72f7f5b026 (diff)
downloadblackbird-skiboot-c76636f3d73fbbc3a1f56ca085eb80f9e56d0411.tar.gz
blackbird-skiboot-c76636f3d73fbbc3a1f56ca085eb80f9e56d0411.zip
npu2: Move to new GPU memory map
There are three different ways we configure the MCD and memory map. 1) Old way (current way) Skiboot configures the MCD and puts GPUs at 4TB and below 2) New way with MCD Hostboot configures the MCD and skiboot puts GPU at 4TB and above 3) New way without MCD No one configures the MCD and skiboot puts GPU at 4TB and below The patch keeps option 1 and adds options 2 and 3. The different configurations are detected using certain scoms (see patch). Option 1 will go away eventually as it's a configuration that can cause xstops or data integrity problems. We are keeping it around to support existing hostboot. Option 2 supports only 4 GPUs and 512GB of memory per socket. Option 3 supports 6 GPUs and 4TB of memory but may have some performance impact. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/npu2.h')
-rw-r--r--include/npu2.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/npu2.h b/include/npu2.h
index d30a91f1..95638697 100644
--- a/include/npu2.h
+++ b/include/npu2.h
@@ -128,6 +128,7 @@ struct npu2 {
uint32_t base_lsi;
uint32_t total_devices;
struct npu2_dev *devices;
+ enum phys_map_type gpu_map_type;
/* IODA cache */
uint64_t lxive_cache[8];
OpenPOWER on IntegriCloud