diff options
author | Balbir Singh <bsingharora@gmail.com> | 2017-07-06 11:57:54 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-07-13 10:19:45 +1000 |
commit | f845a648b8cb0435aa6323f58fac50792bbe1163 (patch) | |
tree | c29f6f2e83d8289b1784285bfeadb4f9763a70fa /hw | |
parent | de360495f69a117cadcbffbb8ebe930014c75e2a (diff) | |
download | skiboot-f845a648b8cb0435aa6323f58fac50792bbe1163.zip skiboot-f845a648b8cb0435aa6323f58fac50792bbe1163.tar.gz skiboot-f845a648b8cb0435aa6323f58fac50792bbe1163.tar.bz2 |
numa/associativity: Add a new level of NUMA for GPU's
Today we have an issue where the NUMA nodes corresponding
to GPU's have the same affinity/distance as normal memory
nodes. Our reference-points today supports two levels
[0x4, 0x4] for normal systems and [0x4, 0x3] for Power8E
systems. This patch adds a new level [0x4, X, 0x2] and
uses node-id as at all levels for the GPU.
Cc: Reza Arbab <arbab@linux.vnet.ibm.com>
Cc: Alistair Popple <alistair@popple.id.au>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Balbir Singh <bsingharora@gmail.com>
Reviewed-by: Alistair Popple <alistair@popple.id.au>
Acked-by: Reza Arbab <arbab@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/npu2.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -521,7 +521,8 @@ static struct dt_node *npu2_create_memory_dn(uint64_t addr, uint64_t size) dt_add_property_u64s(mem, "reg", addr, size); dt_add_property_cells(mem, "ibm,chip-id", chip_id); dt_add_property_u64s(mem, "linux,usable-memory", addr, 0); - dt_add_property_cells(mem, "ibm,associativity", 4, 0, 0, 0, chip_id--); + dt_add_property_cells(mem, "ibm,associativity", 4, chip_id, chip_id, chip_id, chip_id); + chip_id--; assert(chip_id); return mem; |