Re: [edk2-devel] [PATCH] BaseTools: Add RISCV64 binding

2020-09-28 Thread Nikita
: devel@edk2.groups.io; sh1r...@mail.si-head.nl >> 主题: Re: [edk2-devel] [PATCH] BaseTools: Add RISCV64 binding >> >> Acked-by: Abner Chang >> >>> -Original Message- >>> From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of >>>

[edk2-devel] [PATCH] BaseTools: Add RISCV64 binding

2020-09-22 Thread Nikita
- Add RISCV64 ProcessorBind.h - Add RISCV64 to Makefiles Signed-off-by: Nikita Ermakov --- BaseTools/Source/C/GNUmakefile| 3 + .../Source/C/Include/RiscV64/ProcessorBind.h | 85 +++ BaseTools/Source/C/Makefiles/header.makefile | 6 ++ 3 files changed, 94

[edk2-devel] [PATCH v6 07/12] OvmfPkg/MptScsiDxe: Build and decode DevicePath

2020-05-04 Thread Nikita Leshenko
Used to identify the individual disks in the hardware tree. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko Reviewed-by: Liran Alon Reviewed-by: Laszlo Ersek --- OvmfPkg/MptScsiDxe/MptScsi.c | 61 ++-- 1 file changed, 59

[edk2-devel] [PATCH v6 05/12] OvmfPkg/MptScsiDxe: Install stubbed EXT_SCSI_PASS_THRU

2020-05-04 Thread Nikita Leshenko
Support dynamic insertion and removal of the protocol Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko Reviewed-by: Laszlo Ersek --- OvmfPkg/MptScsiDxe/MptScsi.c | 181 +- OvmfPkg/MptScsiDxe/MptScsiDxe.inf | 5 +- 2

[edk2-devel] [PATCH v6 03/12] OvmfPkg/MptScsiDxe: Report name of driver

2020-05-04 Thread Nikita Leshenko
Install Component Name protocols to have a nice display name for the driver in places such as UEFI shell. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko Reviewed-by: Laszlo Ersek Reviewed-by: Jaben Carsey Reviewed-by: Liran Alon --- OvmfPkg/MptScsiDxe

[edk2-devel] [PATCH v6 11/12] OvmfPkg/MptScsiDxe: Implement the PassThru method

2020-05-04 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). Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko Reviewed-by: Laszlo Ersek

[edk2-devel] [PATCH v6 10/12] OvmfPkg/MptScsiDxe: Initialize hardware

2020-05-04 Thread Nikita Leshenko
technical manual for more information. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko --- .../Include/IndustryStandard/FusionMptScsi.h | 128 +++ OvmfPkg/MptScsiDxe/MptScsi.c | 198 +- 2 files changed, 325 inser

[edk2-devel] [PATCH v6 12/12] OvmfPkg/MptScsiDxe: Reset device on ExitBootServices()

2020-05-04 Thread Nikita Leshenko
This causes the device to forget about the reply frame. We allocated the reply frame in EfiBootServicesData type memory, and code executing after ExitBootServices() is permitted to overwrite it. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko Reviewed-by

[edk2-devel] [PATCH v6 08/12] OvmfPkg/MptScsiDxe: Open PciIo protocol for later use

2020-05-04 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. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko Reviewed-by: Liran Alon Reviewed-by: Laszlo Ersek --- OvmfPkg/MptScsiDxe/MptScsi.c | 30

[edk2-devel] [PATCH v6 09/12] OvmfPkg/MptScsiDxe: Set and restore PCI attributes

2020-05-04 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. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko Reviewed-by: Liran Alon Reviewed-by: Laszlo Ersek --- OvmfPkg

[edk2-devel] [PATCH v6 01/12] OvmfPkg/MptScsiDxe: Create empty driver

2020-05-04 Thread Nikita Leshenko
In preparation for implementing LSI Fusion MPT SCSI devices, create a basic scaffolding for a driver. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko Reviewed-by: Liran Alon Reviewed-by: Laszlo Ersek --- Maintainers.txt | 3

[edk2-devel] [PATCH v6 04/12] OvmfPkg/MptScsiDxe: Probe PCI devices and look for MptScsi

