Re: [edk2-devel] [PATCH V2 1/2] MdePkg-IndustryStandard: CXL 1.1 Specification registers

2020-07-17 Thread Michael D Kinney
Hi Ashraf, I did not see the Copyright update to Pci.h in this patch series. There is also something strange about the subject line of the commit messages. There is a '?' before MdePkg. Also, the first part of the subject line should be MdePkg/Include/IndustryStandard. Here is my git log

Re: [edk2-devel] [PATCH v3 00/11] Introduce LsiScsi driver to OvmfPkg

2020-07-17 Thread Laszlo Ersek
On 07/17/20 08:11, Gary Lin wrote: > This patch series implement the driver for LSI 53C895A SCSI controller > for OVMF so that the user can access the storage devices connected to > QEMU "lsi" controller. The driver is disabled by default since LSI > 53C895A is considered as a legacy device. To

Re: [edk2-devel] [PATCH v2] MdeModulePkg/DxeCorePerformanceLib: Switch to UnicodeStrnToAsciiStrS

2020-07-17 Thread Jeff Brasen
Do we need any additional review on this before it getting submitted? -Jeff -Original Message- From: Bi, Dandan Sent: Tuesday, June 23, 2020 7:36 PM To: Jeff Brasen ; devel@edk2.groups.io Cc: Gao, Liming Subject: RE: [PATCH v2] MdeModulePkg/DxeCorePerformanceLib: Switch to

Re: [edk2-devel] [PATCH v3 10/11] OvmfPkg/LsiScsiDxe: Process the SCSI Request Packet

2020-07-17 Thread Laszlo Ersek
On 07/17/20 08:11, Gary Lin wrote: > This is the second part of LsiScsiPassThru(). LsiScsiProcessRequest() is > added to translate the SCSI Request Packet into the LSI 53C895A > commands. This function utilizes the so-called Script buffer to transmit > a series of commands to the chip and then

Re: [edk2-devel] [PATCH v3 07/11] OvmfPkg/LsiScsiDxe: Open PciIo protocol and initialize the device

2020-07-17 Thread Laszlo Ersek
On 07/17/20 08:11, Gary Lin wrote: > Open PciIo protocol and use it to initialize the device. The > initialization of LSI 53C895A is simple: just set the SRST bit in > Interrupt Status Zero register to reset the device. > > v2: > - Use the BITx macros for the bit constants > - Add the closing

Re: [edk2-devel] [PATCH v3 06/11] OvmfPkg/LsiScsiDxe: Report Targets and LUNs

2020-07-17 Thread Laszlo Ersek
On 07/17/20 08:11, Gary Lin wrote: > Implement LsiScsiGetNextTargetLun(), LsiScsiBuildDevicePath(), > LsiScsiGetTargetLun(), and LsiScsiGetNextTarget() to report Targets and > LUNs and build the device path. > > This commit also introduces two PCD value: PcdLsiScsiMaxTargetLimit and >

[edk2-devel] [PATCH 1/5] Platform/Intel/CometlakeOpenBoardPkg: Add ReportCpuHobLib.

2020-07-17 Thread IanX Kuo
Create an Library instance of ReportCpuHobLib from PlatformInitPei driver. PA bits reported can be overriden using Library instance in Platform. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2674 Change-Id: I1097057046aa021dc2ff193fea335790513c10c4 Signed-off-by: IanX Kuo ---

[edk2-devel] [PATCH 3/5] Platform/Intel/SimicsOpenBoardPkg: Add ReportCpuHobLib.

2020-07-17 Thread IanX Kuo
Create an Library instance of ReportCpuHobLib from PlatformInitPei driver. PA bits reported can be overriden using Library instance in Platform. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2674 Change-Id: I673f8fcd2d97bbd60229a60f53875e92826a7179 Signed-off-by: IanX Kuo ---

[edk2-devel] [PATCH 5/5] Platform/Intel/MinPlatformPkg: Add ReportCpuHobLib.

2020-07-17 Thread IanX Kuo
Create an Library instance of ReportCpuHobLib from PlatformInitPei driver. PA bits reported can be overriden using Library instance in Platform. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2674 Change-Id: I1c14aece3b229c194960e91dc9505dd8120bbe30 Signed-off-by: IanX Kuo ---

Re: [edk2-devel] [PATCH] MdeModulePkg: Upon BootOption failure, Destroy RamDisk memory before RSC.

