audk/MdeModulePkg/Bus/Pci/SdMmcPciHcDxe
Ard Biesheuvel 6743455e34 MdeModulePkg/SdMmcPciHcDxe: call SdMmcFreeTrb() to complete sync operation
Currently, we complete a synchronous operation without unmapping the
DMA mappings, and free the pages using FreePages () rather than calling
EFI_PCI_IO_PROTOCOL::FreeBuffer. This is simply incorrect, but it also
breaks non-coherent DMA as well as DMA protection and/or memory encryption
so let's do it correctly and call SdMmcFreeTrb() instead.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
2017-11-06 10:33:02 +00:00
..
ComponentName.c MdeModulePkg/SdMmc: Add EDKII SD/MMC stack 2016-03-30 11:27:41 +08:00
EmmcDevice.c MdeModulePkg/SdMmc: Add break to avoid dead loop when polling OCR Reg 2017-03-13 21:41:46 +08:00
SdDevice.c MdeModulePkg/SdMmc: Add break to avoid dead loop when polling OCR Reg 2017-03-13 21:41:46 +08:00
SdMmcPciHcDxe.c MdeModulePkg/SdMmcPciHcDxe: call SdMmcFreeTrb() to complete sync operation 2017-11-06 10:33:02 +00:00
SdMmcPciHcDxe.h MdeModulePkg/SdMmcPciHcDxe: break cmd exec if the card isn't identified 2016-05-06 16:09:58 +08:00
SdMmcPciHcDxe.inf MdeModulePkg/SdMmc: Add EDKII SD/MMC stack 2016-03-30 11:27:41 +08:00
SdMmcPciHcDxe.uni MdeModulePkg/SdMmc: Add EDKII SD/MMC stack 2016-03-30 11:27:41 +08:00
SdMmcPciHcDxeExtra.uni MdeModulePkg/SdMmc: Add EDKII SD/MMC stack 2016-03-30 11:27:41 +08:00
SdMmcPciHci.c MdeModulePkg/SdMmc: Avoid assigning 0 to the BlockSize of Trb 2017-02-21 09:26:08 +08:00
SdMmcPciHci.h MdeModulePkg/SdMmc: Add EDKII SD/MMC stack 2016-03-30 11:27:41 +08:00