Skip to content

Commit 11a2f0f

Browse files
Joshi-Mansiedtanous
authored andcommitted
[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 <[email protected]> Change-Id: I7c3590f3f0a1e17ea9f44736ced8a4f22d211411
1 parent ba95fcc commit 11a2f0f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

redfish-core/lib/memory.hpp

+5
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ inline std::string translateMemoryTypeToRedfish(const std::string& memoryType)
5656
{
5757
return "DDR4E_SDRAM";
5858
}
59+
if (memoryType == "xyz.openbmc_project.Inventory.Item.Dimm.DeviceType.DDR5")
60+
{
61+
return "DDR5";
62+
}
5963
if (memoryType ==
6064
"xyz.openbmc_project.Inventory.Item.Dimm.DeviceType.LPDDR4_SDRAM")
6165
{
@@ -134,6 +138,7 @@ inline std::string translateMemoryTypeToRedfish(const std::string& memoryType)
134138
// FBD2
135139
// LPDDR_SDRAM
136140
// LPDDR2_SDRAM
141+
// LPDDR5_SDRAM
137142
return "";
138143
}
139144

0 commit comments

Comments
 (0)