XGMI Functions

XGMI Functions#

AMD SMI: XGMI Functions
XGMI Functions

Functions

amdsmi_status_t amdsmi_dev_xgmi_error_status (amdsmi_device_handle device_handle, amdsmi_xgmi_status_t *status)
 Retrieve the XGMI error status for a device. More...
 
amdsmi_status_t amdsmi_dev_reset_xgmi_error (amdsmi_device_handle device_handle)
 Reset the XGMI error status for a device. More...
 

Detailed Description

These functions are used to configure, query and control XGMI.

Function Documentation

◆ amdsmi_dev_xgmi_error_status()

amdsmi_status_t amdsmi_dev_xgmi_error_status ( amdsmi_device_handle  device_handle,
amdsmi_xgmi_status_t status 
)

Retrieve the XGMI error status for a device.

Given a device handle device_handle, and a pointer to an amdsmi_xgmi_status_t status, this function will write the current XGMI error state amdsmi_xgmi_status_t for the device device_handle to the memory pointed to by status.

Parameters
[in]device_handlea device handle
[in,out]statusA pointer to an amdsmi_xgmi_status_t to which the XGMI error state should be written If this parameter is nullptr, this function will return AMDSMI_STATUS_INVAL if the function is supported with the provided, arguments and AMDSMI_STATUS_NOT_SUPPORTED if it is not supported with the provided arguments.
Returns
amdsmi_status_t | AMDSMI_STATUS_SUCCESS on success, non-zero on fail

◆ amdsmi_dev_reset_xgmi_error()

amdsmi_status_t amdsmi_dev_reset_xgmi_error ( amdsmi_device_handle  device_handle)

Reset the XGMI error status for a device.

Given a device handle device_handle, this function will reset the current XGMI error state amdsmi_xgmi_status_t for the device device_handle to amdsmi_xgmi_status_t::AMDSMI_XGMI_STATUS_NO_ERRORS

Parameters
[in]device_handlea device handle
Returns
amdsmi_status_t | AMDSMI_STATUS_SUCCESS on success, non-zero on fail