diff options
author | Reza Arbab <arbab@linux.vnet.ibm.com> | 2017-07-31 21:37:03 -0500 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-08-04 17:13:10 +1000 |
commit | 9fa0785d26af2e8472941470f972fbd31dde317a (patch) | |
tree | 18fb46619d70e2579bd7828049fae5cf0c6c0d98 | |
parent | ec99176c1cfc75a2b7e712ab817f00cd8ef18c86 (diff) | |
download | skiboot-9fa0785d26af2e8472941470f972fbd31dde317a.zip skiboot-9fa0785d26af2e8472941470f972fbd31dde317a.tar.gz skiboot-9fa0785d26af2e8472941470f972fbd31dde317a.tar.bz2 |
npu2: Adjust content of the GENID BAR
Reflect the changed GENID BAR layout in POWER9 DD2.
Signed-off-by: Reza Arbab <arbab@linux.vnet.ibm.com>
Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Acked-by: Alistair Popple <alistair@popple.id.au>
Cc: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r-- | hw/npu2.c | 4 | ||||
-rw-r--r-- | include/npu2-regs.h | 5 |
2 files changed, 5 insertions, 4 deletions
@@ -203,7 +203,7 @@ static void npu2_read_bar(struct npu2 *p, struct npu2_bar *bar) bar->size = 0x20000; break; case NPU2_GENID_BAR: - bar->base = GETFIELD(NPU2_GENID_BAR_ADDR, val) << 17; + bar->base = GETFIELD(NPU2_GENID_BAR_ADDR, val) << 16; enabled = GETFIELD(NPU2_GENID_BAR_ENABLE, val); bar->size = 0x20000; break; @@ -236,7 +236,7 @@ static void npu2_write_bar(struct npu2 *p, val = SETFIELD(NPU2_NTL_BAR_ENABLE, val, enable); break; case NPU2_GENID_BAR: - val = SETFIELD(NPU2_GENID_BAR_ADDR, 0ul, bar->base >> 17); + val = SETFIELD(NPU2_GENID_BAR_ADDR, 0ul, bar->base >> 16); val = SETFIELD(NPU2_GENID_BAR_ENABLE, val, enable); break; default: diff --git a/include/npu2-regs.h b/include/npu2-regs.h index fb85729..a10f74f 100644 --- a/include/npu2-regs.h +++ b/include/npu2-regs.h @@ -122,8 +122,9 @@ void npu2_write_mask(struct npu2 *p, uint64_t reg, uint64_t val, uint64_t mask); #define NPU2_GENID_BAR_ENABLE PPC_BIT(0) #define NPU2_GENID_BAR_GROUP PPC_BITMASK(3,6) #define NPU2_GENID_BAR_CHIP PPC_BITMASK(7,9) -#define NPU2_GENID_BAR_NODE_ADDR PPC_BITMASK(10,34) -#define NPU2_GENID_BAR_ADDR PPC_BITMASK(3,34) +#define NPU2_GENID_BAR_NODE_ADDR PPC_BITMASK(10,35) +#define NPU2_GENID_BAR_ADDR PPC_BITMASK(3,35) +#define NPU2_GENID_BAR_POISON PPC_BIT(39) #define NPU2_LOW_WATER_MARKS 0x040 #define NPU2_HIGH_WATER_MARKS 0x048 #define NPU2_RELAXED_ORDERING_CFG0 0x050 |