From 11a2f0f0186983d5939351c276c60b054c059c5a Mon Sep 17 00:00:00 2001 From: Mansi Joshi Date: Mon, 19 Jul 2021 14:33:27 +0530 Subject: [bmcweb] Add DDR5 support in bmcweb Memory Device Type support wasn't there for DDR5 type dimm. Added code for the same as per latest SMBIOS spec DSP0134 version 3.4.0. Tested: Get of https://BMC-IP/redfish/v1/Systems/system/Memory/dimm gives correct values. "MemoryDeviceType": "DDR5", "MemoryType": "DRAM" Signed-off-by: Mansi Joshi Change-Id: I7c3590f3f0a1e17ea9f44736ced8a4f22d211411 --- redfish-core/lib/memory.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'redfish-core/lib/memory.hpp') diff --git a/redfish-core/lib/memory.hpp b/redfish-core/lib/memory.hpp index 62d5933c08..2d647dcb57 100644 --- a/redfish-core/lib/memory.hpp +++ b/redfish-core/lib/memory.hpp @@ -56,6 +56,10 @@ inline std::string translateMemoryTypeToRedfish(const std::string& memoryType) { return "DDR4E_SDRAM"; } + if (memoryType == "xyz.openbmc_project.Inventory.Item.Dimm.DeviceType.DDR5") + { + return "DDR5"; + } if (memoryType == "xyz.openbmc_project.Inventory.Item.Dimm.DeviceType.LPDDR4_SDRAM") { @@ -134,6 +138,7 @@ inline std::string translateMemoryTypeToRedfish(const std::string& memoryType) // FBD2 // LPDDR_SDRAM // LPDDR2_SDRAM + // LPDDR5_SDRAM return ""; } -- cgit v1.2.3