summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c
diff options
context:
space:
mode:
authorhaword <zhenghaowei@loongson.cn>2026-10-16 05:09:03 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2026-10-21 07:58:42 +0300
commit705de24e39a093ceb57fd7372e697e73380e57fe (patch)
tree34dae9894c6ef6035a3412a7c82523e25fb4fe28 /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c
parent85854ac470a7e089758aee6fe0095c2c1881af29 (diff)
downloadedk2-705de24e39a093ceb57fd7372e697e73380e57fe.tar.xz
MdeModulePkg/UsbMassStorageDxe: Report blank optical media as media absent
A blank (unwritten) optical disc reports a zero capacity through READ CAPACITY (LastBlock == 0). The driver currently exposes such a device with BlockSize 2048 and LastBlock 0, so upper layers such as PartitionDxe and the BDS removable-media boot probe keep reading LBA 0. The drive rejects the read with "Illegal Request / LBA out of range" (sense 5/21/0) and UsbMassReadBlocks enters its reset recovery loop. So each failed probe can block for tens of seconds and boot appears to hang. Treat an optical device with zero capacity as media absent so that the media is skipped instead of being probed. Signed-off-by: Haword <zhenghaowei@loongson.cn>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c')
0 files changed, 0 insertions, 0 deletions