Re: [edk2] [PATCH v4 edk2-platforms 01/23] Silicon/Broadcom/Bcm282x: Add interrupt driver

2019-01-31 Thread Leif Lindholm
+Andrew, Laszlo, Mike. On Thu, Jan 31, 2019 at 06:19:48PM +0100, Ard Biesheuvel wrote: > On Thu, 31 Jan 2019 at 16:24, Leif Lindholm wrote: > > > > On Tue, Jan 29, 2019 at 04:26:33PM +, Pete Batard wrote: > > > Contributed-under: TianoCore Contribution Agreement 1.1 > > > Signed-off-by: Pete

Re: [edk2] [PATCH v4 edk2-platforms 01/23] Silicon/Broadcom/Bcm282x: Add interrupt driver

2019-01-31 Thread Andrew Fish via edk2-devel
> On Jan 31, 2019, at 11:57 AM, Leif Lindholm wrote: > > +Andrew, Laszlo, Mike. > > On Thu, Jan 31, 2019 at 06:19:48PM +0100, Ard Biesheuvel wrote: >> On Thu, 31 Jan 2019 at 16:24, Leif Lindholm wrote: >>> >>> On Tue, Jan 29, 2019 at 04:26:33PM +, Pete Batard wrote:

Re: [edk2] [PATCH] EmbeddedPkg/DwEmacSnpDxe: Add designware emac support This add support for designware emac controller

2019-01-31 Thread Leif Lindholm
Hi Tzy Way, Thank you for this contribution. I do have some high-level comments. First of all, my best guess is that you have used Lan9118Dxe for reference when developing this driver. This is somewhat unfortunate. I am reminded that a) we badly need to migrate that driver (and Lan91xDxe) to

Re: [edk2] [PATCH edk2-platforms] Silicon/Bcm2836: add random number generator driver

2019-01-31 Thread Leif Lindholm
On Thu, Jan 31, 2019 at 06:14:45PM +0100, Ard Biesheuvel wrote: > On Thu, 31 Jan 2019 at 16:05, Leif Lindholm wrote: > > > > On Wed, Jan 30, 2019 at 08:39:43PM +0100, Ard Biesheuvel wrote: > > > Expose the SoC's RNG peripheral via the EFI_RNG_PROTOCOL. > > > This is used by Linux to seed the

[edk2] [PATCH] BaseTools: PCD value incorrect in structure pcd sku case.

2019-01-31 Thread Fan, ZhijuX
Defined 2 PCDs(Test4 & Test401) and 2 SKUs(DEFAULT & _), then set "SKUID_Defines" to ALL, for FixedAtBuild gEfiStructuredPcdPkgTokenSpaceGuid. Test401 in this case, its value should get from "Default" SKU, not from "_" SKU, but we does not set value in SKU "_" in dsc, so Test401 should only

[edk2] [PATCH] MdeModulePkg/CapsuleApp: Fix potential NULL pointer dereference issue

2019-01-31 Thread Chen A Chen
To avoid potential NULL pointer dereference issue. Initialize them at the beginning of the function. Cc: Jian J Wang Cc: Hao Wu Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Chen A Chen --- MdeModulePkg/Application/CapsuleApp/CapsuleApp.c| 5 +++--

[edk2] [PATCH] FatPkg/FatPei/Gpt.c: Fix uninitialized variable issue

2019-01-31 Thread Chen A Chen
Uninitialized pointer variable may randomly point to a block of memory. In This case, FreePool function will free a block of memory that is not belongs to this function. Cc: Ruiyu Ni Cc: Hao Wu Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Chen A Chen ---

[edk2] [PATCH] BaseTools:StructurePCD value display incorrect in "Not used" section.

2019-01-31 Thread Fan, ZhijuX
StructurePCD value display incorrect in "Not used" section, that the value defined in structure does not show. StructurePCD will not display in "Not Used" section if main structure not define in dsc and pcd not in inf Cc: Bob Feng Cc: Liming Gao Contributed-under: TianoCore Contribution

Re: [edk2] [PATCH 01/14] OvmfPkg/MptScsiDxe: Create empty driver

2019-01-31 Thread Bi, Dandan
Hi Nikita, I have one comment here, could you help to verify this patch series with VS tool chain build before commit the patches? Thanks, Dandan > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of > Nikita Leshenko > Sent: Thursday, January

[edk2] [PATCH v3 07/12] MdeModulePkg/NvmExpressPei: Consume S3StorageDeviceInitList LockBox

2019-01-31 Thread Hao Wu
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1409 For the NvmExpressPei driver, this commit will update the driver to consume the S3StorageDeviceInitList LockBox in S3 phase. The purpose is to perform an on-demand (partial) NVM Express device enumeration/initialization to benefit the S3

[edk2] [PATCH v3 06/12] MdeModulePkg/NvmExpressPei: Add logic to produce SSC PPI

2019-01-31 Thread Hao Wu
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1409 For the NvmExpressPei driver, this commit will add codes to produce the Storage Security Command PPI if the underlying NVM Express controller supports the Security Send and Security Receive commands. Cc: Jian J Wang Cc: Ray Ni Cc: Eric

