diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2017-06-24 14:17:22 -0500 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-06-26 14:28:58 +1000 |
commit | 7fab123bff59c44650b4b9c6a45c4884ed7ea2bd (patch) | |
tree | 9292560e8147aa9a347308415cfafa7395a6be4f /hw/xscom.c | |
parent | 562a10caf48c91c673f5e78289894dfbfe326884 (diff) | |
download | skiboot-7fab123bff59c44650b4b9c6a45c4884ed7ea2bd.zip skiboot-7fab123bff59c44650b4b9c6a45c4884ed7ea2bd.tar.gz skiboot-7fab123bff59c44650b4b9c6a45c4884ed7ea2bd.tar.bz2 |
Big log level reduction...
90% of what we print isn't useful to a normal user. This
dramatically reduces the amount of messages printed by
OPAL in normal circumstances.
We still need to add a way to bump the log level at boot
based on a BMC scratch register or some HDAT property.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/xscom.c')
-rw-r--r-- | hw/xscom.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -740,11 +740,11 @@ void xscom_init(void) else chip_name = chip_names[chip->type]; - printf("XSCOM: chip 0x%x at 0x%llx [%s DD%x.%x]\n", - gcid, chip->xscom_base, - chip_name, - chip->ec_level >> 4, - chip->ec_level & 0xf); + /* We keep a "CHIP" prefix to make the log more user-friendly */ + prlog(PR_NOTICE, "CHIP: Chip ID %04x type: %s DD%x.%x\n", + gcid, chip_name, chip->ec_level >> 4, + chip->ec_level & 0xf); + prlog(PR_DEBUG, "XSCOM: Base address: 0x%llx\n", chip->xscom_base); } /* Collect details to trigger xstop via XSCOM write */ @@ -752,10 +752,10 @@ void xscom_init(void) if (p) { xstop_xscom.addr = dt_property_get_cell(p, 0); xstop_xscom.fir_bit = dt_property_get_cell(p, 1); - prlog(PR_INFO, "XSTOP: XSCOM addr = 0x%llx, FIR bit = %lld\n", - xstop_xscom.addr, xstop_xscom.fir_bit); + prlog(PR_DEBUG, "XSTOP: XSCOM addr = 0x%llx, FIR bit = %lld\n", + xstop_xscom.addr, xstop_xscom.fir_bit); } else - prlog(PR_INFO, "XSTOP: ibm,sw-checkstop-fir prop not found\n"); + prlog(PR_DEBUG, "XSTOP: ibm,sw-checkstop-fir prop not found\n"); } void xscom_used_by_console(void) |