From 7e0d574dff8853e61634f42acbcb3604dd03cc23 Mon Sep 17 00:00:00 2001 From: Ilya Smirnov Date: Wed, 6 Jun 2018 14:49:37 -0500 Subject: New Global For Console Daemon This change implements a new global variable that indicates whether the console daemon has been started. This variable is checked in the doShutdown path prior to printing any console traces. There may be a situation very early in the IPL where we attempt to write to console before the console daemon has been started. This causes timeouts and IPL failures. Change-Id: Ibec90d2207e5db9ef3b9507503d1ea9e2eb7cf6d CQ: SW431130 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/60060 Tested-by: Jenkins Server Reviewed-by: Nicholas E. Bofferding Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Reviewed-by: Michael Baiocchi Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell --- src/usr/console/daemon.C | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/usr/console') diff --git a/src/usr/console/daemon.C b/src/usr/console/daemon.C index b51122561..0887afc7c 100644 --- a/src/usr/console/daemon.C +++ b/src/usr/console/daemon.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2014,2017 */ +/* Contributors Listed Below - COPYRIGHT 2014,2018 */ /* [+] Google Inc. */ /* [+] International Business Machines Corp. */ /* */ @@ -31,6 +31,7 @@ #include #include "uart.H" #include "daemon.H" +#include extern char hbi_ImageId[]; @@ -72,6 +73,8 @@ namespace CONSOLE Uart::g_device->initialize(); } + Util::setIsConsoleStarted(); + // Display a banner denoting the hostboot version char banner[256]; snprintf(banner, sizeof(banner), -- cgit v1.2.3