[edk2] [PATCH v4 0/4] MdePkg, MdeModulePkg: Enforce page allocation granularity

Ard Biesheuvel posted 4 patches 7 years ago
Failed in applying to current master (apply log)
MdeModulePkg/Core/Dxe/DxeMain.h                     | 25 -------------
MdeModulePkg/Core/Dxe/Mem/Page.c                    | 22 +++++------
MdeModulePkg/Core/Dxe/Mem/Pool.c                    |  8 ++--
MdeModulePkg/Core/Dxe/Misc/MemoryAttributesTable.c  |  2 +-
MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c       |  4 +-
MdeModulePkg/Core/Dxe/Misc/PropertiesTable.c        |  8 ++--
MdeModulePkg/Core/Pei/Memory/MemoryServices.c       | 39 +++++++++++++++++++-
MdeModulePkg/Core/PiSmmCore/MemoryAttributesTable.c |  6 +--
MdeModulePkg/Core/PiSmmCore/Page.c                  |  4 +-
MdeModulePkg/Core/PiSmmCore/PiSmmCore.h             |  6 ---
MdePkg/Include/AArch64/ProcessorBind.h              |  6 +++
MdePkg/Include/Arm/ProcessorBind.h                  |  6 +++
MdePkg/Include/Ebc/ProcessorBind.h                  |  6 +++
MdePkg/Include/Ia32/ProcessorBind.h                 |  6 +++
MdePkg/Include/Ipf/ProcessorBind.h                  |  6 +++
MdePkg/Include/X64/ProcessorBind.h                  |  6 +++
16 files changed, 100 insertions(+), 60 deletions(-)
[edk2] [PATCH v4 0/4] MdePkg, MdeModulePkg: Enforce page allocation granularity
Posted by Ard Biesheuvel 7 years ago
This is now a 4-piece series, so that the allocation granularity used by
PEI core, which is defined per-architecture in the UEFI spec, is not defined
locally but centrally for all modules in all phases.

Ard Biesheuvel (4):
  MdePkg/ProcessorBind: add defines for page allocation granularity
  MdeModulePkg/DxeCore: switch to MdePkg allocation granularity macros
  MdeModulePkg/PiSmmCore: switch to MdePkg allocation granularity macros
  MdeModulePkg/PeiCore: honour minimal runtime allocation granularity

 MdeModulePkg/Core/Dxe/DxeMain.h                     | 25 -------------
 MdeModulePkg/Core/Dxe/Mem/Page.c                    | 22 +++++------
 MdeModulePkg/Core/Dxe/Mem/Pool.c                    |  8 ++--
 MdeModulePkg/Core/Dxe/Misc/MemoryAttributesTable.c  |  2 +-
 MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c       |  4 +-
 MdeModulePkg/Core/Dxe/Misc/PropertiesTable.c        |  8 ++--
 MdeModulePkg/Core/Pei/Memory/MemoryServices.c       | 39 +++++++++++++++++++-
 MdeModulePkg/Core/PiSmmCore/MemoryAttributesTable.c |  6 +--
 MdeModulePkg/Core/PiSmmCore/Page.c                  |  4 +-
 MdeModulePkg/Core/PiSmmCore/PiSmmCore.h             |  6 ---
 MdePkg/Include/AArch64/ProcessorBind.h              |  6 +++
 MdePkg/Include/Arm/ProcessorBind.h                  |  6 +++
 MdePkg/Include/Ebc/ProcessorBind.h                  |  6 +++
 MdePkg/Include/Ia32/ProcessorBind.h                 |  6 +++
 MdePkg/Include/Ipf/ProcessorBind.h                  |  6 +++
 MdePkg/Include/X64/ProcessorBind.h                  |  6 +++
 16 files changed, 100 insertions(+), 60 deletions(-)

-- 
2.7.4

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
Re: [edk2] [PATCH v4 0/4] MdePkg, MdeModulePkg: Enforce page allocation granularity
Posted by Yao, Jiewen 7 years ago
Thank you.
All reviewed-by: Jiewen.yao@intel.com

