]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/XhciDxe: Fix Broken Timeouts
authorPatrick Henz <patrick.henz@hpe.com>
Wed, 23 Sep 2020 19:36:03 +0000 (03:36 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 29 Sep 2020 01:28:58 +0000 (01:28 +0000)
commit71dd80f14f2724ccc99dd7d349b7392adf114019
treedaaaba88d0c97a2c69f3208362a7174a389c7c13
parent2793a49565488e419d10ba029c838f4b7efdba38
MdeModulePkg/XhciDxe: Fix Broken Timeouts

REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2948

Timeouts in the XhciDxe driver are taking longer than
expected due to the timeout loops not accounting for
code execution time. As en example, 5 second timeouts
have been observed to take around 36 seconds to complete.
Use SetTimer and Create/CheckEvent from Boot Services to
determine when timeout occurred.

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Signed-off-by: Patrick Henz <patrick.henz@hpe.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
MdeModulePkg/Bus/Pci/XhciDxe/XhciReg.c
MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c