[Skiboot] [PATCH 6/6] core/hmi: Display chip location code while displaying core FIR.

Mahesh J Salgaonkar mahesh at linux.vnet.ibm.com
Mon Dec 11 16:31:45 AEDT 2017


From: Mahesh Salgaonkar <mahesh at linux.vnet.ibm.com>

No functionality change.

Signed-off-by: Mahesh Salgaonkar <mahesh at linux.vnet.ibm.com>
---
 core/hmi.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/core/hmi.c b/core/hmi.c
index 5b99984..eb4faa3 100644
--- a/core/hmi.c
+++ b/core/hmi.c
@@ -319,6 +319,7 @@ static bool decode_core_fir(struct cpu_thread *cpu,
 	int i;
 	bool found = false;
 	int64_t ret;
+	const char *loc;
 
 	/* Sanity check */
 	if (!cpu || !hmi_evt)
@@ -349,7 +350,9 @@ static bool decode_core_fir(struct cpu_thread *cpu,
 	if (!core_fir)
 		return false;
 
-	prlog(PR_INFO, "CHIP ID: %x, CORE ID: %x, FIR: %016llx\n",
+	loc = chip_loc_code(cpu->chip_id);
+	prlog(PR_INFO, "[Loc: %s]: CHIP ID: %x, CORE ID: %x, FIR: %016llx\n",
+			loc ? loc : "Not Available",
 			cpu->chip_id, core_id, core_fir);
 
 	/* Check CORE FIR bits and populate HMI event with error info. */



More information about the Skiboot mailing list