2020-05-04 Thread Nikita Leshenko
/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko Reviewed-by: Laszlo Ersek Reviewed-by: Liran Alon --- .../Include/IndustryStandard/FusionMptScsi.h | 23 + OvmfPkg/MptScsiDxe/MptScsi.c | 49 ++- OvmfPkg/MptScsiDxe/MptScsiDxe.inf | 5 ++ 3

[edk2-devel] [PATCH v6 02/12] OvmfPkg/MptScsiDxe: Install DriverBinding Protocol

2020-05-04 Thread Nikita Leshenko
In order to probe and connect to the MptScsi device we need this protocol. Currently it does nothing. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko Reviewed-by: Laszlo Ersek Reviewed-by: Liran Alon --- OvmfPkg/MptScsiDxe/MptScsi.c | 67

[edk2-devel] [PATCH v6 00/12] OvmfPkg: Support booting from Fusion-MPT SCSI controllers

2020-05-04 Thread Nikita Leshenko
d various code convention issues - Newer debug macros - Updated INF version Thanks, Nikita Nikita Leshenko (12): OvmfPkg/MptScsiDxe: Create empty driver OvmfPkg/MptScsiDxe: Install DriverBinding Protocol OvmfPkg/MptScsiDxe: Report name of driver OvmfPkg/MptScsiDxe: Probe PCI devices and l

[edk2-devel] [PATCH v6 06/12] OvmfPkg/MptScsiDxe: Report targets and one LUN

2020-05-04 Thread Nikita Leshenko
. Support for multiple LUNs will be implemented in another series. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko Reviewed-by: Laszlo Ersek --- OvmfPkg/MptScsiDxe/MptScsi.c | 63 ++- OvmfPkg/MptScsiDxe/MptScsiDxe.inf | 5

Re: [edk2-devel] [PATCH v5 11/12] OvmfPkg/MptScsiDxe: Implement the PassThru method

