summaryrefslogtreecommitdiffstats
path: root/include/npu2-regs.h
diff options
context:
space:
mode:
authorReza Arbab <arbab@linux.vnet.ibm.com>2017-07-31 21:37:02 -0500
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-08-04 17:13:10 +1000
commitec99176c1cfc75a2b7e712ab817f00cd8ef18c86 (patch)
tree69bdaebc4c1a334058337fb37a8ab48fe51b2ece /include/npu2-regs.h
parentec27983716d1c9fd72657dc4c74659eded7598ac (diff)
downloadblackbird-skiboot-ec99176c1cfc75a2b7e712ab817f00cd8ef18c86.tar.gz
blackbird-skiboot-ec99176c1cfc75a2b7e712ab817f00cd8ef18c86.zip
npu2: Add NPU2_GPU1_MEM_BAR
POWER9 DD2 has added a second GPU memory BAR. Use it, but continue to program things the old way on DD1 systems. Signed-off-by: Reza Arbab <arbab@linux.vnet.ibm.com> Cc: Alistair Popple <alistair@popple.id.au> Cc: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Cc: Frederic Barrat <fbarrat@linux.vnet.ibm.com> Acked-by: Alistair Popple <alistair@popple.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/npu2-regs.h')
-rw-r--r--include/npu2-regs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/npu2-regs.h b/include/npu2-regs.h
index 4b86f6f4..fb85729c 100644
--- a/include/npu2-regs.h
+++ b/include/npu2-regs.h
@@ -101,6 +101,7 @@ void npu2_write_mask(struct npu2 *p, uint64_t reg, uint64_t val, uint64_t mask);
#define NPU2_PB_EPSILON 0x010
#define NPU2_TIMER_CFG 0x018
#define NPU2_GPU0_MEM_BAR 0x020
+#define NPU2_GPU1_MEM_BAR 0x028
#define NPU2_MEM_BAR_SEL_MEM PPC_BITMASK(0,2)
#define NPU2_MEM_BAR_GROUP PPC_BITMASK(3,6)
#define NPU2_MEM_BAR_CHIP PPC_BITMASK(7,9)
OpenPOWER on IntegriCloud