2020-07-17 Thread Veliyathuparambil Prakashan, KrishnadasX
Hello Liming, Gentle Reminder. As discussed before, please let us know when we can expect our changes (below BZ) to get pushed in to Edk2Repo. Please help to give an ETA. BZ Details: [edk2-devel] [PATCH] MdeModulePkg: Upon BootOption failure, Destroy RamDisk memory before RSC

[edk2-devel] [PATCH 4/5] Platform/Intel/WhiskeylakeOpenBoardPkg: Add ReportCpuHobLib.

2020-07-17 Thread IanX Kuo
Create an Library instance of ReportCpuHobLib from PlatformInitPei driver. PA bits reported can be overriden using Library instance in Platform. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2674 Change-Id: I999b29c30993c397f918a1f7b4ea19c61c0a460d Signed-off-by: IanX Kuo ---

[edk2-devel] [PATCH 2/5] Platform/Intel/KabylakeOpenBoardPkg: Add ReportCpuHobLib.

2020-07-17 Thread IanX Kuo
Create an Library instance of ReportCpuHobLib from PlatformInitPei driver. PA bits reported can be overriden using Library instance in Platform. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2674 Change-Id: Ic312ec307b3bcd84051e48505038d9ca47d467e2 Signed-off-by: IanX Kuo ---

Re: [edk2-devel] [PATCH v2 1/1] CryptoPkg/OpensslLib: Upgrade OpenSSL to 1.1.1g

2020-07-17 Thread Laszlo Ersek
On 07/17/20 03:36, Guomin Jiang wrote: > Upgrade openssl to 1.1.1g. the directory have been reorganized, > openssl moved crypto/include/internal to include/crypto folder. > So we change directory to match the re-organization. > > The dso_conf.h and opensslconf.h will generated in UNIX format, >

Re: [edk2-devel] [PATCH v10 06/46] MdePkg/BaseLib: Add support for the XGETBV instruction

2020-07-17 Thread Lendacky, Thomas
On 7/15/20 11:17 AM, Tom Lendacky wrote: On 7/15/20 10:55 AM, Laszlo Ersek wrote: Hi Tom, On 07/14/20 16:27, Lendacky, Thomas wrote: From: Tom Lendacky BZ:

Re: [edk2-devel] [PATCH] MdeModulePkg: Upon BootOption failure, Destroy RamDisk memory before RSC.

2020-07-17 Thread Liming Gao
Krishnadas: The patch for BZ 2836 has passed reviewed. It will be merged early next week. Then, your patch will also be merged next week. Thanks Liming > -Original Message- > From: Veliyathuparambil Prakashan, KrishnadasX > > Sent: Friday, July 17, 2020 12:09 PM > To: Gao, Liming ;

[edk2-devel] Reg: TCP Port for ISCSI Connection

2020-07-17 Thread Sivaraman Nainar
Hello all: In the ISCSI driver, Target TCP Port Input shows the default port as 3260. Which can be set from 0 to 65535 As per below RFC it talks about the Default Port only. Still it not clearly said if we can use the numbers 49152-65535 which is reserved. https://tools.ietf.org/html/rfc3720

[edk2-devel] [edk2-platforms PATCH 2/5] Silicon/Synopsys/DesignWare: Replace BSD License with BSD+Patent License

2020-07-17 Thread Vin Xue
Replace BSD 2-Clause License with BSD+Patent License. Cc: Ard Biesheuvel Cc: Leif Lindholm Signed-off-by: Vin Xue --- .../DesignWare/Drivers/UsbDeviceDxe/ComponentName.c| 8 +--- .../DesignWare/Drivers/UsbDeviceDxe/UsbDeviceDxe.c | 8 +---

[edk2-devel] [edk2-platforms PATCH 4/5] Silicon/Synopsys/DesignWare: Support build against DesignWare.dsc

2020-07-17 Thread Vin Xue
Support GCC IA32/X64 build. Cc: Ard Biesheuvel Cc: Leif Lindholm Signed-off-by: Vin Xue --- Silicon/Synopsys/DesignWare/DesignWare.dec | 9 - Silicon/Synopsys/DesignWare/DesignWare.dsc | 17 +++-- .../Drivers/UsbDeviceDxe/UsbDeviceDxe.inf | 1 +

[edk2-devel] [PATCH edk2-platforms 2/2] Silicon/SynQuacer: CRLF fixup for Acpi.dsc.inc

