Re: [edk2] [PATCH 1/2] ArmVirtPkg: add runtime instance of FdtPL011SerialPortLib

2019-04-01 Thread Heyi Guo
we follow the coding style in this document: https://github.com/tianocore-docs/Docs/raw/master/Specifications/CCS_2_1_Draft.pdf? Thanks, Heyi On 2019/4/2 0:14, Laszlo Ersek wrote: On 04/01/19 11:06, Heyi Guo wrote: Add a runtime instance of FdtPL011SerialPortLib to support runtime serial p

[edk2] [PATCH 2/2] ArmVirtQemu: enable runtime debug by build flag

2019-04-01 Thread Heyi Guo
may cause potential conflict. User needs to specify "-D RT_DEBUG=TRUE"; "-D RT_DEBUG" is not enough for we use !if $(RT_DEBUG)==TRUE in the code. Cc: Laszlo Ersek Cc: Ard Biesheuvel Cc: Julien Grall Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Hey

[edk2] [PATCH 1/2] ArmVirtPkg: add runtime instance of FdtPL011SerialPortLib

2019-04-01 Thread Heyi Guo
serial port base address. Cc: Laszlo Ersek Cc: Ard Biesheuvel Cc: Julien Grall Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo Signed-off-by: Heyi Guo --- ArmVirtPkg/Library/FdtPL011SerialPortLib/FdtPL011SerialPortLib.c | 6 +- ArmVirtPkg/Library

[edk2] [PATCH 0/2] Enable runtime serial port debug for ArmVirtQemu

2019-04-01 Thread Heyi Guo
at the moment, with the potential *risk* of conflicting OS serial port read/write. Once QEMU implements individual firmware UART, we need rewrite PlatformGetRtSerialBase() to get the real runtime serial port base address. Cc: Laszlo Ersek Cc: Ard Biesheuvel Cc: Julien Grall Heyi Guo (2): ArmVirtPkg

Re: [edk2] [RFC 0/3] Enable runtime serial debug for ArmVirtQemu

2019-03-20 Thread Heyi Guo
On 2019/3/21 1:47, Laszlo Ersek wrote: On 03/20/19 13:16, Heyi Guo wrote: On 2019/3/20 17:55, Laszlo Ersek wrote: If we don't have to flatten a ridiculous amount of other library code into the RuntimePrepare() function, I think such flattening would be a viable approach. We've run

Re: [edk2] [RFC 0/3] Enable runtime serial debug for ArmVirtQemu

2019-03-20 Thread Heyi Guo
On 2019/3/20 17:55, Laszlo Ersek wrote: On 03/16/19 10:41, Heyi Guo wrote: On 2019/3/13 1:05, Laszlo Ersek wrote: Given that you'd have to implement a "special" SerialPortLib instance just for StatusCodeHandlerRuntimeDxe anyway, can we perhaps: (1) Undo -- dependent on a

Re: [edk2] [RFC 0/3] Enable runtime serial debug for ArmVirtQemu

2019-03-16 Thread Heyi Guo
On 2019/3/13 1:05, Laszlo Ersek wrote: Hello Heyi, On 03/12/19 07:56, Heyi Guo wrote: Hi Laszlo, I'm thinking about a proposal as below: 1. Reuse the framework of MdePkg/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebugLibSerialPort.inf 2. The boot time behavior of this module

Re: [edk2] [RFC 0/3] Enable runtime serial debug for ArmVirtQemu

2019-03-12 Thread Heyi Guo
Biesheuvel wrote: On Thu, 28 Feb 2019 at 09:06, Heyi Guo wrote: Serial port output is useful when debugging UEFI runtime services in OS runtime. The patches are trying to provide a handy method to enable runtime serial port debug for ArmVirtQemu. Cc: Jian J Wang Cc: Hao Wu Cc: Laszlo Ersek Cc

Re: [edk2] [RFC 0/3] Enable runtime serial debug for ArmVirtQemu

2019-03-04 Thread Heyi Guo
On 2019/3/1 23:27, Laszlo Ersek wrote: +Peter, for the last few paragraphs On 02/28/19 13:10, Ard Biesheuvel wrote: On Thu, 28 Feb 2019 at 09:06, Heyi Guo wrote: Serial port output is useful when debugging UEFI runtime services in OS runtime. The patches are trying to provide a handy

Re: [edk2] [RFC 0/3] Enable runtime serial debug for ArmVirtQemu

2019-03-01 Thread Heyi Guo
On 2019/2/28 21:39, Laszlo Ersek wrote: Hello Heyi, On 02/28/19 09:05, Heyi Guo wrote: Serial port output is useful when debugging UEFI runtime services in OS runtime. The patches are trying to provide a handy method to enable runtime serial port debug for ArmVirtQemu. Cc: Jian J Wang Cc

[edk2] [RFC 2/3] ArmVirtPkg: add runtime instance of FdtPL011SerialPortLib

2019-02-28 Thread Heyi Guo
We add a runtime instance inf into the same directory for code reuse. The different pieces of code are put into *Common.c and *Runtime.c. Cc: Laszlo Ersek Cc: Ard Biesheuvel Cc: Julien Grall Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo Signed-off-by: Heyi

[edk2] [RFC 3/3] ArmVirtQemu: enable runtime debug by build flag

