diff options
author | Dan Crowell <dcrowell@us.ibm.com> | 2013-07-23 12:27:57 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-07-24 14:50:14 -0500 |
commit | bb7773f4aced9b3bf4d8991b137244fb3b1d5bf8 (patch) | |
tree | 5d0d138a11f2911ea724fa08eba32295929b2d30 /src/usr/dump/dumpCollect.C | |
parent | af9184071d47d0155d69d0e8347220a8288eb11f (diff) | |
download | talos-hostboot-bb7773f4aced9b3bf4d8991b137244fb3b1d5bf8.tar.gz talos-hostboot-bb7773f4aced9b3bf4d8991b137244fb3b1d5bf8.zip |
Dump fixes
Change-Id: I5eedf254e6ef9a27e8a0fe6054d7f8c04305c8f9
RTC: 67082
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/5531
Reviewed-by: ADAM R. MUHLE <armuhle@us.ibm.com>
Tested-by: Jenkins Server
Reviewed-by: Michael Baiocchi <baiocchi@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/dump/dumpCollect.C')
-rw-r--r-- | src/usr/dump/dumpCollect.C | 41 |
1 files changed, 8 insertions, 33 deletions
diff --git a/src/usr/dump/dumpCollect.C b/src/usr/dump/dumpCollect.C index d7b8014a2..daa699859 100644 --- a/src/usr/dump/dumpCollect.C +++ b/src/usr/dump/dumpCollect.C @@ -755,42 +755,17 @@ errlHndl_t doDumpCollect(void) // if no error then collect as expected. if (!l_err) { - - // TODO: Issue RTC 67082 - fix sending the MDRT - // to FSP once we have a design that can send the - // entire table.. Max size is 512K - truncating to - // 32K for the time being. - uint64_t l_resultsTableSize = resultsTableSize; - - // If the results table is greater than 32K truncate it. - if (resultsTableSize > (32*KILOBYTE)) - { - // Set the results table size to only include up to - // 32K - l_resultsTableSize = (32*KILOBYTE); - - TRACFCOMP( g_trac_dump, - INFO_MRK"Truncating the RESULTS table to 32K for dump msg type =. %.8X,", - i_type); - - } - - // TODO: RTC 67082 - Need to make sure we put the physical - // Address here. - - // Address of the results table - msg->data[0] = resultsTableAddr; + // Physical Address of the results table + uint64_t l_mdrt_phys = + mm_virt_to_phys( + reinterpret_cast<void*>(resultsTableAddr)); + msg->data[0] = l_mdrt_phys; // Number of bytes in the results table - msg->data[1] = l_resultsTableSize; - - //Copy the Results table into the message - msg->extra_data = malloc( l_resultsTableSize ); - - memcpy( msg->extra_data, - reinterpret_cast<uint64_t*>(resultsTableAddr), - l_resultsTableSize); + msg->data[1] = resultsTableSize; + // No extra data to worry about + msg->extra_data = NULL; } else |