2020-07-17 Thread Masahisa Kojima
All of line endings of Acpi.dsc.inc are not CRLF, resolve this. Signed-off-by: Masahisa Kojima --- Silicon/Socionext/SynQuacer/Acpi.dsc.inc | 94 ++-- 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a/Silicon/Socionext/SynQuacer/Acpi.dsc.inc

[edk2-devel] [PATCH edk2-platforms 1/2] Silicon/SynQuacer: add ACPI descriptor of MMIO TPM

2020-07-17 Thread Masahisa Kojima
The second SPI controller is wired to the low speed 96boards connector on Developerbox. SynQuacer platform can exposes its SPI TPM via MMIO window that is backed by the SPI command sequencer in the SPI bus controller. This commit adds the MMIO TPM description to the DSDT. If TPM2_ENABLE build

[edk2-devel] [PATCH edk2-platforms 0/2] Add ACPI support of MMIO TPM on SynQuacer

2020-07-17 Thread Masahisa Kojima
This patches add the ACPI description of MMIO TPM on SynQuacer. This also fixes the non CRLF line endings of Acpi.dsc.inc. Masahisa Kojima (2): Silicon/SynQuacer: add ACPI descriptor of MMIO TPM Silicon/SynQuacer: CRLF fixup for Acpi.dsc.inc Silicon/Socionext/SynQuacer/Acpi.dsc.inc |

[edk2-devel] [edk2-platforms PATCH 5/5] Silicon/Synopsys/DesignWare: Basic support for USB SuperSpeedPlus

2020-07-17 Thread Vin Xue
Add basic support for USB 3.1 SuperSpeedPlus. Cc: Ard Biesheuvel Cc: Leif Lindholm Signed-off-by: Vin Xue --- Silicon/Synopsys/DesignWare/Drivers/UsbDeviceDxe/XdciCommon.h | 3 ++- Silicon/Synopsys/DesignWare/Drivers/UsbDeviceDxe/XdciDWC.c| 3 ++- 2 files changed, 4 insertions(+), 2

[edk2-devel] [edk2-platforms PATCH 3/5] Silicon/Synopsys/DesignWare: Remove platform specific init code.

2020-07-17 Thread Vin Xue
Remove platform specific init code for device mode enable. The code is different for different silicon vendor. Cc: Ard Biesheuvel Cc: Leif Lindholm Signed-off-by: Vin Xue --- .../Drivers/UsbDeviceDxe/UsbDeviceDxe.c | 18 - .../Drivers/UsbDeviceDxe/UsbDeviceDxe.h | 8 ++-

[edk2-devel] [PATCH v4 0/6] Add capability to let PEIM extend TcgEvent

2020-07-17 Thread Qi Zhang
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2841 Currently, we have TCG/TCG2 protocol and DxeTpmMeasurementLib to let DXE module extend the TCG event. There is more and more use case in PEI phase that a PEIM need extend TCG event, such as BootGuard, FSP, Microcode measurement. Currently,

[edk2-devel] [PATCH v3 3/6] SecurityPkg/Tcg: Add TcgPpi

2020-07-17 Thread Qi Zhang
From: Jiewen Yao REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2841 Cc: Jiewen Yao Cc: Jian J Wang Cc: Chao Zhang Cc: Qi Zhang Cc: Rahul Kumar Signed-off-by: Jiewen Yao --- SecurityPkg/Tcg/TcgPei/TcgPei.c | 61 --- SecurityPkg/Tcg/TcgPei/TcgPei.inf |

[edk2-devel] [PATCH v3 5/6] SecurityPkg/PeiTpmMeasurementLib: Add PEI instance.

2020-07-17 Thread Qi Zhang
From: Jiewen Yao REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2841 Cc: Jiewen Yao Cc: Jian J Wang Cc: Chao Zhang Cc: Qi Zhang Signed-off-by: Jiewen Yao --- .../PeiTpmMeasurementLib.c| 74 +++ .../PeiTpmMeasurementLib.inf | 50

[edk2-devel] [PATCH v4 5/6] SecurityPkg/PeiTpmMeasurementLib: Add PEI instance.

2020-07-17 Thread Qi Zhang
From: Jiewen Yao REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2841 Cc: Jiewen Yao Cc: Jian J Wang Cc: Qi Zhang Signed-off-by: Jiewen Yao --- .../PeiTpmMeasurementLib.c| 74 +++ .../PeiTpmMeasurementLib.inf | 50 +

