[edk2-devel] [edk2-platforms][PATCH v1 1/1] MinPlatformPkg: Add missing libraries to [Components] in DSC

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3619 Adds libraries implemented in MinPlatformPkg to the [Components] section in MinPlatformPkg.dsc so they are included in the package build. Cc: Chasel Chiu Cc: Nate DeSimone Cc: Liming Gao Cc: Eric Dong

回复: [edk2-devel] [PATCH v3 0/5] Http Fixes (Take Two)

2022-03-22 Thread gaoliming
Maciej, Jiaxin and Siyuan: Can you help review this fix? Thanks Liming > -邮件原件- > 发件人: devel@edk2.groups.io 代表 Oliver Steffen > 发送时间: 2022年3月22日 21:30 > 收件人: devel@edk2.groups.io > 抄送: maciej.rab...@linux.intel.com; jiaxin...@intel.com; > siyuan...@intel.com; kra...@redhat.com; Oliver

[edk2-devel] 回复: [PATCH V9 02/47] MdePkg: Update Cpuid.h for Tdx

2022-03-22 Thread gaoliming
Min: I have no comments on this patch. Reviewed-by: Liming Gao Ray: Have you any comments on this patch? Thanks Liming > -邮件原件- > 发件人: Xu, Min M > 发送时间: 2022年3月22日 11:02 > 收件人: devel@edk2.groups.io; Gao, Liming > 抄送: Ni, Ray ; Kinney, Michael D > ; Liu, Zhiguang ; > Brijesh Singh

[edk2-devel] Event: TianoCore Bug Triage - APAC / NAMO - 03/22/2022 #cal-reminder

2022-03-22 Thread devel@edk2.groups.io Calendar
BEGIN:VCALENDAR VERSION:2.0 PRODID:-//Groups.io Inc//Groups.io Calendar//EN METHOD:PUBLISH REFRESH-INTERVAL;VALUE=DURATION:PT1H X-PUBLISHED-TTL:PT1H CALSCALE:GREGORIAN BEGIN:VTIMEZONE TZID:America/Los_Angeles LAST-MODIFIED:20220317T223602Z

[edk2-devel] [edk2-platforms][PATCH v1 1/1] MinPlatformPkg/TestPointCheckLib: Fix mis-parsed HSTI structures

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3612 Printing corruption can occur if the DumpHsti helper function encounters a structure from the IHV (i.e. one that contains the 'Required' field). Co-authored-by: Bret Barkelew Cc: Chasel Chiu Cc: Nate DeSimone Cc:

[edk2-devel] GSoC 2022: Add S3 resume support to MinPlatform

2022-03-22 Thread Benjamin Doron
Hi all, I'm Benjamin Doron. Last year, I worked on a board port to MinPlatform. This year, I hope to pick up where I left off and help improve MinPlatform by adding support for S3 resume (time permitting and if my skills are sufficient, etc). Previously, I worked a little on coreboot (mainly a

Re: [edk2-devel] [PATCH V2 2/3] MdePkg/Base.h: Introduce various alignment-related macros