[edk2] [PATCH v3 03/12] MdeModulePkg: Add definitions for Storage Security Command PPI

2019-01-31 Thread Hao Wu
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1409 This commit will add the definitions for Storage Security Command (SSC) PPI. This PPI will be be used to abstract mass storage devices to allow code running in the PEI phase to send security protocol commands to mass storage devices without

[edk2] [PATCH v3 04/12] MdeModulePkg: Add GUID for LockBox to save storage dev to init in S3

2019-01-31 Thread Hao Wu
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1409 This commit will add the GUID definitions for LockBox which is used to save a list of storage devices that need to get initialized during the S3 resume. The content of the LockBox will be a DevicePath structure that contains zero or more

[edk2] [PATCH v3 05/12] MdeModulePkg/NvmExpressPei: Avoid updating the module-level variable

2019-01-31 Thread Hao Wu
This commit is out of the scope for BZ-1409. The commit will remove the call of RegisterForShadow() at the entry point of the driver. By doing so, the driver is now possible to be executed without being re-loaded into permanent memory. Thus, this commit will update the NvmExpressPei driver to

[edk2] [PATCH v3 02/12] MdeModulePkg: Add definitions for EDKII PEI ATA PassThru PPI

2019-01-31 Thread Hao Wu
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1409 This commit will add the definitions for EDKII PEI ATA PassThru PPI. This PPI will provide services that allow ATA commands to be sent to ATA devices attached to an ATA controller in the PEI phase. More specifically, the PPI will provide

[edk2] [PATCH v3 01/12] MdeModulePkg: Add definitions for ATA AHCI host controller PPI

2019-01-31 Thread Hao Wu
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1409 This commit will add the definitions for ATA AHCI host controller PPI. The purpose of the PPI in to provide: * MMIO base address * Controller identification information (DevicePath) for ATA host controllers working under AHCI mode. Cc:

[edk2] [PATCH v3 00/12] Split the S3 PEI phase HW init codes from Opal driver

2019-01-31 Thread Hao Wu
The series is also available at: https://github.com/hwu25/edk2/tree/opal_remodel_v3 V3 changes: For patch 2, reuse the definitions within AtaPassThru protocol header file to reduce code duplication. For patch 4, add detailed comments to illustrate the content that will be stored in the newly

[edk2] [PATCH] EmbeddedPkg/PrePiLib: Correct function name

2019-01-31 Thread Jeff Brasen
Update header file function name for FfsFindFileByName to match implementation function name. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jeff Brasen Cc: Leif Lindholm Cc: Ard Biesheuvel --- EmbeddedPkg/Include/Library/PrePiLib.h | 2 +- 1 file changed, 1

Re: [edk2] [PATCH edk2-platforms 10/41] Readme : Add Readme.md file.

2019-01-31 Thread Meenakshi Aggarwal
> -Original Message- > From: Leif Lindholm > Sent: Wednesday, December 19, 2018 12:11 AM > To: Meenakshi Aggarwal > Cc: ard.biesheu...@linaro.org; michael.d.kin...@intel.com; edk2- > de...@lists.01.org; Udit Kumar ; Varun Sethi > > Subject: Re: [PATCH edk2-platforms 10/41] Readme :

[edk2] [PATCH v3 11/12] MdeModulePkg/SmmLockBoxLib: Support LockBox enlarge in UpdateLockBox()

2019-01-31 Thread Hao Wu
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1409 This commit will add the support to enlarge a LockBox when using the LockBoxLib API UpdateLockBox(). Please note that the new support will ONLY work for LockBox with attribute LOCK_BOX_ATTRIBUTE_RESTORE_IN_S3_ONLY set. The functional

[edk2] [PATCH v3 09/12] MdeModulePkg/SmmLockBoxLib: Use 'DEBUG_' prefix instead of 'EFI_D_'

2019-01-31 Thread Hao Wu
This commit is out of the scope for BZ-1409. It is a coding style refinement for the SmmLockBoxLib. More specifically, the commit will remove all the debug message display level macros starting with 'EFI_D_' and replace them with macros starting with 'DEBUG_'. Cc: Jian J Wang Cc: Star Zeng

[edk2] [PATCH v3 10/12] MdeModulePkg/SmmLockBox(PEI): Remove an ASSERT in RestoreLockBox()

