aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2019-05-06 14:00:29 +1000
committerStewart Smith <stewart@linux.ibm.com>2019-05-20 14:20:29 +1000
commit76c569ca3000861b97635402741faa4f87641c3a (patch)
tree0d29f3f5afe08c47f8fdf64c135d8a3c8dc16e94 /hw
parent41109e5073bdd7eaf7da9eb81c824f3d79073881 (diff)
downloadskiboot-76c569ca3000861b97635402741faa4f87641c3a.zip
skiboot-76c569ca3000861b97635402741faa4f87641c3a.tar.gz
skiboot-76c569ca3000861b97635402741faa4f87641c3a.tar.bz2
hw/phb4: Make pci-tracing print at PR_NOTICE
When pci-tracing is enabled we print each trace status message and the final trace status at PR_ERROR. The final status messages are similar to those printed when we fail to train in the non-pci-tracing path and this has resulted in spurious op-test failures. This patch reduces the log-level of the tracing message to PR_NOTICE so they're not accidently interpreted as actual error messages. PR_NOTICE messages are still printed to the console during boot. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/phb4.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/hw/phb4.c b/hw/phb4.c
index 5565d94..3ae96f2 100644
--- a/hw/phb4.c
+++ b/hw/phb4.c
@@ -137,6 +137,9 @@ static void phb4_init_hw(struct phb4 *p);
#define PHBINF(p, fmt, a...) prlog(PR_INFO, "PHB#%04x[%d:%d]: " fmt, \
(p)->phb.opal_id, (p)->chip_id, \
(p)->index, ## a)
+#define PHBNOTICE(p, fmt, a...) prlog(PR_NOTICE, "PHB#%04x[%d:%d]: " fmt, \
+ (p)->phb.opal_id, (p)->chip_id, \
+ (p)->index, ## a)
#define PHBERR(p, fmt, a...) prlog(PR_ERR, "PHB#%04x[%d:%d]: " fmt, \
(p)->phb.opal_id, (p)->chip_id, \
(p)->index, ## a)
@@ -2385,7 +2388,7 @@ static void phb4_train_info(struct phb4 *p, uint64_t reg, unsigned long time)
default:
snprintf(s, sizeof(s), "%sunvalid", s);
}
- PHBERR(p, "%s\n", s);
+ PHBNOTICE(p, "%s\n", s);
}
static void phb4_dump_pec_err_regs(struct phb4 *p)
@@ -2663,15 +2666,15 @@ static void phb4_training_trace(struct phb4 *p)
reglast = reg;
if (!phb4_check_reg(p, reg)) {
- PHBERR(p, "TRACE: PHB fence waiting link.\n");
+ PHBNOTICE(p, "TRACE: PHB fence waiting link.\n");
break;
}
if (reg & PHB_PCIE_DLP_TL_LINKACT) {
- PHBERR(p, "TRACE: Link trained.\n");
+ PHBNOTICE(p, "TRACE: Link trained.\n");
break;
}
if ((now - start) > secs_to_tb(3)) {
- PHBERR(p, "TRACE: Timeout waiting for link up.\n");
+ PHBNOTICE(p, "TRACE: Timeout waiting for link up.\n");
break;
}
}