RAS information

RAS information#

AMD SMI: 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_buffera pointer to the buffer with one CPER record. The caller must make sure the whole CPER record is loaded into the buffer.
[in]buf_sizeis the size of the cper_buffer.
[out]afidsa pointer to an array of uint64_t to which the AF IDs will be written
[in,out]num_afidsAs 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 to afids. On return, num_afids will contain the number of AF IDs written to afids, 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_handleDevice handle which to query
[out]ras_featureRAS 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