[edk2-devel] [PATCH v3 6/6] SecurityPkg/dsc: Add PeiTpmMeasurementLib.

2020-07-17 Thread Qi Zhang
From: Jiewen Yao REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2841 Cc: Jiewen Yao Cc: Jian J Wang Cc: Chao Zhang Cc: Qi Zhang Signed-off-by: Jiewen Yao --- SecurityPkg/SecurityPkg.dsc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SecurityPkg/SecurityPkg.dsc

[edk2-devel] [PATCH v4 6/6] SecurityPkg/dsc: Add PeiTpmMeasurementLib.

2020-07-17 Thread Qi Zhang
From: Jiewen Yao REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2841 Cc: Jiewen Yao Cc: Jian J Wang Cc: Qi Zhang Signed-off-by: Jiewen Yao --- SecurityPkg/SecurityPkg.dsc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SecurityPkg/SecurityPkg.dsc

[edk2-devel] [PATCH v4 1/6] SecurityPkg/TcgPpi: Add TcgPpi header file.

2020-07-17 Thread Qi Zhang
From: Jiewen Yao REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2841 Cc: Jiewen Yao Cc: Jian J Wang Cc: Qi Zhang Signed-off-by: Jiewen Yao --- SecurityPkg/Include/Ppi/Tcg.h | 60 +++ 1 file changed, 60 insertions(+) create mode 100644

[edk2-devel] [PATCH v3 0/6] Add capability to let PEIM extend TcgEvent

2020-07-17 Thread Qi Zhang
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2841 Currently, we have TCG/TCG2 protocol and DxeTpmMeasurementLib to let DXE module extend the TCG event. There is more and more use case in PEI phase that a PEIM need extend TCG event, such as BootGuard, FSP, Microcode measurement. Currently,

[edk2-devel] [PATCH v4 4/6] SecurityPkg/Tcg2: Add TcgPpi

2020-07-17 Thread Qi Zhang
From: Jiewen Yao REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2841 Cc: Jiewen Yao Cc: Jian J Wang Cc: Qi Zhang Cc: Rahul Kumar Signed-off-by: Jiewen Yao --- SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c | 110 +--- SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf | 3 +- 2 files

[edk2-devel] [PATCH v3 1/6] SecurityPkg/TcgPpi: Add TcgPpi header file.

2020-07-17 Thread Qi Zhang
From: Jiewen Yao REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2841 Cc: Jiewen Yao Cc: Jian J Wang Cc: Chao Zhang Cc: Qi Zhang Signed-off-by: Jiewen Yao --- SecurityPkg/Include/Ppi/Tcg.h | 60 +++ 1 file changed, 60 insertions(+) create mode 100644

[edk2-devel] [PATCH v4 2/6] SecurityPkg/dec: Add TcgPpi.

2020-07-17 Thread Qi Zhang
From: Jiewen Yao REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2841 Cc: Jiewen Yao Cc: Jian J Wang Cc: Qi Zhang Signed-off-by: Jiewen Yao --- SecurityPkg/SecurityPkg.dec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SecurityPkg/SecurityPkg.dec b/SecurityPkg/SecurityPkg.dec

[edk2-devel] [PATCH v4 3/6] SecurityPkg/Tcg: Add TcgPpi

2020-07-17 Thread Qi Zhang
From: Jiewen Yao REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2841 Cc: Jiewen Yao Cc: Jian J Wang Cc: Qi Zhang Cc: Rahul Kumar Signed-off-by: Jiewen Yao --- SecurityPkg/Tcg/TcgPei/TcgPei.c | 61 --- SecurityPkg/Tcg/TcgPei/TcgPei.inf | 3 +- 2 files

[edk2-devel] [PATCH v3 4/6] SecurityPkg/Tcg2: Add TcgPpi

2020-07-17 Thread Qi Zhang
From: Jiewen Yao REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2841 Cc: Jiewen Yao Cc: Jian J Wang Cc: Chao Zhang Cc: Qi Zhang Cc: Rahul Kumar Signed-off-by: Jiewen Yao --- SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c | 110 +--- SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf |

[edk2-devel] [PATCH v3 2/6] SecurityPkg/dec: Add TcgPpi.