> -----Original Message-----
> From: Ard Biesheuvel [mailto:ard.biesheuvel@linaro.org]
> Sent: Friday, March 3, 2017 11:12 PM
> To: edk2-devel@lists.01.org; Gao, Liming <liming.gao@intel.com>; Kinney,
> Michael D <michael.d.kinney@intel.com>
> Cc: Zeng, Star <star.zeng@intel.com>; Yao, Jiewen <jiewen.yao@intel.com>; Ard
> Biesheuvel <ard.biesheuvel@linaro.org>
> Subject: [PATCH v4 0/4] MdePkg, MdeModulePkg: Enforce page allocation
> granularity
> 
> This is now a 4-piece series, so that the allocation granularity used by
> PEI core, which is defined per-architecture in the UEFI spec, is not defined
> locally but centrally for all modules in all phases.
> 
> Ard Biesheuvel (4):
>   MdePkg/ProcessorBind: add defines for page allocation granularity
>   MdeModulePkg/DxeCore: switch to MdePkg allocation granularity macros
>   MdeModulePkg/PiSmmCore: switch to MdePkg allocation granularity macros
>   MdeModulePkg/PeiCore: honour minimal runtime allocation granularity
> 
>  MdeModulePkg/Core/Dxe/DxeMain.h                     | 25 -------------
>  MdeModulePkg/Core/Dxe/Mem/Page.c                    | 22 +++++------
>  MdeModulePkg/Core/Dxe/Mem/Pool.c                    |  8 ++--
>  MdeModulePkg/Core/Dxe/Misc/MemoryAttributesTable.c  |  2 +-
>  MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c       |  4 +-
>  MdeModulePkg/Core/Dxe/Misc/PropertiesTable.c        |  8 ++--
>  MdeModulePkg/Core/Pei/Memory/MemoryServices.c       | 39
> +++++++++++++++++++-
>  MdeModulePkg/Core/PiSmmCore/MemoryAttributesTable.c |  6 +--
>  MdeModulePkg/Core/PiSmmCore/Page.c                  |  4 +-
>  MdeModulePkg/Core/PiSmmCore/PiSmmCore.h             |  6 ---
>  MdePkg/Include/AArch64/ProcessorBind.h              |  6 +++
>  MdePkg/Include/Arm/ProcessorBind.h                  |  6 +++
>  MdePkg/Include/Ebc/ProcessorBind.h                  |  6 +++
>  MdePkg/Include/Ia32/ProcessorBind.h                 |  6 +++
>  MdePkg/Include/Ipf/ProcessorBind.h                  |  6 +++
>  MdePkg/Include/X64/ProcessorBind.h                  |  6 +++
>  16 files changed, 100 insertions(+), 60 deletions(-)
> 
> --
> 2.7.4

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
Re: [edk2] [PATCH v4 0/4] MdePkg, MdeModulePkg: Enforce page allocation granularity
Posted by Gao, Liming 7 years ago
Reviewed-by: Liming Gao <liming.gao@intel.com>

>-----Original Message-----
>From: Ard Biesheuvel [mailto:ard.biesheuvel@linaro.org]
>Sent: Friday, March 03, 2017 11:12 PM
>To: edk2-devel@lists.01.org; Gao, Liming <liming.gao@intel.com>; Kinney,
>Michael D <michael.d.kinney@intel.com>
>Cc: Zeng, Star <star.zeng@intel.com>; Yao, Jiewen <jiewen.yao@intel.com>;
>Ard Biesheuvel <ard.biesheuvel@linaro.org>
>Subject: [PATCH v4 0/4] MdePkg, MdeModulePkg: Enforce page allocation
>granularity
>
>This is now a 4-piece series, so that the allocation granularity used by
>PEI core, which is defined per-architecture in the UEFI spec, is not defined
>locally but centrally for all modules in all phases.
>
>Ard Biesheuvel (4):
>  MdePkg/ProcessorBind: add defines for page allocation granularity
>  MdeModulePkg/DxeCore: switch to MdePkg allocation granularity macros
>  MdeModulePkg/PiSmmCore: switch to MdePkg allocation granularity macros
>  MdeModulePkg/PeiCore: honour minimal runtime allocation granularity
>
> MdeModulePkg/Core/Dxe/DxeMain.h                     | 25 -------------
> MdeModulePkg/Core/Dxe/Mem/Page.c                    | 22 +++++------
> MdeModulePkg/Core/Dxe/Mem/Pool.c                    |  8 ++--
> MdeModulePkg/Core/Dxe/Misc/MemoryAttributesTable.c  |  2 +-
> MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c       |  4 +-
> MdeModulePkg/Core/Dxe/Misc/PropertiesTable.c        |  8 ++--
> MdeModulePkg/Core/Pei/Memory/MemoryServices.c       | 39
>+++++++++++++++++++-
> MdeModulePkg/Core/PiSmmCore/MemoryAttributesTable.c |  6 +--
> MdeModulePkg/Core/PiSmmCore/Page.c                  |  4 +-
> MdeModulePkg/Core/PiSmmCore/PiSmmCore.h             |  6 ---
> MdePkg/Include/AArch64/ProcessorBind.h              |  6 +++
> MdePkg/Include/Arm/ProcessorBind.h                  |  6 +++
> MdePkg/Include/Ebc/ProcessorBind.h                  |  6 +++
> MdePkg/Include/Ia32/ProcessorBind.h                 |  6 +++
> MdePkg/Include/Ipf/ProcessorBind.h                  |  6 +++
> MdePkg/Include/X64/ProcessorBind.h                  |  6 +++
> 16 files changed, 100 insertions(+), 60 deletions(-)
>
>--
>2.7.4

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
Re: [edk2] [PATCH v4 0/4] MdePkg, MdeModulePkg: Enforce page allocation granularity
Posted by Ard Biesheuvel 7 years ago
On 6 March 2017 at 03:33, Gao, Liming <liming.gao@intel.com> wrote:
> Reviewed-by: Liming Gao <liming.gao@intel.com>
>