2020-05-04 Thread Nikita Leshenko
> On 30 Apr 2020, at 12:47, Laszlo Ersek wrote: > > On 04/24/20 19:59, Nikita Leshenko wrote: >> Machines should be able to boot after this commit. Tested with different >> Linux distributions (Ubuntu, CentOS) and different Windows >> versions (Windows 7, Windows 1

Re: [edk2-devel] [PATCH v5 10/12] OvmfPkg/MptScsiDxe: Initialize hardware

2020-05-04 Thread Nikita Leshenko
> On 29 Apr 2020, at 17:55, Laszlo Ersek wrote: > > On 04/24/20 19:59, Nikita Leshenko wrote: >> [...] >> +STATIC >> +EFI_STATUS >> +MptScsiInit ( >> + IN MPT_SCSI_DEV *Dev >> + ) >> +{ >> + EFI_STATUS

Re: [edk2-devel] [PATCH v5 03/12] OvmfPkg/MptScsiDxe: Report name of driver

2020-04-25 Thread Nikita Leshenko
vel/message/36232 > > One comment inline below. > >> -Original Message- >> From: devel@edk2.groups.io On Behalf Of Nikita >> Leshenko >> Sent: Friday, April 24, 2020 10:59 AM >> To: devel@edk2.groups.io >> Cc: Nikita Leshenko ; >> liran.a...@or

[edk2-devel] [PATCH v5 05/12] OvmfPkg/MptScsiDxe: Install stubbed EXT_SCSI_PASS_THRU

2020-04-24 Thread Nikita Leshenko
Support dynamic insertion and removal of the protocol Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko Reviewed-by: Laszlo Ersek --- OvmfPkg/MptScsiDxe/MptScsi.c | 181 +- OvmfPkg/MptScsiDxe/MptScsiDxe.inf | 5 +- 2

[edk2-devel] [PATCH v5 02/12] OvmfPkg/MptScsiDxe: Install DriverBinding Protocol

2020-04-24 Thread Nikita Leshenko
In order to probe and connect to the MptScsi device we need this protocol. Currently it does nothing. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko Reviewed-by: Laszlo Ersek Reviewed-by: Liran Alon --- OvmfPkg/MptScsiDxe/MptScsi.c | 67

[edk2-devel] [PATCH v5 12/12] OvmfPkg/MptScsiDxe: Reset device on ExitBootServices()

2020-04-24 Thread Nikita Leshenko
This causes the device to forget about the reply frame. We allocated the reply frame in EfiBootServicesData type memory, and code executing after ExitBootServices() is permitted to overwrite it. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko Reviewed-by

[edk2-devel] [PATCH v5 00/12] OvmfPkg: Support booting from Fusion-MPT SCSI controllers

2020-04-24 Thread Nikita Leshenko
gt;v2: - Map() DMAed buffers - Fixed various code convention issues - Newer debug macros - Updated INF version Thanks, Nikita Nikita Leshenko (12): OvmfPkg/MptScsiDxe: Create empty driver OvmfPkg/MptScsiDxe: Install DriverBinding Protocol OvmfPkg/MptScsiDxe: Report name of driver OvmfPk

[edk2-devel] [PATCH v5 06/12] OvmfPkg/MptScsiDxe: Report targets and one LUN

2020-04-24 Thread Nikita Leshenko
. Support for multiple LUNs will be implemented in another series. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko --- OvmfPkg/MptScsiDxe/MptScsi.c | 62 ++- OvmfPkg/MptScsiDxe/MptScsiDxe.inf | 4 ++ OvmfPkg/OvmfPkg.dec

[edk2-devel] [PATCH v5 11/12] OvmfPkg/MptScsiDxe: Implement the PassThru method

2020-04-24 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). Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko --- .../Include

[edk2-devel] [PATCH v5 01/12] OvmfPkg/MptScsiDxe: Create empty driver

2020-04-24 Thread Nikita Leshenko
In preparation for implementing LSI Fusion MPT SCSI devices, create a basic scaffolding for a driver. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko Reviewed-by: Liran Alon Reviewed-by: Laszlo Ersek --- Maintainers.txt | 3

[edk2-devel] [PATCH v5 10/12] OvmfPkg/MptScsiDxe: Initialize hardware

2020-04-24 Thread Nikita Leshenko
technical manual for more information. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko --- .../Include/IndustryStandard/FusionMptScsi.h | 128 OvmfPkg/MptScsiDxe/MptScsi.c | 187 +- 2 files changed, 314 inser

[edk2-devel] [PATCH v5 09/12] OvmfPkg/MptScsiDxe: Set and restore PCI attributes

2020-04-24 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. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko Reviewed-by: Liran Alon Reviewed-by: Laszlo Ersek --- OvmfPkg

[edk2-devel] [PATCH v5 04/12] OvmfPkg/MptScsiDxe: Probe PCI devices and look for MptScsi

2020-04-24 Thread Nikita Leshenko
/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko Reviewed-by: Laszlo Ersek Reviewed-by: Liran Alon --- .../Include/IndustryStandard/FusionMptScsi.h | 23 + OvmfPkg/MptScsiDxe/MptScsi.c | 49 ++- OvmfPkg/MptScsiDxe/MptScsiDxe.inf | 5 ++ 3

[edk2-devel] [PATCH v5 03/12] OvmfPkg/MptScsiDxe: Report name of driver

2020-04-24 Thread Nikita Leshenko
Install Component Name protocols to have a nice display name for the driver in places such as UEFI shell. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko Reviewed-by: Laszlo Ersek Reviewed-by: Jaben Carsey Reviewed-by: Liran Alon --- OvmfPkg/MptScsiDxe

[edk2-devel] [PATCH v5 08/12] OvmfPkg/MptScsiDxe: Open PciIo protocol for later use

2020-04-24 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. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko Reviewed-by: Liran Alon Reviewed-by: Laszlo Ersek --- OvmfPkg/MptScsiDxe/MptScsi.c | 30

[edk2-devel] [PATCH v5 07/12] OvmfPkg/MptScsiDxe: Build and decode DevicePath

2020-04-24 Thread Nikita Leshenko
Used to identify the individual disks in the hardware tree. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko Reviewed-by: Liran Alon Reviewed-by: Laszlo Ersek --- OvmfPkg/MptScsiDxe/MptScsi.c | 61 ++-- 1 file changed, 59

Re: [edk2-devel] [PATCH v4 11/13] OvmfPkg/MptScsiDxe: Implement the PassThru method

2020-04-24 Thread Nikita Leshenko
> On 20 Apr 2020, at 20:30, Laszlo Ersek wrote: > > On 04/14/20 19:38, Nikita Leshenko wrote: >> Machines should be able to boot after this commit. Tested with different >> Linux distributions (Ubuntu, CentOS) and different Windows >> versions (Windows 7, Windows 1

Re: [edk2-devel] [PATCH v4 10/13] OvmfPkg/MptScsiDxe: Initialize hardware

2020-04-16 Thread Nikita Leshenko
> On 16 Apr 2020, at 12:53, Laszlo Ersek wrote: > > On 04/14/20 19:38, Nikita Leshenko wrote: >> 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&#

[edk2-devel] [PATCH v4 07/13] OvmfPkg/MptScsiDxe: Build and decode DevicePath

2020-04-14 Thread Nikita Leshenko
Used to identify the individual disks in the hardware tree. Currently we accept only Pun=0 and Lun=0, but we will relax this in a later patch. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko Reviewed-by: Liran Alon --- OvmfPkg/MptScsiDxe/MptScsi.c | 57

[edk2-devel] [PATCH v4 04/13] OvmfPkg/MptScsiDxe: Probe PCI devices and look for MptScsi

2020-04-14 Thread Nikita Leshenko
/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko Reviewed-by: Laszlo Ersek Reviewed-by: Liran Alon --- .../Include/IndustryStandard/FusionMptScsi.h | 23 + OvmfPkg/MptScsiDxe/MptScsi.c | 49 ++- OvmfPkg/MptScsiDxe/MptScsiDxe.inf | 5 ++ 3

[edk2-devel] [PATCH v4 08/13] OvmfPkg/MptScsiDxe: Open PciIo protocol for later use

2020-04-14 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. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko Reviewed-by: Liran Alon --- OvmfPkg/MptScsiDxe/MptScsi.c | 30

[edk2-devel] [PATCH v4 05/13] OvmfPkg/MptScsiDxe: Install stubbed EXT_SCSI_PASS_THRU

2020-04-14 Thread Nikita Leshenko
Support dynamic insertion and removal of the protocol Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko Reviewed-by: Laszlo Ersek --- OvmfPkg/MptScsiDxe/MptScsi.c | 181 +- OvmfPkg/MptScsiDxe/MptScsiDxe.inf | 5 +- 2

[edk2-devel] [PATCH v4 06/13] OvmfPkg/MptScsiDxe: Report one Target and one LUN

2020-04-14 Thread Nikita Leshenko
Support for multiple targets will be implemented in a later commit in this series. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko Reviewed-by: Laszlo Ersek --- OvmfPkg/MptScsiDxe/MptScsi.c | 40 +-- OvmfPkg/MptScsiDxe

[edk2-devel] [PATCH v4 09/13] OvmfPkg/MptScsiDxe: Set and restore PCI attributes

2020-04-14 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. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko Reviewed-by: Liran Alon --- OvmfPkg/MptScsiDxe/MptScsi.c | 42

[edk2-devel] [PATCH v4 13/13] OvmfPkg/MptScsiDxe: Reset device on ExitBootServices()

2020-04-14 Thread Nikita Leshenko
This causes the device to forget about the reply frame. We allocated the reply frame in EfiBootServicesData type memory, and code executing after ExitBootServices() is permitted to overwrite it. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko --- OvmfPkg

[edk2-devel] [PATCH v4 02/13] OvmfPkg/MptScsiDxe: Install DriverBinding Protocol

2020-04-14 Thread Nikita Leshenko
In order to probe and connect to the MptScsi device we need this protocol. Currently it does nothing. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko Reviewed-by: Laszlo Ersek Reviewed-by: Liran Alon --- OvmfPkg/MptScsiDxe/MptScsi.c | 67

[edk2-devel] [PATCH v4 00/13] OvmfPkg: Support booting from Fusion-MPT SCSI controllers

2020-04-14 Thread Nikita Leshenko
v1->v2: - Map() DMAed buffers - Fixed various code convention issues - Newer debug macros - Updated INF version Thanks, Nikita Nikita Leshenko (13): OvmfPkg/MptScsiDxe: Create empty driver OvmfPkg/MptScsiDxe: Install DriverBinding Protocol OvmfPkg/MptScsiDxe: Report name of driver OvmfPkg/M

[edk2-devel] [PATCH v4 12/13] OvmfPkg/MptScsiDxe: Report multiple targets

2020-04-14 Thread Nikita Leshenko
multiple LUNs will be implemented in another series. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko Reviewed-by: Liran Alon --- OvmfPkg/MptScsiDxe/MptScsi.c | 38 --- OvmfPkg/MptScsiDxe/MptScsiDxe.inf | 1 + OvmfPkg

[edk2-devel] [PATCH v4 10/13] OvmfPkg/MptScsiDxe: Initialize hardware

2020-04-14 Thread Nikita Leshenko
technical manual for more information. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko --- .../Include/IndustryStandard/FusionMptScsi.h | 123 + OvmfPkg/MptScsiDxe/MptScsi.c | 173 +- 2 files changed, 295 inser

[edk2-devel] [PATCH v4 11/13] OvmfPkg/MptScsiDxe: Implement the PassThru method

2020-04-14 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). Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko --- .../Include

[edk2-devel] [PATCH v4 03/13] OvmfPkg/MptScsiDxe: Report name of driver

2020-04-14 Thread Nikita Leshenko
Install Component Name protocols to have a nice display name for the driver in places such as UEFI shell. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko Reviewed-by: Laszlo Ersek Reviewed-by: Jaben Carsey Reviewed-by: Liran Alon --- OvmfPkg/MptScsiDxe

[edk2-devel] [PATCH v4 01/13] OvmfPkg/MptScsiDxe: Create empty driver

2020-04-14 Thread Nikita Leshenko
In preparation for implementing LSI Fusion MPT SCSI devices, create a basic scaffolding for a driver. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko Reviewed-by: Liran Alon --- Maintainers.txt | 3 ++- OvmfPkg/MptScsiDxe/MptScsi.c

Re: [edk2-devel] [PATCH] Maintainers.txt: Add Liran and Nikita as OvmfPkg/PvScsiDxe reviewers

2020-03-31 Thread Nikita Leshenko
> On 31 Mar 2020, at 14:02, Liran Alon wrote: > > Laszlo suggested that as I have contributed the OvmfPkg PVSCSI driver, I > will also register myself as a reviewer in Maintainers.txt. > > In addition, as Nikita have assisted the development of the PVSCSI > driver and h

Re: [edk2-devel] [PATCH v3 00/17] OvmfPkg: Support booting from VMware PVSCSI controller

2020-03-29 Thread Nikita Leshenko
or completely fail and free all resources. [Laszlo] > * Changed PvScsiWriteCmdDesc() to use EfiPciIoWidthFifoUint32. [Laszlo] > * Changed PvScsiWriteCmdDesc() prototype to make clear it descriptor must be > an array of words. [Laszlo] > The entire series looks good to me: Re

[edk2-devel] [PATCH v3 12/13] OvmfPkg/MptScsiDxe: Implement the PassThru method

2020-03-04 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). Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko --- .../Include

