aboutsummaryrefslogtreecommitdiff
path: root/hw/npu2.c
diff options
context:
space:
mode:
authorAndrew Donnellan <andrew.donnellan@au1.ibm.com>2018-06-25 11:40:03 +1000
committerStewart Smith <stewart@linux.ibm.com>2018-06-27 17:19:01 +1000
commit44709b88491c63d75febc5f4859a0b1a580a9232 (patch)
treebeffe45940c43b1c48ac4643a31fd3298d59c062 /hw/npu2.c
parent861350941f9a3fb76ebcae3e5a32b3cbec929d03 (diff)
downloadskiboot-44709b88491c63d75febc5f4859a0b1a580a9232.zip
skiboot-44709b88491c63d75febc5f4859a0b1a580a9232.tar.gz
skiboot-44709b88491c63d75febc5f4859a0b1a580a9232.tar.bz2
hw/npu2, core/hmi: Use NPU instead of NPU2 as log message prefix
The NPU2{DBG,INF,ERR} macros use "NPU%d" as a prefix to identify messages relating to a particular NPU. It's slightly confusing to have per-NPU messages prefixed with "NPU0" or "NPU1" and NPU-generic messages prefixed with "NPU2". On some future system we could potentially have a NPU #2 in which case it'd be really confusing. Use NPU rather than NPU2 for NPU-generic log messages. There's no risk of confusion with the original npu.c code since that's only for P8. Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Acked-by: Reza Arbab <arbab@linux.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'hw/npu2.c')
-rw-r--r--hw/npu2.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/hw/npu2.c b/hw/npu2.c
index 3ed089f..c351404 100644
--- a/hw/npu2.c
+++ b/hw/npu2.c
@@ -650,7 +650,7 @@ static int npu2_dn_fixup(struct phb *phb,
* @fwts-advice No GPU/NPU2 slot information was found.
* NVLink2 functionality will not work.
*/
- prlog(PR_ERR, "NPU2: Cannot find GPU slot information\n");
+ prlog(PR_ERR, "NPU: Cannot find GPU slot information\n");
return 0;
}
dt_add_property_string(pd->dn, "ibm,loc-code", label);
@@ -1354,7 +1354,7 @@ static void npu2_probe_phb(struct dt_node *dn)
if (dt_find_compatible_node(dn, NULL, "ibm,npu-link-opencapi")) {
/* Die if there's also an NVLink link */
assert(!dt_find_compatible_node(dn, NULL, "ibm,npu-link"));
- prlog(PR_INFO, "NPU2: OpenCAPI link configuration detected, "
+ prlog(PR_INFO, "NPU: OpenCAPI link configuration detected, "
"not initialising NVLink\n");
return;
}
@@ -1365,7 +1365,7 @@ static void npu2_probe_phb(struct dt_node *dn)
proc_chip = get_chip(gcid);
assert(proc_chip);
if ((proc_chip->ec_level & 0xf0) > 0x20) {
- prerror("NPU2: unsupported ec level on Chip 0x%x!\n", gcid);
+ prerror("NPU: unsupported ec level on Chip 0x%x!\n", gcid);
return;
}
@@ -1437,7 +1437,7 @@ static void npu2_probe_phb(struct dt_node *dn)
index = dt_prop_get_u32(dn, "ibm,npu-index");
phb_index = dt_prop_get_u32(dn, "ibm,phb-index");
links = dt_prop_get_u32(dn, "ibm,npu-links");
- prlog(PR_INFO, "NPU2: Chip %d Found NPU2#%d (%d links) at %s\n",
+ prlog(PR_INFO, "NPU: Chip %d Found NPU2#%d (%d links) at %s\n",
gcid, index, links, path);
free(path);
@@ -1915,7 +1915,7 @@ static void npu2_setup_irqs(struct npu2 *p)
p->base_lsi = xive_alloc_ipi_irqs(p->chip_id, NPU2_N_DL_IRQS, NPU2_N_DL_IRQS_ALIGN);
if (p->base_lsi == XIVE_IRQ_ERROR) {
- prlog(PR_ERR, "NPU2: Failed to allocate interrupt sources, IRQs for NDL No-stall events will not be available.\n");
+ prlog(PR_ERR, "NPU: Failed to allocate interrupt sources, IRQs for NDL No-stall events will not be available.\n");
return;
}
xive_register_ipi_source(p->base_lsi, NPU2_N_DL_IRQS, p, &npu2_ipi_ops );
@@ -1984,7 +1984,7 @@ static void npu2_create_phb(struct dt_node *dn)
* @fwts-advice Firmware probably ran out of memory creating
* NPU2 slot. NVLink functionality could be broken.
*/
- prlog(PR_ERR, "NPU2: Cannot create PHB slot\n");
+ prlog(PR_ERR, "NPU: Cannot create PHB slot\n");
}
pci_register_phb(&p->phb_nvlink, OPAL_DYNAMIC_PHB_ID);
@@ -2004,7 +2004,7 @@ void probe_npu2(void)
(chip->type == PROC_CHIP_P9_NIMBUS ||
chip->type == PROC_CHIP_P9_CUMULUS) &&
(chip->ec_level & 0xf0) == 0x10) {
- prlog(PR_INFO, "NPU2: DD1 not supported\n");
+ prlog(PR_INFO, "NPU: DD1 not supported\n");
return;
}
@@ -2012,7 +2012,7 @@ void probe_npu2(void)
zcal = nvram_query("nv_zcal_override");
if (zcal) {
nv_zcal_nominal = atoi(zcal);
- prlog(PR_WARNING, "NPU2: Using ZCAL impedance override = %d\n", nv_zcal_nominal);
+ prlog(PR_WARNING, "NPU: Using ZCAL impedance override = %d\n", nv_zcal_nominal);
}
/* Scan NPU2 XSCOM nodes */