Thanks all. Pushed to master

>>-----Original Message-----
>>From: Ard Biesheuvel [mailto:ard.biesheuvel@linaro.org]
>>Sent: Friday, March 03, 2017 11:12 PM
>>To: edk2-devel@lists.01.org; Gao, Liming <liming.gao@intel.com>; Kinney,
>>Michael D <michael.d.kinney@intel.com>
>>Cc: Zeng, Star <star.zeng@intel.com>; Yao, Jiewen <jiewen.yao@intel.com>;
>>Ard Biesheuvel <ard.biesheuvel@linaro.org>
>>Subject: [PATCH v4 0/4] MdePkg, MdeModulePkg: Enforce page allocation
>>granularity
>>
>>This is now a 4-piece series, so that the allocation granularity used by
>>PEI core, which is defined per-architecture in the UEFI spec, is not defined
>>locally but centrally for all modules in all phases.
>>
>>Ard Biesheuvel (4):
>>  MdePkg/ProcessorBind: add defines for page allocation granularity
>>  MdeModulePkg/DxeCore: switch to MdePkg allocation granularity macros
>>  MdeModulePkg/PiSmmCore: switch to MdePkg allocation granularity macros
>>  MdeModulePkg/PeiCore: honour minimal runtime allocation granularity
>>
>> MdeModulePkg/Core/Dxe/DxeMain.h                     | 25 -------------
>> MdeModulePkg/Core/Dxe/Mem/Page.c                    | 22 +++++------
>> MdeModulePkg/Core/Dxe/Mem/Pool.c                    |  8 ++--
>> MdeModulePkg/Core/Dxe/Misc/MemoryAttributesTable.c  |  2 +-
>> MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c       |  4 +-
>> MdeModulePkg/Core/Dxe/Misc/PropertiesTable.c        |  8 ++--
>> MdeModulePkg/Core/Pei/Memory/MemoryServices.c       | 39
>>+++++++++++++++++++-
>> MdeModulePkg/Core/PiSmmCore/MemoryAttributesTable.c |  6 +--
>> MdeModulePkg/Core/PiSmmCore/Page.c                  |  4 +-
>> MdeModulePkg/Core/PiSmmCore/PiSmmCore.h             |  6 ---
>> MdePkg/Include/AArch64/ProcessorBind.h              |  6 +++
>> MdePkg/Include/Arm/ProcessorBind.h                  |  6 +++
>> MdePkg/Include/Ebc/ProcessorBind.h                  |  6 +++
>> MdePkg/Include/Ia32/ProcessorBind.h                 |  6 +++
>> MdePkg/Include/Ipf/ProcessorBind.h                  |  6 +++
>> MdePkg/Include/X64/ProcessorBind.h                  |  6 +++
>> 16 files changed, 100 insertions(+), 60 deletions(-)
>>
>>--
>>2.7.4
>
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel