]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg/SmbiosView: Display extended memory info in smbiosview -t 17
authorShengfengx Xue <shengfengx.xue@intel.com>
Sat, 6 Aug 2022 02:02:13 +0000 (10:02 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 15 Aug 2022 03:44:57 +0000 (03:44 +0000)
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=4014

If Configured Memory Speed is 65,535 MT/s or greater,
and the actual speed is stored in the Extended Configured Memory Speed
field. but current Smbiosview have no this logic.

Signed-off-by: Shengfengx Xue <shengfengx.xue@intel.com>
ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c

index a0ee286c9ae288f5fd5f835fce8a90df0378bb3d..0ab9f5063a8db56d345e54a295d38145dc45105a 100644 (file)
@@ -878,6 +878,11 @@ SmbiosPrintStructure (
         }\r
       }\r
 \r
+      if (AE_SMBIOS_VERSION (0x3, 0x3) && (Struct->Hdr->Length > 0x54)) {\r
+        PRINT_STRUCT_VALUE_H (Struct, Type17, ExtendedSpeed);\r
+        PRINT_STRUCT_VALUE_H (Struct, Type17, ExtendedConfiguredMemorySpeed);\r
+      }\r
+\r
       break;\r
 \r
     //\r