DXGKDDI_RESETFROMTIMEOUT callback function

The DxgkDdiResetFromTimeout function resets the graphics processing unit (GPU) after a hardware timeout occurs and guarantees that the GPU is not writing or reading any memory by the time that DxgkDdiResetFromTimeout returns.

Syntax

DXGKDDI_RESETFROMTIMEOUT DxgkddiResetfromtimeout;

NTSTATUS DxgkddiResetfromtimeout(
  IN_CONST_HANDLE hAdapter
)
{...}

Parameters

hAdapter

[in] A handle to a context block that is associated with a display adapter. The display miniport driver previously provided this handle to the Microsoft DirectX graphics kernel subsystem in the MiniportDeviceContext output parameter of the DxgkDdiAddDevice function.

Return Value

DxgkDdiResetFromTimeout returns STATUS_SUCCESS to indicate that the driver handled the call successfully; otherwise, the operating system bug checks and causes a restart.

Remarks

The GPU scheduler calls DxgkDdiResetFromTimeout when it detects that a hardware time-out occurred. The time-out is typically a delayed response to a preempt request. DxgkDdiResetFromTimeout should reset the GPU.

For more information about time-outs in this situation, see Thread Synchronization and TDR.

DxgkDdiResetFromTimeout should be made pageable.

Requirements

   
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Target Platform Desktop
Header d3dkmddi.h
IRQL PASSIVE_LEVEL

See Also

DxgkDdiAddDevice

DxgkDdiReleaseSwizzlingRange

DxgkDdiRestartFromTimeout