summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
12 daysGlobal: fix ArmFfaLibRun() caller couldn't get ret-argsLevi Yun6-14/+51
When ArmFfaLibDirectMsgReq(2) is preempted, caller of these functions should resume it works via ArmFfaLibRun() and the secure partition will be return with FFA_DIRECT_MSG_RESP(2) with return arguments. However, since ArmFfaLibRun() gets its return in its stack variable, So caller of ArmFfaLibRun() doesn't get the return arguments from secure partition. To resolve this, add output parameter to ArmFfaLibRun() to receive return arguments. Continuous-integration-options: PatchCheck.ignore-multi-package Fixes: 5d1b38dd07c4 ("ArmPkg: Add ArmFfaLib used in Dxe driver") Reported-by: Mariam Elshakfy <Mariam.Elshakfy@arm.com> Signed-off-by: Yeoreum Yun <yeoreum.yun@arm.com>
12 daysArmPlatformPkg,EmbeddedPkg,MdeModulePkg: Move RealTimeClockLib headerINDIA\sachinganesh7-1/+8
RealTimeClockLib is an architectural implementation that is not restricted to the embedded segment or any platform in particular. So the header has been moved to MdeModulePkg. And the package has been added to the relevant INF files. Continuous-integration-options: PatchCheck.ignore-multi-package Signed-off-by: Sachin Ganesh <sachinganesh@ami.com>
2025-09-05MdePkg/Inclde: Deprecate EFI_UNICODE_COLLATION_PROTOCOL_GUIDGowtham M2-14/+0
EFI_UNICODE_COLLATION_PROTOCOL_GUID is deprecated in the previous commit. Hence, removing related guid definition. Cc: Sachin Ganesh <sachinganesh@ami.com> Signed-off-by: Gowtham M <gowthamm@ami.com>
2025-09-05ShellPkg: Deprecate EFI_UNICODE_COLLATION_PROTOCOL_GUIDGowtham M3-10/+1
As EFI_UNICODE_COLLATION_PROTOCOL_GUID is being deprecated. Remove the instances used in ShellPkg. Cc: Sachin Ganesh <sachinganesh@ami.com> Signed-off-by: Gowtham M <gowthamm@ami.com>
2025-09-05MdeModulePkg: Deprecate EFI_UNICODE_COLLATION_PROTOCOL_GUIDGowtham M7-69/+13
Adding to the previous commit deprecating EFI_UNICODE_COLLATION_PROTOCOL_GUID in MdeModulePkg. Cc: Sachin Ganesh <sachinganesh@ami.com> Signed-off-by: Gowtham M <gowthamm@ami.com>
2025-09-05FatPkg/EnhanceFatDxe:Deprecate EFI_UNICODE_COLLATION_PROTOCOL_GUIDGowtham M2-14/+1
EFI_UNICODE_COLLATION_PROTOCOL_GUID was deprecated in favor of a newer version EFI_UNICODE_COLLATION_PROTOCOL2_GUID which provides improved language support and better extensibility. It was officially removed from UEFI specifications 2.10A and 2.11 and should no longer be used in current implementations. Cc: Sachin Ganesh <sachinganesh@ami.com> Signed-off-by: Gowtham M <gowthamm@ami.com>
2025-09-05MdePkg/Include: Deprecate EFI_DEVICE_IO_PROTOCOLGowtham M2-265/+0
EFI_DEVICE_IO_PROTOCOL is deprecated in the previous commit. Hence, removing related header file and guid definition. Cc: Sachin Ganesh <sachinganesh@ami.com> Signed-off-by: Gowtham M <gowthamm@ami.com>
2025-09-05ShellPkg/Library: Deprecate EFI_DEVICE_IO_PROTOCOLGowtham M5-5/+0
gEfiDeviceIoProtocolGuid identifies EFI_DEVICE_IO_PROTOCOL, which provided low-level I/O and MMIO access for UEFI drivers. It was removed in UEFI 2.10A and 2.11 due to overlapping functionality with modern protocols like EFI_PCI_IO_PROTOCOL and EFI_CPU_IO2_PROTOCOL. These newer protocols offer improved modularity, abstraction, and safety, making EFI_DEVICE_IO_PROTOCOL obsolete. Cc: Sachin Ganesh <sachinganesh@ami.com> Signed-off-by: Gowtham M <gowthamm@ami.com>
2025-09-05MdePkg/Include: Deprecate UNICODE_COLLATION_INTERFACEGowtham M1-5/+0
Remove UNICODE_COLLATION_INTERFACE typedef since unused and removed from UEFI 2.10A and 2.11 specifications. Cc: Sachin Ganesh <sachinganesh@ami.com> Signed-off-by: Gowtham M <gowthamm@ami.com>
2025-09-05MdePkg/Include: Deprecate EFI_NVDIMM_LABEL_FLAGS_UPDATINGGowtham M1-5/+0
The EFI_NVDIMM_LABEL_FLAGS_UPDATING flag is used in UEFI to indicate that an update was in progress across multiple Label Storage Areas (LSAs) on NVDIMM devices. Its purpose was to help ensure atomicity in the event of interruptions like power loss or system crashes. It is deprecated in UEFI 2.10 and 2.11, as label index blocks and checksums now provide better atomicity and consistency without requiring this flag. Cc: Sachin Ganesh <sachinganesh@ami.com> Signed-off-by: Gowtham M <gowthamm@ami.com>
2025-09-05MdePkg/Include: Deprecate EFI_NVDIMM_LABEL_FLAGS_RESERVEDGowtham M1-6/+0
EFI_NVDIMM_LABEL_FLAGS_RESERVED is a reserved bit in the NVDIMM label flags field, intended for future use. It was removed in UEFI 2.10A and 2.11 as it had no defined function and was unused in implementations. Cc: Sachin Ganesh <sachinganesh@ami.com> Signed-off-by: Gowtham M <gowthamm@ami.com>
2025-09-05MdePkg/Include: Deprecate EFI_IP4_CONFIG_PROTOCOLGowtham M2-179/+0
EFI_IP4_CONFIG_PROTOCOL is deprecated in the previous commit. Hence, removing related header file and guid definition. Cc: Sachin Ganesh <sachinganesh@ami.com> Signed-off-by: Gowtham M <gowthamm@ami.com>
2025-09-05ShellPkg/Library: Deprecate EFI_IP4_CONFIG_PROTOCOLGowtham M3-3/+0
EFI_IP4_CONFIG_PROTOCOL is superseded by EFI_IP4_CONFIG2_PROTOCOL, which provides better support for modern network stack requirements. It was officially removed from UEFI specifications 2.10A and 2.11 and should no longer be used in current implementations. Cc: Sachin Ganesh <sachinganesh@ami.com> Signed-off-by: Gowtham M <gowthamm@ami.com>
2025-09-05MdePkg: Add support for PCIe Extended IDsNanjinmoorthyj1-0/+42
Add PTM (001F) structure in MdePkg. Signed-off-by: Nanjinmoorthy <nanjinmoorthyj@ami.com>
2025-09-05ShellPkg: Add support for PCIe Extended IDsNanjinmoorthyj2-2/+41
Add a support to print PTM (001F) structure. Signed-off-by: Nanjinmoorthy <nanjinmoorthyj@ami.com>
2025-09-05MdePkg: Enable CompilerIntrinsicsLib for LoongArchChao Li2-0/+12
When arrays are lager enough, LoongArch compilers(such as GCC or Clang) will replace some libc functions to improve performace, which may cause building failures. Enabling this library can link edk2's own libc functions and fix this problem. Signed-off-by: Chao Li <lichao@loongson.cn> Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn>
2025-09-05BaseTools: PatchCheck.py: Allow MultiPkg Commits For Subject CheckOliver Smith-Denny1-3/+9
Subject Check was added to PatchCheck.py to enforce that if a package was touched in a commit that it be referenced in the subject line. However, this is impractical for multipackage commits with many packages, e.g. when stack cookies were added, every package was touched, but in a rote way, and it is not reasonable to put every package in a subject line. This updates PatchCheck.py to check if ignore_multi_package is set and if so only require that package names be included in the subject if there are fewer than 3 packages touched. Otherwise, PatchCheck will require the message to start with `Global:` to indicate it touches more than 3 packages. Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-05BaseTools/PatchCheck.py: Check CI Options Before ParsingOliver Smith-Denny1-1/+1
PatchCheck.py currently parses the CI options as the last step it does before reporting results. This means that the other checking logic cannot use any of the CI options that are passed in. This updates the order of operations to process CI options before running other checks so that they can be used in performing checks. Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-04UefiCpuPkg/MpInitLib: Ensure AP wake up on WakeUpByInitSipiSipi modePhil Noh3-2/+20
If AP loop mode is not Halt loop, it is found that the AP in ApInitDone state exits the loop mode immediately when WAKEUP_AP_SIGNAL is signaled at the first step of AP wake up. When WakeUpByInitSipiSipi is enabled, it is possible that the AP could clear StartupApSignal buffer before the BSP sends Init-Startup IPI to the AP. In the case, it causes that the BSP frees AP reset vector buffer even though AP wake up is in process. This results in an exception error. To ensure AP wake up, it is expected that the AP is in the known non-executable state before the AP wakeup signal. The issue happens when the AP is disabled through the MP service of gEfiMpServiceProtocolGuid->EnableDisableAP(FALSE) and enabled later through gEfiMpServiceProtocolGuid->EnableDisableAP(TRUE). In the flow, the AP that in MINOTOR-MWAIT-Loop or Run-Loop can respond to the WAKEUP_AP_SIGNAL before the BSP sends the INIT-SIPI-SIPI. Signed-off-by: Phil Noh <Phil.Noh@amd.com>
2025-09-04CryptoPkg: Add SNI supportINDIA\kanagavels8-1/+190
Add Server Name Indication support. Signed-off-by: Kanagavel S <Kanagavels@ami.com>
2025-09-04NetworkPkg/TlsDxe: Add SNI supportINDIA\kanagavels1-0/+4
Add Server Name Indication Support. Signed-off-by: Kanagavel S <kanagavels@ami.com>
2025-09-04MdePkg/Nvme.h: Add Power Loss Signaling definationHunter Chang1-3/+34
Add Nvme 2.1 spec update, specifically for Power Loss Signaling. 1. Update field in Identify Controller Data for Power Loss Signaling Information. 2. Add Power Loss Signaling Mode defination. 3. Add Power Loss Signaling feature identifer defination. Signed-off-by: Hunter Chang <hunter.chang@intel.com>
2025-09-04BaseTools: Update architectures in target.templateGao Qihang1-2/+2
- Remove IPF since it's no longer supported in edk2. - Rename AArch64 to AARCH64 for greater accuracy. - Add newly supported RISCV64 and LOONGARCH64. Cc: Chao Li <lichao@loongson.cn> Signed-off-by: Gao Qihang <gaoqihang@loongson.cn>
2025-09-04MdeModulePkg/UiApp: Remove unused variableQihang Gao1-6/+0
Since the variable mLanguageString is not used at all, remove it to make code clean. Signed-off-by: Qihang Gao <gaoqihang@loongson.cn>
2025-09-03MdePkg/ArmFfaMemMgmtLib: Fix typo in structure definition and commentsVishal Oliyil Kunnil1-3/+3
Fix typo in FFA_ENDPOINT_MEMORY_ACCESS_DESCRIPTOR member and comments. Signed-off-by: Vishal Oliyil Kunnil <vishalo@qti.qualcomm.com>
2025-09-02ShellPkg/UefiShellDebug1CommandsLib: Add MRDIMM entry to QueryTableNing Feng1-0/+12
Added the MRDIMM (0x08) entry to the MemoryDeviceMemoryTechnologyTable in QueryTable.c. This enables proper display and decoding of MRDIMM memory technology in SMBIOS Type 17 structures. Signed-off-by: Ning Feng <ning.feng@intel.com>
2025-09-02MdePkg/IndustryStandard: Add MRDIMM into Smbios.hNing Feng1-2/+4
Added the MRDIMM (0x08) entry to the MemoryDeviceMemoryTechnologyTable in Smbios.h. This enables proper display and decoding of MRDIMM memory technology in SMBIOS Type 17 structures. Signed-off-by: Ning Feng <ning.feng@intel.com>
2025-09-02MdePkg/Library/BaseRngLib/Riscv: use CPU RNG instructions onlyAdriano Cordova1-92/+3
Generate random number using risc-v CPU RNG instructions only, as for the other architectures. This is safer than using Mersenne Twister from a seed, which is the current implementation, as the latter is known to be cryptographically unsafe (e.g. see https://www.schutzwerk.com/en/blog/attacking-a-rng/) Signed-off-by: Adriano Cordova <adriano.cordova@canonical.com>
2025-09-02MdePkg: Correct comments for ResolutionY and ResolutionZ in SimplePointer.hYang Gang1-2/+2
Signed-off-by: Yang Gang <yanggang@byosoft.com.cn>
2025-09-02MdeModulePkg UsbMouseDxe: Correct some parameter commentsYang Gang2-2/+2
Signed-off-by: Yang Gang <yanggang@byosoft.com.cn>
2025-09-01MdeModulePkg: Fix malformed terminal control sequencesJack Little2-15/+19
Commit 9224a2b91764ab17b2c1dbc9fdcb012eaed62da6 adds support for larger terminal dimensions; however, the ANSI control sequences to manipulate the terminal cursor are not built to accomodate terminal dimensions that are three digits long. For example, suppose we want to move the cursor 163 columns to the right. The required control sequence would be `^[[163C`; however, the existing code will create a control sequence of `^[[@3C` due to trying to add 16 to the character '0' instead of either 1 or 6. This fix adds a third digit to the sequence templates for moving the cursor forward, moving it backwards, and setting the cursor position. Signed-off-by: Jack Little <jack.tay.little@hpe.com>
2025-08-30SecurityPkg/FvReportPei: Improve CheckStoredHashFv() descriptionMichael Kubacki1-4/+25
Adds more detail to the function description so the dependencies and outcomes of the verification process are easier for a reviewer and consumer to understand. Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
2025-08-29ArmPkg/ArmTransferList: add TPM_EVENT_LOG informationLevi Yun3-0/+92
Add TRANSFER_EVENT_LOG information according to firmware hand-off spec[0]. and related helper. Links: https://github.com/FirmwareHandoff/firmware_handoff/blob/main/source/transfer_list.rst#tpm-event-log-table-entry-layout-xferlist_evlog Signed-off-by: Yeoreum Yun <yeoreum.yun@arm.com>
2025-08-29ArmPkg/Library/ArmTransferList: add helper to get TransferListLevi Yun3-0/+57
Add helper to get TrnasferList from HOB list. Signed-off-by: Yeoreum Yun <yeoreum.yun@arm.com>
2025-08-29OvmfPkg/RiscVVirt: Add SecureBootDefaultKeysInit module.Tuan Phan4-1/+711
Add SecureBootDefaultKeysInit DXE driver to enroll default keys stored in FV, as EFI Shell is disabled when Secure Boot is enabled, preventing use of the EnrollDefaultKeys UEFI application. Signed-off-by: Tuan Phan <tphan@ventanamicro.com>
2025-08-29OvmfPkg/RiscVVirt: Expand variable store size for secure bootTuan Phan1-1/+2
Increase the variable store size to support secure boot, ensuring sufficient space for keys stored in authorized variables. Signed-off-by: Tuan Phan <tphan@ventanamicro.com>
2025-08-29OvmfPkg/RiscVVirt: Resolve missing TPM Modules/LibrariesTuan Phan2-0/+30
Correct missing TPM PEI/DXE library instances/modules. Signed-off-by: Tuan Phan <tphan@ventanamicro.com>
2025-08-29OvmfPkg/RiscVVirt/PlatformPei: Enable TPM Device DiscoveryTuan Phan2-1/+136
Add support for detecting TPM device and installing gOvmfTpmDiscoveredPpiGuid when a TPM is present. Signed-off-by: Tuan Phan <tphan@ventanamicro.com>
2025-08-29OvmfPkg/Tcg2Config: Add RISC-V Support for TPM Device DiscoveryTuan Phan1-0/+3
Enable TPM device detection on RISC-V using gOvmfTpmDiscoveredPpiGuid. Signed-off-by: Tuan Phan <tphan@ventanamicro.com>
2025-08-29UefiCpuPkg/BaseRiscV64CpuTimerLib: Ensure mTimeBase is initializedTuan Phan1-15/+40
In early boot phases (SEC/PEI), CpuTimerLib may be used before GetPerformanceCounterProperties() is called, leaving mTimeBase uninitialized. This can result in divide-by-zero errors or incorrect timeouts. To fix this, check if mTimeBase is set before using it and initialize it via GetPerformanceCounterProperties() if necessary. Signed-off-by: Sunil V L <sunilvl@ventanamicro.com> Signed-off-by: Tuan Phan <tphan@ventanamicro.com>
2025-08-28ArmVirtPkg/ArmVirtQemu: Introduce support for MemDebugLib.Luigi Leonardi7-0/+57
Modify DebugLib so that it can write to the memory debug log, provided by MemDebugLogLib, when enabled. Enable MemDebugLog upport on the ArmVirtQemu platform. Note that memory logging is not available before the memory allocator has been initialized (SEC and the early PEI phase). In X64, early logging (SEC, PEI) is achieved using a pre-allocated static buffer; this cannot be easily reproduced on AARCH64. Such support can be introduced in the future. Signed-off-by: Luigi Leonardi <leonardi@redhat.com>
2025-08-28OvmfPkg/MemDebugLogLib: move QemuFwCfgSimpleParserLib to LibraryClassesLuigi Leonardi1-5/+0
There is no good reason to keep QemuFwCfgSimpleParserLib arch-specific. Move it to the LibraryClasses section. Signed-off-by: Luigi Leonardi <leonardi@redhat.com>
2025-08-28OvmfPkg/MemDebugLogLib: unoptimize PEIM and PEI_CORELuigi Leonardi2-35/+24
In AARCH64, the PEI phase runs from the flash memory, therefore global variables are not allowed. Remove this optimization so that this library can be used for this architecture. Signed-off-by: Luigi Leonardi <leonardi@redhat.com>
2025-08-27RedfishPkg/PlatformConfig: Use en-US if no x-uefi-redfish stringAbner Chang1-3/+35
Search en-US HII value string if x-uefi-redfish language of the value string is not found. Because not all of the HII value strings have the x-uefi-redfish language string define, such as "Enabled" or "Disabled". Signed-off-by: Abner Chang <abner.chang@amd.com>
2025-08-27RedfishPkg/RedfishPlatformConfig: Expose suppressed HII options to RedfishAbner Chang1-2/+2
When REDFISH_PLATFORM_CONFIG_ALLOW_SUPPRESSED is set in PcdRedfishPlatformConfigFeatureProperty, HII suppressed options should be exposed to Redfish BIOS resource. Signed-off-by: Abner Chang <abner.chang@amd.com>
2025-08-27UefiPayloadPkg: RISCV: Licensing FixAkshay Behl1-3/+3
Fixing a licensing typo in UefiPayloadEntry/RiscV64/DxeLoadFuncFit.c Signed-off-by: Akshay Behl <cap2k4@rivosinc.com>
2025-08-27pip: bump pylibfdt from 1.7.2 to 1.7.2.post1dependabot[bot]1-1/+1
Bumps pylibfdt from 1.7.2 to 1.7.2.post1. --- updated-dependencies: - dependency-name: pylibfdt dependency-version: 1.7.2.post1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2025-08-26UefiPayloadPkg: update stack address print to 64 bitDhaval3-3/+3
Signed-off-by: Akshay Behl <cap2k4@rivosinc.com> Co-authored-by: Dhaval Sharma <dhaval@rivosinc.com>
2025-08-26MdePkg/BaseFdtLib: Remove unused macros and string APIsThamballi Sreelalitha1-20/+11
Removed legacy macros and string helper APIs that are no longer used in the BaseFdtLib implementation. Specifically: - Dropped strcmp macro that incorrectly expected 3 arguments but ignored the third parameter. - Cleaned up other unused macros and redundant string APIs. These changes align with the current upstream libfdt module and reduce dead code. Signed-off-by: Thamballi Sreelalitha <sreelali@qti.qualcomm.com>
2025-08-26pip-requirements: Add pylibfdt and pefileAkshay Behl1-0/+2
1. Tool supportUPL requires libfdt support 2. pefile will be needed when building FIT UPL (for adding relocation data to FIT header). Signed-off-by: Akshay Behl <cap2k4@rivosinc.com>