Skip to content

Commit

Permalink
Add message tracking variable increment that disappeared.
Browse files Browse the repository at this point in the history
message tracking variables count the number of Reclaim Buffer messages
sent and the number of responses received.  This is used to pace the
message sends to avoid runaway.

Change-Id: I61d0c86c445cd23111b8f0905cd3d770fd8e009c
CQ: SW403683
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/47071
Reviewed-by: Martin Gloff <mgloff@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
  • Loading branch information
brianebakke authored and dcrowell77 committed Oct 6, 2017
1 parent 49acb2a commit 7e787ac
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/usr/mbox/mailboxsp.C
Expand Up @@ -712,6 +712,15 @@ void MailboxSp::send_msg(mbox_msg_t * i_msg)
iv_msg_to_send.msg_payload.data[1] = 0;
iv_msg_to_send.msg_payload.extra_data = NULL;
iv_msg_to_send.msg_payload.__reserved__async = 1;

TRACFCOMP(g_trac_mbox,
INFO_MRK
"MailboxSp::send_msg - "
"Send Reclaim Msg to FSP");

// track the msg until completion
// actual msg send happens below
iv_reclaim_sent_cnt++;
}
else
{
Expand Down Expand Up @@ -1169,6 +1178,11 @@ void MailboxSp::handle_hbmbox_msg(mbox_msg_t & i_mbox_msg)

void MailboxSp::handle_hbmbox_resp(mbox_msg_t & i_mbox_msg)
{
TRACFCOMP(g_trac_mbox,
INFO_MRK
"MailboxSp::handle_hbmbox_resp - "
"Reclaim Msg response from FSP");

//Response for more DMA buffers
iv_dmaBuffer.addBuffers
(i_mbox_msg.msg_payload.data[0]);
Expand Down

0 comments on commit 7e787ac

Please sign in to comment.