2019-02-28 Thread Heyi Guo
-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo Signed-off-by: Heyi Guo --- ArmVirtPkg/ArmVirt.dsc.inc | 6 ++ ArmVirtPkg/ArmVirtQemu.dsc | 13 + ArmVirtPkg/ArmVirtQemuFvMain.fdf.inc | 5 + 3 files changed, 24 insertions(+) diff --git a

[edk2] [RFC 1/3] MdeModulePkg/StatusCode: Add PCD to enable runtime serial debug

2019-02-28 Thread Heyi Guo
Serial port message is useful when we are debugging UEFI runtime services, so add a feature PCD to enable runtime serial debug. Cc: Jian J Wang Cc: Hao Wu Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo Signed-off-by: Heyi Guo --- MdeModulePkg/MdeModulePkg.dec

[edk2] [RFC 0/3] Enable runtime serial debug for ArmVirtQemu

2019-02-28 Thread Heyi Guo
Serial port output is useful when debugging UEFI runtime services in OS runtime. The patches are trying to provide a handy method to enable runtime serial port debug for ArmVirtQemu. Cc: Jian J Wang Cc: Hao Wu Cc: Laszlo Ersek Cc: Ard Biesheuvel Cc: Julien Grall Heyi Guo (3): MdeModulePkg

Re: [edk2] Can we use python 3 to build edk2?

2018-08-27 Thread heyi . guo
That's really good news; thank you all! Heyi On Mon, Aug 27, 2018 at 05:58:35PM +0200, Laszlo Ersek wrote: > On 08/27/18 15:31, Zhu, Yonghong wrote: > > We have a bugzilla. https://bugzilla.tianocore.org/show_bug.cgi?id=55 > > Current I am working on it. And planned to finish to migrate to

[edk2] Can we use python 3 to build edk2?

2018-08-27 Thread heyi . guo
It is said that python3 is not compatible with python2. Can we use python3 to build edk2? Thanks, Heyi ___ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel

Re: [edk2] Question about SecurityPkg/DxeTcg2PhysicalPresenceLib

2018-08-14 Thread heyi . guo
Hi Jiewen, I searched the code in EDK2, and found there is another implementation of DxeTcg2PhysicalPresenceLib for OVMF: the function Tcg2PhysicalPresenceLibProcessRequest() is called in PlatformBootManagerAfterConsole() on OVMF, and it doesn't invoke VariableLockProtocol->RequestToLock() in

Re: [edk2] Question about SecurityPkg/DxeTcg2PhysicalPresenceLib

2018-08-12 Thread heyi . guo
Is there any work around if we don't have such trusted console on available hardware platforms? Is there any example implementation which we can refer to? Thanks, Heyi On Fri, Aug 10, 2018 at 09:12:46AM +, Yao, Jiewen wrote: > by design a platform need define a trusted console and only

[edk2] Question about SecurityPkg/DxeTcg2PhysicalPresenceLib

2018-08-10 Thread heyi . guo
Hi folks, The function Tcg2PhysicalPresenceLibProcessRequest in DxeTcg2PhysicalPresenceLib requires to be invoked after console is ready, and in the function it will call VariableLockProtocol->RequestToLock(), while variable RequestToLock() requires to be called before "End Of Dxe" event, or else

Re: [edk2] [PATCH edk2-platforms 00/12] Hisilicon/D0x: Switch to generic PciHostBridge

