[edk2-devel] [PATCH 1/3] UefiCpuPkg/AcpiCpuData: update comments on register table fields

Ni, Ray ray.ni at intel.com
Wed Jan 13 05:00:02 UTC 2021


Reviewed-by: Ray Ni <ray.ni at intel.com>

> -----Original Message-----
> From: Laszlo Ersek <lersek at redhat.com>
> Sent: Wednesday, January 13, 2021 3:20 AM
> To: devel at edk2.groups.io
> Cc: Dong, Eric <eric.dong at intel.com>; Philippe Mathieu-Daudé
> <philmd at redhat.com>; Kumar, Rahul1 <rahul1.kumar at intel.com>; Ni, Ray
> <ray.ni at intel.com>; Zeng, Star <star.zeng at intel.com>
> Subject: [PATCH 1/3] UefiCpuPkg/AcpiCpuData: update comments on register
> table fields
> 
> After commit e992cc3f4859 ("UefiCpuPkg PiSmmCpuDxeSmm: Reduce SMRAM
> consumption in CpuS3.c", 2021-01-11), it is valid for a CPU S3 Data DXE
> Driver to set "ACPI_CPU_DATA.PreSmmInitRegisterTable" and/or
> "ACPI_CPU_DATA.RegisterTable" to 0, in case none of the CPUs needs a
> register table of the corresponding kind, during S3 resume.
> 
> Document this fact in the "UefiCpuPkg/Include/AcpiCpuData.h" header file.
> 
> Cc: Eric Dong <eric.dong at intel.com>
> Cc: Philippe Mathieu-Daudé <philmd at redhat.com>
> Cc: Rahul Kumar <rahul1.kumar at intel.com>
> Cc: Ray Ni <ray.ni at intel.com>
> Cc: Star Zeng <star.zeng at intel.com>
> Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3159
> Signed-off-by: Laszlo Ersek <lersek at redhat.com>
> ---
>  UefiCpuPkg/Include/AcpiCpuData.h | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/UefiCpuPkg/Include/AcpiCpuData.h
> b/UefiCpuPkg/Include/AcpiCpuData.h
> index b5a69ad80c88..62a01b2c6bac 100644
> --- a/UefiCpuPkg/Include/AcpiCpuData.h
> +++ b/UefiCpuPkg/Include/AcpiCpuData.h
> @@ -178,6 +178,8 @@ typedef struct {
>    // If TableLength is > 0, then elements of RegisterTableEntry are used to
>    // initialize the CPU that matches InitialApicId, during an ACPI S3 resume,
>    // before SMBASE relocation is performed.
> +  // If a register table is not required for any one of the CPUs, then
> +  // PreSmmInitRegisterTable may be set to 0.
>    //
>    EFI_PHYSICAL_ADDRESS  PreSmmInitRegisterTable;
>    //
> @@ -187,6 +189,8 @@ typedef struct {
>    // If TableLength is > 0, then elements of RegisterTableEntry are used to
>    // initialize the CPU that matches InitialApicId, during an ACPI S3 resume,
>    // after SMBASE relocation is performed.
> +  // If a register table is not required for any one of the CPUs, then
> +  // RegisterTable may be set to 0.
>    //
>    EFI_PHYSICAL_ADDRESS  RegisterTable;
>    //
> --
> 2.19.1.3.g30247aa5d201
> 



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#70191): https://edk2.groups.io/g/devel/message/70191
Mute This Topic: https://groups.io/mt/79632016/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-






More information about the edk2-devel-archive mailing list