]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/SdMmc: update TPL to notify to fix UEFI SCT hang
authorFeng Tian <feng.tian@intel.com>
Wed, 22 Jun 2016 08:21:35 +0000 (16:21 +0800)
committerFeng Tian <feng.tian@intel.com>
Fri, 1 Jul 2016 06:44:47 +0000 (14:44 +0800)
commit3b1d8241d0dac25c5e678c364fa2754ac1731060
tree874284eee06eca9933166cf9227c905fbc969495
parente1f3583409e7fa5041be829440f0139b1a70c3c4
MdeModulePkg/SdMmc: update TPL to notify to fix UEFI SCT hang

We have to upgrade the TPL level used by SdMmc stack because the
following flow:

DiskIo2ReadWriteDisk() in logical partition -> PartitionReadBlocksEx()
in logical partition at TPL callback level -> ProbeMediaStatusEx()
with sync request -> DiskIo2ReadWriteDisk() in physical partition ->
 waiting for async task completion.

if the low layer driver doesn't run at TPL_NOTIFY level, it will have
no time to trigger async task and cause system hang.

Cc: Hao Wu <hao.a.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.c
MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHci.c
MdeModulePkg/Bus/Sd/EmmcDxe/EmmcBlockIo.c
MdeModulePkg/Bus/Sd/SdDxe/SdBlockIo.c
MdeModulePkg/Bus/Sd/SdDxe/SdDxe.c