[edk2-devel] [PATCH v3 13/13] OvmfPkg/MptScsiDxe: Report multiple targets

2020-03-04 Thread Nikita Leshenko
multiple LUNs will be implemented in another series. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko --- OvmfPkg/MptScsiDxe/MptScsi.c | 44 --- OvmfPkg/MptScsiDxe/MptScsiDxe.inf | 1 + OvmfPkg/OvmfPkg.dec

[edk2-devel] [PATCH v3 11/13] OvmfPkg/MptScsiDxe: Initialize hardware

2020-03-04 Thread Nikita Leshenko
technical manual for more information. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko --- .../Include/IndustryStandard/FusionMptScsi.h | 115 OvmfPkg/MptScsiDxe/MptScsi.c | 168 ++ 2 files changed, 283 inserti

[edk2-devel] [PATCH v3 10/13] OvmfPkg/MptScsiDxe: Set and restore PCI attributes

2020-03-04 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. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko --- OvmfPkg/MptScsiDxe/MptScsi.c | 42

[edk2-devel] [PATCH v3 04/13] OvmfPkg/MptScsiDxe: Probe PCI devices and look for MptScsi

2020-03-04 Thread Nikita Leshenko
/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko Reviewed-by: Laszlo Ersek --- .../Include/IndustryStandard/FusionMptScsi.h | 29 +++ OvmfPkg/MptScsiDxe/MptScsi.c | 49 ++- OvmfPkg/MptScsiDxe/MptScsiDxe.inf | 5 ++ 3 files changed, 82

