audk/MdeModulePkg
Jon Hunter 2363c69260 MdeModulePkg/XhciDxe: Retry device slot init on failure
With some super-speed USB mass storage devices it has been observed
that a USB transaction error may occur when attempting the set the
device address during enumeration.

According the the xHCI specification (section 4.6.5) ...

"A USB Transaction ErrorCompletion Code for an Address Device Command
 may be due to a Stall response from a device. Software should issue a
 Disable Slot Commandfor the Device Slot then an Enable Slot Command
 to recover from this error."

To fix this, retry the device slot initialization if it fails due to a
device error.

Change was verified using a superspeed mass storage device that was
occasionally failing to enumerate in UEFI. With this change this failure
to enumerate was resolved. This failure was also only seen in UEFI and not
in the OS.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Jeff Brasen <jbrasen@nvidia.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
2020-11-02 01:30:24 +00:00
..
Application MdeModulePkg/CapsuleApp: Fix spelling mistake 2020-08-07 18:53:01 +00:00
Bus MdeModulePkg/XhciDxe: Retry device slot init on failure 2020-11-02 01:30:24 +00:00
Core MdeModulePkg/Core: Support standalone MM in FV2 protocol GetNextFile(). 2020-10-29 05:29:42 +00:00
Include MdeModulePkg: Fix spelling mistake for occurred 2020-08-19 00:54:23 +00:00
Library MdeModulePkg: Fix constructor invocation ordering 2020-10-16 17:21:04 +00:00
Logo MdeModulePkg/Logo:Add RISCV64 architecture 2020-05-07 03:17:15 +00:00
Test MdeModulePkg: Add DxeResetSystemLib unit test 2020-02-07 19:18:53 +00:00
Universal MdeModulePkg/AcpiTableDxe: use pool allocation for RSDP if possible 2020-10-30 14:50:33 +00:00
MdeModulePkg.ci.yaml MdeModulePkg/MdeModulePkg.ci.yaml: Add configuration for Ecc check 2020-08-17 03:28:09 +00:00
MdeModulePkg.dec MdeModulePkg: Create PCDs to be used in support of SEV-ES 2020-08-16 16:45:42 +00:00
MdeModulePkg.dsc MdeModulePkg: Remove code wrapped by DISABLE_NEW_DEPRECATED_INTERFACES 2020-10-13 01:35:03 +00:00
MdeModulePkg.uni MdeModulePkg: Create PCDs to be used in support of SEV-ES 2020-08-16 16:45:42 +00:00
MdeModulePkgExtra.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00