2020-07-17 Thread Qi Zhang
From: Jiewen Yao REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2841 Cc: Jiewen Yao Cc: Jian J Wang Cc: Chao Zhang Cc: Qi Zhang Signed-off-by: Jiewen Yao --- SecurityPkg/SecurityPkg.dec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SecurityPkg/SecurityPkg.dec

Re: [edk2-devel] Confirm your lbf...@zd-tech.com.cn email address

2020-07-17 Thread Feng Libo
From: "Groups.io" Date: 2020-07-16 21:34:45 To: lbf...@zd-tech.com.cn Subject: [edk2-devel] Confirm your lbf...@zd-tech.com.cn email address Hello, Thank you for your interest in the https://edk2.groups.io/g/devel group at Groups.io. If you did not request or do not want to join

[edk2-devel] [PATCH] MdeModulePkg/UsbBusDxe: some USB PenDisk fails enumeration.

2020-07-17 Thread Feng Libo
Some USB Pen disk can't be identified during USB enumeration during UEFI post. We have three USB Pen disks from different manufactors, all with Innostor USB controller chip (VID=0x1F75, PID=0x917, USB3.1), they all failed in the second device-descritor requeset. When the first device descriptor

Re: [edk2-devel] [PATCH] Maintainers.txt: Remove invalid email address and a few other role changes

2020-07-17 Thread Leif Lindholm
On Fri, Jul 17, 2020 at 07:41:40 +, Wang, Jian J wrote: > > > SecurityPkg: Secure boot related modules > > > F: SecurityPkg/Library/DxeImageVerificationLib/ > > > @@ -480,8 +480,7 @@ M: Zhichao Gao > > > SignedCapsulePkg > > > F: SignedCapsulePkg/ > > > W:

Re: [edk2-devel] [PATCH 1/1] CryptoPkg/Library: Remove the redundant build option

2020-07-17 Thread Laszlo Ersek
On 07/16/20 16:55, Abner Chang wrote: > Remove the redundant build option for RISCV64 architecture. > BZ:2848 > > Signed-off-by: Abner Chang > > Cc: Jian J Wang > Cc: Xiaoyu Lu > Cc: Laszlo Ersek > --- > CryptoPkg/Library/OpensslLib/OpensslLib.inf | 2 +- > 1 file changed, 1 insertion(+), 1

Re: [edk2-devel] [PATCH] UefiCpuPkg/MtrrLib/UnitTest: Add host based unit test

2020-07-17 Thread Laszlo Ersek
On 07/17/20 09:33, Ray Ni wrote: > Add host based unit tests for the MtrrLib services. > The BaseLib services AsmCpuid(), AsmReadMsr64(), and > AsmWriteMsr64() are hooked and provide simple emulation > of the CPUID leafs and MSRs required by the MtrrLib to > run as a host based unit test. > >

Re: [edk2-devel] [edk2-platforms: PATCH V1] MinPlatformPkg/PlatformInitPei:

2020-07-17 Thread Chiu, Chasel
Hi Chandana, Please see my question below. Thanks, Chasel > -Original Message- > From: Kumar, Chandana C > Sent: Wednesday, July 15, 2020 6:49 PM > To: devel@edk2.groups.io > Cc: Chaganty, Rangasai V ; Chiu, Chasel > ; Desimone, Nathaniel L > > Subject: [edk2-platforms: PATCH V1]

[edk2-devel] [PATCH V2 1/2] MdePkg-IndustryStandard: CXL 1.1 Specification registers

2020-07-17 Thread Javeed, Ashraf
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2611 Register definitions from chapter 7 of Compute Express Link Specification Revision 1.1 are ported into the new Cxl11.h. The CXL Flex Bus registers are based on the PCIe Extended Capability DVSEC structure header, led to the inclusion of

[edk2-devel] [PATCH V2 0/2] CXL Specification Registers

2020-07-17 Thread Javeed, Ashraf
These 2 patches introduces the Compute Express Link (CXL) Specificition registers definitions to the MDE. The Cxl11.h has the actual register definitions of the CXL Specification Revision 1.1; and the Cxl.h is the main header file to include all versions of the CXL register definitions.

[edk2-devel] [PATCH V2 2/2] MdePkg-IndustryStandard: Main header for CXL registers