[edk2-devel] [PATCH v3 09/13] OvmfPkg/MptScsiDxe: Open PciIo protocol for later use

2020-03-04 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. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko --- OvmfPkg/MptScsiDxe/MptScsi.c | 30 +- 1 file changed, 29

[edk2-devel] [PATCH v3 07/13] OvmfPkg/MptScsiDxe: Build DevicePath for discovered devices

2020-03-04 Thread Nikita Leshenko
Used to identify the individual disks in the hardware tree Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko --- OvmfPkg/MptScsiDxe/MptScsi.c | 29 - 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/OvmfPkg

[edk2-devel] [PATCH v3 03/13] OvmfPkg/MptScsiDxe: Report name of driver

2020-03-04 Thread Nikita Leshenko
Install Component Name protocols to have a nice display name for the driver in places such as UEFI shell. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko Reviewed-by: Laszlo Ersek Reviewed-by: Jaben Carsey --- OvmfPkg/MptScsiDxe/MptScsi.c | 61

[edk2-devel] [PATCH v3 05/13] OvmfPkg/MptScsiDxe: Install stubbed EXT_SCSI_PASS_THRU

2020-03-04 Thread Nikita Leshenko
Support dynamic insertion and removal of the protocol Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko Reviewed-by: Laszlo Ersek --- OvmfPkg/MptScsiDxe/MptScsi.c | 179 +- OvmfPkg/MptScsiDxe/MptScsiDxe.inf | 5 +- 2

