[edk2-devel] [PATCH v3 0/2] Add PEI BlockIO support for ATA AHCI mode devices

Wu, Hao A posted 2 patches 4 years, 12 months ago
Failed in applying to current master (apply log)
MdeModulePkg/Bus/Ata/AhciPei/AhciPei.inf      |   4 +
MdeModulePkg/Bus/Ata/AhciPei/AhciPei.h        |  30 ++
MdeModulePkg/Bus/Ata/AhciPei/AhciPeiBlockIo.h | 257 ++++++++++
MdeModulePkg/Bus/Ata/AhciPei/AhciMode.c       | 126 ++++-
MdeModulePkg/Bus/Ata/AhciPei/AhciPei.c        |  35 ++
MdeModulePkg/Bus/Ata/AhciPei/AhciPeiBlockIo.c | 516 ++++++++++++++++++++
6 files changed, 967 insertions(+), 1 deletion(-)
create mode 100644 MdeModulePkg/Bus/Ata/AhciPei/AhciPeiBlockIo.h
create mode 100644 MdeModulePkg/Bus/Ata/AhciPei/AhciPeiBlockIo.c
[edk2-devel] [PATCH v3 0/2] Add PEI BlockIO support for ATA AHCI mode devices
Posted by Wu, Hao A 4 years, 12 months ago
The series is also available at:
https://github.com/hwu25/edk2/tree/ahci_pei_blockio_v3

V3 changes:
A. Update the comment for definition 'MAX_48BIT_TRANSFER_BLOCK_NUM'.

B. Add 'EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST' attribute for
   mAhciAtaPassThruPpiListTemplate/mAhciBlkIoPpiListTemplate. This will
   make the installation of AtaPassThruPpi and BlkIo(2)Ppi seperate from
   each other, thus making the code logic more straightforward.

C. Abstract the shared codes (validity check on 'DeviceIndex') in
   * AhciBlockIoGetMediaInfo()
   * AhciBlockIoReadBlocks()
   * AhciBlockIoGetMediaInfo2()
   into function SearchDeviceByIndex().


V2 history:

Due to the file license change, rebase the whole series onto the tip of
the master branch. The 'Contributed-under' tag is removed from the log
messages as well.

V1 history:

The series will add the PEI BlockIO support for ATA AHCI mode devices.

Cc: Ray Ni <ray.ni@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>

Hao Wu (2):
  MdeModulePkg/AhciPei: Limit max transfer blocknum for 48-bit address
  MdeModulePkg/AhciPei: Add PEI BlockIO support

 MdeModulePkg/Bus/Ata/AhciPei/AhciPei.inf      |   4 +
 MdeModulePkg/Bus/Ata/AhciPei/AhciPei.h        |  30 ++
 MdeModulePkg/Bus/Ata/AhciPei/AhciPeiBlockIo.h | 257 ++++++++++
 MdeModulePkg/Bus/Ata/AhciPei/AhciMode.c       | 126 ++++-
 MdeModulePkg/Bus/Ata/AhciPei/AhciPei.c        |  35 ++
 MdeModulePkg/Bus/Ata/AhciPei/AhciPeiBlockIo.c | 516 ++++++++++++++++++++
 6 files changed, 967 insertions(+), 1 deletion(-)
 create mode 100644 MdeModulePkg/Bus/Ata/AhciPei/AhciPeiBlockIo.h
 create mode 100644 MdeModulePkg/Bus/Ata/AhciPei/AhciPeiBlockIo.c

-- 
2.12.0.windows.1


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#39407): https://edk2.groups.io/g/devel/message/39407
Mute This Topic: https://groups.io/mt/31306789/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-