2018-05-30 Thread heyi . guo
SA-AES128-GCM-SHA256 bits=128/128); > Mon, 16 Apr 2018 18:40:07 -0700 (PDT) > Received-SPF: pass (google.com: domain of guoh...@huawei.com designates > 45.249.212.32 as permitted sender) client-ip=45.249.212.32; > Authentication-Results: mx.google.com; >spf=pass (googl

[edk2] [PATCH 1/1] MdeModulePkg/Gcd: Fix bug of attribute conversion

2018-03-29 Thread Heyi Guo
ntributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo <heyi@linaro.org> Signed-off-by: Yi Li <phoenix.l...@huawei.com> Signed-off-by: Renhao Liang <liangren...@huawei.com> Cc: Star Zeng <star.z...@intel.com> Cc: Eric Dong <eric.d...@intel.com&

[edk2] [RFC 1/1] MdeModulePkg/Gcd: Fix bug of attribute conversion

2018-03-28 Thread Heyi Guo
other attributes. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo <heyi@linaro.org> Signed-off-by: Yi Li <phoenix.l...@huawei.com> Signed-off-by: Renhao Liang <liangren...@huawei.com> Cc: Star Zeng <star.z...@intel.com> Cc: Eric Dong &l

[edk2] [PATCH edk2-platforms 1/1] Hisilicon/D0x: Use unified Sm750Dxe driver binary

2018-03-28 Thread Heyi Guo
Signed-off-by: Heyi Guo <heyi@linaro.org> Signed-off-by: Yi Li <phoenix.l...@huawei.com> Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Leif Lindholm <leif.lindh...@linaro.org> Cc: Michael D Kinney <michael.d.kin...@intel.com> --- Platform/Hisilicon/D03/D03.dsc

[edk2] [PATCH edk2-non-osi v2 1/1] Hisilicon/Sm750Dxe: Unify binary and fix GOP frame buffer base

2018-03-26 Thread Heyi Guo
ted-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo <heyi@linaro.org> Signed-off-by: Yi Li <phoenix.l...@huawei.com> Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Leif Lindholm <leif.lindh...@linaro.org> Cc: Michael D Kinney <michael.d.k

[edk2] [PATCH edk2-non-osi v2 0/1] Hisilicon/D0x/Sm750: Fix GOP framebuffer

2018-03-26 Thread Heyi Guo
les can be fetched from: https://github.com/iwishguo/edk2-non-osi/tree/patch-sm750-fix-v2 v2: - Unify binary files for D03 and D05 [Ard] Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Leif Lindholm <leif.lindh...@linaro.org> Cc: Michael D Kinney <michael.d.kin...@intel.

[edk2] [PATCH edk2-non-osi 1/1] Hisilicon/D0x/Sm750: Fix GOP framebuffer base

2018-03-22 Thread Heyi Guo
The code in SM750 driver treated the address returned from PciIo->GetBarAttributes() as device address; this should be fixed after edk2 commit dc080d3 since GetBarAttributes() returns host address from then on. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo &l

[edk2] [PATCH edk2-non-osi 0/1] Hisilicon/D0x/Sm750: Fix GOP framebuffer

2018-03-22 Thread Heyi Guo
tch-sm750-fix Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Leif Lindholm <leif.lindh...@linaro.org> Cc: Michael D Kinney <michael.d.kin...@intel.com> Heyi Guo (1): Hisilicon/D0x/Sm750: Fix GOP framebuffer base Platform/Hisilicon/D03/Drivers/Sm750Dxe/SmiGraphicsO

[edk2] [PATCH edk2-platforms 10/12] Hisilicon/D0x: Switch to generic PciHostBridge driver

2018-03-20 Thread Heyi Guo
Signed-off-by: Heyi Guo <heyi@linaro.org> Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Leif Lindholm <leif.lindh...@linaro.org> Cc: Michael D Kinney <michael.d.kin...@intel.com> Cc: Haojian Zhuang <haojian.zhu...@linaro.org> --- Silicon/Hisilicon/Hisilico

[edk2] [PATCH edk2-platforms 05/12] Hisilicon/Pci: Move EnlargeAtuConfig0() to PcieInitDxe

2018-03-20 Thread Heyi Guo
: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo <heyi@linaro.org> Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Leif Lindholm <leif.lindh...@linaro.org> Cc: Michael D Kinney <michael.d.kin...@intel.com> --- Silicon/Hisilicon/Hi1610/Drivers/PcieInit16

[edk2] [PATCH edk2-platforms 06/12] Hisilicon/PlatformPciLib: add segment for each root bridge

2018-03-20 Thread Heyi Guo
are kept the same as ACPI MCFG. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo <heyi@linaro.org> --- Silicon/Hisilicon/Include/Library/PlatformPciLib.h | 1 + Platform/Hisilicon/D03/Library/PlatformPciLib/PlatformPciLib.c | 8 Pl

[edk2] [PATCH edk2-platforms 12/12] Hisilicon/PlatformPciLib: clear redundant felds in RESOURCE_APPETURE

2018-03-20 Thread Heyi Guo
Contribution Agreement 1.1 Signed-off-by: Heyi Guo <heyi@linaro.org> Signed-off-by: Yi Li <phoenix.l...@huawei.com> Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Leif Lindholm <leif.lindh...@linaro.org> Cc: Michael D Kinney <michael.d.kin...@intel.com> --- Sil

[edk2] [PATCH edk2-platforms 08/12] Hisilicon: add PciCpuIo2Dxe

2018-03-20 Thread Heyi Guo
This is to prepare for switching to generic PciHostBridge, and CpuIo2Dxe is needed by generic PciHostBridge driver. The driver is copied from ArmPkg/Drivers/ArmPciCpuIo2Dxe and changed for D0x. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo <heyi@linaro.

[edk2] [PATCH edk2-platforms 09/12] Hisilicon: add PciSegmentLib for Hi161x

2018-03-20 Thread Heyi Guo
This is to prepare for switching to generic PciHostBridge, and PciSegmentLib is needed by generic PciHostBridge driver. This module copied from edk2-platforms/Silicon/Socionext/SynQuacer/Library/SynQuacerPciSegmentLib. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi

[edk2] [PATCH edk2-platforms 04/12] Hisilicon/Pci: Merge PciPlatform into PcieInit Driver

2018-03-20 Thread Heyi Guo
1.1 Signed-off-by: Heyi Guo <heyi@linaro.org> Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Leif Lindholm <leif.lindh...@linaro.org> Cc: Michael D Kinney <michael.d.kin...@intel.com> --- Pla

[edk2] [PATCH edk2-platforms 00/12] Hisilicon/D0x: Switch to generic PciHostBridge

2018-03-20 Thread Heyi Guo
Cc: Haojian Zhuang <haojian.zhu...@linaro.org> Heyi Guo (12): Hisilicon: Enable WARN and INFO debug message Hisilicon/D05/PlatformPciLib: fix misuse of macro Hisilicon/Pci: move ATU configuration to PcieInitDxe Hisilicon/Pci: Merge PciPlatform into PcieInit Driver Hisilicon/Pci

[edk2] [PATCH edk2-platforms 03/12] Hisilicon/Pci: move ATU configuration to PcieInitDxe

2018-03-20 Thread Heyi Guo
-by: Heyi Guo <heyi@linaro.org> Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Leif Lindholm <leif.lindh...@linaro.org> Cc: Michael D Kinney <michael.d.kin...@intel.com> --- Silicon/Hisilicon/Hi1610/Drivers/PcieInit1610/PcieInitDxe.inf | 1 + Silicon/Hisilicon/Hi1

[edk2] [PATCH edk2-platforms 07/12] Hisilicon: add PciHostBridgeLib

2018-03-20 Thread Heyi Guo
This is to prepare for switching to generic PciHostBridge, and PciHostBridgeLib is needed by PciHostBridge driver. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo <heyi@linaro.org> Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Leif Lindholm

[edk2] [PATCH edk2-platforms 01/12] Hisilicon: Enable WARN and INFO debug message

2018-03-20 Thread Heyi Guo
INFO and WARN messages are useful when we are debugging, something like PCI enumeration process, and more debug messages should not impact much for they will only be displayed in DEBUG version, not RELEASE one. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo <h

[edk2] [PATCH edk2-platforms 02/12] Hisilicon/D05/PlatformPciLib: fix misuse of macro

2018-03-20 Thread Heyi Guo
Each PCI root bridge has its own macro definitions for its resource aperture, so that one root bridge should not use macro definitions of other root bridges. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo <heyi@linaro.org> Cc: Ard Biesheuvel <ar

[edk2] [PATCH v3 0/1] ArmPkg/TimerDxe: Add ISB for timer compare value reload

2018-03-15 Thread Heyi Guo
fixed if we add a "ISB" after reloading timer compare value, and we agree that it makes sense to do that. v3: - Implement 1 comment from Marc. Cc: Leif Lindholm <leif.lindh...@linaro.org> Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Marc Zyngier <marc.zyng...@arm

[edk2] [PATCH v3 1/1] ArmPkg/TimerDxe: Add ISB for timer compare value reload

2018-03-15 Thread Heyi Guo
ntribution Agreement 1.1 Signed-off-by: Heyi Guo <heyi@linaro.org> Signed-off-by: Yi Li <phoenix.l...@huawei.com> Acked-by: Marc Zyngier <marc.zyng...@arm.com> Cc: Leif Lindholm <leif.lindh...@linaro.org> Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Marc Z

[edk2] [PATCH v7 6/6] MdeModulePkg/PciBus: return CPU address for GetBarAttributes

2018-03-15 Thread Heyi Guo
der: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo <heyi@linaro.org> Signed-off-by: Yi Li <phoenix.l...@huawei.com> Reviewed-by: Ni Ruiyu <ruiyu...@intel.com> Cc: Ruiyu Ni <ruiyu...@intel.com> Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Star Zeng &l

[edk2] [PATCH v7 3/6] MdeModulePkg/PciHostBridgeLib.h: add address Translation

2018-03-15 Thread Heyi Guo
ert it to a PCI address". This means: Translation = device address - host address So we also use the above calculation for this Translation field to keep consistent. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo <heyi@linaro.org> Signed-off-by: Yi L

[edk2] [PATCH v7 5/6] MdeModulePkg/PciBus: convert host address to device address

2018-03-15 Thread Heyi Guo
ost address + translation offset. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo <heyi@linaro.org> Signed-off-by: Yi Li <phoenix.l...@huawei.com> Reviewed-by: Ni Ruiyu <ruiyu...@intel.com> Cc: Ruiyu Ni <ruiyu...@intel.com> Cc: Ard Biesheuvel <

[edk2] [PATCH v7 1/6] CorebootPayloadPkg/PciHostBridgeLib: clear aperture vars for (re)init

2018-03-15 Thread Heyi Guo
will not suffer from an additional change. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo <heyi@linaro.org> Signed-off-by: Yi Li <phoenix.l...@huawei.com> Reviewed-by: Ni Ruiyu <ruiyu...@intel.com> Cc: Maurice Ma <maurice...@intel.com> Cc: Pri

[edk2] [PATCH v7 4/6] MdeModulePkg/PciHostBridgeDxe: Add support for address translation

2018-03-15 Thread Heyi Guo
: to simplify the situation, we require the alignment of Translation must be larger than any BAR alignment in the same root bridge, so that resource allocation alignment can be applied to both device address and host address. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Hey

[edk2] [PATCH v6 4/6] MdeModulePkg/PciHostBridgeDxe: Add support for address translation

2018-03-14 Thread Heyi Guo
: to simplify the situation, we require the alignment of Translation must be larger than any BAR alignment in the same root bridge, so that resource allocation alignment can be applied to both device address and host address. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: H

[edk2] [PATCH v6 5/6] MdeModulePkg/PciBus: convert host address to device address

2018-03-14 Thread Heyi Guo
ost address + translation offset. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo <heyi@linaro.org> Signed-off-by: Yi Li <phoenix.l...@huawei.com> Cc: Ruiyu Ni <ruiyu...@intel.com> Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Star Zeng <

[edk2] [PATCH v6 2/6] OvmfPkg/PciHostBridgeLib: clear PCI aperture vars for (re)init

2018-03-14 Thread Heyi Guo
will not suffer from an additional change. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo <heyi@linaro.org> Signed-off-by: Yi Li <phoenix.l...@huawei.com> Cc: Jordan Justen <jordan.l.jus...@intel.com> Cc: Anthony Perard <anthony.per...@citrix.

[edk2] [PATCH v6 3/6] MdeModulePkg/PciHostBridgeLib.h: add address Translation

2018-03-14 Thread Heyi Guo
ert it to a PCI address". This means: Translation = device address - host address So we also use the above calculation for this Translation field to keep consistent. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo <heyi@linaro.org> Signed-off-by: Yi L

[edk2] [PATCH v6 1/6] CorebootPayloadPkg/PciHostBridgeLib: clear aperture vars for (re)init

2018-03-14 Thread Heyi Guo
will not suffer from an additional change. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo <heyi@linaro.org> Signed-off-by: Yi Li <phoenix.l...@huawei.com> Cc: Maurice Ma <maurice...@intel.com> Cc: Prince Agyeman <prince.agye...@intel.com> Cc

[edk2] [PATCH v6 6/6] MdeModulePkg/PciBus: return CPU address for GetBarAttributes

2018-03-14 Thread Heyi Guo
der: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo <heyi@linaro.org> Signed-off-by: Yi Li <phoenix.l...@huawei.com> Cc: Ruiyu Ni <ruiyu...@intel.com> Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Star Zeng <star.z...@intel.com> Cc: Eric Dong <eric.d

[edk2] [PATCH v6 0/6] Add translation support to generic PciHostBridge

2018-03-14 Thread Heyi Guo
t;benjamin@intel.com> Cc: Jordan Justen <jordan.l.jus...@intel.com> Cc: Anthony Perard <anthony.per...@citrix.com> Cc: Julien Grall <julien.gr...@linaro.org> Heyi Guo (6): CorebootPayloadPkg/PciHostBridgeLib: clear aperture vars for (re)init OvmfPkg/PciHostBridgeLib: clear

[edk2] [PATCH v2 0/1] ArmPkg/TimerDxe: Add ISB for timer compare value reload

2018-03-12 Thread Heyi Guo
fixed if we add a "ISB" after reloading timer compare value, and we agree that it makes sense to do that. Cc: Leif Lindholm <leif.lindh...@linaro.org> Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Marc Zyngier <marc.zyng...@arm.com> Heyi Guo (1): ArmPkg/TimerD

[edk2] [PATCH v2 1/1] ArmPkg/TimerDxe: Add ISB for timer compare value reload

2018-03-12 Thread Heyi Guo
ntribution Agreement 1.1 Signed-off-by: Heyi Guo <heyi@linaro.org> Signed-off-by: Yi Li <phoenix.l...@huawei.com> Cc: Leif Lindholm <leif.lindh...@linaro.org> Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Marc Zyngier <marc.zyng...@arm.com> --- Notes:

[edk2] [edk2-platforms PATCH v2 2/3] Hisilicon: disable GICv3 legacy mode

2018-03-12 Thread Heyi Guo
GICv3. D03 also works for this patch. If the platforms only have GICv2, this change will have no impact on them. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: gongchengya <gongcheng...@huawei.com> Signed-off-by: Heyi Guo <heyi@linaro.org> Cc: Ard Biesh

[edk2] [edk2-platforms PATCH v2 1/3] Hisilicon/D0x: Set ACPI GTDT always-on flag

2018-03-12 Thread Heyi Guo
hang <zhangjinso...@huawei.com> Signed-off-by: Heyi Guo <heyi@linaro.org> Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Leif Lindholm <leif.lindh...@linaro.org> Cc: Graeme Gregory <graeme.greg...@linaro.org> --- Silicon/Hisilicon/Hi1610/Hi1610AcpiTables/Gtdt.aslc |

[edk2] [edk2-platforms PATCH v2 3/3] Hisilicon/D05: Support SBSA watchdog

2018-03-12 Thread Heyi Guo
From: Chenhui Sun <sunchen...@huawei.com> Add description of SBSA watchdogs to ACPI GTDT on D05. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Chenhui Sun <sunchen...@huawei.com> Signed-off-by: Heyi Guo <heyi@linaro.org> Cc: Ard Biesheuvel <ard.

[edk2] [edk2-platforms PATCH v2 0/3] Fix SBSA test failures on D05

2018-03-12 Thread Heyi Guo
These 3 patches are to fix SBSA-ACS test failures for system timer and watch dog timer on Hisilicon/D05. Cc: Ard Biesheuvel Cc: Leif Lindholm Cc: Graeme Gregory Cc: Haojian Zhuang v2: -

[edk2] [PATCH 1/1] ArmPkg/TimerDxe: Add DSB for timer compare value reload

2018-03-12 Thread Heyi Guo
Resetting timer compare register has a side effect of clearing GIC pending status, if timer interrupt is level sensitive, so a "DSB SY" is needed to make sure this change effect is synchronized. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo <heyi..

[edk2] [PATCH 0/1] ArmPkg/TimerDxe: Add DSB for timer compare value reload

2018-03-12 Thread Heyi Guo
fixed if we add a "DSB" after reloading timer compare value, and we think that it makes sense to do that. Cc: Leif Lindholm <leif.lindh...@linaro.org> Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Marc Zyngier <marc.zyng...@arm.com> Heyi Guo (1): ArmPkg/TimerD

[edk2] [PATCH 1/3] Hisilicon/D0x: Set ACPI GTDT always-on flag

2018-03-06 Thread Heyi Guo
hang <zhangjinso...@huawei.com> Signed-off-by: Heyi Guo <heyi@linaro.org> Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Leif Lindholm <leif.lindh...@linaro.org> Cc: Graeme Gregory <graeme.greg...@linaro.org> --- Silicon/Hisilicon/Hi1610/Hi1610AcpiTables/Gtdt.aslc |

[edk2] [PATCH 3/3] Hisilicon/D05: Support SBSA watchdog

2018-03-06 Thread Heyi Guo
From: Chenhui Sun <sunchen...@huawei.com> Add description of SBSA watchdogs to ACPI GTDT on D05. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Chenhui Sun <sunchen...@huawei.com> Signed-off-by: Heyi Guo <heyi@linaro.org> Cc: Ard Biesheuvel <ard.

[edk2] [PATCH 1/2] Hisilicon/D0x: fix tftp command init failure

2018-03-06 Thread Heyi Guo
We need to set PcdShellLibAutoInitialize to FALSE for TftpDynamicCommand, or else we will get initialization failure when loading TftpDynamicCommand module, for EFI Shell has not been started at this moment. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo <h

[edk2] [PATCH 2/2] Hisilicon/D0x: Enable tftp command by default

2018-03-06 Thread Heyi Guo
Since D0x platforms always have network enabled, we would like to enable tftp command by default so that we can download something in EFI Shell. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo <heyi@linaro.org> Cc: Ard Biesheuvel <ard.biesheu...@linar

[edk2] [PATCH v5 2/6] OvmfPkg/PciHostBridgeLib: Init PCI aperture to 0

2018-02-28 Thread Heyi Guo
an additional change. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo <heyi@linaro.org> Cc: Jordan Justen <jordan.l.jus...@intel.com> Cc: Anthony Perard <anthony.per...@citrix.com> Cc: Julien Grall <julien.gr...@linaro.org> Cc: Ruiyu Ni

[edk2] [PATCH v5 0/6] Add translation support to generic PciHostBridge

2018-02-28 Thread Heyi Guo
;anthony.per...@citrix.com> Cc: Julien Grall <julien.gr...@linaro.org> Heyi Guo (6): CorebootPayloadPkg/PciHostBridgeLib: Init PCI aperture to 0 OvmfPkg/PciHostBridgeLib: Init PCI aperture to 0 MdeModulePkg/PciHostBridgeLib.h: add address Translation MdeModulePkg/PciHostBridgeDxe: A

[edk2] [PATCH v5 5/6] MdeModulePkg/PciBus: convert host address to device address

2018-02-28 Thread Heyi Guo
ost address + translation offset. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo <heyi@linaro.org> Cc: Ruiyu Ni <ruiyu...@intel.com> Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Star Zeng <star.z...@intel.com> Cc: Eric Dong <eric.d.

[edk2] [PATCH v5 4/6] MdeModulePkg/PciHostBridgeDxe: Add support for address translation

2018-02-28 Thread Heyi Guo
: to simplify the situation, we require the alignment of Translation must be larger than any BAR alignment in the same root bridge, so that resource allocation alignment can be applied to both device address and host address. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:

[edk2] [PATCH v5 3/6] MdeModulePkg/PciHostBridgeLib.h: add address Translation

2018-02-28 Thread Heyi Guo
ert it to a PCI address". This means: Translation = device address - host address So we also use the above calculation for this Translation field to keep consistent. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo <heyi@linaro.org> --- Md

[edk2] [PATCH v5 6/6] MdeModulePkg/PciBus: return CPU address for GetBarAttributes

2018-02-28 Thread Heyi Guo
der: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo <heyi@linaro.org> Cc: Ruiyu Ni <ruiyu...@intel.com> Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Star Zeng <star.z...@intel.com> Cc: Eric Dong <eric.d...@intel.com> Cc: Laszlo Ersek <ler

[edk2] [PATCH v5 1/6] CorebootPayloadPkg/PciHostBridgeLib: Init PCI aperture to 0

2018-02-28 Thread Heyi Guo
an additional change. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo <heyi@linaro.org> Cc: Maurice Ma <maurice...@intel.com> Cc: Prince Agyeman <prince.agye...@intel.com> Cc: Benjamin You <benjamin@intel.com> Cc: Ruiyu Ni <ruiyu...@intel

[edk2] [PATCH 1/1] MdeModulePkg/UefiBootManagerLib: limit recursive call depth

2018-02-28 Thread Heyi Guo
also remove a duplicated declaration of BmRepairAllControllers() in InternalBm.h in this patch, for it is only a trivial change. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo <heyi@linaro.org> Cc: Star Zeng <star.z...@intel.com> Cc: Eric

[edk2] [RFC v4 1/3] MdeModulePkg/PciHostBridgeDxe: Add support for address translation

2018-02-26 Thread Heyi Guo
ssed to PciHostBridgeResourceConflict is host address, for it comes from ResAllocNode. RESTRICTION: to simplify the situation, we require the alignment of Translation must be larger than any BAR alignment in the same root bridge, so that resource allocation alignment can be applied to both device address and h

[edk2] [RFC v4 0/3] Add translation support to generic PciHostBridge

2018-02-26 Thread Heyi Guo
> Cc: Star Zeng <star.z...@intel.com> Cc: Eric Dong <eric.d...@intel.com> Cc: Laszlo Ersek <ler...@redhat.com> Cc: Michael D Kinney <michael.d.kin...@intel.com> Heyi Guo (3): MdeModulePkg/PciHostBridgeDxe: Add support for address translation MdeModulePkg/PciB

[edk2] [RFC v4 3/3] MdeModulePkg/PciBus: return CPU address for GetBarAttributes

2018-02-26 Thread Heyi Guo
der: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo <heyi@linaro.org> Cc: Ruiyu Ni <ruiyu...@intel.com> Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Star Zeng <star.z...@intel.com> Cc: Eric Dong <eric.d...@intel.com> Cc: Laszlo Ersek <ler

[edk2] [RFC v4 2/3] MdeModulePkg/PciBus: convert host address to device address

2018-02-26 Thread Heyi Guo
ost address + translation offset. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo <heyi@linaro.org> Cc: Ruiyu Ni <ruiyu...@intel.com> Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Star Zeng <star.z...@intel.com> Cc: Eric Dong <eric.d.

[edk2] [PATCH 1/1] MdeModulePkg/UefiBootManagerLib: limit recursive call depth

2018-02-26 Thread Heyi Guo
will cause stack overflow and then system exception, and it may be not easy to find that the exception is actually caused by stack overflow. So we limit the number of reconnect retry to 10 to improve code robustness. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo <h

[edk2] [RFC v3 3/3] MdeModulePkg/PciBus: return CPU address for GetBarAttributes

2018-02-23 Thread Heyi Guo
der: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo <heyi@linaro.org> Cc: Ruiyu Ni <ruiyu...@intel.com> Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Star Zeng <star.z...@intel.com> Cc: Eric Dong <eric.d...@intel.com> Cc: Laszlo Ersek <ler

[edk2] [RFC v3 0/3] Add translation support to generic PciHostBridge

2018-02-23 Thread Heyi Guo
el.com> Cc: Eric Dong <eric.d...@intel.com> Cc: Laszlo Ersek <ler...@redhat.com> Cc: Michael D Kinney <michael.d.kin...@intel.com> Heyi Guo (3): MdeModulePkg/PciHostBridgeDxe: Add support for address translation MdeModulePkg/PciBus: convert host address to device address

[edk2] [RFC v3 2/3] MdeModulePkg/PciBus: convert host address to device address

2018-02-23 Thread Heyi Guo
ost address + translation offset. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo <heyi@linaro.org> Cc: Ruiyu Ni <ruiyu...@intel.com> Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Star Zeng <star.z...@intel.com> Cc: Eric Dong <eric.d.

[edk2] [RFC v3 1/3] MdeModulePkg/PciHostBridgeDxe: Add support for address translation

2018-02-23 Thread Heyi Guo
o PciHostBridgeResourceConflict is host address, for it comes from ResAllocNode. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo <heyi@linaro.org> Cc: Ruiyu Ni <ruiyu...@intel.com> Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Star Zen

[edk2] [RFC v2 0/2] Add translation support to generic PCIHostBridge

2018-02-21 Thread Heyi Guo
@redhat.com> Cc: Michael D Kinney <michael.d.kin...@intel.com> Heyi Guo (2): MdeModulePkg/PciHostBridgeDxe: Add support for address translation MdeModulePkg/PciBus: return CPU address for GetBarAttributes MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c | 9 +- .../Bus/Pci/Pc

[edk2] [RFC v2 2/2] MdeModulePkg/PciBus: return CPU address for GetBarAttributes

2018-02-21 Thread Heyi Guo
PciIo::GetBarAttributes should return CPU view address according to UEFI spec 2.7, so we change the implementation to follow the spec. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo <heyi@linaro.org> Cc: Ruiyu Ni <ruiyu...@intel.com> Cc: Ar

[edk2] [RFC v2 1/2] MdeModulePkg/PciHostBridgeDxe: Add support for address translation

2018-02-21 Thread Heyi Guo
passed the build for qemu64 and the function has not been tested yet. Please let me know your comments about it. Thanks. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo <heyi@linaro.org> Cc: Ruiyu Ni <ruiyu...@intel.com> Cc: Ard Biesheuvel

[edk2] [PATCH edk2-platforms v4 12/15] Hisilicon/D03: Replace SP805Watchdog by WatchdogTimer driver.

2018-02-07 Thread Heyi Guo
In SCT test,we find SP805 watchdog driver can't reset when timeout so we use another driver in MdeModulePkg. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang <huangmin...@huawei.com> Signed-off-by: Heyi Guo <heyi@linaro.org> Signed-off-by:

[edk2] [PATCH edk2-platforms v4 11/15] Hisilicon/D05: Replace SP805Watchdog by WatchdogTimer driver.

2018-02-07 Thread Heyi Guo
In SCT test,we find SP805 watchdog driver can't reset when timeout so we use another driver in MdeModulePkg. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang <huangmin...@huawei.com> Signed-off-by: Heyi Guo <heyi@linaro.org> Signed-off-by:

[edk2] [PATCH edk2-platforms v4 14/15] Hisilicon/D05/ACPI: Add Pcie, HNS and SAS PXM

2018-02-07 Thread Heyi Guo
Add PXM method for Pcie device, HNS device and SAS device. Add STA method for HNS. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: hensonwang <wanghuiqi...@huawei.com> Signed-off-by: Ming Huang <huangmin...@huawei.com> Signed-off-by: Heyi Guo <heyi@linar

[edk2] [PATCH edk2-platforms v4 13/15] Hisilicon/D05/ACPI: Add ITS PXM

2018-02-07 Thread Heyi Guo
Add ITS affinity structure in SRAT. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang <huangmin...@huawei.com> Signed-off-by: Heyi Guo <heyi@linaro.org> Reviewed-by: Ard Biesheuvel <ard.biesheu...@linaro.org> Reviewed-by: Leif Lindholm <lei

[edk2] [PATCH edk2-platforms v4 15/15] Hisilicon D03/D05: Update firmware version to 18.02

2018-02-07 Thread Heyi Guo
Replace the old string with short one. The old one is too long that can not be show integrallty in Setup nemu. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang <huangmin...@huawei.com> Signed-off-by: Heyi Guo <heyi@linaro.org> Reviewed-by: L

[edk2] [PATCH edk2-platforms v4 10/15] Hisilicon/PCIe: Disable PCIe ASPM

2018-02-07 Thread Heyi Guo
com> Signed-off-by: Heyi Guo <heyi@linaro.org> Signed-off-by: Yan Zhang <zhangya...@huawei.com> Reviewed-by: Leif Lindholm <leif.lindh...@linaro.org> Reviewed-by: Ard Biesheuvel <ard.biesheu...@linaro.org> --- Silicon/Hisilicon/Hi1610/Drivers/Pc

[edk2] [PATCH edk2-platforms v4 06/15] Hisilicon D03/D05: Open SasPlatform source code

2018-02-07 Thread Heyi Guo
ed-off-by: Ming Huang <huangmin...@huawei.com> Signed-off-by: Heyi Guo <heyi@linaro.org> Reviewed-by: Leif Lindholm <leif.lindh...@linaro.org> Reviewed-by: Ard Biesheuvel <ard.biesheu...@linaro.org> --- Platform/Hisilicon/D03/D03.dsc | 1 +

[edk2] [PATCH edk2-platforms v4 09/15] Hisilicon/Smbios: Indicate use of ProcessorFamily2 in type 4 table

2018-02-07 Thread Heyi Guo
-by: Ming Huang <huangmin...@huawei.com> Signed-off-by: Heyi Guo <heyi@linaro.org> Reviewed-by: Leif Lindholm <leif.lindh...@linaro.org> Reviewed-by: Ard Biesheuvel <ard.biesheu...@linaro.org> --- Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClass.c |

[edk2] [PATCH edk2-platforms v4 07/15] Hisilicon D03/D05: Open SnpPlatform source code

2018-02-07 Thread Heyi Guo
for PXE boot. https://bugs.linaro.org/show_bug.cgi?id=2657 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jason Zhang <zhangjinso...@huawei.com> Signed-off-by: Ming Huang <huangmin...@huawei.com> Signed-off-by: Heyi Guo <heyi@linaro.org> Reviewed

[edk2] [PATCH edk2-platforms v4 05/15] Hisilicon D03/D05: Add capsule upgrade support

2018-02-07 Thread Heyi Guo
This module support updating the boot CPU firmware only. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jason Zhang <zhangjinso...@huawei.com> Signed-off-by: Ming Huang <huangmin...@huawei.com> Signed-off-by: Heyi Guo <heyi@linaro.org> Reviewed-

[edk2] [PATCH edk2-platforms v4 08/15] Hilisicon: Change DmaLib to CoherentDmaLib

2018-02-07 Thread Heyi Guo
Unify all D0x(include D06 in further) to cache coherent DmaLib. This can improve boot speed. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Wang Yue <wangyu...@huawei.com> Signed-off-by: Ming Huang <huangmin...@huawei.com> Signed-off-by: Heyi Guo <heyi

[edk2] [PATCH edk2-platforms v4 04/15] Hisilicon/D0x: Break BMC SetBoot option out into separate library

2018-02-07 Thread Heyi Guo
Modify the feature of BMC set boot option as switching generic BDS. Break BMC SetBoot option out into BmcConfigBootLib. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang <huangmin...@huawei.com> Signed-off-by: Heyi Guo <heyi@linaro.org> Revie

[edk2] [PATCH edk2-platforms v4 01/15] Hisilicon/D05: Move Madt definition to head file

2018-02-07 Thread Heyi Guo
Move definition of Madt struct to head file, so PPTT driver can include it. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang <huangmin...@huawei.com> Signed-off-by: Heyi Guo <heyi@linaro.org> Reviewed-by: Ard Biesheuvel <ard.biesheu...@linar

[edk2] [PATCH edk2-platforms v4 03/15] Hisilicon/D0x/BDS: Switch to Generic BDS driver

2018-02-07 Thread Heyi Guo
ed-off-by: Heyi Guo <heyi@linaro.org> Signed-off-by: Jason Zhang <zhangjinso...@huawei.com> Reviewed-by: Leif Lindholm <leif.lindh...@linaro.org> Reviewed-by: Ard Biesheuvel <ard.biesheu...@linaro.org> --- Platform/Hisilicon/D03/D03.dsc

[edk2] [PATCH edk2-platforms v4 02/15] Hisilicon/D05: Add PPTT support

2018-02-07 Thread Heyi Guo
Signed-off-by: Ming Huang <huangmin...@huawei.com> Signed-off-by: Heyi Guo <heyi@linaro.org> Reviewed-by: Leif Lindholm <leif.lindh...@linaro.org> Reviewed-by: Ard Biesheuvel <ard.biesheu...@linaro.org> Reviewed-by: Graeme Gregory <graeme.greg...@linaro.org> Reveiwed

  1   2   3   4   >