yosemitev2:Multi-host DIMM info displayed in OCP debug card
This implementation is going to display the DIMM
information in the OCP debug-card.
Tested: information frame value of Dimm info
displayed in the OCP debug card with multi-host
Yosemitev2 platform.
Change-Id: Ia3f198ee99806e25c6fe8e995130d45a9ac0f23b
Signed-off-by: Karthikeyan Pasupathi <pkarthikeyan1509@gmail.com>
diff --git a/src/usb-dbg.cpp b/src/usb-dbg.cpp
index 7b76310..b886525 100644
--- a/src/usb-dbg.cpp
+++ b/src/usb-dbg.cpp
@@ -22,6 +22,7 @@
ipmi_ret_t getNetworkData(uint8_t lan_param, char* data);
int8_t getFruData(std::string& serial, std::string& name);
+int8_t sysConfig(std::vector<std::string>& data, size_t pos);
bool isMultiHostPlatform();
@@ -123,7 +124,7 @@
// return 0 on seccuess
int frame::append(const char* string, int indent)
{
- const size_t buf_size = 64;
+ const size_t buf_size = 128;
char lbuf[buf_size];
char* ptr;
int ret;
@@ -1029,8 +1030,19 @@
frame_info.append("MCU_ver:", 0);
frame_info.append(ESC_MCU_RUN_VER, 1);
- // TBD:
// Sys config present device
+ if (hostPosition != BMC_POSITION)
+ {
+ frame_info.append("Sys Conf. info:", 0);
+
+ // Dimm info
+ std::vector<std::string> data;
+ sysConfig(data, pos);
+ for (auto& info : data)
+ {
+ frame_info.append(info.c_str(), 1);
+ }
+ }
} // End of update frame