2020-07-17 Thread Javeed, Ashraf
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2611 Introducing the Cxl.h as the main header file to support all versions of Compute Express Link Specification register definitions. Signed-off-by: Ashraf Javeed Cc: Michael D Kinney Cc: Liming Gao -- V2: Indentation and double declaration

Re: [edk2-devel] [PATCH 1/1] CryptoPkg/Library: Remove the redundant build option

2020-07-17 Thread Guomin Jiang
Reviewed-by: Guomin Jiang I review the manual from https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html, It is explained in [-Werror=] option. Thank for your explanation as well. > -Original Message- > From: devel@edk2.groups.io On Behalf Of Abner > Chang > Sent: Friday, July 17,

Re: [edk2-devel] [PATCH v3 0/6] Add capability to let PEIM extend TcgEvent

2020-07-17 Thread Yao, Jiewen
Thank you very much, Qi. I forgot to mention that we should change the name EFI_TCG2_PRE_HASH to EDKII_TCG_PRE_HASH. The EFI_* prefix is only for standard defined protocol/PPI. Since this is our EDKII extension, we should use EDKII_* prefix. With that change, the series: Reviewed-by: Jiewen

Re: [edk2-devel] [PATCH] Maintainers.txt: Remove invalid email address and a few other role changes

2020-07-17 Thread Wang, Jian J
Hi Laszlo, > -Original Message- > From: Laszlo Ersek > Sent: Thursday, July 16, 2020 8:35 PM > To: Wang, Jian J ; devel@edk2.groups.io > Cc: Yao, Jiewen ; Andrew Fish ; Leif > Lindholm ; Kinney, Michael D > Subject: Re: [PATCH] Maintainers.txt: Remove invalid email address and a few >

[edk2-devel] [PATCH] UefiCpuPkg/MtrrLib/UnitTest: Add host based unit test

2020-07-17 Thread Ni, Ray
Add host based unit tests for the MtrrLib services. The BaseLib services AsmCpuid(), AsmReadMsr64(), and AsmWriteMsr64() are hooked and provide simple emulation of the CPUID leafs and MSRs required by the MtrrLib to run as a host based unit test. Test cases are developed for each of the API. For

Re: [edk2-devel] [edk2-discuss] Need memory barriers in IoLib for AARCH64

2020-07-17 Thread Wasim Khan
> -Original Message- > From: Laszlo Ersek > Sent: Monday, July 13, 2020 9:02 PM > To: devel@edk2.groups.io; af...@apple.com; Wasim Khan > > Cc: Mike Kinney ; liming@intel.com; Leif > Lindholm (Nuvia address) > Subject: Re: [edk2-devel] [edk2-discuss] Need memory barriers in IoLib

[edk2-devel] [PATCH v3 11/11] Maintainers.txt: Add Gary Lin as the reviewer for LsiScsi driver

2020-07-17 Thread Gary Lin
Cc: Jordan Justen Cc: Laszlo Ersek Cc: Ard Biesheuvel Signed-off-by: Gary Lin Reviewed-by: Laszlo Ersek --- Maintainers.txt | 4 1 file changed, 4 insertions(+) diff --git a/Maintainers.txt b/Maintainers.txt index 32c9003a6209..075a8d0ea763 100644 --- a/Maintainers.txt +++

[edk2-devel] [PATCH v3 10/11] OvmfPkg/LsiScsiDxe: Process the SCSI Request Packet

2020-07-17 Thread Gary Lin
This is the second part of LsiScsiPassThru(). LsiScsiProcessRequest() is added to translate the SCSI Request Packet into the LSI 53C895A commands. This function utilizes the so-called Script buffer to transmit a series of commands to the chip and then polls the DMA Status (DSTAT) register until

[edk2-devel] [PATCH v3 06/11] OvmfPkg/LsiScsiDxe: Report Targets and LUNs

2020-07-17 Thread Gary Lin
Implement LsiScsiGetNextTargetLun(), LsiScsiBuildDevicePath(), LsiScsiGetTargetLun(), and LsiScsiGetNextTarget() to report Targets and LUNs and build the device path. This commit also introduces two PCD value: PcdLsiScsiMaxTargetLimit and PcdLsiScsiMaxLunLimit as the limits for Targets and LUNs.

[edk2-devel] [PATCH v3 07/11] OvmfPkg/LsiScsiDxe: Open PciIo protocol and initialize the device

