[edk2-devel] [edk2-platform][PATCH v2] MinPlatformPkg: Add multiple segment support for PciHostBridgeLib

2019-05-17 Thread Marc W Chen
https://bugzilla.tianocore.org/show_bug.cgi?id=1799 1. Add PcdPciSegmentCount PCD in MinPlatformPkg.dec and set default to 1 2. Base on PciHostBridge related PCDs to Initialize RootBridges. Signed-off-by: Marc Chen Cc: Michael Kubacki Cc: Sai Chaganty ---

[edk2-devel] [edk2-platform][PATCH v3] MinPlatformPkg: Add multiple segment support for PciHostBridgeLib

2019-05-17 Thread Marc W Chen
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1799 1. Add PcdPciSegmentCount PCD in MinPlatformPkg.dec and set default to 1 2. Base on PciHostBridge related PCDs to Initialize RootBridges. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marc Chen Cc: Michael Kubacki

[edk2-devel] [PATCH] OvmfPkg/QemuVideoDxe: Shouldn't assume system in VGA alias mode.

2019-06-05 Thread Marc W Chen
Query the supported attributes firstly, then AND (&&) both VGA_IO and VGA_IO_16. Since the supported attributes should only have VGA_IO or VGA_IO_16 set, the result of AND (&&) is either VGA_IO or IO_16. Then the result can be passed to PciIo->Attributes() to set the attributes. Signed-off-by:

[edk2-devel] [PATCH] OvmfPkg/QemuVideoDxe: Shouldn't assume system in VGA alias mode.

2019-06-05 Thread Marc W Chen
Query the supported attributes firstly, then AND (&&) both VGA_IO and VGA_IO_16. Since the supported attributes should only have VGA_IO or VGA_IO_16 set, the result of AND (&&) is either VGA_IO or IO_16. Then the result can be passed to PciIo->Attributes() to set the attributes. Signed-off-by:

[edk2-devel] [PATCH v2] OvmfPkg/QemuVideoDxe: Shouldn't assume system in VGA alias mode.

2019-06-06 Thread Marc W Chen
Query the supported attributes firstly, then bitwise AND (&) both VGA_IO and VGA_IO_16. Since the supported attributes should only have one of VGA_IO or VGA_IO_16 set, the result of bitwise AND (&) is either VGA_IO or IO_16. Then the result can be passed to PciIo->Attributes() to set the

Re: [edk2-devel] [PATCH] OvmfPkg/QemuVideoDxe: Shouldn't assume system in VGA alias mode.

2019-06-05 Thread Marc W Chen
rall ; Marc-André Lureau > ; Stefan Berger > Subject: Re: [edk2-devel] [PATCH] OvmfPkg/QemuVideoDxe: Shouldn't > assume system in VGA alias mode. > > On 06/05/19 13:14, Marc W Chen wrote: > > Query the supported attributes firstly, then AND (&&) both > > VGA_IO and

[edk2-devel] [PATCH] MinPlatformPkg: Add multiple segment support for PciHostBridgeLib

2019-05-13 Thread Marc W Chen
https://bugzilla.tianocore.org/show_bug.cgi?id=1799 Add PcdPciSegmentCount PCD in MinPlatformPkg.dec and set default to 1, then base on PciHostBridge related PCDs to Initialize RootBridges. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marc Chen Cc: Michael Kubacki

[edk2-devel] [PATCH] MinPlatformPkg: Add multiple segment support for PciHostBridgeLib

2019-05-13 Thread Marc W Chen
https://bugzilla.tianocore.org/show_bug.cgi?id=1799 Add PcdPciSegmentCount PCD in MinPlatformPkg.dec and set default to 1, then base on PciHostBridge related PCDs to Initialize RootBridges. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marc Chen Cc: Michael Kubacki

[edk2-devel] [PATCH] MinPlatformPkg: Add multiple segment support for PciHostBridgeLib

2019-05-13 Thread Marc W Chen
https://bugzilla.tianocore.org/show_bug.cgi?id=1799 1. Add PcdPciSegmentCount PCD in MinPlatformPkg.dec and set default to 1 2. Base on PciHostBridge related PCDs to Initialize RootBridges. Signed-off-by: Marc Chen Cc: Michael Kubacki Cc: Sai Chaganty ---

[edk2-devel] [edk2-platform][PATCH] MinPlatformPkg: Add multiple segment support for PciHostBridgeLib

2019-05-14 Thread Marc W Chen
https://bugzilla.tianocore.org/show_bug.cgi?id=1799 1. Add PcdPciSegmentCount PCD in MinPlatformPkg.dec and set default to 1 2. Base on PciHostBridge related PCDs to Initialize RootBridges. Signed-off-by: Marc Chen Cc: Michael Kubacki Cc: Sai Chaganty ---

