HoraceX Lien
665b223d57
ShellPkg/Pci.c: Update supported link speed to PCIe Gen6
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4779
Refer to PCI express base specification Reversion 6.2,
table 7-23 Link Capabilities Register.
Supported Link Speeds Vector bit 5: speed 64 GT/s.
Add the support to shell command 'pci'.
Signed-off-by: HoraceX Lien <horacex.lien@intel.com >
Cc: Zhichao Gao <zhichao.gao@intel.com >
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com >
2024-06-07 09:06:49 +00:00
Jason Lou
7ea05d8fe9
ShellPkg/SmbiosView: Support New ProcessorUpgrade for SMBIOS Type4
...
The patch updates SmbiosView to support new ProcessorUpgrade for SMBIOS
Type4 based on SMBIOS 3.8.0.
Signed-off-by: Jason Lou <yun.lou@intel.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
Reviewed-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Star Zeng <star.zeng@intel.com >
Cc: Zhichao Gao <zhichao.gao@intel.com >
2024-04-16 08:25:44 +00:00
HoraceX Lien
963671d380
ShellPkg: Update smbiosview type 4 with SMBIOS 3.6 fields
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4737
update smbiosview type 4 related fileds.
Signed-off-by: HoraceX Lien <horacex.lien@intel.com >
Cc: Zhichao Gao <zhichao.gao@intel.com >
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com >
2024-04-10 02:01:37 +00:00
Jason Lou
3775122ede
ShellPkg/SmbiosView: Support New ProcessorFamily for SMBIOS Type4
...
The patch updates SmbiosView to support new ProcessorFamily for SMBIOS
Type4 based on SMBIOS 3.8.0.
Signed-off-by: Jason Lou <yun.lou@intel.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
Reviewed-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhichao Gao <zhichao.gao@intel.com >
2024-03-04 07:38:26 +00:00
Dongyan Qian
927ea1364d
ShellPkg: Update smbiosview for LoongArch
...
According to SMBIOS spec3.6, LoongArch information support has been added,
so this patch is submitted for display as information in smbiosview.
Cc: Zhichao Gao <zhichao.gao@intel.com >
Cc: Chao Li <lichao@loongson.cn >
Signed-off-by: Dongyan Qian <qiandongyan@loongson.cn >
Reviewed-by: Chao Li <lichao@loongson.cn >
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com >
2024-02-02 01:52:58 +00:00
Page Chen
fe2abc9b74
ShellPkg: Fix typos
...
begining->beginning
dirve->drive
duplicat->duplicate
fuly->fully
Funciton->Function
Functino->Function
optioanl->optional
poitners->pointers
rountine->routine
sucessful->successful
sucessfully->successfully
Signed-off-by: Page Chen <paiching_chen@apple.com >
Cc: Zhichao Gao <zhichao.gao@intel.com >
Cc: Andrew Fish <afish@apple.com >
Message-Id: <829d2bed2a848229d719d7ae7b64ef1a47782720.1699557986.git.paiching_chen@apple.com >
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com >
2023-12-08 13:25:11 +00:00
Eduardo Cuevas Farfan
4c8144dd66
ShellPkg: Add ProcessorUpgradeSocket definitions from SMBIOS 3.7.0
...
This patch adds below definitions from SMBIOS 3.7.0 into QueryTable.c
- ProcessorUpgradeSocketAM5
- ProcessorUpgradeSocketSP5
- ProcessorUpgradeSocketSP6
- ProcessorUpgradeSocketBGA883
- ProcessorUpgradeSocketBGA1190
- ProcessorUpgradeSocketBGA4129
- ProcessorUpgradeSocketLGA4710
- ProcessorUpgradeSocketLGA7529
Signed-off-by: Eduardo Cuevas Farfan <eduardo.cuevas.farfan@intel.com >
Reviewed-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com >
2023-08-31 13:20:19 +00:00
Nhi Pham
a481c11144
ShellPkg/SmbiosView: Update display of PCIe system slot ID
...
This updates the system slot ID up to SlotTypePCIExpressGen6andBeyond
(0xC4) added by updating type 9 with SMBIOS version 3.5 to cover modern
PCIe Gens.
Signed-off-by: Nhi Pham <nhi@os.amperecomputing.com >
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com >
2023-08-30 08:16:24 +00:00
Simon Wang
8314a85893
ShellPkg/SmbiosView: type 45 and type 46 support.
...
The initial version of Smbios Specification 3.6.0
type 45 and type 46 support.
Signed-off-by: Simon Wang <simowang@nvidia.com >
Cc: Ray Ni <ray.ni@intel.com >
Cc: Zhichao Gao <zhichao.gao@intel.com >
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com >
2023-06-08 07:11:06 +00:00
Thejaswani Putta
78262899d2
ShellPkg: Add a condition to print accurate type0 Bios Size in smbiosview.
...
As per the SMBIOS spec, in smbios type0 table, if the Bios size is
greater than 16MB, extended bios size is used to update size information
and bios size is set to 0xff. when this data is printed by smbiosview,
both bios size and extended bios size is printed if the smbios version
is beyond 3.1, which is incorrect as Bios size is set to 0xff when
rom size is more than 16MB.
To fix this bug, added a condition to print bios size only when it is
not set to 0xff or if the smbios version is older than 3.1.
Signed-off-by: Thejaswani Putta <tputta@nvidia.com >
Cc: Ray Ni <ray.ni@intel.com >
Cc: Zhichao Gao <zhichao.gao@intel.com >
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com >
2023-06-02 07:36:02 +00:00
Giri Mudusuru
0b37723186
ShellPkg/UefiShellDebug1CommandsLib: Replace hardcoded SMBIOS strings.
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3805
Replace hardcoded SMBIOS Anchor string and size with defines.
Fix buffer overflow as described below.
Smbios64BitPrintEPSInfo () is coded like:
UINT8 Anchor[5];
MemToString (Anchor, SmbiosTable->AnchorString, 5);
But the definition of MemToString()
Copy Length of Src buffer to Dest buffer,
add a NULL termination to Dest buffer.
So Anchor needs to be +1 the size of the SMBIOS Anchor string `_SM3_`.
Changes from v1 to v2:
- Replace doxygen style inline comments
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Cc: Andrew Fish <afish@apple.com >
Signed-off-by: Giri Mudusuru <girim@apple.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2023-05-12 05:09:14 +00:00
Sam Kaynor
42b0443599
ShellPkg: UefiShellDebug1CommandsLib: Uefi Config Tables in Dmem.c
...
Added entries for UEFI Config Tables not present in current
Dmem output.
Cc: Ray Ni <ray.ni@intel.com >
Cc: Zhichao Gao <zhichao.gao@intel.com >
Signed-off-by: Sam Kaynor <Sam.Kaynor@arm.com >
Reviewed-by: Sunny Wang <sunny.wang@arm.com >
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com >
Reviewed-by: Samer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com >
2023-04-13 05:52:32 +00:00
Lin, MillerX
51734dfc48
ShellPkg: Update smbiosview type 0/4/17/41 with SMBIOS 3.5 fields
...
Signed-off-by: MillerX Lin <millerx.lin@intel.com >
Cc: Ray Ni <ray.ni@intel.com >
Cc: Zhichao Gao <zhichao.gao@intel.com >
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com >
2023-04-11 07:11:30 +00:00
Michael Kubacki
11dd44dfbe
ShellPkg: Fix conditionally uninitialized variables
...
Fixes CodeQL alerts for CWE-457:
https://cwe.mitre.org/data/definitions/457.html
Cc: Erich McMillan <emcmillan@microsoft.com >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Michael Kubacki <mikuback@linux.microsoft.com >
Cc: Ray Ni <ray.ni@intel.com >
Cc: Zhichao Gao <zhichao.gao@intel.com >
Co-authored-by: Erich McMillan <emcmillan@microsoft.com >
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com >
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com >
Reviewed-by: Oliver Smith-Denny <osd@smith-denny.com >
2023-04-03 15:29:08 +00:00
Michael D Kinney
e4c1d8d231
ShellPkg/Library: Fix 32-bit truncation of pointer values
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4366
Update C and UNI files that are incorrectly using %x or %08x
instead of %p for pointer values. On 64-bit systems, this is
truncating pointer values above 4GB.
In reviewing ShellPkg for this issue some unused UNI strings
with incorrect format specifiers were removed instead of being
fixed.
Cc: Ray Ni <ray.ni@intel.com >
Cc: Zhichao Gao <zhichao.gao@intel.com >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Ray Ni <ray.ni@intel.com >
2023-03-13 22:11:55 +00:00
Prakash.K
6c1988af76
ShellPkg: Display SMBIOS Type38 fields in smbiosview in formatted view
...
In smbiosview command in shell, below are the fields of SMBIOS
Type38 table which can be displayed in formatted manner.
1. Base Address
1. IPMI Specification Version.
2. NV Storage Device Address.
Base Address:
As per spec, the value in Base Address field of SMBIOS type38 table
should be right shifted by 1 if the interface type is SSIF.
IPMI Specification Version:
If the value in IPMI Specification Version field is 15H,
it should be displayed 1.5.
NV Storage Device Address:
If the value in NV Storage Device Address field is 0xFF,
it should be displayed as "No storage device is Present".
Cc: Vasudevan Sambandan <vasudevans@ami.com >
Cc: Sundaresan Selvaraj <sundaresans@ami.com >
Cc: Gayathri Thunuguntla <gayathrit@ami.com >
Signed-off-by: Prakash K <prakashk@ami.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2023-01-18 02:21:19 +00:00
Zhang, JuX
d992163da6
ShellPkg/SmbiosView: Update ProcessorUpgradeTable
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4156
Refer to the latest SMBIOS v3.6, SMBIOS Socket not completely defined.
SMBIOS v3.6:
https://www.dmtf.org/sites/default/files/standards/documents/
DSP0134_3.6.0.pdf
Signed-off-by: JuX Zhang <jux.zhang@intel.com >
Cc: Zhichao Gao <zhichao.gao@intel.com >
Cc: Jiaxin Wu <jiaxin.wu@intel.com >
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com >
Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com >
2022-11-28 08:41:04 +00:00
Sainadh Nagolu
c17c3c24d8
ShellPkg:Improved Smbios Type9 data under smbiosview
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4135
Added spec version check while publishing new Type9 fields,
added Slot Pitch field which was missing and
corrected the publishing order as per Smbios spec.
Cc: Vasudevan S <vasudevans@ami.com >
Cc: Sundaresan S <sundaresans@ami.com >
Signed-off-by: Sainadh Nagolu <sainadhn@ami.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2022-11-11 01:29:14 +00:00
Min M Xu
6ca9f410d1
ShellPkg: Update shell command memmap to show unaccepted memory
...
RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3937
ShellCommandRunMemMap() is updated to handle the case of unaccepted
memory type.
Cc: Ray Ni <ray.ni@intel.com >
Cc: Zhichao Gao <zhichao.gao@intel.com >
Cc: Erdem Aktas <erdemaktas@google.com >
Cc: Gerd Hoffmann <kraxel@redhat.com >
Cc: James Bottomley <jejb@linux.ibm.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Tom Lendacky <thomas.lendacky@amd.com >
Acked-by: Gerd Hoffmann <kraxel@redhat.com >
Acked-by: Zhichao Gao <zhichao.gao@intel.com >
Signed-off-by: Min Xu <min.m.xu@intel.com >
2022-11-01 10:08:10 +00:00
Sainadh Nagolu
35d167ef3c
ShellPkg: Improved Smbios Type 9 table changes in PrintInfo.c
...
Since PeerGroups has a variable number of entries, new fields added
after PeerGroups are defined in a extended structure.
Done changes in PrintInfo.c to access those fields using
SMBIOS_TABLE_TYPE9_EXTENDED structure from SmBios.h.
Signed-off-by: Sainadh Nagolu <sainadhn@ami.com >
Cc: Vasudevan Sambandan <vasudevans@ami.com >
Cc: Sundaresan S <sundaresans@ami.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2022-08-18 08:41:22 +00:00
Shengfengx Xue
74f44d920a
ShellPkg/SmbiosView: Display extended memory info in smbiosview -t 17
...
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 >
2022-08-15 03:44:57 +00:00
Bo Chang Ke
483d3bb716
ShellPkg: Update smbiosview type 0 with SMBIOS 3.5 fields
...
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3906
update smbiosview type 0 related fileds.
Signed-off-by: Bo Chang Ke <bo-changx.ke@intel.com >
Cc: Ray Ni <ray.ni@intel.com >
Cc: Zhichao Gao <zhichao.gao@intel.com >
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com >
2022-04-25 07:20:26 +00:00
Bo Chang Ke
a85ae8d964
ShellPkg: Update smbiosview type 9 with SMBIOS 3.5 fields
...
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3896
update smbiosview type 9 related fileds.
Signed-off-by: Bo Chang Ke <bo-changx.ke@intel.com >
Cc: Ray Ni <ray.ni@intel.com >
Cc: Zhichao Gao <zhichao.gao@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com >
2022-04-22 01:48:09 +00:00
Ke, Bo-ChangX
9bf7291d63
ShellPkg: Update smbiosview type 41 with SMBIOS 3.5 fields
...
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3900
update smbiosview type 41 related fileds.
Signed-off-by: Bo Chang Ke <bo-changx.ke@intel.com >
Cc: Ray Ni <ray.ni@intel.com >
Cc: Zhichao Gao <zhichao.gao@intel.com >
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com >
Reviewed-by: Ray Ni <ray.ni@intel.com >
2022-04-15 03:06:02 +00:00
Michael Kubacki
47d20b54f9
ShellPkg: Apply uncrustify changes
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737
Apply uncrustify changes to .c/.h files in the ShellPkg package
Cc: Andrew Fish <afish@apple.com >
Cc: Leif Lindholm <leif@nuviainc.com >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com >
Reviewed-by: Ray Ni <ray.ni@intel.com >
2021-12-07 17:24:28 +00:00