[edk2-devel] [PATCH v3 00/13] OvmfPkg: Support booting from Fusion-MPT SCSI controllers

2020-03-04 Thread Nikita Leshenko
ffers - Fixed various code convention issues - Newer debug macros - Updated INF version Thanks, Nikita Nikita Leshenko (13): OvmfPkg/MptScsiDxe: Create empty driver OvmfPkg/MptScsiDxe: Install DriverBinding Protocol OvmfPkg/MptScsiDxe: Report name of driver OvmfPkg/MptScsiDxe: Probe PCI

[edk2-devel] [PATCH v3 02/13] OvmfPkg/MptScsiDxe: Install DriverBinding Protocol

2020-03-04 Thread Nikita Leshenko
In order to probe and connect to the MptScsi device we need this protocol. Currently it does nothing. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko Reviewed-by: Laszlo Ersek --- OvmfPkg/MptScsiDxe/MptScsi.c | 68

[edk2-devel] [PATCH v3 08/13] OvmfPkg/MptScsiDxe: Implement GetTargetLun

2020-03-04 Thread Nikita Leshenko
Currently we accept only Pun=0 and Lun=0, but we will relax this in a later patch. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko --- OvmfPkg/MptScsiDxe/MptScsi.c | 28 +++- 1 file changed, 27 insertions(+), 1 deletion(-) diff

[edk2-devel] [PATCH v3 06/13] OvmfPkg/MptScsiDxe: Report one Target and one LUN

2020-03-04 Thread Nikita Leshenko
Support for multiple targets will be implemented in a later commit in this series. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko Reviewed-by: Laszlo Ersek --- OvmfPkg/MptScsiDxe/MptScsi.c | 38 +-- OvmfPkg/MptScsiDxe

[edk2-devel] [PATCH v3 01/13] OvmfPkg/MptScsiDxe: Create empty driver

2020-03-04 Thread Nikita Leshenko
In preparation for implementing LSI Fusion MPT SCSI devices, create a basic scaffolding for a driver. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Signed-off-by: Nikita Leshenko --- OvmfPkg/MptScsiDxe/MptScsi.c | 30 + OvmfPkg/MptScsiDxe