Re: [edk2-devel] [PATCH] MdePkg: Add MmAccess and MmControl definition.

2019-08-14 Thread Marc W Chen
>> > Thanks > >> > Laszlo > >> > > >> > > I prefer to remove the files in MdeModulePkg to avoid future > confusion. > >> > > > >> > > Thanks, > >> > > Ray > >> > > > >> &

[edk2-devel] [PATCH] Intel/* clean up duplicated files in Edk2Platforms

2019-08-21 Thread Marc W Chen
\CoffeelakeSiliconPkg\SampleCode\IntelFrameworkPkg\Include\Guid\SmramMemoryReserve.h Signed-off-by: Marc W Chen Cc: Sai Chaganty Cc: Chasel Chiu Cc: Liming Gao Cc: Nate DeSimone Cc: Kelly Steele Cc: Thad Gillispie Cc: Daocheng Bu Cc: Isaac W Oram --- .../Include/Guid/SmramMemoryReserve.h

[edk2-devel] [edk2-platforms:PATCH v3] IntelSiliconPkg/Feature Implement SmmAccess

2019-08-27 Thread Marc W Chen
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2121 Implement SmmAccess for PEI and DXE phase in IntelSiliconPkg Signed-off-by: Marc Chen Cc: Ray Ni Cc: Rangasai V Chaganty --- .../Library/PeiSmmAccessLib/PeiSmmAccessLib.c | 343 +

[edk2-devel] [edk2-platforms:PATCH v4] IntelSiliconPkg/Feature Implement SmmAccess

2019-08-27 Thread Marc W Chen
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2121 Implement SmmAccess for PEI and DXE phase in IntelSiliconPkg Signed-off-by: Marc Chen Cc: Ray Ni Cc: Rangasai V Chaganty --- .../Library/PeiSmmAccessLib/PeiSmmAccessLib.c | 339 +

Re: [edk2-devel] [PATCH v2] IntelSiliconPkg/Feature Implement SmmAccess

2019-08-27 Thread Marc W Chen
-Original Message----- > > From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of > > Marc W Chen > > Sent: Monday, August 26, 2019 2:14 PM > > To: devel@edk2.groups.io > > Cc: Chen, Marc W ; Ni, Ray ; > > Chaganty, Rangasai V > > Subject: [edk2-

[edk2-devel] [edk2-platforms:PATCH v5] IntelSiliconPkg/Feature Implement SmmAccess

2019-08-27 Thread Marc W Chen
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2121 Implement SmmAccess for PEI and DXE phase in IntelSiliconPkg Signed-off-by: Marc Chen Cc: Ray Ni Cc: Rangasai V Chaganty --- .../Library/PeiSmmAccessLib/PeiSmmAccessLib.c | 339 +

[edk2-devel] [PATCH v2] IntelSiliconPkg/Feature Implement SmmAccess

2019-08-26 Thread Marc W Chen
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2121 Implement SmmAccess for PEI and DXE phase in IntelSiliconPkg Signed-off-by: Marc Chen Cc: Ray Ni Cc: Rangasai V Chaganty --- .../Library/PeiSmmAccessLib/PeiSmmAccessLib.c | 343 +

[edk2-devel] [edk2-platforms][PATCH V2 6/6] QuarkSocPkg: Clean up duplicated SmramMemoryReserve.h files

2019-09-02 Thread Marc W Chen
Kinney Cc: Kelly Steele Co-authored-by: Nate DeSimone Signed-off-by: Marc W Chen Signed-off-by: Nate DeSimone --- .../Include/Guid/SmramMemoryReserve.h | 54 --- .../Smm/Dxe/SmmAccessDxe/SmmAccess.inf| 2 +- .../Smm/Dxe/SmmAccessDxe/SmmAccessDriver.c| 2

[edk2-devel] [edk2-platforms][PATCH V2 1/6] MinPlatformPkg: Clean up duplicated SmramMemoryReserve.h files

2019-09-02 Thread Marc W Chen
: Chasel Chiu Cc: Nate DeSimone Cc: Liming Gao Co-authored-by: Nate DeSimone Signed-off-by: Marc W Chen Signed-off-by: Nate DeSimone --- .../Include/Guid/SmramMemoryReserve.h | 54 --- .../Intel/MinPlatformPkg/MinPlatformPkg.dec | 5 -- .../PlatformInitPei

[edk2-devel] [edk2-platforms][PATCH V2 5/6] PurleySktPkg: Clean up duplicated SmramMemoryReserve.h files

2019-09-02 Thread Marc W Chen
: Daocheng Bu Cc: Isaac W Oram Co-authored-by: Nate DeSimone Signed-off-by: Marc W Chen Signed-off-by: Nate DeSimone --- .../Include/Guid/SmramMemoryReserve.h | 43 --- Silicon/Intel/PurleySktPkg/SocketPkg.dec | 3 +- 2 files changed, 1 insertion(+), 45 deletions

[edk2-devel] [edk2-platforms][PATCH V2 3/6] CoffeelakeSiliconPkg: Clean up duplicated SmramMemoryReserve.h files

2019-09-02 Thread Marc W Chen
\SmramMemoryReserve.h Cc: Chasel Chiu Cc: Michael Kubacki Cc: Sai Chaganty Co-authored-by: Nate DeSimone Signed-off-by: Marc W Chen Signed-off-by: Nate DeSimone --- .../Include/Guid/SmramMemoryReserve.h | 51 --- Silicon/Intel/CoffeelakeSiliconPkg/SiPkg.dec | 5 -- .../SystemAgent

[edk2-devel] [edk2-platforms][PATCH V2 4/6] KabylakeSiliconPkg: Clean up duplicated SmramMemoryReserve.h files

2019-09-02 Thread Marc W Chen
\SmramMemoryReserve.h Cc: Chasel Chiu Cc: Michael Kubacki Cc: Sai Chaganty Co-authored-by: Nate DeSimone Signed-off-by: Marc W Chen Signed-off-by: Nate DeSimone --- .../Include/Guid/SmramMemoryReserve.h | 54 --- Silicon/Intel/KabylakeSiliconPkg/SiPkg.dec| 4 -- .../SystemAgent

[edk2-devel] [edk2-platforms][PATCH V2 2/6] QuarkPlatformPkg: Clean up duplicated SmramMemoryReserve.h files

2019-09-02 Thread Marc W Chen
Kinney Cc: Kelly Steele Co-authored-by: Nate DeSimone Signed-off-by: Marc W Chen Signed-off-by: Nate DeSimone --- .../Acpi/DxeSmm/AcpiSmm/AcpiSmmPlatform.c | 4 ++-- .../Acpi/DxeSmm/AcpiSmm/AcpiSmmPlatform.inf | 2 +- .../Platform/Pei/PlatformInit/MrcWrapper.c

[edk2-devel] [edk2-platforms][PATCH V2 0/6] clean up duplicated files in edk2-platforms

2019-09-02 Thread Marc W Chen
\CoffeelakeSiliconPkg\SampleCode\IntelFrameworkPkg\Include\Guid\SmramMemoryReserve.h Cc: Michael Kubacki Cc: Sai Chaganty Cc: Chasel Chiu Cc: Liming Gao Cc: Nate DeSimone Cc: Kelly Steele Cc: Thad Gillispie Cc: Daocheng Bu Cc: Isaac W Oram Co-authored-by: Nate DeSimone Signed-off-by: Marc W Chen

Re: [edk2-devel] [edk2-platforms:PATCH] Intel/IntelSiliconPkg Implement SmmAccess in IntelSiliconPkg

2019-08-24 Thread Marc W Chen
Thanks Ray and Sai for reviewing, please see my below reply for your questions. 1. The reason why I put the Library folder in Feature/SmmAccess folder is because I saw Feature/Capsule also doing it this way, so I thought we want to put all related implementation in the same feature folder

[edk2-devel] [edk2-platforms:PATCH] Intel/IntelSiliconPkg Implement SmmAccess in IntelSiliconPkg

2019-08-23 Thread Marc W Chen
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2121 Implement SmmAccess for PEI and DXE phase in IntelSiliconPkg Signed-off-by: Marc Chen Cc: Ray Ni Cc: Rangasai V Chaganty --- .../Library/PeiSmmAccessLib/PeiSmmAccessLib.c | 343 +

[edk2-devel] [edk2-platforms][PATCH V2] AdvancedFeaturePkg/S3Advanced Add S3 Advanced PEIM driver

2019-09-05 Thread Marc W Chen
Implement a S3 Advanced PEIM driver for supporting S3 feature. So far this driver only install EFI_PEI_MM_ACCESS_PPI for S3 resume case. Cc: Michael Kubacki Cc: Sai Chaganty Cc: Liming Gao Signed-off-by: Marc Chen --- .../S3Advanced/S3AdvancedPei/S3AdvancedPei.c | 36

[edk2-devel] [edk2-platforms][PATCH V3] AdvancedFeaturePkg/S3Advanced Add S3 Advanced PEIM driver

2019-09-05 Thread Marc W Chen
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2154 Implement a S3 Advanced PEIM driver for supporting S3 feature. So far this driver only install EFI_PEI_MM_ACCESS_PPI for S3 resume case. Cc: Michael Kubacki Cc: Sai Chaganty Cc: Liming Gao Signed-off-by: Marc Chen ---

[edk2-devel] [edk2-platforms][PATCH V4] AdvancedFeaturePkg/S3Advanced Add S3 Advanced PEIM driver

2019-09-06 Thread Marc W Chen
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2154 Implement a S3 Advanced PEIM driver for supporting S3 feature. So far this driver only install EFI_PEI_MM_ACCESS_PPI for S3 resume case. Cc: Michael Kubacki Cc: Sai Chaganty Cc: Liming Gao Signed-off-by: Marc Chen ---

[edk2-devel] [edk2-platforms][PATCH V5] AdvancedFeaturePkg/S3: Add S3 PEIM driver

2019-09-10 Thread Marc W Chen
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2154 Implement a S3 PEIM driver for supporting S3 feature. So far this driver only install EFI_PEI_MM_ACCESS_PPI for S3 resume case. Cc: Michael Kubacki Cc: Sai Chaganty Cc: Liming Gao Signed-off-by: Marc Chen ---

[edk2-devel] [edk2-platforms][PATCH] AdvancedFeaturePkg/S3Advanced Add S3 Advanced PEIM driver

2019-09-05 Thread Marc W Chen
Implement a S3 Advanced PEIM driver for supporting S3 feature. So far this driver only install EFI_PEI_MM_ACCESS_PPI for S3 resume case. Change-Id: Ie5841047be350f411650ad30f16d210b98197dc4 Cc: Michael Kubacki Cc: Sai Chaganty Cc: Liming Gao Signed-off-by: Marc Chen ---

Re: [edk2-devel] [PATCH] MdePkg: Add MmAccess and MmControl definition.

2019-08-01 Thread Marc W Chen
devel@edk2.groups.io; Chen, Marc W > > > > Cc: Kinney, Michael D ; Ni, Ray > > > > > > > > Subject: RE: [edk2-devel] [PATCH] MdePkg: Add MmAccess and > > MmControl > > > > definition. > > > > > > > > Marc: > > &g

Re: [edk2-devel] [PATCH] MdePkg: Add MmAccess and MmControl definition.

2019-08-01 Thread Marc W Chen
the following patches for the change in MdeModulePkg? > > Thanks > Liming > >-Original Message- > >From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of > >Marc W Chen > >Sent: Monday, July 29, 2019 12:26 PM > >To: devel@edk2.groups.io &

Re: [edk2-devel] [PATCH] MdePkg: Add MmAccess and MmControl definition.

2019-08-01 Thread Marc W Chen
e one in MdeModulePkg. Have > > you the following patches for the change in MdeModulePkg? > > > > Thanks > > Liming > > >-Original Message- > > >From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of > > >Marc W Chen > >

Re: [edk2-devel] [PATCH] MdePkg: Add PI 1.5 SmramMemoryReserve HOB file

2019-07-29 Thread Marc W Chen
t; > > >Cc: Michael D Kinney > >Cc: Liming Gao > >Cc: Ray Ni > >Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2020 > >Signed-off-by: Marc W Chen > >--- > > MdePkg/Include/Guid/SmramMemoryReserve.h | 45 > > &g

[edk2-devel] [PATCH V2] MdePkg: Add PI 1.5 SmramMemoryReserve HOB file

2019-07-29 Thread Marc W Chen
This is a special GUID extension Hob to describe SMRAM memory regions Cc: Michael D Kinney Cc: Liming Gao Cc: Ray Ni Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2020 Signed-off-by: Marc W Chen --- MdePkg/Include/Guid/SmramMemoryReserve.h | 45 MdePkg

[edk2-devel] [PATCH] MdePkg: Add MmAccess and MmControl definition.

2019-07-28 Thread Marc W Chen
EFI MmAccess and MmControl PPIs are defined in the PI 1.5 specification. Cc: Michael D Kinney Cc: Liming Gao Cc: Ray Ni Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2023 Signed-off-by: Marc W Chen --- MdePkg/Include/Ppi/MmAccess.h | 155

Re: [edk2-devel] [PATCH V2] MdePkg: Add PI 1.5 SmramMemoryReserve HOB file

2019-07-29 Thread Marc W Chen
> > Marc: > Normally, gEfiGuidCName matches GUID C Macro name. Can you follow this > rule? > > Thanks > Liming > >-Original Message- > >From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of > >Marc W Chen > >Sent: Monday, Jul

[edk2-devel] [PATCH V3] MdePkg: Add PI 1.5 SmramMemoryReserve HOB file

2019-07-29 Thread Marc W Chen
This is a special GUID extension Hob to describe SMRAM memory regions Cc: Michael D Kinney Cc: Liming Gao Cc: Ray Ni Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2020 Signed-off-by: Marc W Chen --- MdePkg/Include/Guid/SmramMemoryReserve.h | 45 MdePkg

Re: [edk2-devel] [PATCH] MdePkg: Add MmAccess and MmControl definition.

2019-08-06 Thread Marc W Chen
> Subject: Re: [edk2-devel] [PATCH] MdePkg: Add MmAccess and MmControl > definition. > > On 08/01/19 12:15, Marc W Chen wrote: > > Yes, my purpose is to avoid platform code update if the package is allowed > to use MdeModulePkg like OvmfPkg. > > For those packages that cannot

Re: [edk2-devel] [PATCH] MdePkg: Add MmAccess and MmControl definition.

2019-08-09 Thread Marc W Chen
>>> -Original Message- > >>> From: devel@edk2.groups.io On Behalf Of > Laszlo > >>> Ersek > >>> Sent: Friday, August 2, 2019 10:14 AM > >>> To: devel@edk2.groups.io; Chen, Marc W ; Ni, > >>> Ray ; Gao, Liming > &

[edk2-devel] [PATCH] MdePkg: Add PI 1.5 SmramMemoryReserve HOB file

2019-07-26 Thread Marc W Chen
This is a special GUID extension Hob to describe SMRAM memory regions Cc: Michael D Kinney Cc: Liming Gao Cc: Ray Ni Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2020 Signed-off-by: Marc W Chen --- MdePkg/Include/Guid/SmramMemoryReserve.h | 45 MdePkg

[edk2-devel][edk2-platforms][PATCH v2] IntelSiliconPkg/Feature/SmmAccess/*: Fix incorrect Docygen comment

2020-01-08 Thread Marc W Chen
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2436 Cc: Michael Kubacki Cc: Sai Chaganty Cc: Ray Ni Cc: Liming Gao Cc: Shenglei Zhang Signed-off-by: Marc Chen --- .../Library/PeiSmmAccessLib/PeiSmmAccessLib.c | 37 ++-- .../SmmAccess/SmmAccessDxe/SmmAccessDriver.c

[edk2-devel][edk2-platforms][PATCH v3] IntelSiliconPkg/Feature/SmmAccess/*: Fix incorrect Docygen comment

2020-01-09 Thread Marc W Chen
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2436 Cc: Michael Kubacki Cc: Sai Chaganty Cc: Ray Ni Cc: Liming Gao Cc: Shenglei Zhang Signed-off-by: Marc Chen --- .../Library/PeiSmmAccessLib/PeiSmmAccessLib.c | 37 ++-- .../SmmAccess/SmmAccessDxe/SmmAccessDriver.c

[edk2-devel][edk2-platforms][PATCH v4] IntelSiliconPkg/Feature/SmmAccess/*: Fix incorrect Docygen comment

2020-01-09 Thread Marc W Chen
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2436 Cc: Michael Kubacki Cc: Sai Chaganty Cc: Ray Ni Cc: Liming Gao Cc: Shenglei Zhang Signed-off-by: Marc Chen --- .../Library/PeiSmmAccessLib/PeiSmmAccessLib.c | 37 +-- .../SmmAccess/SmmAccessDxe/SmmAccessDriver.c

[edk2-devel][edk2-platforms][PATCH v5] IntelSiliconPkg/Feature/SmmAccess/*: Fix incorrect Doxygen comment

2020-01-09 Thread Marc W Chen
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2436 Fixed some doxygen comment that does not follow correct doxygen format. Updated some description of some functions. Notes: v1: - Initial version of code change. v2: - Update some description of some functions. v3: - Update some description

[edk2-devel][edk2-platforms][PATCH] IntelSiliconPkg/Feature/SmmAccess/*: Fix incorrect Docygen comment

2019-12-25 Thread Marc W Chen
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2436 Cc: Michael Kubacki Cc: Sai Chaganty Cc: Liming Gao Cc: Shenglei Zhang Signed-off-by: Marc Chen --- .../Library/PeiSmmAccessLib/PeiSmmAccessLib.c | 19 --- .../Feature/SmmAccess/SmmAccessDxe/SmmAccessDriver.c