Advanced Micro Devices, Inc.
Hang detection for virtualized accelerated processing device
Last updated:
Abstract:
A technique for recovering from a hang in a virtualized accelerated processing device ("APD") is provided. In the virtualization scheme, different virtual machines are assigned different "time-slices" in which to use the APD. When a time-slice expires, the APD stops operations for a current VM and starts operations for another VM. To stop operations on the APD, a virtualization scheduler sends a request to idle the APD. The APD responds by completing work and idling. If one or more portions of the APD do not complete this idling process before a timeout expires, then a hang occurs. In response to the hang, the virtualization scheduler informs the hypervisor that a hang has occurred. The hypervisor performs a function level reset on the APD and informs the VM that the hang has occurred. The VM responds by stopping command issue to the APD and re-initializing the APD for the function.
Utility
28 Jul 2017
23 Nov 2021