From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.43, mailfrom: hao.a.wu@intel.com) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by groups.io with SMTP; Tue, 23 Apr 2019 01:06:34 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Apr 2019 01:06:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,385,1549958400"; d="scan'208";a="339945770" Received: from shwdeopenpsi014.ccr.corp.intel.com ([10.239.9.8]) by fmsmga006.fm.intel.com with ESMTP; 23 Apr 2019 01:06:32 -0700 From: "Wu, Hao A" To: devel@edk2.groups.io Cc: Hao Wu , Ray Ni , Eric Dong , Jian J Wang Subject: [PATCH v3 0/2] Add PEI BlockIO support for ATA AHCI mode devices Date: Tue, 23 Apr 2019 16:06:28 +0800 Message-Id: <20190423080630.14992-1-hao.a.wu@intel.com> X-Mailer: git-send-email 2.12.0.windows.1 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 Cc: Eric Dong Cc: Jian J Wang 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