summaryrefslogtreecommitdiffstats
path: root/hw/npu.c
diff options
context:
space:
mode:
authorRussell Currey <ruscur@russell.cc>2017-05-03 11:49:29 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-05-03 15:50:33 +1000
commit5971f6e272a0dcfaa1157094f5e6a4f1929316d5 (patch)
tree5712fe2401e4674d66914b50250486c62a6faff1 /hw/npu.c
parentfa70adcb9d139bd9709681ea138bb2b10a08ff2a (diff)
downloadblackbird-skiboot-5971f6e272a0dcfaa1157094f5e6a4f1929316d5.tar.gz
blackbird-skiboot-5971f6e272a0dcfaa1157094f5e6a4f1929316d5.zip
npu, npu2: Describe diag data size in device tree
NPU and NPU2 don't use diag data, but the kernel will allocate a buffer for NPU PHBs regardless. Set ibm,phb-diag-data-size to 0 for NPU PHBs to save a whole precious 8K. Signed-off-by: Russell Currey <ruscur@russell.cc> Acked-by: Alistair Popple <alistair@popple.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/npu.c')
-rw-r--r--hw/npu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/npu.c b/hw/npu.c
index f00e9c5c..b113800b 100644
--- a/hw/npu.c
+++ b/hw/npu.c
@@ -1152,6 +1152,7 @@ static void npu_probe_phb(struct dt_node *dn)
dt_add_property_cells(np, "ibm,npcq", dn->phandle);
dt_add_property_cells(np, "ibm,links", links);
dt_add_property(np, "ibm,mmio-window", mm_win, sizeof(mm_win));
+ dt_add_property_cells(np, "ibm,phb-diag-data-size", 0);
}
static void npu_dev_populate_vendor_cap(struct npu_dev_cap *cap)
OpenPOWER on IntegriCloud