[edk2-devel] [PATCH v2 00/13] OvmfPkg: Support booting from Fusion-MPT SCSI controllers

2020-02-26 Thread Nikita Leshenko
PVSCSI which we will submit in a separate patch series. I pushed a copy of these patches to https://github.com/nikital/edk2/tree/mptscsi v1->v2: - Map() DMAed buffers - Fixed various code convention issues - Newer debug macros - Updated INF version Thanks, Nik

[edk2-devel] [PATCH v2 13/13] OvmfPkg/MptScsiDxe: Report multiple targets

2020-02-26 Thread Nikita Leshenko
multiple LUNs will be implemented in another series. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 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

[edk2-devel] [PATCH v2 12/13] OvmfPkg/MptScsiDxe: Implement the PassThru method

2020-02-26 Thread Nikita Leshenko
Signed-off-by: Nikita Leshenko Reviewed-by: Aaron Young Reviewed-by: Liran Alon --- .../Include/IndustryStandard/FusionMptScsi.h | 17 + OvmfPkg/MptScsiDxe/MptScsi.c | 335 +- OvmfPkg/MptScsiDxe/MptScsiDxe.inf | 3 + OvmfPkg/OvmfPkg.dec

[edk2-devel] [PATCH v2 08/13] OvmfPkg/MptScsiDxe: Implement GetTargetLun

2020-02-26 Thread Nikita Leshenko
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 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 | 13 - 1 file

[edk2-devel] [PATCH v2 10/13] OvmfPkg/MptScsiDxe: Set and restore PCI attributes

2020-02-26 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. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Nikita Leshenko Reviewed

[edk2-devel] [PATCH v2 02/13] OvmfPkg/MptScsiDxe: Install DriverBinding Protocol

2020-02-26 Thread Nikita Leshenko
In order to probe and connect to the MptScsi device we need this protocol. Currently it does nothing. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Nikita Leshenko Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by

[edk2-devel] [PATCH v2 07/13] OvmfPkg/MptScsiDxe: Build DevicePath for discovered devices

2020-02-26 Thread Nikita Leshenko
Used to identify the individual disks in the hardware tree Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 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-devel] [PATCH v2 04/13] OvmfPkg/MptScsiDxe: Probe PCI devices and look for MptScsi

2020-02-26 Thread Nikita Leshenko
/show_bug.cgi?id=2390 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 --- .../Include/IndustryStandard/FusionMptScsi.h | 24 + OvmfPkg/MptScsiDxe/MptScsi.c

[edk2-devel] [PATCH v2 03/13] OvmfPkg/MptScsiDxe: Report name of driver

2020-02-26 Thread Nikita Leshenko
Install Component Name protocols to have a nice display name for the driver in places such as UEFI shell. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Nikita Leshenko Reviewed-by: Konrad Rzeszutek Wilk Reviewed

[edk2-devel] [PATCH v2 09/13] OvmfPkg/MptScsiDxe: Open PciIo protocol for later use

2020-02-26 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. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Nikita Leshenko Reviewed-by: Konrad Rzeszutek Wilk

[edk2-devel] [PATCH v2 01/13] OvmfPkg/MptScsiDxe: Create empty driver

2020-02-26 Thread Nikita Leshenko
In preparation for implementing LSI Fusion MPT SCSI devices, create a basic scaffolding for a driver. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Nikita Leshenko Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by

[edk2-devel] [PATCH v2 11/13] OvmfPkg/MptScsiDxe: Initialize hardware

2020-02-26 Thread Nikita Leshenko
technical manual for more information. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Nikita Leshenko Reviewed-by: Aaron Young Reviewed-by: Liran Alon --- .../Include/IndustryStandard/FusionMptScsi.h | 115 +

[edk2-devel] [PATCH v2 05/13] OvmfPkg/MptScsiDxe: Install stubbed EXT_SCSI_PASS_THRU

2020-02-26 Thread Nikita Leshenko
Support dynamic insertion and removal of the protocol Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 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-devel] [PATCH v2 06/13] OvmfPkg/MptScsiDxe: Report one Target and one LUN

2020-02-26 Thread Nikita Leshenko
Support for multiple targets will be implemented in a later commit in this series. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Nikita Leshenko Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by: Aaron Young