RAS information#
RAS information
Functions | |
| amdsmi_status_t | amdsmi_get_afids_from_cper (char *cper_buffer, uint32_t buf_size, uint64_t *afids, uint32_t *num_afids) |
| Get the AFIDs from CPER buffer. | |
| amdsmi_status_t | amdsmi_get_gpu_ras_feature_info (amdsmi_processor_handle processor_handle, amdsmi_ras_feature_t *ras_feature) |
| Returns RAS features info. | |
Detailed Description
Function Documentation
◆ amdsmi_get_afids_from_cper()
| amdsmi_status_t amdsmi_get_afids_from_cper | ( | char * | cper_buffer, |
| uint32_t | buf_size, | ||
| uint64_t * | afids, | ||
| uint32_t * | num_afids | ||
| ) |
Get the AFIDs from CPER buffer.
- Platform:
gpu_bm_linux
host
guest_1vf
guest_mvf
A utility function which retrieves the AFIDs from the CPER record.
- Parameters
-
[in] cper_buffer a pointer to the buffer with one CPER record. The caller must make sure the whole CPER record is loaded into the buffer. [in] buf_size is the size of the cper_buffer. [out] afids a pointer to an array of uint64_t to which the AF IDs will be written [in,out] num_afids As input, the value passed through this parameter is the number of uint64_t that may be safely written to the memory pointed to by afids. This is the limit on how many AF IDs will be written toafids. On return,num_afidswill contain the number of AF IDs written toafids, or the number of AF IDs that could have been written if enough memory had been provided. It is suggest to pass MAX_NUMBER_OF_AFIDS_PER_RECORD for all AF Ids.
- Returns
- amdsmi_status_t | AMDSMI_STATUS_SUCCESS on success, non-zero on fail
◆ amdsmi_get_gpu_ras_feature_info()
| amdsmi_status_t amdsmi_get_gpu_ras_feature_info | ( | amdsmi_processor_handle | processor_handle, |
| amdsmi_ras_feature_t * | ras_feature | ||
| ) |
Returns RAS features info.
- Platform:
gpu_bm_linux
host
- Parameters
-
[in] processor_handle Device handle which to query [out] ras_feature RAS features that are currently enabled and supported on the processor. Must be allocated by user.
- Returns
- amdsmi_status_t | AMDSMI_STATUS_SUCCESS on success, non-zero on fail