2022-03-22 Thread Marvin Häuser
Considering all my branches are badly broken because of the Uncrustify changes, there have been many changes to the existing PE/COFF libraries in the mean time (and more external dependencies incoming with PMR), and even this non-invasive patch has been mostly ignored (thanks for the review,

[edk2-devel] [PATCH v1 40/41] PrmPkg: Changes for edk2 repo transition

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki Updates the Readme.md files to remove information that was specific to the package in edk2-staging and adds key definitions being added for PRM support in the ACPI Specification. Adds PrmPkg/PrmPkg.ci.yaml to support CI. Adds PrmPkg to .pytool/CISettings.py. Adds PrmPkg

[edk2-devel] [PATCH v1 39/41] Readme.md: Add a link to PRM Specification

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki Adds a link to the PRM Specification now that it is available on uefi.org. Cc: Andrew Fish Cc: Kang Gao Cc: Michael D Kinney Cc: Michael Kubacki Cc: Leif Lindholm Cc: Benjamin You Cc: Liu Yun Cc: Ankit Sinha Cc: Nate DeSimone Signed-off-by: Michael Kubacki ---

[edk2-devel] [PATCH v1 38/41] PrmPkg: Remove the concept of OS services

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki OS services are no longer supported as of the current PRM design. 1. Removes OS services from PrmSampleHardwareAccessModule 2. Removes the PrmOsServices.h file Cc: Andrew Fish Cc: Kang Gao Cc: Michael D Kinney Cc: Michael Kubacki Cc: Leif Lindholm Cc: Benjamin You

[edk2-devel] [PATCH v1 37/41] PrmPkg/Samples: Remove PrmSamplePrintModule

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki This sample module is removed since it directly depends on OS services which are no longer supported as of the current PRM design. Cc: Andrew Fish Cc: Kang Gao Cc: Michael D Kinney Cc: Michael Kubacki Cc: Leif Lindholm Cc: Benjamin You Cc: Liu Yun Cc: Ankit Sinha

[edk2-devel] [PATCH v1 36/41] PrmPkg/Samples: Remove PrmSampleMemoryAllocationModule

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki Removes PrmSampleMemoryAllocationModule since the module depends upon the deprecated concept of OS services. Cc: Andrew Fish Cc: Kang Gao Cc: Michael D Kinney Cc: Michael Kubacki Cc: Leif Lindholm Cc: Benjamin You Cc: Liu Yun Cc: Ankit Sinha Cc: Nate DeSimone

[edk2-devel] [PATCH v1 35/41] PrmPkg: Replace PcdPrmPlatformGuid with EDKII_DSC_PLATFORM_GUID

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki Bugzilla request https://bugzilla.tianocore.org/show_bug.cgi?id=2969 was recently completed which causes the PLATFORM_GUID value from the DSC file to be placed into Autogen file .c & .h files. With this change, the PRM Platform GUID can be directly matched to the DSC

[edk2-devel] [PATCH v1 34/41] Readme.md: Add iASL note and QEMU sample link

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki Adds a note that the build now depends on an ASL compiler supporting PlatformRtMechanism by default. The minimum iASL version supported is noted in addition to an alternative to remove the code that requires the new OperationRegion. Also, a link is provided to an example

[edk2-devel] [PATCH v1 33/41] PrmPkg: Update PRM OpRegion

2022-03-22 Thread Michael Kubacki
From: Liu Yun Y 1. Enable new PRM OpRegion structure 2. Add PRM Handler Update Lock/Unlock support Cc: Andrew Fish Cc: Kang Gao Cc: Michael D Kinney Cc: Michael Kubacki Cc: Leif Lindholm Cc: Benjamin You Cc: Liu Yun Cc: Ankit Sinha Cc: Nate DeSimone Signed-off-by: Liu Yun ---

[edk2-devel] [PATCH v1 32/41] PrmPkg: Add PlatformGuid

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki Adds a "platform GUID" field to the PRM ACPI table. This field is used by a platform to uniquely identify itself such that it can be targeted by runtime PRM module updates for that platform. Platforms using PRM are currently required to set a unique value for

[edk2-devel] [PATCH v1 31/41] PrmPkg/DxePrmModuleDiscoveryLib: Add initial host-based unit tests

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki Adds host-based unit tests for DxePrmModuleDiscoveryLib. This is an initial set of support, more tests should be added in the future. Cc: Andrew Fish Cc: Kang Gao Cc: Michael D Kinney Cc: Michael Kubacki Cc: Leif Lindholm Cc: Benjamin You Cc: Liu Yun Cc: Ankit Sinha

[edk2-devel] [PATCH v1 30/41] PrmPkg/Library/DxePrmContextBufferLib: Add host-based unit tests

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki Adds host-based unit tests for DxePrmContextBufferLib. This tests each function in DxePrmContextBufferLib. Any changes to DxePrmContextBufferLib moving forward must pass the unit tests. The unit tests should be updated as needed if the library API changes. Cc: Andrew Fish

[edk2-devel] [PATCH v1 29/41] PrmPkg/Test/UnitTest/Library: Add initial UEFI Boot Services test lib

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki Adds a host-based specific implementation of UefiBootServicesTableLib. This library implements relatively simple versions of the functionality in the actual boot services implementation and does not depend on dynamic linking to the boot services table. Most unit tests can

[edk2-devel] [PATCH v1 28/41] PrmPkg/Test/PrmPkgHostTest.dsc: Add initial file

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki Adds a new DSC file that will be used to build host-based unit tests in PrmPkg. Cc: Andrew Fish Cc: Kang Gao Cc: Michael D Kinney Cc: Michael Kubacki Cc: Leif Lindholm Cc: Benjamin You Cc: Liu Yun Cc: Ankit Sinha Cc: Nate DeSimone Signed-off-by: Michael Kubacki

[edk2-devel] [PATCH v1 27/41] PrmPkg: Enforce stricter types

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki Makes the following changes to enforce stricter types: 1. PrmPkg/PrmConfigDxe The function PrmConfigEndOfDxeNotification () is used as a notify function (of type EFI_EVENT_NOTIFY), however it has a return type of EFI_STATUS whereas the return type should actually

[edk2-devel] [PATCH v1 26/41] PrmPkg/Application/PrmInfo: Add initial application

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki Adds a new UEFI application called "PrmInfo" that allows a user to display and test Platform Runtime Mechanism (PRM) modules. Execute the application help command for detailed usage instructions and examples of how to use the application: "PrmInfo -?" This application

[edk2-devel] [PATCH v1 25/41] PrmPkg: Refactor some PrmLoaderDxe functionality into libraries

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki This change breaks out two sets of responsibilities in PrmLoaderDxe into libraries: * PE/COFF functions -> PrmPeCoffLib * PRM module discovery functions -> PrmModuleDiscoveryLib This is core infrastructure code for PRM functionality that needs to be directly reused and

[edk2-devel] [PATCH v1 24/41] PrmPkg/Samples/Readme.md: Add initial file

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki Adds a Readme.md file for the Samples to help a user get started building and using the PRM sample modules. Includes a reference to the Samples/Readme.md file in the top-level file to help make the reader aware the file exists. Cc: Andrew Fish Cc: Kang Gao Cc: Michael D

[edk2-devel] [PATCH v1 23/41] PrmPkg/HardwareAccessModuleConfigLib: Add initial library

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki Adds a PRM module configuration library for PrmSampleHardwareAccessModule that demonstrates marking a runtime MMIO range. In the case of this sample module, the range used is for HPET. Cc: Andrew Fish Cc: Kang Gao Cc: Michael D Kinney Cc: Michael Kubacki Cc: Leif

[edk2-devel] [PATCH v1 22/41] PrmPkg/SampleAcpiParameterBufferModule: Add initial module

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki Adds a new PRM module called SampleAcpiParameterBufferModule that demonstrates how a PRM module can use an ACPI parameter buffer with a PRM handler. Cc: Andrew Fish Cc: Kang Gao Cc: Michael D Kinney Cc: Michael Kubacki Cc: Leif Lindholm Cc: Benjamin You Cc: Liu Yun

[edk2-devel] [PATCH v1 21/41] PrmPkg/PrmSampleHardwareAccessModule: Add non-print PRM handlers

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki For each PRM handler that is currently present, a corresponding PRM handler is added that does not print. This allows a caller to execute a sample hardware access PRM handler without requiring that caller to provide a debug print service. Cc: Andrew Fish Cc: Kang Gao Cc:

[edk2-devel] [PATCH v1 20/41] PrmPkg/PrmSampleContextBufferModule: Remove OS debug print requirement

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki Removes the expectation that the parameter buffer contain an OS debug print service at the beginning of the buffer. All supporting code related to printing is also removed. Cc: Andrew Fish Cc: Kang Gao Cc: Michael D Kinney Cc: Michael Kubacki Cc: Leif Lindholm Cc:

[edk2-devel] [PATCH v1 19/41] PrmPkg/PrmLoaderDxe: Add ACPI parameter buffer support

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki Adds support to PrmLoaderDxe to move the ACPI parameter buffer address for a given PRM handler to the corresponding field in the PRM handler information structure (PRMT ACPI table). Cc: Andrew Fish Cc: Kang Gao Cc: Michael D Kinney Cc: Michael Kubacki Cc: Leif Lindholm

[edk2-devel] [PATCH v1 18/41] PrmPkg/PrmContextBuffer.h: Add ACPI parameter support structures

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki Adds a new type ACPI_PARAMETER_BUFFER_DESCRIPTOR that can be used by PRM module configuration code to associate a PRM handler GUID with an ACPI parameter buffer allocated by the PRM module configuration code. The ACPI parameter buffer descriptors for a given PRM module are

[edk2-devel] [PATCH v1 17/41] PrmPkg: Remove ALLOCATE_CONTEXT_BUFFER_IN_FW build flag

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki The POR is firmly to use an OS allocated context buffer now so the build flag that allows firmware to allocate the context buffer is removed along with supporting code. Cc: Andrew Fish Cc: Kang Gao Cc: Michael D Kinney Cc: Michael Kubacki Cc: Leif Lindholm Cc:

[edk2-devel] [PATCH v1 16/41] PrmPkg: Remove PRM Module Update Lock

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki Per latest design direction, we've abandoned treating the PRM Module Update Lock as an exported object. There was concern sharing the PRM module address space (where the lock structure resided in a data section) with the OS kernel mode driver. The lock will now be entirely

[edk2-devel] [PATCH v1 15/41] PrmPkg: Add initial PrmSsdtInstallDxe module

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki Adds a new module that installs a PRM SSDT. Note: A library class would allow a high degree of flexibility for platforms that choose: 1. To not install a PRM SSDT at all (using a NULL library instance) 2. To install a specific PRM SSDT implementation However, it is

[edk2-devel] [PATCH v1 14/41] PrmPkg: Export major/minor version in PRM module PE COFF header

2022-03-22 Thread Michael Kubacki
From: Liu PRMT ACPI defined major version and minor version for each PRM module. PRM module will build its major/minor version in its PE COFF header. In boot time, PRM loader will collect the major/minor version from PE COFF header and fill them into PRMT ACPI table. Cc: Andrew Fish Cc: Kang

[edk2-devel] [PATCH v1 13/41] PrmPkg: Publish PRM operation region to support PRM ACPI _DSM invocation

2022-03-22 Thread Michael Kubacki
From: Liu A PRM Handler has a 1-to-1 mapping to the corresponding _DSM method. The UUID of the _DSM Method will be passed by the ASL code to the OpRegionHandler which will look up the PRMT Table to extract the pointer of the corresponding PRM Handler. PRM loader pre-builds an SSDT that includes

[edk2-devel] [PATCH v1 11/41] PrmPkg: Add ALLOCATE_CONTEXT_BUFFER_IN_FW build option

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki There's currently two approaches being considered for how to allocate the context buffer passed to PRM handlers: 1. The context buffer is allocated and populated in firmware. As such, the FW converts all pointers internal to the buffer to virtual memory addresses at

[edk2-devel] [PATCH v1 12/41] PrmPkg: Enable variable growth for the PRM_MODULE_EXPORT macro

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki The PRM_MODULE_EXPORT parameterized macro allows a caller to produce a static PRM module export descriptor structure in the binary by simply passing PRM_HANDLER_EXPORT_ENTRY arguments with each argument representing a PRM handler to be exported by the module. Previously,

[edk2-devel] [PATCH v1 10/41] Readme.md: Add initial content

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3812 Adds the following content to Readme.md: 1. A basic explanation of how the package is organized and where to find important items. 2. Adds instructions for building PrmPkg with edk2. 3. Adds a "Build Flags"

[edk2-devel] [PATCH v1 09/41] PrmPkg: Add initial package DSC file

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3812 Adds the PrmPkg DSC file so all of the contents can be built as a stand-alone package. Cc: Andrew Fish Cc: Kang Gao Cc: Michael D Kinney Cc: Michael Kubacki Cc: Leif Lindholm Cc: Benjamin You Cc: Liu Yun Cc:

[edk2-devel] [PATCH v1 08/41] PrmPkg: Add initial PrmSampleContextBufferModule

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3812 Adds a sample PRM module that demonstrates: 1. How to write a PRM module 2. How to use a basic PRM OS services 3. How to use a basic PRM module configuration library 4. How to use a context buffer during PRM

[edk2-devel] [PATCH v1 07/41] PrmPkg: Add initial PrmSampleHardwareAccessModule

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3812 Adds a sample PRM module that demonstrates: 1. How to write a PRM module 2. How to use multiple PRM handlers in a module 3. How to use a basic PRM OS service 4. MSR access at OS runtime Note: This module

[edk2-devel] [PATCH v1 06/41] PrmPkg: Add initial PrmSampleMemoryAllocationModule

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3812 DEPRECATED: This module is no longer relevant since OS Services that allow memory allocation have been removed. It is still present in the source tree in the event dynamic memory allocation at OS runtime is needed

[edk2-devel] [PATCH v1 05/41] PrmPkg: Add initial PrmSamplePrintModule

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3812 Adds a simple sample PRM module that demonstrates: 1. How to write a PRM module 2. How to use multiple PRM handlers in a module 3. How to use a basic PRM OS service Cc: Andrew Fish Cc: Kang Gao Cc: Michael D

[edk2-devel] [PATCH v1 04/41] PrmPkg/PrmConfigDxe: Add initial driver

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3812 This driver serves as a generic PRM configuration driver. Its primary role is to prepare PRM resources published by PRM module configuration libraries for OS runtime. As such, it locates all PRM Configuration Protocol

[edk2-devel] [PATCH v1 03/41] PrmPkg/PrmContextBufferLib: Add initial library instance

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3812 This library is introduced to add a general abstraction for PRM context buffer management. Cc: Andrew Fish Cc: Kang Gao Cc: Michael D Kinney Cc: Michael Kubacki Cc: Leif Lindholm Cc: Benjamin You Cc: Liu Yun

[edk2-devel] [PATCH v1 02/41] PrmPkg: Add PrmConfig protocol interface

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3812 The PRM Configuration protocol is used by PRM module configuration libraries to describe their resources so that a generic PRM Configuration DXE driver can prepare those resources for OS runtime. Therefore, multiple

[edk2-devel] [PATCH v1 01/41] PrmPkg: Add package and include headers

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3812 Adds a new package to maintain Platform Runtime Mechanism (PRM) support. This package is intended to include generic code that provides a common infrastructure to support PRM in firmware and a collection of sample

[edk2-devel] [PATCH v1 00/41] Add PrmPkg

2022-03-22 Thread Michael Kubacki
From: Michael Kubacki This patch series adds a new package called PrmPkg. An RFC was sent to the edk2 mailing list on January 28, 2022 detailing the proposal, see https://edk2.groups.io/g/devel/message/86181. Platform Runtime Mechanism (PRM) is a new firmware solution that has been developed in

Re: [edk2-devel] [PATCH v1 0/4] UncrustifyCheck Ignore Support

2022-03-22 Thread Michael D Kinney
Hi Michael, Should this be broken up into 2 series? One for pytool change and one for OvmfPkg? Mike > -Original Message- > From: mikub...@linux.microsoft.com > Sent: Monday, March 21, 2022 6:58 PM > To: devel@edk2.groups.io > Cc: Kinney, Michael D ; Gao, Liming > ; Sean Brogan > ;

Re: [edk2-devel] [PATCH v1 2/4] .pytool/Plugin/UncrustifyCheck: Add ignore file support

2022-03-22 Thread Michael D Kinney
Michael, One comment below. Mike > -Original Message- > From: mikub...@linux.microsoft.com > Sent: Monday, March 21, 2022 6:58 PM > To: devel@edk2.groups.io > Cc: Kinney, Michael D ; Gao, Liming > ; Sean Brogan > ; Bret Barkelew > Subject: [PATCH v1 2/4]

Re: [edk2-devel] [PATCH v1 1/4] .pytool/Plugin/UncrustifyCheck: Update func to return absolute paths

2022-03-22 Thread Michael D Kinney
Hi Michael, I meant to ask. Is there a reason you are not normalizing the file paths os.path.normpath() before performing the path comparison? I am concerned that a mix of '/', '\' and '..' in YAML file may not detect what is supposed to be a matching path. Perhaps this is a topic that

Re: [edk2-devel] [PATCH v1 1/4] .pytool/Plugin/UncrustifyCheck: Update func to return absolute paths

2022-03-22 Thread Michael D Kinney
Reviewed-by: Michael D Kinney Mike > -Original Message- > From: devel@edk2.groups.io On Behalf Of Michael Kubacki > Sent: Monday, March 21, 2022 6:58 PM > To: devel@edk2.groups.io > Cc: Kinney, Michael D ; Gao, Liming > ; Sean Brogan > ; Bret Barkelew > Subject: [edk2-devel] [PATCH

Re: [edk2-devel][PATCH 1/2] MdeModulePkg: StackOffset must be aligned to a 16-byte boundary in X64

2022-03-22 Thread Kuo, Ted
Hi Marvin, Please find my inline comments with [Ted2]. Thanks, Ted -Original Message- From: Marvin Häuser Sent: Tuesday, March 22, 2022 5:27 PM To: Kuo, Ted Cc: devel@edk2.groups.io; Kinney, Michael D ; Bi, Dandan ; Gao, Liming ; De, Debkumar ; Han, Harry ; West, Catharine ; Wang,

[edk2-devel] [PATCH v3 3/5] NetworkPkg/HttpDxe: Add ConnectionClose flag fo HTTP_PROTOCOL

2022-03-22 Thread Oliver Steffen
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2720 Add ConnectionClose flag to HTTP_PROTOCOL. This boolean is FALSE by default. If set to TRUE, a reconfigure of the Http instance is forced on the next request. The flag is then reset. Signed-off-by: Oliver Steffen ---

[edk2-devel] [PATCH v3 5/5] NetworkPkg/HttpDxe: Detect HTTP/1.0 servers

2022-03-22 Thread Oliver Steffen
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2720 Force connection close before the next request if the server identifies as version 1.0. Signed-off-by: Oliver Steffen --- NetworkPkg/HttpDxe/HttpImpl.c | 8 1 file changed, 8 insertions(+) diff --git

[edk2-devel] [PATCH v3 4/5] NetworkPkg/HttpDxe: Detect 'Connection: close' header

2022-03-22 Thread Oliver Steffen
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2720 Force connection close before the next request if the server sends the 'Connection: close' header. Signed-off-by: Oliver Steffen --- NetworkPkg/HttpDxe/HttpImpl.c | 11 +++ 1 file changed, 11 insertions(+) diff --git

[edk2-devel] [PATCH v3 0/5] Http Fixes (Take Two)

2022-03-22 Thread Oliver Steffen
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2720 This set of patches fixes booting from HTTP/1.0 servers. It also improves the interaction with HTTP/1.1 servers by recognizing the 'Connection: close' header field, which fixes a problem with servers that close the connection after a

[edk2-devel] [PATCH v3 2/5] NetworkPkg/HttpDxe: Decofigure Tcp6 before reconfiguring

2022-03-22 Thread Oliver Steffen
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2720 Check if the state of the HTTP instance is HTTP_STATE_TCP_CONNECTED, or HTTP_STATE_TCP_CLOSED and de-configure the Tcp6 instance before configuring it again. Signed-off-by: Oliver Steffen --- NetworkPkg/HttpDxe/HttpProto.c | 12

[edk2-devel] [PATCH v3 1/5] NetworkPkg/HttpDxe: Decofigure Tcp4 before reconfiguring

2022-03-22 Thread Oliver Steffen
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2720 Check if the state of the HTTP instance is HTTP_STATE_TCP_CONNECTED, or HTTP_STATE_TCP_CLOSED and de-configure the Tcp4 instance before configuring it again. Signed-off-by: Oliver Steffen --- NetworkPkg/HttpDxe/HttpProto.c | 12

[edk2-devel] [PATCH 1/1] CryptoPkg: Add consumed library class by SMM to dsc file

2022-03-22 Thread yi1 li
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3881 LibraryClass MmServicesTableLib SynchronizationLib in SmmCryptLib.inf should be listed in CryptoPkg.dsc. Cc: Jiewen Yao Cc: Jian J Wang Cc: Zhihao Li Signed-off-by: yi1 li --- CryptoPkg/CryptoPkg.dsc | 2 ++ 1 file changed, 2

Re: [edk2-devel][PATCH 1/2] MdeModulePkg: StackOffset must be aligned to a 16-byte boundary in X64

2022-03-22 Thread Marvin Häuser
Good day, Thanks for the updates! > On 22. Mar 2022, at 08:23, Kuo, Ted wrote: > > Hi Marvin, > > Good day. Thanks for your valuable comments. After checking all of your > comments, I decide to drop the patches and close the bugzilla ticket since > the changes should be specific to X64 in

Re: [edk2-devel] [PATCH v1 4/4] OvmfPkg: Do not check VbeShim.h formatting with Uncrustify

2022-03-22 Thread Gerd Hoffmann
On Mon, Mar 21, 2022 at 09:58:14PM -0400, Michael Kubacki wrote: > From: Michael Kubacki > > REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3875 > > The following files: > OvmfPkg/Bhyve/BhyveRfbDxe/VbeShim.h > OvmfPkg/QemuVideoDxe/VbeShim.h > > Are auto generated by the following

Re: [edk2-devel] [PATCH v1 3/4] OvmfPkg: Revert Uncrustify formatting in VbeShim.h files

2022-03-22 Thread Gerd Hoffmann
On Mon, Mar 21, 2022 at 09:58:13PM -0400, Michael Kubacki wrote: > From: Michael Kubacki > > REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3875 > > Reverts changes automatically applied by Uncrustify in commit > ac0a286. > > Cc: Ard Biesheuvel > Cc: Jiewen Yao > Cc: Jordan Justen > Cc:

Re: [edk2-devel] [PATCH V9 23/47] OvmfPkg/PlatformPei: Refactor MaxCpuCountInitialization

2022-03-22 Thread Gerd Hoffmann
On Fri, Mar 18, 2022 at 08:45:41AM +0800, Min Xu wrote: > BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3863 > > MaxCpuCountInitialization is splitted into two: > - PlatformMaxCpuCountInitialization is for PlatformInitLib > - MaxCpuCountInitialization is for PlatformPei. It calls >

Re: [edk2-devel] [PATCH V9 22/47] OvmfPkg/PlatformPei: Refactor AddressWidthInitialization

2022-03-22 Thread Gerd Hoffmann
On Fri, Mar 18, 2022 at 08:45:40AM +0800, Min Xu wrote: > BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3863 > > From this patch we start to restruct the functions which set PCDs into > two, one for PlatformInitLib, one for PlatformPei. > > AddressWidthInitialization is the first one. It is

Re: [edk2-devel] [PATCH V9 19/47] OvmfPkg/PlatformPei: Move global variables to PlatformInfoHob

2022-03-22 Thread Gerd Hoffmann
On Fri, Mar 18, 2022 at 08:45:37AM +0800, Min Xu wrote: > BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3863 > > The intention of PlatformInitLib is to extract the common function used > in OvmfPkg/PlatformPei. This lib will be used not only in PEI phase but > also in SEC phase. SEC phase

Re: [edk2-devel][PATCH] IntelFsp2Pkg: BaseFspCommonLib Support for X64

2022-03-22 Thread Chiu, Chasel
Patch pushed: https://github.com/tianocore/edk2/commit/ec0b54849b23efa25caf0055b0eef8bf9b4dec98 Thanks, Chasel > -Original Message- > From: Kuo, Ted > Sent: Monday, March 14, 2022 12:23 PM > To: devel@edk2.groups.io > Cc: Chiu, Chasel ; Desimone, Nathaniel L > ; Zeng, Star ; S, >

Re: [edk2-devel] [PATCH V9 02/47] MdePkg: Update Cpuid.h for Tdx

2022-03-22 Thread Gerd Hoffmann
On Fri, Mar 18, 2022 at 08:45:20AM +0800, Min Xu wrote: > RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3429 > > Guest software can be designed to run either as a TD, as a legacy virtual > machine, or directly on the CPU, based on enumeration of its run-time > environment. [TDX-Module] Chap

Re: [edk2-devel][PATCH] IntelFsp2Pkg: BaseFspCommonLib Support for X64

2022-03-22 Thread Chiu, Chasel
Thanks Ted! Reviewed-by: Chasel Chiu > -Original Message- > From: Kuo, Ted > Sent: Monday, March 14, 2022 12:23 PM > To: devel@edk2.groups.io > Cc: Chiu, Chasel ; Desimone, Nathaniel L > ; Zeng, Star ; S, > Ashraf Ali > Subject: [edk2-devel][PATCH] IntelFsp2Pkg: BaseFspCommonLib

[edk2-devel] [PATCH V3 1/1] BaseTools: Add the FeatureFlagExpression usage to the Source Section

2022-03-22 Thread yi1 li
From: Yi Li REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3828 FeatureFlagExpression Support in Source section of INF file. The Pcd value in the expression is from INF or DEC. When a FeatureFlagExpression is present,if the expression evaluates to TRUE,then the entry is valid. If the

[edk2-devel] [PATCH V3 0/1] BaseTools: Add the FeatureFlagExpression usage to the Source Section

2022-03-22 Thread yi1 li
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3828 FeatureFlagExpression Support in Source section of INF file. The Pcd value in the expression is from INF or DEC. When a FeatureFlagExpression is present,if the expression evaluates to TRUE,then the entry is valid. If the expression evaluates

Re: [edk2-devel][PATCH 1/2] MdeModulePkg: StackOffset must be aligned to a 16-byte boundary in X64

2022-03-22 Thread Kuo, Ted
Hi Marvin, Good day. Thanks for your valuable comments. After checking all of your comments, I decide to drop the patches and close the bugzilla ticket since the changes should be specific to X64 in IntelFspPkg. You still can find my inline comments with [Ted] for your questions. Thanks, Ted

Re: [edk2-devel] [PATCH v1 4/4] OvmfPkg: Do not check VbeShim.h formatting with Uncrustify

2022-03-22 Thread Laszlo Ersek
On 03/22/22 02:58, mikub...@linux.microsoft.com wrote: > From: Michael Kubacki > > REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3875 > > The following files: > OvmfPkg/Bhyve/BhyveRfbDxe/VbeShim.h > OvmfPkg/QemuVideoDxe/VbeShim.h > > Are auto generated by the following generators: >

Re: [edk2-devel] [PATCH v1 3/4] OvmfPkg: Revert Uncrustify formatting in VbeShim.h files

2022-03-22 Thread Laszlo Ersek
On 03/22/22 02:58, mikub...@linux.microsoft.com wrote: > From: Michael Kubacki > > REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3875 > > Reverts changes automatically applied by Uncrustify in commit > ac0a286. > > Cc: Ard Biesheuvel > Cc: Jiewen Yao > Cc: Jordan Justen > Cc: Gerd