Ard Biesheuvel
4ddf2448ed
MdePkg/BaseRngLib AARCH64: Remove overzealous ASSERT()
...
BaseRngLib on AARCH64 will discover whether or not RNDR instructions are
supported, by inspecting the ISAR0 identification register, and setting
a global boolean accordingly. This boolean is used in subsequent
execution to decide whether or not to issue the instruction.
The same discovery code also ASSERT()s that RNDR instructions are
implemented, which is unnecessary, and breaks execution on systems that
incorporate the library but don't implement the instruction (or fail to
expose it to the exception level that the firmware executes at).
So drop the ASSERT().
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Committed-by: Ard Biesheuvel <ardb@kernel.org >
Signed-off-by: Doug Flick [MSFT] <doug.edk2@gmail.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2024-05-24 15:48:52 +00:00
Doug Flick
dff3d3811f
MdePkg: Add MockHash2 Protocol for testing
...
This commit adds a new MockHash2 protocol to the MdePkg. This allows
the unit tests to pick up the new protocol and use it for testing.
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Signed-off-by: Doug Flick [MSFT] <doug.edk2@gmail.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2024-05-24 15:48:52 +00:00
Doug Flick
4afb939531
MdePkg: Adds Protocol for MockRng
...
This patch adds a protocol for MockRng. This protocol is used to
mock the Rng protocol for testing purposes.
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Signed-off-by: Doug Flick [MSFT] <doug.edk2@gmail.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2024-05-24 15:48:52 +00:00
Doug Flick
72a9ef1c8a
MdePkg: Add MockUefiBootServicesTableLib
...
This commit adds a mock library for UefiBootServicesTableLib.
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Signed-off-by: Doug Flick [MSFT] <doug.edk2@gmail.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2024-05-24 15:48:52 +00:00
Shun Cheng Liu
558a25366d
MdePkg/BaseLib: Fix AARCH64 compilation error
...
Declare InternalAssertJumpBuffer as EXTERN
Cc: Leif Lindholm <quic_llindhol@quicinc.com >
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org >
Cc: Sami Mujawar <sami.mujawar@arm.com >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Signed-off-by: Shun Cheng Liu <adam.liu@tw.synaptics.com >
Reviewed-by: levi.yun <yeoreum.yun@arm.com >
2024-05-15 01:13:18 +00:00
Ray Ni
4b6ee06a09
MdePkg: Add MmUnblockMemoryLib to MdeLibs.dsc
...
MdeLibs.dsc.inc included some default libraries provided by MdePkg.
Platform can include MdeLibs.dsc.inc file to avoid some potential
incompatible changes to platform dsc file in future.
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Ray Ni <ray.ni@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Cc: Jiaxin Wu <jiaxin.wu@intel.com >
Cc: Yuanhao Xie <yuanhao.xie@intel.com >
Signed-off-by: Hongbin1 Zhang <hongbin1.zhang@intel.com >
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com >
Reviewed-by: Ray Ni <ray.ni@intel.com >
Reviewed-by: Zhiguang Liu <zhiguang.liu@intel.com >
2024-05-10 03:46:27 +00:00
praveensankarn
25996a3441
MdePkg: Updated SpcrTable structure for Revision_4
...
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=4656
In SPCR table, 4 structure members have been added newly as per SPCR
table Revision 4, which has to be added in
MdePkg/Include/IndustryStandard/SerialPortConsoleRedirectionTable.h.
Signed-off-by: Praveen Sankar N <praveensankarn@ami.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Felix Polyudov <Felixp@ami.com >
Cc: Srinivasan Mani <srinivasanm@ami.com >
Cc: Sundaresan S <sundaresans@ami.com >
Cc: Rabisha R <rabishar@ami.com >
2024-05-09 15:08:55 +08:00
Sachin Ganesh
f3b0ee0cee
MdePkg: Update Delayed Dispatch PPI as per PI 1.8 Spec
...
Added WaitOnEvent() function to EFI_DELAYTED_DISPATCH_PPI.
Modified DispatchRegister() parameter list.
Cc: Felix Polyudov <felixp@ami.com >
Cc: Dhanaraj V <vdhanaraj@ami.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Signed-off-by: Sachin Ganesh <sachinganesh@ami.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2024-05-08 11:34:49 +00:00
Sachin Ganesh
6fd2d58d5d
MdePkg: Define Unaccepted Memory Type
...
EFI_RESOURCE_MEMORY_UNACCEPTED has been officially defined in the PI
1.8 specification. So all temporary solutions have been replaced with
the actual definition.
Cc: Felix Polyudov <felixp@ami.com >
Cc: Dhanaraj V <vdhanaraj@ami.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Signed-off-by: Sachin Ganesh <sachinganesh@ami.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2024-05-08 11:34:49 +00:00
Sachin Ganesh
b538d6a1b1
MdePkg: Add new Resource Attributes defined in PI 1.8 Spec
...
Defined Encrypted and Special Purpose resource attributes as
defined in PI 1.8 Specification
Cc: Felix Polyudov <felixp@ami.com >
Cc: Dhanaraj V <vdhanaraj@ami.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Signed-off-by: Sachin Ganesh <sachinganesh@ami.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2024-05-08 11:34:49 +00:00
Sachin Ganesh
b04e11b4c4
MdePkg: Add definition for NVMe Over Fabric Device Path
...
In accordance with UEFI 2.10 Specification:
Adding definition for NVMe Over Fabric (NVMe-oF) Device Path
of Messaging Sub-Type.
Cc: Felix Polyudov <felixp@ami.com >
Cc: Dhanaraj V <vdhanaraj@ami.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Signed-off-by: Sachin Ganesh <sachinganesh@ami.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2024-05-08 11:34:49 +00:00
Abner Chang
fa7fdb89a3
MdePkg/SpiConfiguration: Correct the definition spelling
...
Cc: Abner Chang <abner.chang@amd.com >
Cc: Abdul Lateef Attar <AbdulLateef.Attar@amd.com >
Signed-off-by: Brit Chesley <brit.chesley@amd.com >
Reviewed-by: Abner Chang <abner.chang@amd.com >
2024-05-08 04:43:58 +00:00
Dionna Glaze
370c55b2ba
MdePkg: Add TcgSp800155Event3 type info
...
TCG PC Client Platform Firmware Profile 1.06 revision 52 of December
2023 added a new event signature and extended information about where a
reference measurement document for the firmware can be found.
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com >
Signed-off-by: Dionna Glaze <dionnaglaze@google.com >
Acked-by: Liming Gao <gaoliming@byosoft.com.cn >
2024-05-07 00:21:40 +00:00
Wenxing Hou
74db2ed3e5
MdePkg: Add devAuthBoot GlobalVariable
...
According to UEFI 2.10 spec 3.3 Globally Defined Variables section,
add devAuthBoot GlobalVariable.
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Signed-off-by: Wenxing Hou <wenxing.hou@intel.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com >
2024-04-30 02:21:13 +00:00
Wenxing Hou
5f391c6606
MdePkg: Add TCG PFP 1.06 support.
...
Add support for
TCG PC Client Platform Firmware Profile Specification 1.06.
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Signed-off-by: Wenxing Hou <wenxing.hou@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com >
2024-04-30 02:21:13 +00:00
Wenxing Hou
338fd26b8f
MdePkg: Add SPDM1.2 support.
...
Update Spdm.h to support 1.2 new features, such as:
Authentication and measurement. It wil be used in DeviceSecurity.
The DeviceSecurity feature is from
TCG PC Client Platform Firmware Profile Specification 1.06.
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Signed-off-by: Wenxing Hou <wenxing.hou@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com >
2024-04-30 02:21:13 +00:00
Foster Nong
094727264f
MdePkg: Add Cxl30.h into IndustryStandard
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4516
1) Add CXL 3.0 header file to comply with CXL 3.0 specification
2) CXL 3.0 header will embed Cxl20.h
3) Updated Cxl.h to point to 3.0 header file
Signed-off-by: Foster Nong <foster.nong@intel.com >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Ray Ni <ray.ni@intel.com >
Cc: Chris Li <chrisli@os.amperecomputing.com >
Acked-by: Liming Gao <gaoliming@byosoft.com.cn >
2024-04-29 10:39:23 +00:00
abnchang
390b10b548
MdePkg/Include: Add SPI NOR Flash JEDEC SFDP header file
...
BZ#: 4472
Add definition of JEDEC Serial Flash Discoverable Parameters
(SFDP) specification.
https://www.jedec.org/standards-documents/docs/jesd216b
Signed-off-by: Abner Chang <abner.chang@amd.com >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Cc: Abdul Lateef Attar <abdattar@amd.com >
Cc: Brit Chesley <brit.chesley@amd.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
Reviewed-by: Abdul Lateef Attar <abdattar@amd.com >
2024-04-20 08:26:40 +00:00
abnchang
7dec566775
MdePkg/Include: Update definitions of SPI related header files
...
BZ#: 4471
Update definitions according to PI spec 1.8 errata A
Signed-off-by: Abner Chang <abner.chang@amd.com >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Cc: Abdul Lateef Attar <abdattar@amd.com >
Cc: Brit Chesley <brit.chesley@amd.com >
Reviewed-by: Abdul Lateef Attar <abdattar@amd.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2024-04-20 08:26:40 +00:00
Tom Lendacky
c0bf953fe8
MdePkg/BaseLib: Add a new VMGEXIT instruction invocation for SVSM
...
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4654
The SVSM specification relies on a specific register calling convention to
hold the parameters that are associated with the SVSM request. The SVSM is
invoked by requesting the hypervisor to run the VMPL0 VMSA of the guest
using the GHCB MSR Protocol or a GHCB NAE event.
Create a new version of the VMGEXIT instruction that will adhere to this
calling convention and load the SVSM function arguments into the proper
register before invoking the VMGEXIT instruction. On return, perform the
atomic exchange on the SVSM call pending value as specified in the SVSM
specification.
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Acked-by: Gerd Hoffmann <kraxel@redhat.com >
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com >
2024-04-17 18:30:03 +00:00
Tom Lendacky
8ccbf075f0
MdePkg/Register/Amd: Define the SVSM related information
...
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4654
The Secure VM Service Module specification defines the interfaces needed
to allow multi-VMPL level execution of an SEV-SNP guest.
Define the SVSM related structures for the SVSM Calling Area as well as
the SVSM CAA MSR. The SVSM CAA MSR is an MSR register that is reserved for
software use and will not be implemented in hardware.
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Acked-by: Gerd Hoffmann <kraxel@redhat.com >
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com >
2024-04-17 18:30:03 +00:00
Tom Lendacky
f40c1f2a30
MdePkg: Avoid hardcoded value for number of Page State Change entries
...
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4654
The SNP_PAGE_STATE_MAX_ENTRY is based on the number of entries that can
fit in the GHCB shared buffer. As a result, the SNP_PAGE_STATE_CHANGE_INFO
structure maps the full GHCB shared buffer based on the shared buffer size
being 2032 bytes.
Instead of using a hardcoded value for SNP_PAGE_STATE_MAX_ENTRY, use a
build calculated value. Since the SNP_PAGE_STATE_CHANGE_INFO is used as a
mapping, eliminate the hardcoded array size so that the structure can be
used based on any size buffer.
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com >
Acked-by: Gerd Hoffmann <kraxel@redhat.com >
2024-04-17 18:30:03 +00:00
Tom Lendacky
8a6471819b
MdePkg: GHCB APIC ID retrieval support definitions
...
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4654
When an SVSM is present, starting the APs requires knowledge of the APIC
IDs. Create the definitions required to retrieve and hold the APIC ID
information of all the vCPUs present in the guest.
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Acked-by: Gerd Hoffmann <kraxel@redhat.com >
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com >
2024-04-17 18:30:03 +00:00
Jason Lou
bfcf2d66c7
MdePkg/SmBios.h: Add New ProcessorUpgrade definitions for SMBIOS Type4
...
The patch adds new ProcessorUpgrade definitions 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: Zhiguang Liu <zhiguang.liu@intel.com >
Cc: Dandan Bi <dandan.bi@intel.com >
Cc: Star Zeng <star.zeng@intel.com >
Cc: Zhichao Gao <zhichao.gao@intel.com >
Cc: Benny Lin <benny.lin@intel.com >
Cc: Gua Guo <gua.guo@intel.com >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
2024-04-16 08:25:44 +00:00
Qingyu
e25808f501
MdePkg: Update the comments of GetInformation function
...
Refer to Uefi spec 2.10 section 11.11.2, add a new retval
EFI_NOT_FOUND to EFI_ADAPTER_INFORMATION_PROTOCOL.GetInformation().
Reference: [mantis #1866 ] - GetInfo() of Adapter Information
Protocol should have a provision for IHV to return no data.
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Signed-off-by: Qingyu <qingyu.shang@intel.com >
Signed-off-by: Gahan Saraiya <gahan.saraiya@intel.com >
2024-04-15 21:30:48 +08:00
Tuan Phan
f1203a4099
MdePkg.dec: RISC-V: Define override bit for Svpbmt extension
...
Define the BIT 2 as the override bit for Svpbmt extension. This will
be used by RISC-V MMU library to support EFI_MEMORY_UC and
EFI_MEMORY_WC.
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Signed-off-by: Tuan Phan <tphan@ventanamicro.com >
Reviewed-by: Laszlo Ersek <lersek@redhat.com >
Reviewed-by: Sunil V L <sunilvl@ventanamicro.com >
2024-04-08 05:43:59 +00:00
Wenxing Hou
7fde22823d
MdePkg: Add gEfiDeviceSignatureDatabaseGuid to dec
...
According to UEFI 2.10 spec
32.8.2 UEFI Device Signature Variable GUID and Variable Name section,
add gEfiDeviceSignatureDatabaseGuid to dec.
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Signed-off-by: Wenxing Hou <wenxing.hou@intel.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2024-03-29 03:04:09 +00:00
Wenxing Hou
e4e1f6229c
MdePkg: Add UEFI 2.10 DeviceAuthentication
...
According to UEFI 2.10 spec
32.8.2 UEFI Device Signature Variable GUID and Variable Name section,
add signature database for device authentication.
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Signed-off-by: Wenxing Hou <wenxing.hou@intel.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2024-03-29 03:04:09 +00:00
Ceping Sun
07c49d5d40
MdePkg/BaseLib: Update TDVMCALL_EXPOSE_REGS_MASK
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4696
Refer to the [GHCI] spec, TDVF should clear the BIT5 for RBP in the mask.
Reference:
[GHCI]: TDX Guest-Host-Communication Interface v1.5
https://cdrdv2.intel.com/v1/dl/getContent/726792
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Erdem Aktas <erdemaktas@google.com >
Cc: James Bottomley <jejb@linux.ibm.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Min Xu <min.m.xu@intel.com >
Cc: Tom Lendacky <thomas.lendacky@amd.com >
Cc: Michael Roth <michael.roth@amd.com >
Cc: Isaku Yamahata <isaku.yamahata@intel.com >
Signed-off-by: Ceping Sun <cepingx.sun@intel.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2024-03-19 09:42:06 +00:00
Qingyu Shang
a8b80149e1
MdePkg: Update ReceiveData and SendData function description
...
Refer to UEFI Spec 2.10 section 13.14, update the parameter 'MediaId'
description for EFI_STORAGE_SECURITY_COMMAND_PROTOCOL function
ReceiveData and SendData.
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Signed-off-by: Qingyu Shang <qingyu.shang@intel.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2024-03-13 02:48:38 +00:00
Jason Lou
47723854fd
MdePkg/SmBios.h: Add New ProcessorFamily definitions for SMBIOS Type4
...
The patch adds new ProcessorFamily definitions 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: Zhiguang Liu <zhiguang.liu@intel.com >
Cc: Dandan Bi <dandan.bi@intel.com >
Cc: Star Zeng <star.zeng@intel.com >
Cc: Zhichao Gao <zhichao.gao@intel.com >
Cc: Benny Lin <benny.lin@intel.com >
Cc: Gua Guo <gua.guo@intel.com >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
2024-03-04 07:38:26 +00:00
Junfeng Guan
68238d4f94
MdePkg Updated the comments of EFI_SYSTEM_TABLE and ReadKeyStroke
...
1. Refer to Uefi spec 2.10 section 4.3.1, Updated the comments of
EFI_SYSTEM_TABLE to satisfy ConIn/ConOut/StdErr requirements.
2. Refer to Uefi spec 2.10 section 13.3.3, Add a new retval
EFI_UNSUPPORTED to EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL.ReadKeyStrokeEx
and EFI_SIMPLE_TEXT_INPUT_PROTOCOL.ReadKeyStroke().
Signed-off-by: Junfeng Guan <junfengx.guan@intel.com >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2024-02-26 19:18:00 +00:00
Yi Li
d0c0e1960a
MdePkg: Update keybaord map based on UEFI spec 2.10
...
REF: UEFI SPEC 2.10 34.8.10 EFI_KEY
Add EfiKeyIntl0-9.
Signed-off-by: Yi Li <yi1.li@intel.com >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2024-02-26 15:32:09 +00:00
Michael D Kinney
ded41a64bd
MdePkg/Include: Rename _DEBUG() to address name collision
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4683
When VS20xx host-based unit tests are built with debug
libraries a name collision occurs with the DebugLib.h
internal macro _DEBUG(). Rename this internal macro
to _DEBUGLIB_DEBUG() to address the name collision.
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Leif Lindholm <quic_llindhol@quicinc.com >
2024-02-14 02:37:16 +00:00
Suqiang Ren
e4ceae5c18
MdePkg: Add EFI_UNSUPPORTED return for some Runtime Service functions
...
According to UEFI Spec 2.10 page 206, if any EFI_RUNTIME_SERVICES* calls
are not supported for use by the OS at runtime, an EFI_RT_PROPERTIES_TABLE
configuration table should be published describing which runtime services
are supported at runtime. So need to add EFI_UNSUPPORTED return for some
Runtime Service functions.
REF: UEFI spec 2.10 section 8 Services ? Runtime Services
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Signed-off-by: Suqiang Ren <suqiangx.ren@intel.com >
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2024-02-09 22:16:32 +00:00
Michael D Kinney
4d1f0babe2
MdePkg: Add SynchronizationLib to MdeLibs.dsc.inc
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4675
Add library mapping for the SynchronizationLib to MdeLibs.dsc.inc
to resolve build failures in the FmpDevicePkg and NetworkPkg for
missing library mapping.
The following email details why this was missed by EDK II CI
* https://edk2.groups.io/g/devel/message/115185
Local builds of all packages that use -D CONTINUOUS_INTEGRATION
were performed to verify that this change resolves the missing
library mapping.
Cc: Andrew Fish <afish@apple.com >
Cc: Leif Lindholm <quic_llindhol@quicinc.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Cc: Wei6 Xu <wei6.xu@intel.com >
Cc: Saloni Kasbekar <saloni.kasbekar@intel.com >
Cc: Zachary Clark-williams <zachary.clark-williams@intel.com >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Leif Lindholm <quic_llindhol@quicinc.com >
2024-02-07 18:54:39 +00:00
Doug Flick via groups.io
7f04c7a253
MdePkg: Test: Add gRT_GetTime Google Test Mock
...
This adds support for GetTime Google Test Mock
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Signed-off-by: Doug Flick [MSFT] <doug.edk2@gmail.com >
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com >
2024-02-06 19:24:26 +00:00
Chao Li
f560c5d112
MdePkg: Add some comments for LoongArch exceptions
...
Added some comments for registing LoongArch exceptions.
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4584
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Signed-off-by: Chao Li <lichao@loongson.cn >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2024-02-06 23:51:47 +08:00
Chao Li
3f8fb8aeb9
MdePkg: Add a new library named PeiServicesTablePointerLibKs0
...
Adding PeiServicesTablePointerLibKs0 for LoongArch64, which provides
setting and getting the PEI service table pointer through the CSR KS0
register.
The idea of this library is derived from
ArmPkg/Library/PeiServicesTablePointerLib/
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4584
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Cc: Laszlo Ersek <lersek@redhat.com >
Signed-off-by: Chao Li <lichao@loongson.cn >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2024-02-06 23:51:47 +08:00
Chao Li
bc0b418cba
MdePkg: Add IOCSR operation for LoongArch
...
Add IoCsrRead8, IoCsrRead16, IoCsrRead32, IoCsrRead64, IoCsrWrite8,
IoCsrWrite16, IoCsrWrite32, IoCsrWrite64 to operate the IOCSR registers
of LoongArch architecture.
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4584
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Signed-off-by: Chao Li <lichao@loongson.cn >
Acked-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2024-02-06 23:51:47 +08:00
Chao Li
0565a8e885
MdePkg: Add CSR operation for LoongArch
...
Add CsrRead, CsrWrite and CsrXChg functions for LoongArch, and use them
to operate the CSR register of LoongArch architecture.
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4584
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Signed-off-by: Chao Li <lichao@loongson.cn >
Co-authored-by: Bibo Mao <maobibo@loongson.cn >
Acked-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2024-02-06 23:51:47 +08:00
Chao Li
414ad233a5
MdePkg: Add read stable counter operation for LoongArch
...
Add LoongArch gets stable counter ASM function.
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4584
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Signed-off-by: Chao Li <lichao@loongson.cn >
Acked-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2024-02-06 23:51:47 +08:00
Chao Li
344dc4b9d3
MdePkg: Add LoongArch Cpucfg function
...
Add LoongArch AsmCpucfg function and Cpucfg definitions.
Also added Include/Register/LoongArch64/Cpucfg.h to IgnoreFiles of
EccCheck.
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4584
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Signed-off-by: Chao Li <lichao@loongson.cn >
Acked-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2024-02-06 23:51:47 +08:00
Chao Li
2ff435b264
MdePkg: Add LoongArch64 local interrupt function set into BaseLib
...
Adding LoongArch local interrupt function set, which is used to control
the opening or closing of the local interrupt when the global interrupt
is enabled.
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4584
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Signed-off-by: Chao Li <lichao@loongson.cn >
Acked-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2024-02-06 23:51:47 +08:00
Chao Li
57684402e4
MdePkg: Add LoongArch64 exception function set into BaseLib
...
Adding SetExceptionBaseAddress and SetTlbRebaseAddress functions
for LoongArch64.
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4584
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Signed-off-by: Chao Li <lichao@loongson.cn >
Acked-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2024-02-06 23:51:47 +08:00
Chao Li
e5b5073153
MdePkg: Add LoongArch64 FPU function set into BaseCpuLib
...
Adding InitializeFloatingPointUnits, EnableFloatingPointUnits and
DisableFloatingPointUnits functions for LoongArch64.
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4584
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Signed-off-by: Chao Li <lichao@loongson.cn >
Acked-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2024-02-06 23:51:47 +08:00
Chao Li
9e1576bc10
MdePkg: Add the header file named Csr.h for LoongArch64
...
Adding Csr.h for LoongArch64, it is use for accessing the CSR registers.
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4584
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Signed-off-by: Chao Li <lichao@loongson.cn >
Acked-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2024-02-06 23:51:47 +08:00
Abdul Lateef Attar
d14526372d
MdePkg: Adds AMD Extended CPU topology CPUID
...
Adds cpuid macro for AMD extended CPU topology.
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Cc: Ray Ni <ray.ni@intel.com >
Cc: Rahul Kumar <rahul1.kumar@intel.com >
Cc: Gerd Hoffmann <kraxel@redhat.com >
Signed-off-by: Abdul Lateef Attar <AbdulLateef.Attar@amd.com >
Message-Id: <15199aaefbc497bb1ea7b20028c13ebedd8c488b.1705549445.git.AbdulLateef.Attar@amd.com >
Acked-by: Michael D Kinney <michael.d.kinney@intel.com >
Acked-by: Ray Ni <ray.ni@intel.com >
Acked-by: Tom Lendacky <thomas.lendacky@amd.com >
2024-01-31 13:08:29 +00:00
Michael D Kinney
4c43209a74
MdePkg/Library/BaseCpuLibNull: Add missing X86 specific services
...
* Add InitializeFloatingPointUnits() to x86 specific file
* Add GetCpuFamilyModel() to x86 specific file
* Add GetCpuSteppingId() to x86 specific file
* Move StandardSignatureIsAuthenticAMD() to x86 specific file.
* Add CpuLib library class include to all C files.
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Cc: Laszlo Ersek <lersek@redhat.com >
Cc: Qing Huang <qing.huang@intel.com >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
Reviewed-by: Laszlo Ersek <lersek@redhat.com >
2024-01-27 19:40:15 +00:00
Ming Tan
5694ff42d5
MdePkg: Add EFI_BROWSER_ACTION_REQUEST_QUESTION_APPLY
...
REF: UEFI_Spec_2_10_Aug29.pdf page 1694
In 35.5.4 EFI_HII_CONFIG_ACCESS_PROTOCOL.CallBack() parameter
ActionRequest, add EFI_BROWSER_ACTION_REQUEST_QUESTION_APPLY.
Signed-off-by: Ming Tan <ming.tan@intel.com >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Cc: Dandan Bi <dandan.bi@intel.com >
Reviewed-by: Dandan Bi <dandan.bi@intel.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2024-01-24 15:57:35 +00:00