summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgthotala <gopi.thotala@intel.com>2021-06-02 08:46:58 -0700
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-07-20 01:50:58 +0000
commit885efcd3f990fe7bf58713f9a76d633f102a8f03 (patch)
tree75add9e854a1b7be8156fef949fd7211ac7557c3
parentfddb8d24eccdcf467a8c777a9a22f4a1e54bf7dd (diff)
downloadedk2-885efcd3f990fe7bf58713f9a76d633f102a8f03.tar.gz
edk2-885efcd3f990fe7bf58713f9a76d633f102a8f03.tar.bz2
edk2-885efcd3f990fe7bf58713f9a76d633f102a8f03.zip
MdePkg/Include: Smbios Specification 3.4.0 changes
The following changes were addressed, 1. Smbios specs 3.4.0 table-51 bit5&6, these fields moved from specific MemoryArrayLocationCXLFlexbus10AddonCard to generic MemoryArrayLocationCXLAddonCard to address both CXL1.0 and 2.0 CXL revisions. 2. Smbios specs 3.4.0 table-79, The memory technology name changed from MemoryTechnologyIntelPersistentMemory to MemoryTechnologyIntelOptanePersistentMemory. Signed-off-by: Thotala Gopi <gopi.thotala@intel.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
-rw-r--r--MdePkg/Include/IndustryStandard/SmBios.h30
-rw-r--r--ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c8
2 files changed, 24 insertions, 14 deletions
diff --git a/MdePkg/Include/IndustryStandard/SmBios.h b/MdePkg/Include/IndustryStandard/SmBios.h
index cc023b7369..6918f58cce 100644
--- a/MdePkg/Include/IndustryStandard/SmBios.h
+++ b/MdePkg/Include/IndustryStandard/SmBios.h
@@ -1393,7 +1393,10 @@ typedef struct {
UINT8 HotPlugDevicesSupported :1;
UINT8 SmbusSignalSupported :1;
UINT8 BifurcationSupported :1;
- UINT8 Reserved :4; ///< Set to 0.
+ UINT8 AsyncSurpriseRemoval :1;
+ UINT8 FlexbusSlotCxl10Capable :1;
+ UINT8 FlexbusSlotCxl20Capable :1;
+ UINT8 Reserved :1; ///< Set to 0.
} MISC_SLOT_CHARACTERISTICS2;
///
@@ -1435,6 +1438,12 @@ typedef struct {
UINT8 DataBusWidth;
UINT8 PeerGroupingCount;
MISC_SLOT_PEER_GROUP PeerGroups[1];
+ //
+ // Add for smbios 3.4
+ //
+ UINT8 SlotInformation;
+ UINT8 SlotPhysicalWidth;
+ UINT16 SlotPitch;
} SMBIOS_TABLE_TYPE9;
///
@@ -1628,7 +1637,7 @@ typedef enum {
MemoryArrayLocationPc98C24AddonCard = 0xA1,
MemoryArrayLocationPc98EAddonCard = 0xA2,
MemoryArrayLocationPc98LocalBusAddonCard = 0xA3,
- MemoryArrayLocationCXLFlexbus10AddonCard = 0xA4
+ MemoryArrayLocationCXLAddonCard = 0xA4
} MEMORY_ARRAY_LOCATION;
///
@@ -1763,17 +1772,18 @@ typedef struct {
/// Memory Device - Memory Technology
///
typedef enum {
- MemoryTechnologyOther = 0x01,
- MemoryTechnologyUnknown = 0x02,
- MemoryTechnologyDram = 0x03,
- MemoryTechnologyNvdimmN = 0x04,
- MemoryTechnologyNvdimmF = 0x05,
- MemoryTechnologyNvdimmP = 0x06,
+ MemoryTechnologyOther = 0x01,
+ MemoryTechnologyUnknown = 0x02,
+ MemoryTechnologyDram = 0x03,
+ MemoryTechnologyNvdimmN = 0x04,
+ MemoryTechnologyNvdimmF = 0x05,
+ MemoryTechnologyNvdimmP = 0x06,
//
// This definition is updated to represent Intel
- // Optane DC Presistent Memory in SMBIOS spec 3.3.0
+ // Optane DC Persistent Memory in SMBIOS spec 3.4.0
//
- MemoryTechnologyIntelPersistentMemory = 0x07
+ MemoryTechnologyIntelOptanePersistentMemory = 0x07
+
} MEMORY_DEVICE_TECHNOLOGY;
///
diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c
index 39a3e3c089..7fc9d38a3b 100644
--- a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c
+++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c
@@ -2300,8 +2300,8 @@ TABLE_ITEM PMALocationTable[] = {
L" PC-98/Local bus add-on card"
},
{
- MemoryArrayLocationCXLFlexbus10AddonCard,
- L" CXL Flexbus 1.0 add-on card"
+ MemoryArrayLocationCXLAddonCard,
+ L" CXL add-on card"
}
};
@@ -2650,8 +2650,8 @@ TABLE_ITEM MemoryDeviceMemoryTechnologyTable[] = {
L" NVDIMM-P"
},
{
- MemoryTechnologyIntelPersistentMemory,
- L" Intel Optane DC Persistent Memory"
+ MemoryTechnologyIntelOptanePersistentMemory,
+ L" Intel Optane Persistent Memory"
}
};