audk/MdeModulePkg/Bus/Pci/XhciDxe
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
..
ComponentName.c MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
ComponentName.h MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
UsbHcMem.c MdeModulePkg/XhciDxe: Fix Aligned Page Allocation 2019-10-21 08:59:25 +08:00
UsbHcMem.h MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
Xhci.c MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
Xhci.h MdeModulePkg/XhciDxe: Use BaseLib linked list iteration macros 2020-04-21 02:20:51 +00:00
XhciDxe.inf MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
XhciDxe.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
XhciDxeExtra.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
XhciReg.c MdeModulePkg/XhciDxe: Fix Broken Timeouts 2020-09-29 01:28:58 +00:00
XhciReg.h MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
XhciSched.c MdeModulePkg/XhciDxe: Retry device slot init on failure 2020-11-02 01:30:24 +00:00
XhciSched.h MdeModulePkg/XhciDxe: Retry device slot init on failure 2020-11-02 01:30:24 +00:00