aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-09-20Platforms/VExpress: Remove references to deleted libraries.AArch64StandaloneMmSupreeth Venkatesh
Latest upstream edk2 SHA: b30abe7df464d91b84a42763e61bb3c85bfd80c9 (code base date: 14 Sept 2017) does not contain "UncachedMemoryAllocationLib" and "DmaLib" in ArmPkg. Hence remove all references to make it compile. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Supreeth Venkatesh <supreeth.venkatesh@arm.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-05-24Platforms/ARM/VExpress: Include UEFI Info application in FVP buildAchin Gupta
This patch includes the UEFI Info application in the FVP build to demonstrate communication with the MM environment in the secure world through the DXE runtime driver that exports the EFI_MM_COMMUNICATE_PROTOCOL. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Achin Gupta <achin.gupta@arm.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-05-24Platforms/ARM/VExpress: Include MM communication protocol driverAchin Gupta
This patch includes the DXE runtime driver that exports the EFI_MM_COMMUNICATION_PROTOCOL for the FVP platform. This driver is responsible for handling communication with the MM environment in the secure world. An implementation of the ARM SVC lib is also include in the FVP build. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Achin Gupta <achin.gupta@arm.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-05-24Platforms/ARM/VExpress: Define extents of MM communication bufferAchin Gupta
The secure world firmware (e.g. ARM Trusted Firmware) allocates the communication buffer used in the MM Communicate SMC. EDK2 is expected to map this buffer in its own address map. In the absence of a mechanism where ARM TF can pass the extents of this buffer at runtime to EDK2, this patch hard codes this information in the UEFI binary for the ARM FVP. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Achin Gupta <achin.gupta@arm.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-05-22Platorms/ARM: add TimeBaseLib mapping for VExpressLeif Lindholm
Missing dependency added post changes to PL031 driver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Leif Lindholm <leif@eciton.net>
2017-05-22D05: Support ipmi through LPCzhichang.yuan
Add ipmi description according to the new LPC driver of Linux kernel 4.10 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: zhichang.yuan <yuanzhichang@hisilicon.com> Signed-off-by: Heyi Guo <guoheyi@huawei.com> Signed-off-by: Yi Li <Phoenix.liyi@huawei.com> Signed-off-by: Chenhui Sun <sunchenhui@huawei.com> Reviewed-by: Graeme Gregory <graeme.gregory@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-05-22D03: Support ipmi through LPCzhichang.yuan
Add ipmi description according to the new LPC driver of Linux kernel 4.10 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: zhichang.yuan <yuanzhichang@hisilicon.com> Signed-off-by: Heyi Guo <guoheyi@huawei.com> Signed-off-by: Yi Li <Phoenix.liyi@huawei.com> Signed-off-by: Chenhui Sun <chenhui.sun@linaro.org> Reviewed-by: Graeme Gregory <graeme.gregory@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-05-22Hisilicon D03/D05: set boot option by BMCChenhui Sun
Support the feature that BIOS get boot option from BMC and put it in the first boot order. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: huangming <huangming23@huawei.com> Signed-off-by: Heyi Guo <guoheyi@huawei.com> Signed-off-by: Yi Li <Phoenix.liyi@huawei.com> Signed-off-by: Chenhui Sun <sunchenhui@huawei.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-19Drivers/Net: delete Lan91x Ethernet driverLeif Lindholm
Begin OpenPlatformPkg migration to edk2-platforms by moving this driver to the main edk2 repository. So delete the driver from here and move the references in .dsc/.fdf files. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
2017-04-13Drivers: MarvellYukonDxe driver binding fixesLeif Lindholm
Fix a case where MarvellYukonDriverStart attempted to free a buffer before it was allocated. Move another error case which wasn't freeing the same buffer before returning. Also correct the error message for that case, which was copied verbatim from the preceding if-statement. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org> Tested-by: Alan Ott <alan@softiron.co.uk> Tested-by: Daniil Egranov <daniil.egranov@arm.com> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
2017-04-13Platforms/ARM/Juno: fix RELEASE build with new PciHostBridgeLibLeif Lindholm
An array of static strings is set up for use in printing debug messages. This makes some compilers unhappy when building in RELEASE mode. So hide the definition behind #ifndef MDE_NDEBUG. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
2017-04-13Platforms/AMD/Styx: fix duplicate typedef in AmdIscpDxeLeif Lindholm
The struct _AMD_ISCP_DXE_PROTOCOL is given an early typedef, only to be defined as "typedef struct _AMD_ISCP_DXE_PROTOCOL..." later on. Delete the duplication. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
2017-04-12Platforms/AMD: correct legacy PCI interrupt routing in DTSArd Biesheuvel
The interrupt map in the PCIe node describes something that resembles the legacy interrupt routing of the first slot only, but applies it to all PCI-PCI bridges, which means the wrong interrupt is reported for devices in slots 2 and 3. Since most devices support MSI, this is not actually a big deal, but it would be nice to fix this nonetheless. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-12Platforms/AMD: correct legacy PCI interrupt routing in DSDTArd Biesheuvel
The _PRT method in the PCI0 object describes something that resembles the legacy interrupt routing of the first slot only, but applies it to all PCI-PCI bridges, which means the wrong interrupt is reported for devices in slots 2 and 3. Since most devices support MSI, this is not actually a big deal, but it would be nice to fix this nonetheless. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Graeme Gregory <graeme.gregory@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-11Hisilicon: Fix ACPI/DSDT table checksum errorwangyue
Refresh checksum after changing DSDT table. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Heyi Guo <heyi.guo@linaro.org> Signed-off-by: Yi Li <phoenix.liyi@huawei.com> Signed-off-by: Chenhui Sun <chenhui.sun@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-11Platforms/Marvell/Armada: remove ARM BdsLib resolutionArd Biesheuvel
The EBL shell nog longer depends on the deprecated ARM BdsLib, so remove the library class resolution for it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-11Chips/HiSilcon: remove ARM BdsLib resolutionArd Biesheuvel
The EBL shell nog longer depends on the deprecated ARM BdsLib, so remove the library class resolution for it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-11Chips/Hisilicon: add missing UefiBootManagerLib resolution to shared .incArd Biesheuvel
Upstream EDK2 changes now require platforms that build the UEFI Shell from source to provide a resolution for UefiBootManagerLib, and some other library class it transitively depends on. So add them to the DSC include shared between the HiSilicon platforms. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-11Platforms/FVP-AArch64: switch to simpler DT platform driverArd Biesheuvel
Replace the elaborate but awkward FdtPlatformDxe with the new DtPlatformDxe, which supports embedded DTBs only, for FVP platforms. This is done by removing the FdtPlatformDxe reference from ArmVExpress.dsc.inc and making it a platform-specific decision. This should be sufficient for virtually all use cases, and if it is not, there are various way to override the device tree binary presented to the OS. As a bonus, this driver makes ACPI and DT mutually exclusive - this can be configured via the setup screen. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Tested-by: Ryan Harkin <ryan.harkin@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-11Platforms/FVP: add DtPlatformDtbLoaderLib implementationArd Biesheuvel
In preparation of switching to DtPlatformDxe to supply the device tree image to the OS, add an implementation of DtPlatformDtbLoaderLib that loads the correct version from an FV. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Tested-by: Ryan Harkin <ryan.harkin@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-11Platforms/VExpress: remove BdsLib library class resolutionsArd Biesheuvel
ArmHwDxe and ArmFvpDxe no longer require a BdsLib library class resolution, so remove the explicit ones from the various .DSCs. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Tested-by: Ryan Harkin <ryan.harkin@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-11Platforms/VExpress: get rid of Tiano compressionArd Biesheuvel
There are some references to Tiano compression and to libraries that implement it, but we never use it. So get rid of it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Tested-by: Ryan Harkin <ryan.harkin@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-11Platforms/VExpress: remove unused StatusCode referencesArd Biesheuvel
We never use the status code facility, so remove the libraries and other references to it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Tested-by: Ryan Harkin <ryan.harkin@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-11Platforms/VExpress: remove unused logo PCDArd Biesheuvel
This file and associated PCD are no longer used by our BDS code, so remove them. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Tested-by: Ryan Harkin <ryan.harkin@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-10Platforms/AMD: remove FdtDxe driverArd Biesheuvel
Now that all platforms have been ported over, drive a wooden stake through the heart of FdtDxe and remove it from the tree. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-10Platforms/AMD: switch Overdrive 1000 to DtPlatformDxeArd Biesheuvel
Replace FdtDxe with the generic DtPlatformDxe, which forces mutual exclusion between DT and ACPI, and does not depend on the deprecated ARM BdsLib. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-10Hisilicon: Add reconfig lane number featureChenhui Sun
In some cases, the PCIe device may close part of lanes in config state of LTSSM, the hip06 RC should reconfig lane number and try to linkup again. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chenhui Sun <sunchenhui@huawei.com> Signed-off-by: Heyi Guo <heyi.guo@linaro.org> Signed-off-by: Yi Li <phoenix.liyi@huawei.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-10Hisilicon: disable RC Option RomChenhui Sun
The M3(the coprocessor)PCIe driver will read Option Rom header durning enumeration, this operation will cause a completion error when there is no device inserted to the RC port, and the Option rom is uesless now. So we need to disable the RC Option Rom. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Heyi Guo <heyi.guo@linaro.org> Signed-off-by: Yi Li <phoenix.liyi@huawei.com> Signed-off-by: Chenhui Sun <chenhui.sun@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-10Hisilicon/PCIe: Fix the probability of I350 enumeration fail issue.shaochangliang
The I350 Hilink state is not stable, so we need to modify the rx_tx_status_cfg to fix it, or the I350 enumeration fail may happen. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: shaochangliang <shaochangliang@huawei.com> Signed-off-by: Heyi Guo <heyi.guo@linaro.org> Signed-off-by: Yi Li <phoenix.liyi@huawei.com> Signed-off-by: Chenhui Sun <chenhui.sun@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-07Platforms/AMD: switch Overdrive to DtPlatformDxeArd Biesheuvel
Replace FdtDxe with the generic DtPlatformDxe, which forces mutual exclusion between DT and ACPI, and does not depend on the deprecated ARM BdsLib. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-07Platforms/AMD: implement DtPlatformDtbLoaderLibArd Biesheuvel
In order to be able to switch to the generic DtPlatformDxe driver, implement the glue library that loads it and prepares it based on the properties of the actual hardware. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-07Platforms/AMD: clean up whitespace in Overdrive DTS fileArd Biesheuvel
Use tabs consistently throughout the Overdrive DTS file, and use CR-LF line endings just like every other file in EDK2. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-07Platforms/AMD: remove /pmu node from Overdrive DTSArd Biesheuvel
The /pmu node is removed and regenerated by the firmware, so there is no need to have it in the template. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-07Platforms/AMD: clean up whitespace in Overdrive 1000 DTS fileArd Biesheuvel
Use tabs consistently throughout the Overdrive 1000 DTS file. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-07Platforms/AMD: remove /pmu node from Overdrive 1000 DTSArd Biesheuvel
The /pmu node is removed and regenerated by the firmware, so there is no need to have it in the template. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-06Hisilicon/D05: add num-pins package for Rocehensonwang
Add num-pins package for Roce driver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: hensonwang <wanghuiqiang@huawei.com> Signed-off-by: Heyi Guo <guoheyi@huawei.com> Signed-off-by: Yi Li <phoenix.liyi@huawei.com> Reviewed-by: Graeme Gregory <graeme.gregory@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-06D02: update acpi tables to ACPI6.1Chenhui Sun
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chenhui Sun <sunchenhui@huawei.com> Signed-off-by: Heyi Guo <heyi.guo@linaro.org> Signed-off-by: Yi Li <phoenix.liyi@huawei.com> Reviewed-by: Graeme Gregory <graeme.gregory@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-06D05: update acpi tables to ACPI6.1Chenhui Sun
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chenhui Sun <sunchenhui@huawei.com> Signed-off-by: Heyi Guo <heyi.guo@linaro.org> Signed-off-by: Yi Li <phoenix.liyi@huawei.com> Reviewed-by: Graeme Gregory <graeme.gregory@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-06D03: update acpi tables to ACPI6.1Chenhui Sun
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chenhui Sun <sunchenhui@huawei.com> Signed-off-by: Heyi Guo <heyi.guo@linaro.org> Signed-off-by: Yi Li <phoenix.liyi@huawei.com> Reviewed-by: Graeme Gregory <graeme.gregory@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-06Hisilicon/D03/D05: Change Monotonic DriveChenhui Sun
SCT test report: "BS.GetNextMonotonicCount - GetNextMonotonicCount() gets the high 32-bit after reset at EFI_TPL_APPLICATION." Reference 《UEFI Spec 2.6》chapter 7.5.2: “The GetNextHighMonotonicCount() function returns the next high 32 bits of the platform’s monotonic counter. The platform’s monotonic counter is comprised of two 32-bit quantities: the high 32 bits and the low 32 bits. During boot service time the low 32-bit value is volatile: it is reset to zero on every system reset and is increased by 1 on every call to GetNextMonotonicCount(). The high 32-bit value is nonvolatile and is increased by 1 whenever the system resets, whenever GetNextHighMonotonicCount() is called, or whenever the low 32-bit count (returned by GetNextMonoticCount()) overflows.” In EmbeddedMonotonicCounter.inf driver, The high 32-bit value is nonvolatile and is increased by 1 whenever the system resets, but When GetNextHighMonotonicCount() is called, or whenever the low 32-bit count (returned by GetNextMonoticCount()) overflows don’t increased by 1. So Monotonic Driver is switched from EmbeddedPkg to MdeModulePkg. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chenhui Sun <chenhui.sun@linaro.com> Signed-off-by: Heyi Guo <heyi.guo@linaro.org> Signed-off-by: Yi Li <phoenix.liyi@huawei.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-06Hisilicon/D03: support the compatibility of kernel PCIe driverhensonwang
As the PCIe driver is updated in kernel 4.10, and it will read the PCIe resource in the PCIe device, so the resource description should also be put into the Device(PCIx). 1. add _OSC support 2. put the pcie resource description into the Device(PCIx), in order to compatible with kernel 4.10 PCIe driver. 3. add reserved ecam resource Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: hensonwang <wanghuiqiang@huawei.com> Signed-off-by: Heyi Guo <heyi.guo@linaro.org> Signed-off-by: Yi Li <phoenix.liyi@huawei.com> Signed-off-by: Chenhui Sun <chenhui.sun@linaro.org> Reviewed-by: Graeme Gregory <graeme.gregory@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-06Hisilicon/D05: support the compatibility of kernel PCIe driverhensonwang
As the PCIe driver is updated in kernel 4.10, and it will read the PCIe resource in the PCIe device, so the resource description should also be put into the Device(PCIx). 1. add _OSC support 2. put the pcie resource description into the Device(PCIx), in order to compatible with kernel 4.10 PCIe driver. 3. add reserved ecam resource Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: hensonwang <wanghuiqiang@huawei.com> Signed-off-by: Heyi Guo <heyi.guo@linaro.org> Signed-off-by: Yi Li <phoenix.liyi@huawei.com> Signed-off-by: Chenhui Sun <chenhui.sun@linaro.org> Reviewed-by: Graeme Gregory <graeme.gregory@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-06Hisilicon/RamDisk: Add Reset interface for block IO protocolwangyue
Add Reset interface for block IO protocol to make it compliant with UEFI specification, or it will cause exception when the interface is called. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Heyi Guo <heyi.guo@linaro.org> Signed-off-by: Yi Li <phoenix.liyi@huawei.com> Signed-off-by: Chenhui Sun <chenhui.sun@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-06Hisilicon/FlashFvbDxe: Add Reset interface for block IO protocolwangyue
Add Reset interface for block IO protocol to make it compliant with UEFI specification, or it will cause exception when the interface is called. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Heyi Guo <heyi.guo@linaro.org> Signed-off-by: Yi Li <phoenix.liyi@huawei.com> Signed-off-by: Chenhui Sun <chenhui.sun@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-06Hisilicon/D05: Fix IORT test issue in luvOS testwangyue
CLuvos test report: "FAILED [HIGH] IORTMemAttrInvalid: Test 1, IORT PCI Root Complex Node Memory Attributes are illegal, CCA cannot be 1 if CPM is 0." Reference to 《DEN0049B_IO_Remapping_Table》 3.1.1.4 Table13 and Table14: “Note that if CCA is 0x1, CPM must also be 0x1. Conversely, If CPM is 0x0 then CCA must be 0x0.” Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Heyi Guo <heyi.guo@linaro.org> Signed-off-by: Yi Li <phoenix.liyi@huawei.com> Signed-off-by: Chenhui Sun <chenhui.sun@linaro.com> Reviewed-by: Graeme Gregory <graeme.gregory@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-06Hisilicon/D03: Fix IORT test issue in luvOS testwangyue
CLuvos test report: "FAILED [HIGH] IORTMemAttrInvalid: Test 1, IORT PCI Root Complex Node Memory Attributes are illegal, CCA cannot be 1 if CPM is 0." Reference to 《DEN0049B_IO_Remapping_Table》 3.1.1.4 Table13 and Table14: “Note that if CCA is 0x1, CPM must also be 0x1. Conversely, If CPM is 0x0 then CCA must be 0x0.” Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Heyi Guo <heyi.guo@linaro.org> Signed-off-by: Yi Li <phoenix.liyi@huawei.com> Signed-off-by: Chenhui Sun <chenhui.sun@linaro.com> Reviewed-by: Graeme Gregory <graeme.gregory@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-06Hisilicon/D02: fix IORT test issue in luvOS testwangyue
Luvos test report: "FAILED [HIGH] IORTMemAttrInvalid: Test 1, IORT PCI Root Complex Node Memory Attributes are illegal, CCA cannot be 1 if CPM is 0." Reference to 《DEN0049B_IO_Remapping_Table》 3.1.1.4 Table13 and Table14: “Note that if CCA is 0x1, CPM must also be 0x1. Conversely, If CPM is 0x0 then CCA must be 0x0.” Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Heyi Guo <heyi.guo@linaro.org> Signed-off-by: Yi Li <phoenix.liyi@huawei.com> Signed-off-by: Chenhui Sun <chenhui.sun@linaro.com> Reviewed-by: Graeme Gregory <graeme.gregory@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-06Hisilicon/UpdateFdtDxe: fix memory overflow issueshaochangliang
The size of the updated DTB file may be increased, so we need to allocate more memory than the original DTB size,or memory overflow may happen. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: shaochangliang <shaochangliang@huawei.com> Signed-off-by: Heyi Guo <heyi.guo@linaro.org> Signed-off-by: Yi Li <phoenix.liyi@huawei.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-05Platforms/AMD/OverdriveBoard: add graphical console supportArd Biesheuvel
Add the modules that are needed to run the console in graphical mode, i.e., when a GFX expansion card with a compatible option ROM is inserted into the system. Note that this includes the BGRT driver, which creates the BGRT ACPI table on the fly, so update the hardcoded OEM ids as well. Since the BGRT driver generates ACPI tables on the fly, set the OEM vendor and table IDs to the same value we use in the static tables. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-04-05Platforms/Juno: remove BdsLib dependencyArd Biesheuvel
ArmJunoDxe no longer depends on BdsLib so we no longer have to specify a library class resolution for it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Tested-by: Ryan Harkin <ryan.harkin@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>