2020-07-17 Thread Gary Lin
Open PciIo protocol and use it to initialize the device. The initialization of LSI 53C895A is simple: just set the SRST bit in Interrupt Status Zero register to reset the device. v2: - Use the BITx macros for the bit constants - Add the closing of PciIo protocol in LsiScsiControllerStop()

[edk2-devel] [PATCH v3 00/11] Introduce LsiScsi driver to OvmfPkg

2020-07-17 Thread Gary Lin
This patch series implement the driver for LSI 53C895A SCSI controller for OVMF so that the user can access the storage devices connected to QEMU "lsi" controller. The driver is disabled by default since LSI 53C895A is considered as a legacy device. To enable the driver, please add "-D

[edk2-devel] [PATCH v3 02/11] OvmfPkg/LsiScsiDxe: Install the skeleton of driver binding

2020-07-17 Thread Gary Lin
Implement the dummy functions for EFI Driver Binding protocol. v2: Remove "STATIC" from LsiScsiControllerSupported() Cc: Jordan Justen Cc: Laszlo Ersek Cc: Ard Biesheuvel Signed-off-by: Gary Lin Reviewed-by: Laszlo Ersek --- OvmfPkg/LsiScsiDxe/LsiScsi.c | 72

[edk2-devel] [PATCH v3 09/11] OvmfPkg/LsiScsiDxe: Examine the incoming SCSI Request Packet

2020-07-17 Thread Gary Lin
This is the first part of LsiScsiPassThru(). Before processing the SCSI Request packet, we have to make sure whether the packet is valid or not. v2: Make LsiScsiPassThru() return EFI_UNSUPPORTED since this function is half-implemented Cc: Jordan Justen Cc: Laszlo Ersek Cc: Ard Biesheuvel

[edk2-devel] [PATCH v3 03/11] OvmfPkg/LsiScsiDxe: Report the name of the driver

2020-07-17 Thread Gary Lin
Implement LsiScsiGetDriverName() and LsiScsiGetDeviceName() to report the name of the driver. Cc: Jordan Justen Cc: Laszlo Ersek Cc: Ard Biesheuvel Signed-off-by: Gary Lin Reviewed-by: Laszlo Ersek --- OvmfPkg/LsiScsiDxe/LsiScsi.c | 69 ++--

[edk2-devel] [PATCH v3 04/11] OvmfPkg/LsiScsiDxe: Probe PCI devices and look for LsiScsi

2020-07-17 Thread Gary Lin
Implement LsiScsiControllerSupported() to probe the PCI ID and look for LSI 53C895A. Cc: Jordan Justen Cc: Laszlo Ersek Cc: Ard Biesheuvel Signed-off-by: Gary Lin Reviewed-by: Laszlo Ersek --- OvmfPkg/Include/IndustryStandard/LsiScsi.h | 20 + OvmfPkg/LsiScsiDxe/LsiScsi.c

[edk2-devel] [PATCH v3 01/11] OvmfPkg/LsiScsiDxe: Create the empty driver

2020-07-17 Thread Gary Lin
Create the driver with only a dummy LsiScsiEntryPoint() for the further implementation of the driver for LSI 53C895A SCSI controller. v2: Fix the mixed-case GUID string Cc: Jordan Justen Cc: Laszlo Ersek Cc: Ard Biesheuvel Signed-off-by: Gary Lin Reviewed-by: Laszlo Ersek ---

[edk2-devel] [PATCH v3 08/11] OvmfPkg/LsiScsiDxe: Map DMA buffer

2020-07-17 Thread Gary Lin
Map DMA buffer and perpare for the implementation of LsiScsiPassThru(). v2: - Replace 0x1 with SIZE_64KB macro for the DMA buffer data array - Remove DUAL_ADDRESS_CYCLE from PciIo since we don't really need 64-bit DMA address Cc: Jordan Justen Cc: Laszlo Ersek Cc: Ard Biesheuvel

[edk2-devel] [PATCH v3 05/11] OvmfPkg/LsiScsiDxe: Install stubbed EXT_SCSI_PASS_THRU

2020-07-17 Thread Gary Lin
Partially implement LsiScsiControllerStart() and LsiScsiControllerStop() to insert the scaffolding of EXT_SCSI_PASS_THRU functions. v3: Squash the newline below the declaration of LSI_SCSI_FROM_PASS_THRU v2: Remove the closing of PciIo protocol from LsiScsiControllerStop(). Cc: Jordan Justen