2019-01-31 Thread Hao Wu
This commit is out of the scope for BZ-1409. It is a refinement for the PEI library instance within SmmLockBoxLib. For the below ASSERT statement within function RestoreLockBox(): Status = SmmCommunicationPpi->Communicate ( SmmCommunicationPpi,

Re: [edk2] [PATCH v3 11/12] MdeModulePkg/SmmLockBoxLib: Support LockBox enlarge in UpdateLockBox()

2019-01-31 Thread Ni, Ray
Reviewed-by: Ray Ni -- Thanks, Ray ___ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel

[edk2] [PATCH 09/10] BaseTools/tools_def.template: Remove CYGGCC

2019-01-31 Thread Shenglei Zhang
CYGGCC is too old.There is no verification for it. https://bugzilla.tianocore.org/show_bug.cgi?id=1377 Cc: Bob Feng Cc: Liming Gao Cc: Yonghong Zhu Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Shenglei Zhang --- BaseTools/Conf/tools_def.template | 203

Re: [edk2] [PATCH edk2-platforms 11/41] IFC : Add Header file for IFC controller

2019-01-31 Thread Meenakshi Aggarwal
> -Original Message- > From: Leif Lindholm > Sent: Wednesday, December 19, 2018 12:16 AM > To: Meenakshi Aggarwal > Cc: ard.biesheu...@linaro.org; michael.d.kin...@intel.com; edk2- > de...@lists.01.org; Udit Kumar ; Varun Sethi > > Subject: Re: [PATCH edk2-platforms 11/41] IFC : Add

Re: [edk2] [PATCH] MdeModulePkg/SdMmcPciHcDxe: Use 16/32-bit IO widths

2019-01-31 Thread Wu, Hao A
> -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Jeff > Brasen > Sent: Thursday, January 31, 2019 7:59 AM > To: edk2-devel@lists.01.org > Cc: Edgar Handal; Jeff Brasen > Subject: [edk2] [PATCH] MdeModulePkg/SdMmcPciHcDxe: Use 16/32-bit IO >

Re: [edk2] [MdePkg/BaseLib v1 1/1] MdePkg BaseLib: Add new API CalculateCrc16()

2019-01-31 Thread Ni, Ray
There is an CRC16 calculation implementation in SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c Does your implementation generate the same CRC16 as above one? > -Original Message- > From: edk2-devel On Behalf Of Ming > Huang > Sent: Friday, February 1, 2019 2:02 PM

Re: [edk2] [PATCH edk2-platforms 13/41] Silicon/NXP : Add support of IfcLib

2019-01-31 Thread Meenakshi Aggarwal
> -Original Message- > From: Leif Lindholm > Sent: Wednesday, December 19, 2018 6:56 PM > To: Meenakshi Aggarwal > Cc: ard.biesheu...@linaro.org; michael.d.kin...@intel.com; edk2- > de...@lists.01.org; Udit Kumar ; Varun Sethi > > Subject: Re: [PATCH edk2-platforms 13/41] Silicon/NXP

[edk2] [PATCH 00/10] Remove unused tool chain configuration

2019-01-31 Thread Shenglei Zhang
VS2003, VS2005, DDK3790, UNIXGCC, ELFGCC, CYGCC and MYTOOLS are too old. There is no verification for them. So remove them from edk2/master. https://bugzilla.tianocore.org/show_bug.cgi?id=1377 Cc: Bob Feng Cc: Liming Gao Cc: Yonghong Zhu Cc: Ray Ni Cc: Jordan Justen Cc: Laszlo Ersek Cc: Ard

[edk2] [PATCH 02/10] OptionRomPkg/ReadMe.txt: Remove VS2005

2019-01-31 Thread Shenglei Zhang
Remove VS2005 in Build Validation. https://bugzilla.tianocore.org/show_bug.cgi?id=1377 Cc: Ray Ni Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Shenglei Zhang --- OptionRomPkg/ReadMe.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/OptionRomPkg/ReadMe.txt

[edk2] [PATCH 01/10] BaseTools/tools_def.template: Remove VS2003 and VS2005

2019-01-31 Thread Shenglei Zhang
VS2003 and VS2005 are too old.There is no verification for them. https://bugzilla.tianocore.org/show_bug.cgi?id=1377 Cc: Bob Feng Cc: Liming Gao Cc: Yonghong Zhu Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Shenglei Zhang --- BaseTools/Conf/tools_def.template | 694

[edk2] [PATCH 05/10] OvmfPkg: Remove UNIXGCC in DSC files

2019-01-31 Thread Shenglei Zhang
Remove UNIXGCC in OvmfPkgIa32.dsc, OvmfPkgIa32X64.dsc and OvmfPkgX64.dsc. https://bugzilla.tianocore.org/show_bug.cgi?id=1377 Cc: Jordan Justen Cc: Laszlo Ersek Cc: Ard Biesheuvel Cc: Anthony Perard Cc: Julien Grall Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:

[edk2] [PATCH 03/10] BaseTools/tools_def.template: Remove DDK3790

2019-01-31 Thread Shenglei Zhang
DDK3790 is too old.There is no verification for it. https://bugzilla.tianocore.org/show_bug.cgi?id=1377 Cc: Bob Feng Cc: Liming Gao Cc: Yonghong Zhu Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Shenglei Zhang --- BaseTools/Conf/tools_def.template | 350

[edk2] [PATCH 06/10] OvmfPkg/README: Remove UNIXGCC

2019-01-31 Thread Shenglei Zhang
Remove content related to UNIXGCC in README. https://bugzilla.tianocore.org/show_bug.cgi?id=1377 Cc: Jordan Justen Cc: Laszlo Ersek Cc: Ard Biesheuvel Cc: Anthony Perard Cc: Julien Grall Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Shenglei Zhang ---

[edk2] [PATCH 04/10] BaseTools/tools_def.template: Remove UNIXGCC

2019-01-31 Thread Shenglei Zhang
UNIXGCC is too old.There is no verification for it. https://bugzilla.tianocore.org/show_bug.cgi?id=1377 Cc: Bob Feng Cc: Liming Gao Cc: Yonghong Zhu Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Shenglei Zhang --- BaseTools/Conf/tools_def.template | 96

[edk2] [PATCH 07/10] BaseTools: Update MYTOOLS

2019-01-31 Thread Shenglei Zhang
Remove MYTOOLS in tools_def.template and change MYTOOLS to VS2015x86 in target.template. https://bugzilla.tianocore.org/show_bug.cgi?id=1377 Cc: Bob Feng Cc: Liming Gao Cc: Yonghong Zhu Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Shenglei Zhang ---

[edk2] [PATCH 08/10] BaseTools/tools_def.template: Remove ELFGCC

2019-01-31 Thread Shenglei Zhang
ELFGCC is too old.There is no verification for it. https://bugzilla.tianocore.org/show_bug.cgi?id=1377 Cc: Bob Feng Cc: Liming Gao Cc: Yonghong Zhu Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Shenglei Zhang --- BaseTools/Conf/tools_def.template | 80

[edk2] [PATCH 10/10] OptionRomPkg/ReadMe.txt: Remove CYGGCC

2019-01-31 Thread Shenglei Zhang
Remove CYGGCC in Build Validation. https://bugzilla.tianocore.org/show_bug.cgi?id=1377 Cc: Ray Ni Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Shenglei Zhang --- OptionRomPkg/ReadMe.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/OptionRomPkg/ReadMe.txt

[edk2] [MdePkg/BaseLib v1 0/1] Add new API CalculateCrc16()

2019-01-31 Thread Ming Huang
Crc16 is used in some cases, so add it to BaseLib. Ming Huang (1): MdePkg BaseLib: Add new API CalculateCrc16() MdePkg/Include/Library/BaseLib.h | 20 ++ MdePkg/Library/BaseLib/CheckSum.c | 73 2 files changed, 93 insertions(+) -- 2.9.5

[edk2] [patch 2/2] MdePkg: Fix coding style issues

2019-01-31 Thread Dandan Bi
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1478 Fix issues that reported by Edk2 coding style check tool(ECC) that: in Comment, <@param SystemTable> does NOT consistent with parameter name MmSystemTable. Cc: Ard Biesheuvel Cc: Liming Gao Contributed-under: TianoCore Contribution

[edk2] [MdePkg/BaseLib v1 1/1] MdePkg BaseLib: Add new API CalculateCrc16()

2019-01-31 Thread Ming Huang
CalculateCrc16() bases on the initialized mCrcTable. When CalculateCrc16() is used, mCrcTable16 will take 512Bytes size in the image. When CalculateCrc16() is not used, mCrcTable16 will not be built in the image, and no size impact. Contributed-under: TianoCore Contribution Agreement 1.1

[edk2] [patch 0/2] Fix coding style issues in MdeModulePkg and MdePkg

2019-01-31 Thread Dandan Bi
Cc: Ard Biesheuvel Cc: Liming Gao Cc: Jian J Wang Cc: Hao Wu Dandan Bi (2): MdeModulePkg: Fix coding style issues MdePkg: Fix coding style issues .../FaultTolerantWriteSmmCommon.h| 4 ++-- .../FaultTolerantWriteStandaloneMm.c | 2 +-

[edk2] [patch 1/2] MdeModulePkg: Fix coding style issues

2019-01-31 Thread Dandan Bi
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1479 Fix issues that reported by Edk2 coding style check tool(ECC) that: Comment description should end with period '.' Cc: Ard Biesheuvel Cc: Jian J Wang Cc: Hao Wu Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:

Re: [edk2] [PATCH] MdeModulePkg/SdMmcPciHcDxe: Use 16/32-bit IO widths

2019-01-31 Thread Jeff Brasen
-Original Message- From: Wu, Hao A Sent: Thursday, January 31, 2019 10:56 PM To: Jeff Brasen ; edk2-devel@lists.01.org Cc: Edgar Handal Subject: RE: [edk2] [PATCH] MdeModulePkg/SdMmcPciHcDxe: Use 16/32-bit IO widths > -Original Message- > From: edk2-devel

Re: [edk2] [MdePkg/BaseLib v1 1/1] MdePkg BaseLib: Add new API CalculateCrc16()

2019-01-31 Thread Ming Huang
On 2/1/2019 2:37 PM, Ni, Ray wrote: > There is an CRC16 calculation implementation in > SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c > > Does your implementation generate the same CRC16 as above one? It is not the same with above one. > >> -Original Message-

[edk2] [PATCH V2] BaseTools: PCD value incorrect in structure pcd sku case.

2019-01-31 Thread Fan, ZhijuX
Defined 2 PCDs(Test4 & Test401) and 2 SKUs(DEFAULT & _), then set "SKUID_Defines" to ALL, for FixedAtBuild gEfiStructuredPcdPkgTokenSpaceGuid. Test401 in this case, its value should get from "Default" SKU, not from "_" SKU, but we does not set value in SKU "_" in dsc, so Test401 should only

Re: [edk2] [PATCH] MdeModulePkg/SdMmcPciHcDxe: Use 16/32-bit IO widths

2019-01-31 Thread Wu, Hao A
> -Original Message- > From: Jeff Brasen [mailto:jbra...@nvidia.com] > Sent: Friday, February 01, 2019 3:12 PM > To: Wu, Hao A; edk2-devel@lists.01.org > Cc: Edgar Handal > Subject: RE: [edk2] [PATCH] MdeModulePkg/SdMmcPciHcDxe: Use 16/32-bit IO > widths > > > > -Original

Re: [edk2] [Patch v2 00/33] BaseTools python3 migration patch set

2019-01-31 Thread Feng, Bob C
I have pushed py3 patch set to edk2 master. Thanks, Bob -Original Message- From: Gao, Liming Sent: Thursday, January 31, 2019 4:24 PM To: Feng, Bob C ; Laszlo Ersek Cc: edk2-devel@lists.01.org Subject: RE: [edk2] [Patch v2 00/33] BaseTools python3 migration patch set Bob: I have no

Re: [edk2] [patch 1/2] MdeModulePkg: Fix coding style issues

2019-01-31 Thread Wu, Hao A
> -Original Message- > From: Bi, Dandan > Sent: Friday, February 01, 2019 2:02 PM > To: edk2-devel@lists.01.org > Cc: Ard Biesheuvel; Wang, Jian J; Wu, Hao A > Subject: [patch 1/2] MdeModulePkg: Fix coding style issues > > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1479 > > Fix

[edk2] [PATCH 13/14] OvmfPkg/MptScsiDxe: Report multiple targets

2019-01-31 Thread Nikita Leshenko
The controller supports up to 8 targets (Not reported by the controller, but based on the implementation of the virtual device), report them in GetNextTarget and GetNextTargetLun. The firmware will then try to communicate with them and create a block device for each one that responds. Support for

[edk2] [PATCH 11/14] OvmfPkg/MptScsiDxe: Initialize hardware

2019-01-31 Thread Nikita Leshenko
Reset and send the IO controller initialization request. The reply is read back to complete the doorbell function but it isn't useful to us because it doesn't contain relevant data or status codes. See "LSI53C1030 PCI-X to Dual Channel Ultra320 SCSI Multifunction Controller" technical manual for

[edk2] [PATCH 12/14] OvmfPkg/MptScsiDxe: Implement the PassThru method

2019-01-31 Thread Nikita Leshenko
Machines should be able to boot after this commit. Tested with different Linux distributions (Ubuntu, CentOS) and different Windows versions (Windows 7, Windows 10, Server 2016). Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Nikita Leshenko Reviewed-by: Aaron Young

[edk2] [PATCH 04/14] OvmfPkg/MptScsiDxe: Probe PCI devices and look for MptScsi

2019-01-31 Thread Nikita Leshenko
The MptScsiControllerSupported function is called for every handle that appears on the system and if the handle is the lsi53c1030 controller the function would return success. A successful return value will attach our driver to the device. Contributed-under: TianoCore Contribution Agreement 1.1

[edk2] [PATCH 03/14] OvmfPkg/MptScsiDxe: Report name of driver

2019-01-31 Thread Nikita Leshenko
Install Component Name protocols to have a nice display name for the driver in places such as UEFI shell. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Nikita Leshenko Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by: Aaron Young Reviewed-by: Liran Alon ---

[edk2] [PATCH 05/14] OvmfPkg/MptScsiDxe: Install stubbed EXT_SCSI_PASS_THRU

2019-01-31 Thread Nikita Leshenko
Support dynamic insertion and removal of the protocol Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Nikita Leshenko Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by: Aaron Young Reviewed-by: Liran Alon --- OvmfPkg/MptScsiDxe/MptScsi.c | 204

[edk2] [PATCH 14/14] OvmfPkg/MptScsiDxe: Support packets with pointers above 4G

2019-01-31 Thread Nikita Leshenko
Users of this device might pass data pointers which are above 4G, in which case we can't pass the pointers directly to the controller because the descriptors contain 32-bit pointers. Instead of failing the request, use below-4G memory to support the request. Contributed-under: TianoCore

[edk2] [PATCH 02/14] OvmfPkg/MptScsiDxe: Install DriverBinding Protocol

2019-01-31 Thread Nikita Leshenko
In order to probe and connect to the MptScsi device we need this protocol. Currently it does nothing. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Nikita Leshenko Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by: Aaron Young Reviewed-by: Liran Alon ---

[edk2] [PATCH 10/14] OvmfPkg/MptScsiDxe: Set and restore PCI attributes

2019-01-31 Thread Nikita Leshenko
Enable the IO Space and Bus Mastering and restore the original values when the device is stopped. This is a standard procedure in PCI drivers. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Nikita Leshenko Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by: Aaron Young

[edk2] [PATCH 07/14] OvmfPkg/MptScsiDxe: Build DevicePath for discovered devices

2019-01-31 Thread Nikita Leshenko
Used to identify the individual disks in the hardware tree Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Nikita Leshenko Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by: Aaron Young Reviewed-by: Liran Alon --- OvmfPkg/MptScsiDxe/MptScsi.c | 18 +- 1

Re: [edk2] [PATCH 5/5] IntelSiliconPkg\Include\IndustryStandard: Update IGD_OPREGION_MBOX3 Structure

2019-01-31 Thread Chaganty, Rangasai V
Reviewed-by: Chaganty, Rangasai V -Original Message- From: Solanki, Digant H Sent: Thursday, January 31, 2019 12:01 AM To: edk2-devel@lists.01.org Cc: Ni, Ray ; Gao, Liming ; Chaganty, Rangasai V Subject: [PATCH 5/5] IntelSiliconPkg\Include\IndustryStandard: Update

[edk2] [PATCH] EmbeddedPkg/DwEmacSnpDxe: Add designware emac support This add support for designware emac controller

2019-01-31 Thread tzy . way . ooi
From: "Ooi, Tzy Way" Contributed-under: TianCore Contribution Agreement 1.1 Signed-off-by: Ooi, Tzy Way --- .../Drivers/DwEmacSnpDxe/DwEmacSnpDxe.c | 1368 + .../Drivers/DwEmacSnpDxe/DwEmacSnpDxe.h | 236 +++ .../Drivers/DwEmacSnpDxe/DwEmacSnpDxe.inf | 69 +

Re: [edk2] [platforms: PATCH v3 0/5] Armada7k8k memory handling update

2019-01-31 Thread Leif Lindholm
On Thu, Jan 31, 2019 at 08:01:08AM +0100, Marcin Wojtas wrote: > Hi Leif, > > Thanks a lot. While at it - do you think ArmPkg/Include/Library/ArmLib.h > / ArmPkg/Library/ArmLib/ArmLib.c would be a proper place for it? As good a place as any. While not ARM-architecture specific, I feel it's

[edk2] OvmfPkg: Support booting from Fusion-MPT SCSI controllers

2019-01-31 Thread Nikita Leshenko
This series adds driver support for: - LSI53C1030 - SAS1068 - SAS1068E These controllers are widely supported by QEMU, VirtualBox and VMWare. This work is part of the more general agenda of enhancing OVMF boot device support to have feature parity with SeaBIOS. We have also developed support for

[edk2] [PATCH 01/14] OvmfPkg/MptScsiDxe: Create empty driver

2019-01-31 Thread Nikita Leshenko
In preparation for implementing LSI Fusion MPT SCSI devices, create a basic scaffolding for a driver. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Nikita Leshenko Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by: Aaron Young Reviewed-by: Liran Alon ---

[edk2] [PATCH 06/14] OvmfPkg/MptScsiDxe: Report one Target and one LUN

2019-01-31 Thread Nikita Leshenko
Support for multiple targets will be implemented in a later commit in this series. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Nikita Leshenko Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by: Aaron Young Reviewed-by: Liran Alon --- OvmfPkg/MptScsiDxe/MptScsi.c | 34

[edk2] [PATCH 08/14] OvmfPkg/MptScsiDxe: Implement GetTargetLun

2019-01-31 Thread Nikita Leshenko
Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Nikita Leshenko Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by: Aaron Young Reviewed-by: Liran Alon --- OvmfPkg/MptScsiDxe/MptScsi.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git

[edk2] [PATCH 09/14] OvmfPkg/MptScsiDxe: Open PciIo protocol for later use

2019-01-31 Thread Nikita Leshenko
This will give us an exclusive access to the PciIo of this device after it was started and until is will be stopped. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Nikita Leshenko Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by: Aaron Young Reviewed-by: Liran Alon ---

Re: [edk2] [Patch v2 00/33] BaseTools python3 migration patch set

2019-01-31 Thread Gao, Liming
Bob: I have no other comments on this patch set. Reviewed-by: Liming Gao Thanks Liming > -Original Message- > From: Feng, Bob C > Sent: Wednesday, January 30, 2019 1:25 PM > To: Gao, Liming ; Laszlo Ersek > Cc: edk2-devel@lists.01.org > Subject: RE: [edk2] [Patch v2 00/33] BaseTools

[edk2] [PATCH 5/5] IntelSiliconPkg\Include\IndustryStandard: Update IGD_OPREGION_MBOX3 Structure

2019-01-31 Thread Digant H Solanki
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1454 Based on latest IGD OpRegion Spec, IGD_OPREGION_MBOX3 needs to be updated with two new members : Physical Address of Raw VBT Data (RVDA) and Size of Raw VBT Data (RVDS) Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:

Re: [edk2] [PATCH v5] MdePkg/BaseLib: Add Base64Encode() and Base64Decode()

2019-01-31 Thread Gao, Liming
Reviewed-by: Liming Gao > -Original Message- > From: Zhang, Shenglei > Sent: Thursday, January 31, 2019 3:37 PM > To: edk2-devel@lists.01.org > Cc: Mike Turner ; Kinney, Michael D > ; Gao, Liming > Subject: [PATCH v5] MdePkg/BaseLib: Add Base64Encode() and Base64Decode() > > From:

Re: [edk2] [PATCH 5/5] IntelSiliconPkg\Include\IndustryStandard: Update IGD_OPREGION_MBOX3 Structure

2019-01-31 Thread Gao, Liming
One comment on the title. This is Patch V5, not Patch 5/5. You don't need to send new patch. Thanks Liming > -Original Message- > From: Solanki, Digant H > Sent: Thursday, January 31, 2019 4:01 PM > To: edk2-devel@lists.01.org > Cc: Ni, Ray ; Gao, Liming ; Chaganty, > Rangasai V >

Re: [edk2] [RFC] Proposal to split Pkgs

2019-01-31 Thread Ni, Ray
On 1/31/2019 3:51 PM, Ard Biesheuvel wrote: The POC code is inhttps://github.com/jyao1/edk2/tree/ReOrg. It basically split the EDKII common code to three directories: Core/, Device/, and Feature/. I'm not sure I like the 'Device' name, but that's not that important at this stage - I like that

Re: [edk2] [PATCH 5/5] IntelSiliconPkg\Include\IndustryStandard: Update IGD_OPREGION_MBOX3 Structure

2019-01-31 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Solanki, Digant H > Sent: Thursday, January 31, 2019 4:01 PM > To: edk2-devel@lists.01.org > Cc: Ni, Ray ; Gao, Liming ; > Chaganty, Rangasai V > Subject: [PATCH 5/5] IntelSiliconPkg\Include\IndustryStandard: Update > IGD_OPREGION_MBOX3

[edk2] [PATCH] SecurityPkg: Add NULL check of pointer variable before using it

2019-01-31 Thread Maggie Chu
https://bugzilla.tianocore.org/show_bug.cgi?id=1503 A pointer variable should be checked if it is NULL or Valid before using it. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Maggie Chu Cc: Chao Zhang Cc: Jiewen Yao Cc: Eric Dong ---

Re: [edk2] [platforms: PATCH v3 0/5] Armada7k8k memory handling update

2019-01-31 Thread Marcin Wojtas
czw., 31 sty 2019 o 11:28 Leif Lindholm napisał(a): > > On Thu, Jan 31, 2019 at 08:01:08AM +0100, Marcin Wojtas wrote: > > Hi Leif, > > > > Thanks a lot. While at it - do you think ArmPkg/Include/Library/ArmLib.h > > / ArmPkg/Library/ArmLib/ArmLib.c would be a proper place for it? > > As good a

Re: [edk2] [platforms: PATCH v3 0/5] Armada7k8k memory handling update

2019-01-31 Thread Leif Lindholm
On Thu, Jan 31, 2019 at 01:06:15PM +0100, Marcin Wojtas wrote: > czw., 31 sty 2019 o 11:28 Leif Lindholm napisał(a): > > > > On Thu, Jan 31, 2019 at 08:01:08AM +0100, Marcin Wojtas wrote: > > > Hi Leif, > > > > > > Thanks a lot. While at it - do you think ArmPkg/Include/Library/ArmLib.h > > > /

Re: [edk2] [PATCH v4 edk2-platforms 06/23] Platform/Raspberry/Pi3: Add RTC library

2019-01-31 Thread Pete Batard
On 2019.01.30 22:22, Leif Lindholm wrote: First of all - this is something I would like to see contributed directly to edk2 EmbeddedPkg. It's something me and Ard have discussed adding at some point, but never getting around to. I would also like to look into whether we could replace

Re: [edk2] [PATCH v4 edk2-platforms 20/23] Platform/Raspberry/Pi3: Add platform readme

2019-01-31 Thread Pete Batard
Hi Leif. Thanks for reviewing this patchset. On 2019.01.30 21:50, Leif Lindholm wrote: Hi Pete, I will only have minor comments on this set, but I'll start with this documentation. On Tue, Jan 29, 2019 at 04:26:52PM +, Pete Batard wrote: Contributed-under: TianoCore Contribution

Re: [edk2] [RFC] Proposal to split Pkgs

2019-01-31 Thread Andrew Fish via edk2-devel
> On Jan 28, 2019, at 9:59 PM, Ni, Ray wrote: > > Hello, > I'd like to propose to split today's BIG packages in following ways: > > ==Overview = > > 1. Separate Industry standard definitions from UEFI and PI interfaces. Ray, >From a big picture point of view

[edk2] [PATCH v1 1/1] ShellPkg/UefiShellAcpiViewCommandLib: Fix PPTT cache attributes validation

2019-01-31 Thread Krzysztof Koch
Removed conditional pre-compiling for ARM CPUs because function ValidateCacheAttributes(..) is based on ACPI PPTT specification. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Krzysztof Koch Reported-by: Zhichao Gao --- The code can be found at:

Re: [edk2] [PATCH v4 edk2-platforms 00/23] Platform/Raspberry: Add Raspberry Pi 3 support

2019-01-31 Thread Pete Batard
On 2019.01.30 21:59, Leif Lindholm wrote: Hi Pete, I have two annoying pieces of feedback that apply to the whole set. Firstly, I would really appreciate if we could have some sort of commit messages rather than just subject lines. I can work on that. So, for ACPI, mention the provenance

Re: [edk2] [PATCH v4 edk2-platforms 20/23] Platform/Raspberry/Pi3: Add platform readme

2019-01-31 Thread Ard Biesheuvel
On Thu, 31 Jan 2019 at 15:13, Leif Lindholm wrote: > > On Thu, Jan 31, 2019 at 12:30:22PM +, Pete Batard wrote: > > Hi Leif. Thanks for reviewing this patchset. > > > > On 2019.01.30 21:50, Leif Lindholm wrote: > > > Hi Pete, > > > > > > I will only have minor comments on this set, but I'll

Re: [edk2] [PATCH v4 edk2-platforms 20/23] Platform/Raspberry/Pi3: Add platform readme

2019-01-31 Thread Ard Biesheuvel
On Thu, 31 Jan 2019 at 15:36, Ard Biesheuvel wrote: > > On Thu, 31 Jan 2019 at 15:13, Leif Lindholm wrote: > > > > On Thu, Jan 31, 2019 at 12:30:22PM +, Pete Batard wrote: > > > Hi Leif. Thanks for reviewing this patchset. > > > > > > On 2019.01.30 21:50, Leif Lindholm wrote: > > > > Hi

Re: [edk2] [PATCH edk2-platforms] Silicon/Bcm2836: add random number generator driver

2019-01-31 Thread Leif Lindholm
On Wed, Jan 30, 2019 at 08:39:43PM +0100, Ard Biesheuvel wrote: > Expose the SoC's RNG peripheral via the EFI_RNG_PROTOCOL. > This is used by Linux to seed the KASLR routines. > > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Ard Biesheuvel Not tested, but looks fine.

Re: [edk2] [PATCH v4 edk2-platforms 20/23] Platform/Raspberry/Pi3: Add platform readme

2019-01-31 Thread Leif Lindholm
On Thu, Jan 31, 2019 at 12:30:22PM +, Pete Batard wrote: > Hi Leif. Thanks for reviewing this patchset. > > On 2019.01.30 21:50, Leif Lindholm wrote: > > Hi Pete, > > > > I will only have minor comments on this set, but I'll start with this > > documentation. > > > > On Tue, Jan 29, 2019 at

[edk2] [edk2-announce] February Community Meeting

2019-01-31 Thread stephano
We will be holding our February Community Meeting on the *2nd* Thursday of February to accommodate holiday schedules. Details are posted here: https://www.tianocore.org/community-meeting/ Please contact me or post to the list anything you'd like to see discussed. Cheers, Stephano

Re: [edk2] [PATCH edk2-platforms] Silicon/Bcm2836: add random number generator driver

2019-01-31 Thread Ard Biesheuvel
On Thu, 31 Jan 2019 at 16:05, Leif Lindholm wrote: > > On Wed, Jan 30, 2019 at 08:39:43PM +0100, Ard Biesheuvel wrote: > > Expose the SoC's RNG peripheral via the EFI_RNG_PROTOCOL. > > This is used by Linux to seed the KASLR routines. > > > > Contributed-under: TianoCore Contribution Agreement

Re: [edk2] [PATCH v4 edk2-platforms 01/23] Silicon/Broadcom/Bcm282x: Add interrupt driver

2019-01-31 Thread Leif Lindholm
On Tue, Jan 29, 2019 at 04:26:33PM +, Pete Batard wrote: > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Pete Batard > > Reviewed-by: Ard Biesheuvel > --- > Silicon/Broadcom/Bcm283x/Bcm283x.dec | 23 ++ >

Re: [edk2] Conditional Compilation support in INF file

2019-01-31 Thread stephano
On 1/30/2019 10:56 PM, Gao, Liming wrote: Karunakar: There is one BZ https://bugzilla.tianocore.org/show_bug.cgi?id=1446 on Feature Flag expression in INF. INF spec has listed the syntax for it. But, BaseTools doesn't support it now. If you have the similar request, please add the

Re: [edk2] [PATCH v4 edk2-platforms 01/23] Silicon/Broadcom/Bcm282x: Add interrupt driver

2019-01-31 Thread Ard Biesheuvel
On Thu, 31 Jan 2019 at 16:24, Leif Lindholm wrote: > > On Tue, Jan 29, 2019 at 04:26:33PM +, Pete Batard wrote: > > Contributed-under: TianoCore Contribution Agreement 1.1 > > Signed-off-by: Pete Batard > > > > Reviewed-by: Ard Biesheuvel > > --- > > Silicon/Broadcom/Bcm283x/Bcm283x.dec

Re: [edk2] [PATCH v4 edk2-platforms 20/23] Platform/Raspberry/Pi3: Add platform readme

2019-01-31 Thread Pete Batard
On 2019.01.31 14:44, Ard Biesheuvel wrote: On Thu, 31 Jan 2019 at 15:36, Ard Biesheuvel wrote: On Thu, 31 Jan 2019 at 15:13, Leif Lindholm wrote: On Thu, Jan 31, 2019 at 12:30:22PM +, Pete Batard wrote: Hi Leif. Thanks for reviewing this patchset. On 2019.01.30 21:50, Leif Lindholm