diff options
author | Bill Schwartz <whs@us.ibm.com> | 2014-05-19 21:44:46 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2014-06-30 19:31:30 -0500 |
commit | 3b65dfb45938d0e864749fe97f044c275f56f3db (patch) | |
tree | 2de41582ee15f85276a0e83002e1ae5bba622bad /src/usr/mbox | |
parent | 682fbef52aa03bf5920ecc422b9bdb4546f31143 (diff) | |
download | blackbird-hostboot-3b65dfb45938d0e864749fe97f044c275f56f3db.tar.gz blackbird-hostboot-3b65dfb45938d0e864749fe97f044c275f56f3db.zip |
Merge HWAS commits from Stradale
These changes are to reduce the amount of trace entries, disable garding,
and to print the model type.
Change-Id: Iff1cd4995367c7bfad621f41a36e0080007ec6ef
RTC: 97496
Origin: Google Shared Technology
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11172
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/mbox')
-rw-r--r-- | src/usr/mbox/HBconfig | 4 | ||||
-rw-r--r-- | src/usr/mbox/mailboxsp.C | 14 |
2 files changed, 17 insertions, 1 deletions
diff --git a/src/usr/mbox/HBconfig b/src/usr/mbox/HBconfig new file mode 100644 index 000000000..02ca03467 --- /dev/null +++ b/src/usr/mbox/HBconfig @@ -0,0 +1,4 @@ +config DROPPED_MSG_WARNING_AS_DEBUG + default n + help + Debug trace for dropped messages due to mailbox being disabled diff --git a/src/usr/mbox/mailboxsp.C b/src/usr/mbox/mailboxsp.C index 997209682..90d5ab8c5 100644 --- a/src/usr/mbox/mailboxsp.C +++ b/src/usr/mbox/mailboxsp.C @@ -5,7 +5,10 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* COPYRIGHT International Business Machines Corp. 2012,2014 */ +/* Contributors Listed Below - COPYRIGHT 2012,2014 */ +/* [+] Google Inc. */ +/* [+] International Business Machines Corp. */ +/* */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); */ /* you may not use this file except in compliance with the License. */ @@ -28,6 +31,7 @@ #include "mailboxsp.H" #include "mboxdd.H" #include "ipcSp.H" +#include <config.h> #include <sys/task.h> #include <initservice/taskargs.H> #include <initservice/initserviceif.H> @@ -477,11 +481,19 @@ void MailboxSp::handleNewMessage(msg_t * i_msg) if(iv_disabled) { +#ifdef CONFIG_DROPPED_MSG_WARNING_AS_DEBUG + TRACDCOMP(g_trac_mbox,WARN_MRK + "MSGSEND - mailboxsp is disabled. Message dropped!" + " msgQ=0x%x type=0x%x", + mbox_msg.msg_queue_id, + mbox_msg.msg_payload.type); +#else TRACFCOMP(g_trac_mbox,WARN_MRK "MSGSEND - mailboxsp is disabled. Message dropped!" " msgQ=0x%x type=0x%x", mbox_msg.msg_queue_id, mbox_msg.msg_payload.type); +#endif if(!i_msg_is_async) // synchronous { |