From 6634b6fca3df25e48a489ee45f09ba40e67b99f0 Mon Sep 17 00:00:00 2001 From: Dan Crowell Date: Thu, 26 Apr 2018 10:56:56 -0500 Subject: Better debug for weird PIR issues Ran into a case where Hostboot was getting booted with the wrong fabricid for the node it was on. In the process I realized it was hard to tell what was going on. Added printk output to show the PIR of the boot core. Modified how force-hrmor option is consumed in ecmd-debug-framework so that you can force unnatural lookups. Change-Id: I77fc614889aa3cedcc8ccd39cac9ebc36f239b56 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/57910 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: FSP CI Jenkins Tested-by: Jenkins OP HW Reviewed-by: Martin Gloff Reviewed-by: Prachi Gupta Reviewed-by: Roland Veloz Reviewed-by: Daniel M. Crowell --- src/kernel/kernel.C | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/kernel') diff --git a/src/kernel/kernel.C b/src/kernel/kernel.C index 970813ec8..e78dca726 100644 --- a/src/kernel/kernel.C +++ b/src/kernel/kernel.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2010,2017 */ +/* Contributors Listed Below - COPYRIGHT 2010,2018 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -102,8 +102,9 @@ extern "C" int main() { printk("Booting %s kernel...\n\n", "Hostboot"); - printk("CPU=%s\n", - ProcessorCoreTypeStrings[CpuID::getCpuType()]); + printk("CPU=%s PIR=%ld\n", + ProcessorCoreTypeStrings[CpuID::getCpuType()], + static_cast(getPIR())); MAGIC_INST_PRINT_ISTEP(6,2); // Erase task-pointer so that TaskManager::getCurrentTask() returns NULL. -- cgit v1.2.3